本文整理汇总了PHP中getabspath函数的典型用法代码示例。如果您正苦于以下问题:PHP getabspath函数的具体用法?PHP getabspath怎么用?PHP getabspath使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getabspath函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: buildFilterPanel
/**
* Get filters blocks' data and Assing it to the Filter panel's blocks
*/
public function buildFilterPanel()
{
include_once getabspath("classes/controls/FilterControl.php");
foreach($this->filterFileds as $fieldName)
{
if( $this->pageObj->pSet->hasDependantFilter($fieldName) )
continue;
$filterFieldName = $fieldName;
$filterControl = FilterControl::getFilterControl($filterFieldName, $this->pageObj, $this->id, $this->viewControls);
$filterCtrlBlocks = $filterControl->buildFilterCtrlBlockArray($this->pageObj);
$filterButtonParams = $filterControl->getFilterButtonParams();
$filterExtraControls = $filterControl->getFilterExtraControls();
while( $filterControl->dependant )
{
$filterFieldName = $filterControl->parentFilterName;
$filterControl = FilterControl::getFilterControl($filterFieldName, $this->pageObj, $this->id, $this->viewControls);
$filterCtrlBlocks = $filterControl->buildFilterCtrlBlockArray( $this->pageObj, $filterCtrlBlocks );
$filterButtonParams = $filterControl->getFilterButtonParams( $filterButtonParams );
$filterExtraControls = $filterControl->getFilterExtraControls( $filterExtraControls );
}
$filterState = $filterControl->getFilterState();
$this->assignFilterPanelField($filterFieldName, $filterCtrlBlocks, $filterState, $filterButtonParams, $filterExtraControls);
}
}
示例2: Delete
function Delete()
{
$path = $this->destPath;
if (!$this->destPathIsAbsolute) {
$path = getabspath($path);
}
$last = substr($path, strlen($path) - 1);
if ($last != "/" && $last != "\\") {
$path .= "/";
}
runner_delete_file($path . $this->destFilename);
}
示例3: initUploadHandler
function initUploadHandler()
{
if (is_null($this->upload_handler)) {
require_once getabspath("classes/uploadhandler.php");
$this->upload_handler = new UploadHandler(getOptionsForMultiUpload($this->container->pSet, $this->field));
if (!is_null($this->pageObject)) {
$this->upload_handler->pSet = $this->pageObject->pSetEdit;
} else {
$this->upload_handler->pSet = $this->container->pSet;
}
$this->upload_handler->field = $this->field;
$this->upload_handler->table = $this->container->pSet->_table;
$this->upload_handler->pageType = $this->container->pageType;
}
}
示例4: showDBValue
public function showDBValue(&$data, $keylink)
{
$value = "";
$fileName = $data[$this->field];
if (strlen($fileName)) {
$fieldIsUrl = $this->container->pSet->isVideoUrlField($this->field);
if (!$fieldIsUrl) {
$this->upload_handler->tkeys = $keylink;
$filesArray = $this->getFilesArray($fileName);
} else {
$filesArray = array($fileName);
}
$title = "";
$titleField = $this->container->pSet->getAudioTitleField($this->field);
if ($titleField) {
$title = runner_htmlspecialchars($data[$titleField]);
}
foreach ($filesArray as $file) {
if ($this->container->pageType == PAGE_EXPORT || $this->container->pageType == PAGE_PRINT || $this->container->forExport != '') {
if ($value != "") {
$value .= ", ";
}
$value .= $fieldIsUrl ? $file : $file["usrName"];
continue;
}
// if file
if (!$fieldIsUrl) {
if (!file_exists(getabspath($file["name"]))) {
continue;
}
}
if ($fieldIsUrl) {
$href = $file;
} else {
$userFile = $this->upload_handler->buildUserFile($file);
$href = runner_htmlspecialchars($userFile["url"]);
if (!$title || !$titleField) {
$title = $userFile["name"];
}
}
$link = '<a title="' . $title . '" href="' . $href . '">' . $title . '</a>';
$value .= ($value == "" ? "" : "<br />") . '<audio controls preload="none" src="' . $href . '">' . $link . '</audio>';
}
}
return $value;
}
示例5: getFinalUploadFolder
function getFinalUploadFolder($field, $fileData = array())
{
if($this->isAbsolute($field))
$path = $this->getUploadFolder($field, $fileData);
else
$path = getabspath($this->getUploadFolder($field, $fileData));
if(strlen($path) && substr($path,strlen($path)-1) != "/")
$path.="/";
return $path;
}
示例6: class_GlobalEvents
$tableCaptions[""]["GE_PERSONA_DISPONIBLEXIDIOMA"] = "PERSONA DISPONIBLEXIDIOMA";
$tableCaptions[""]["GE_PERSONA_DISPONIBLEXOCUPACION"] = "PERSONA DISPONIBLEXOCUPACION";
$tableCaptions[""]["GE_PERSONA_DISPONIBLEXRELIGION"] = "PERSONA DISPONIBLEXRELIGION";
$tableCaptions[""]["GE_VISITA"] = "VISITA";
$tableCaptions[""]["GE_PERSONA_DISPONIBLEXINTERES"] = "PERSONA DISPONIBLEXINTERES";
$tableCaptions[""]["GE_PERSONA_DISPONIBLEXMASCOTA"] = "PERSONA DISPONIBLEXMASCOTA";
$tableCaptions[""]["GE_FOTO"] = "FOTO";
$tableCaptions[""]["GE_BEBEDOR"] = "GE BEBEDOR";
$tableCaptions[""]["GE_PERSONA"] = "GE PERSONA";
$globalEvents = new class_GlobalEvents();
$tableEvents = array();
$mlang_defaultlang = "Spanish";
$page_titles[".global"] = array();
if (mlang_getcurrentlang() == "Spanish") {
}
if (mlang_getcurrentlang() == "") {
}
include getabspath('classes/security.php');
include getabspath("connections/dbfunctions_legacy.php");
include getabspath("connections/ConnectionManager.php");
$cman = new ConnectionManager();
// default connection link #9875
$conn = $cman->getDefault()->conn;
$isGroupSecurity = false;
$isUseRTEBasic = true;
$isUseRTECK = false;
$isUseRTEInnova = false;
$caseInsensitiveUsername = 0;
include getabspath('classes/projectsettings.php');
include_once getabspath('classes/runnerpage.php');
示例7: runner_error_handler
function runner_error_handler($errno, $errstr, $errfile, $errline)
{
global $strLastSQL;
if ($errno == 2048) {
return 0;
}
if ($errno == 8192) {
if ($errstr == "Assigning the return value of new by reference is deprecated") {
return 0;
}
if (strpos($errstr, "set_magic_quotes_runtime")) {
return 0;
}
}
if ($errno == 2 && strpos($errstr, "has been disabled for security reasons")) {
return 0;
}
if ($errno == 2 && strpos($errstr, "Data is not in a recognized format")) {
return 0;
}
if ($errno == 8 && !strncmp($errstr, "Undefined index", 15)) {
return 0;
}
if (strpos($errstr, "It is not safe to rely on the system's timezone settings.")) {
return 0;
}
if (strpos($errstr, "fopen(") === 0) {
return 0;
}
// show error htm
if (!class_exists("Xtempl")) {
require_once getabspath("include/xtempl.php");
}
$xt = new Xtempl();
$xt->assign('errno', $errno);
$xt->assign('errstr', $errstr);
$url = $_SERVER["SERVER_NAME"] . $_SERVER["SCRIPT_NAME"];
if (array_key_exists("QUERY_STRING", $_SERVER)) {
$url .= "?" . htmlspecialchars($_SERVER["QUERY_STRING"]);
}
$xt->assign('url', $url);
$xt->assign('errfile', $errfile);
$xt->assign('errline', $errline);
$sqlStr = isset($strLastSQL) ? htmlspecialchars(substr($strLastSQL, 0, 1024)) : '';
$xt->assign('sqlStr', $sqlStr);
$debugInfoArr = parse_backtrace($errfile, $errline);
$xt->assign_loopsection('debugRow', $debugInfoArr);
$xt->display('error.htm');
exit(0);
}
示例8: array
if (!$PageSize) {
$PageSize = $pageObject->pSet->getInitialPageSize();
}
if ($PageSize < 0) {
$all = 1;
}
$recno = 1;
$records = 0;
$maxpages = 1;
$pageindex = 1;
$pageno = 1;
// build arrays for sort (to support old code in user-defined events)
if ($eventObj->exists("ListQuery")) {
$arrFieldForSort = array();
$arrHowFieldSort = array();
require_once getabspath('classes/orderclause.php');
$fieldList = unserialize($_SESSION[$strTableName . "_orderFieldsList"]);
for ($i = 0; $i < count($fieldList); $i++) {
$arrFieldForSort[] = $fieldList[$i]->fieldIndex;
$arrHowFieldSort[] = $fieldList[$i]->orderDirection;
}
}
if (!$all) {
if ($numrows) {
$maxRecords = $numrows;
$maxpages = ceil($maxRecords / $PageSize);
if ($mypage > $maxpages) {
$mypage = $maxpages;
}
if ($mypage < 1) {
$mypage = 1;
示例9: getabspath
<?php
include_once getabspath("include/pad_pad_sspd_settings.php");
function DisplayMasterTableInfo_pad_pad_sspd($params)
{
$detailtable = $params["detailtable"];
$keys = $params["keys"];
global $conn, $strTableName;
$xt = new Xtempl();
$oldTableName = $strTableName;
$strTableName = "pad.pad_sspd";
//$strSQL = "SELECT id, tahun, sspdno, sspdtgl, sspdjam, invoice_id, keterangan, bulan_telat, hitung_bunga, denda, bunga, jml_bayar, sisa, jenis_bayar, printed, tp_id, is_validated, is_valid, enabled, created, create_uid, updated, update_uid, petugas_id, pejabat_id FROM \"pad\".pad_sspd ";
$cipherer = new RunnerCipherer($strTableName);
$settings = new ProjectSettings($strTableName, PAGE_PRINT);
$masterQuery = $settings->getSQLQuery();
$viewControls = new ViewControlsContainer($settings, PAGE_PRINT);
$where = "";
global $pageObject, $page_styles, $page_layouts, $page_layout_names, $container_styles;
$layout = new TLayout("masterprint", "RoundedGreen", "MobileGreen");
$layout->blocks["bare"] = array();
$layout->containers["0"] = array();
$layout->containers["0"][] = array("name" => "masterprintheader", "block" => "", "substyle" => 1);
$layout->skins["0"] = "empty";
$layout->blocks["bare"][] = "0";
$layout->containers["mastergrid"] = array();
$layout->containers["mastergrid"][] = array("name" => "masterprintfields", "block" => "", "substyle" => 1);
$layout->skins["mastergrid"] = "grid";
$layout->blocks["bare"][] = "mastergrid";
$page_layouts["pad_pad_sspd_masterprint"] = $layout;
$showKeys = "";
if ($detailtable == "public.pad_payment") {
示例10: getabspath
<?php
require_once getabspath('classes/controls/TextControl.php');
class ReadOnlyField extends TextControl
{
function ReadOnlyField($field, $pageObject, $id)
{
parent::EditControl($field, $pageObject, $id);
$this->format = EDIT_FORMAT_READONLY;
}
function buildControl($value, $mode, $fieldNum = 0, $validate, $additionalCtrlParams, $data)
{
parent::buildControl($value, $mode, $fieldNum, $validate, $additionalCtrlParams, $data);
if ($mode == MODE_EDIT || $mode == MODE_ADD || $mode == MODE_INLINE_EDIT || $mode == MODE_INLINE_ADD) {
echo '<span id="readonly_' . $this->cfield . '" ' . $this->inputStyle . '>' . $this->pageObject->readOnlyFields[$this->field] . '</span>';
}
echo '<input id="' . $this->cfield . '" type="Hidden" name="' . $this->cfield . '" value="' . htmlspecialchars($value) . '">';
$this->buildControlEnd($validate);
}
}
示例11: header
<?php
@ini_set("display_errors", "1");
@ini_set("display_startup_errors", "1");
require_once "include/dbcommon.php";
header("Expires: Thu, 01 Jan 1970 00:00:01 GMT");
require_once "classes/charts.php";
require_once getabspath("include/xml.php");
require_once getabspath("classes/searchclause.php");
if (!isLogged()) {
Security::saveRedirectURL();
HeaderRedirect("login", "", "message=expired");
return;
}
$xml = new xml();
$chrt_strXML = "";
if (checkTableName(postvalue("chartname"), titCHART)) {
include_once "include/" . postvalue("chartname") . "_variables.php";
$chrt_strXML = GetChartXML(postvalue("chartname"));
$chrt_array = $xml->xml_to_array($chrt_strXML);
$_SESSION["webobject"]["table_type"] = "project";
$_SESSION["object_sql"] = "";
}
$webchart = false;
if (!$chrt_strXML) {
$sessPrefix = "webchart" . postvalue('cname');
$chrt_strXML = LoadSelectedChart(postvalue('cname'));
$webchart = true;
$chrt_array = $xml->xml_to_array($chrt_strXML);
if (is_wr_project()) {
include_once "include/" . $chrt_array['settings']['short_table_name'] . "_variables.php";
示例12: postvalue
$options["id"] = postvalue("id") ? postvalue("id") : 1;
$options["mode"] = $mode;
$options['xt'] =& $xt;
$options['mainMasterPageType'] = postvalue("mainmasterpagetype");
$options['masterPageType'] = postvalue("masterpagetype");
$options["masterTable"] = postvalue("mastertable");
$options["masterId"] = postvalue("masterid");
$options["firstTime"] = postvalue("firsttime");
$i = 1;
while (isset($_REQUEST["masterkey" . $i])) {
$options["masterKeysReq"][$i] = $_REQUEST["masterkey" . $i];
$i++;
}
$pageObject = ListPage::createListPage($strTableName, $options);
unset($_SESSION["message_add"]);
unset($_SESSION["message_edit"]);
// prepare code for build page
$pageObject->prepareForBuildPage();
$includesArr = array();
$masterTablesInfoArr = GetMasterTablesArr($strTableName);
for ($i = 0; $i < count($masterTablesInfoArr); $i++) {
if ($masterTablesInfoArr[$i]['dispInfo']) {
$includesArr[] = getabspath("include/" . $masterTablesInfoArr[$i]['mShortTable'] . "_masterlist.php");
}
}
//include files if need
for ($i = 0; $i < count($includesArr); $i++) {
include $includesArr[$i];
}
// show page depends of mode
$pageObject->showPage();
示例13: GetTableLink
}
} else {
$filename = "file.bin";
}
if (strlen(db_fld_value($data, fldname($fld)))) {
$value = "<a href=\"" . GetTableLink($rpt_array['short_table_name'], "getfile") . "?filename=" . rawurlencode($filename) . "&field=" . runner_htmlspecialchars(rawurlencode(fldname($fld))) . $keylink . "\">";
$value.=runner_htmlspecialchars($filename);
$value.="</a>";
}
}
} elseif (!is_wr_project()) {
$value = WRProcessLargeText($viewControls->getControl(gfldname($fld), $fld['view_format'])->showDBValue($data, ""), fldname($fld), count($rowinfo), 100, $render_mode, $fld['label']);
} elseif (( $fld["edit_format"] == EDIT_FORMAT_LOOKUP_WIZARD || $fld["edit_format"] == EDIT_FORMAT_RADIO ) && ($fld['lookupobj_lookuptype'] == LT_LOOKUPTABLE || $fld['lookupobj_lookuptype'] == LT_QUERY)) {
//delete tjhis after the tests on feature #6356
//$value = DisplayLookupWizard(fldname($fld), $data[fldname($fld)], $data, $keylink, $render_mode, PAGE_REPORT);
include_once getabspath('classes/controls/ViewLookupWizardField.php');
if (!$viewControls->viewControls[fldname($fld)])
$viewControls->viewControls[fldname($fld)] = new ViewLookupWizardField(fldname($fld), $viewControls, null);
$value = $viewControls->showDBValue($viewControls, $data, $keylink);
}
elseif ($fld["view_format"] != FORMAT_CUSTOM && $fld["view_format"] != FORMAT_FILE_IMAGE && $fld["view_format"] != FORMAT_FILE && $fld["view_format"] != FORMAT_HYPERLINK && $fld["view_format"] != FORMAT_EMAILHYPERLINK && $fld["view_format"] != FORMAT_CHECKBOX) {
$value = WRProcessLargeText($viewControls->getControl(gfldname($fld), $fld['view_format'])->showDBValue($data, "")
, fldname($fld)
, count($rowinfo), $gSettings->getNumberOfChars(), $render_mode, $fld['label']);
} else {
$value = $viewControls->getControl(fldname($fld), $fld['view_format'])->showDBValue($data, "");
}
if ($summary[0]["sds"]) {
$row["1" . GoodFieldName(fldname($fld)) . "_value"] = $value;
$arrFields["data"][0][fldname($fld)] = $value;
}
示例14: isSystemControl
function isSystemControl($className)
{
include_once(getabspath("classes/controls/Control.php"));
$cTypes = new ControlTypes();
if($this->pageType == PAGE_SEARCH || $this->pageType == PAGE_LIST)
return isset($cTypes->forSearch[$className]);
else
return isset($cTypes->forEdit[$className]);
}
示例15: array
$proto15["m_column"]=$obj;
$proto15["m_contained"] = array();
$proto15["m_strCase"] = "";
$proto15["m_havingmode"] = false;
$proto15["m_inBrackets"] = false;
$proto15["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto15);
$proto13["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto13);
$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
$obj = new SQLQuery($proto0);
return $obj;
}
$queryData_webreport_users = createSqlQuery_webreport_users();
$tdatawebreport_users[".sqlquery"] = $queryData_webreport_users;
include_once(getabspath("include/webreport_users_events.php"));
$tableEvents["webreport_users"] = new eventclass_webreport_users;
$tdatawebreport_users[".hasEvents"] = true;
$cipherer = new RunnerCipherer("webreport_users");
?>