当前位置: 首页>>代码示例>>PHP>>正文


PHP displayErrorPage函数代码示例

本文整理汇总了PHP中displayErrorPage函数的典型用法代码示例。如果您正苦于以下问题:PHP displayErrorPage函数的具体用法?PHP displayErrorPage怎么用?PHP displayErrorPage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了displayErrorPage函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: executeSqlFile

function executeSqlFile(&$installQ, $filename, $tablePrfx = "")
{
    $fp = fopen($filename, "r");
    # show error if file could not be opened
    if ($fp == false) {
        echo "Error reading file " . H($filename) . ".<br>\n";
        return false;
    } else {
        $sqlStmt = "";
        while (!feof($fp)) {
            $char = fgetc($fp);
            if ($char == ";") {
                //replace table prefix
                $sql = str_replace("%prfx%", $tablePrfx, $sqlStmt);
                echo "lara";
                echo "process sql [" . $sqlStmt . "]<br>";
                //test
                $result = $installQ->exec($sql);
                if ($installQ->errorOccurred()) {
                    $installQ->close();
                    displayErrorPage($installQ);
                    fclose($fp);
                    return false;
                }
                $sqlStmt = "";
            } else {
                $sqlStmt = $sqlStmt . $char;
            }
        }
        fclose($fp);
        return true;
    }
}
开发者ID:Giordano-Bruno,项目名称:GiordanoBruno,代码行数:33,代码来源:installFuncs.php

示例2: getTagDesc

function getTagDesc($tag, $subfldCd, &$tagDesc, &$subfldDesc, &$ind1Desc, &$ind2Desc)
{
    $tagDesc = "";
    $subfldDesc = "";
    $ind1Desc = "";
    $ind2Desc = "";
    if ($tag != "") {
        $marcTagDmQ = new UsmarcTagDmQuery();
        $marcTagDmQ->connect();
        if ($marcTagDmQ->errorOccurred()) {
            $marcTagDmQ->close();
            displayErrorPage($marcTagDmQ);
        }
        $marcTag = $marcTagDmQ->doQuery($tag);
        if ($marcTagDmQ->errorOccurred()) {
            $marcTagDmQ->close();
            displayErrorPage($marcTagDmQ);
        }
        $marcTagDmQ->close();
        if ($marcTag) {
            $tagDesc = $marcTag->getDescription();
            $ind1Desc = $marcTag->getInd1Description();
            $ind2Desc = $marcTag->getInd2Description();
            # reading for subfield description
            $marcSubfldDmQ = new UsmarcSubfieldDmQuery();
            $marcSubfldDmQ->connect();
            if ($marcSubfldDmQ->errorOccurred()) {
                $marcSubfldDmQ->close();
                displayErrorPage($marcSubfldDmQ);
            }
            $marcSubfld = $marcSubfldDmQ->doQuery($tag, $subfldCd);
            if ($marcSubfldDmQ->errorOccurred()) {
                $marcSubfldDmQ->close();
                displayErrorPage($marcSubfldDmQ);
            }
            $marcSubfldDmQ->close();
            if (!$marcSubfld) {
                $subfldDesc = "";
            } else {
                $subfldDesc = $marcSubfld->getDescription();
            }
        }
    }
    return true;
}
开发者ID:AevumDecessus,项目名称:docker-openbiblio,代码行数:45,代码来源:marcFuncs.php

示例3: getCutter

function getCutter($aName)
{
    ##### implementation of Cutter - Sanborn 3-digit table
    //echo "cutter input string: " . $aName . "<br />";
    ## remove spaces from text before comparrison to table entries
    $aName = str_replace(" ", "", $aName);
    ## what follows, while simpler only works with mySQL ver 4.1 and later
    //	$ctrQ = new ctrQuery();
    // 	$ctrQ->connect();
    //  if ($ctrQ->errorOccurred()) {
    //    $ctrQ->close();
    //    displayErrorPage($ctrQ);
    //  }
    //
    //  $ctrQ->execSelect($aName);
    //  $result = $ctrQ->fetchfield('theNmbr');
    //  $ctrQ->close();
    //	return substr($aName,0,1) . $result;
    ## this more complex process works all the time.
    $ctrQ = new ctrQuery();
    $ctrQ->connect();
    if ($ctrQ->errorOccurred()) {
        $ctrQ->close();
        displayErrorPage($ctrQ);
    }
    $rslt1 = $ctrQ->getNmbrPt1($aName);
    $ctrQ->close();
    $ctrQ = new ctrQuery();
    $ctrQ->connect();
    if ($ctrQ->errorOccurred()) {
        $ctrQ->close();
        displayErrorPage($ctrQ);
    }
    $rslt2 = $ctrQ->getNmbrPt2($rslt1);
    $ctrQ->close();
    return substr($aName, 0, 1) . $rslt2;
}
开发者ID:uniedpa,项目名称:espabiblio,代码行数:37,代码来源:lookupCutterCs3.php

示例4: ThemeQuery

$set = $setQ->fetchRow();
$setQ->close();
/****************************************************************************
 * Reading theme settings
 ****************************************************************************
 */
$themeQ = new ThemeQuery();
$themeQ->connect();
if ($themeQ->errorOccurred()) {
    $themeQ->close();
    displayErrorPage($themeQ);
}
$themeQ->execSelect($set->getThemeid());
if ($themeQ->errorOccurred()) {
    $themeQ->close();
    displayErrorPage($themeQ);
}
$theme = $themeQ->fetchTheme();
$themeQ->close();
/****************************************************************************
 * general settings constants
 ****************************************************************************
 */
define("OBIB_LIBRARY_NAME", $set->getLibraryName());
define("OBIB_LIBRARY_HOURS", $set->getLibraryHours());
define("OBIB_LIBRARY_PHONE", $set->getLibraryPhone());
define("OBIB_LIBRARY_URL", $set->getLibraryUrl());
define("OBIB_OPAC_URL", $set->getOpacUrl());
define("OBIB_SESSION_TIMEOUT", $set->getSessionTimeout());
define("OBIB_ITEMS_PER_PAGE", $set->getItemsPerPage());
define("OBIB_DB_VERSION", $set->getVersion());
开发者ID:AevumDecessus,项目名称:docker-openbiblio,代码行数:31,代码来源:read_settings.php

示例5: getOpts

function getOpts()
{
    global $postVars;
    global $useYAZ, $useSRU;
    global $noise_words;
    unset($_SESSION["postVars"]);
    unset($_SESSION["pageErrors"]);
    $optQ = new LookupOptsQuery();
    $optQ->connect();
    if ($optQ->errorOccurred()) {
        $optQ->close();
        displayErrorPage($optQ);
    }
    $optQ->execSelect();
    if ($optQ->errorOccurred()) {
        $optQ->close();
        displayErrorPage($optQ);
    }
    $opt = $optQ->fetchRow();
    $postVars["protocol"] = $opt->getProtocol();
    $postVars["maxHits"] = $opt->getMaxHits();
    $postVars["keepDashes"] = $opt->getKeepDashes();
    $postVars["callNmbrType"] = $opt->getCallNmbrtype();
    $postVars["autoDewey"] = $opt->getAutoDewey();
    $postVars["defaultDewey"] = $opt->getDefaultDewey();
    $postVars["autoCutter"] = $opt->getAutoCutter();
    $postVars["cutterType"] = $opt->getCutterType();
    $postVars["cutterWord"] = $opt->getCutterWord();
    $postVars["autoCollect"] = $opt->getAutoCollect();
    $postVars["fictionName"] = $opt->getFictionName();
    $postVars["fictionCode"] = $opt->getFictioncode();
    $postVars["fictionLoC"] = $opt->getFictionLoC();
    $postVars["fictionDew"] = $opt->getFictionDew();
    ## not yet in database or user opts screens, but should be!!!!
    $postVars["timeout"] = 60;
    $postVars["noiseWords"] = 'a an and for of the this those';
    //print_r($postVars);
    $optQ->close();
}
开发者ID:Giordano-Bruno,项目名称:GiordanoBruno,代码行数:39,代码来源:LookupOptsQuery.php

示例6: BiblioHoldQuery

?>
    </th>
  </tr>
<?php 
#****************************************************************************
#*  Search database for BiblioHold data
#****************************************************************************
$holdQ = new BiblioHoldQuery();
$holdQ->connect();
if ($holdQ->errorOccurred()) {
    $holdQ->close();
    displayErrorPage($holdQ);
}
if (!$holdQ->queryByMbrid($mbrid)) {
    $holdQ->close();
    displayErrorPage($holdQ);
}
if ($holdQ->getRowCount() == 0) {
    ?>
  <tr>
    <td class="primary" align="center" colspan="8">
      <?php 
    echo $loc->getText("mbrViewNoHolds");
    ?>
    </td>
  </tr>
<?php 
} else {
    while ($hold = $holdQ->fetchRow()) {
        ?>
  <tr>
开发者ID:Giordano-Bruno,项目名称:GiordanoBruno,代码行数:31,代码来源:mbr_view.php

示例7: getHosts

function getHosts($mode)
{
    global $postVars;
    $hostQ = new LookupHostQuery();
    $hostQ->connect();
    if ($hostQ->errorOccurred()) {
        $hostQ->close();
        displayErrorPage($hostQ);
    }
    if ($mode == 'all') {
        $hostQ->execSelectAll();
    } else {
        $hostQ->execSelect();
    }
    if ($hostQ->errorOccurred()) {
        $hostQ->close();
        displayErrorPage($hostQ);
    }
    $n = 0;
    $hosts = array();
    while ($row = $hostQ->fetchRow()) {
        $hosts[$n]['id'] = $row->getId();
        $hosts[$n]['seq'] = $row->getSeq();
        $hosts[$n]['active'] = $row->getActive();
        $hosts[$n]['host'] = $row->getHost();
        $hosts[$n]['name'] = $row->getName();
        $hosts[$n]['db'] = $row->getDb();
        $hosts[$n]['user'] = $row->getUser();
        $hosts[$n]['pw'] = $row->getPw();
        $hosts[$n]['context'] = $row->getCntxt();
        $hosts[$n]['schema'] = $row->getSchma();
        $n++;
    }
    $postVars['hosts'] = $hosts;
    $postVars['numHosts'] = $n;
    $hostQ->close();
}
开发者ID:Giordano-Bruno,项目名称:GiordanoBruno,代码行数:37,代码来源:LookupHostsQuery.php

示例8: header

 }
 if (!isset($_SESSION["token"]) or $_SESSION["token"] == "") {
     header("Location: ../shared/loginform.php");
     exit;
 }
 #****************************************************************************
 #*  Checking session table to see if session_id has timed out
 #****************************************************************************
 $sessQ = new SessionQuery();
 $sessQ->connect();
 if ($sessQ->errorOccurred()) {
     displayErrorPage($sessQ);
 }
 if (!$sessQ->validToken($_SESSION["userid"], $_SESSION["token"])) {
     if ($sessQ->errorOccurred()) {
         displayErrorPage($sessQ);
     }
     $sessQ->close();
     header("Location: ../shared/loginform.php?RET=" . U($returnPage));
     exit;
 }
 $sessQ->close();
 #****************************************************************************
 #*  Checking authorization for this tab
 #*  The session authorization flags were set at login in login.php
 #****************************************************************************
 if ($tab == "circulation") {
     if (!$_SESSION["hasCircAuth"]) {
         header("Location: ../circ/noauth.php");
         exit;
     } elseif (isset($restrictToMbrAuth) and !$_SESSION["hasCircMbrAuth"]) {
开发者ID:vishnu35,项目名称:Granthalay,代码行数:31,代码来源:logincheck.php

示例9: __invoke

 function __invoke($smarty)
 {
     displayErrorPage($smarty, $this);
 }
开发者ID:jellycucmber,项目名称:kotoba-ib,代码行数:4,代码来源:errors.php

示例10: header

    $_SESSION["pageErrors"] = $pageErrors;
    header("Location: ../user/user_pwd_reset_form.php");
    exit;
}
#**************************************************************************
#*  Update staff member
#**************************************************************************
$memberQ = new MemberQuery();
$memberQ->connect();
if ($memberQ->errorOccurred()) {
    $memberQ->close();
    displayErrorPage($memberQ);
}
if (!$memberQ->resetPassUser($member)) {
    $memberQ->close();
    displayErrorPage($memberQ);
}
$memberQ->close();
#**************************************************************************
#*  Destroy form values and errors
#**************************************************************************
unset($_SESSION["postVars"]);
unset($_SESSION["pageErrors"]);
#**************************************************************************
#*  Show success page
#**************************************************************************
require_once "../opac/header_opac.php";
echo $loc->getText("adminStaff_pass_user_reset_Passwordreset");
?>
<br><br>
<a href="../user/user_view.php"><?php 
开发者ID:Giordano-Bruno,项目名称:GiordanoBruno,代码行数:31,代码来源:user_pwd_reset.php

示例11: displayErrorPage

            displayErrorPage($errorMessage, $longErrorMessage);
        }
        // Hauptinhalt ermitteln
        if (isset($_GET[SITE_PARAM])) {
            // Bestimmen des include-Files anhand des GET-Parameters SITE_PARAM
            $param = $_GET[SITE_PARAM];
            $paramFile = getParamFile($param);
            // Prüfung, ob der Site-Parameter zulässig ist
            if ($paramFile !== false) {
                $includeFile = $paramFile;
            }
        } else {
            $includeFile = 'map.php';
        }
    }
}
// Einbinden + Prüfen ob Einbinden erfolgreich
if ((include $includeFile) === false) {
    $errorMessage = 'Öffnen der Include-Datei fehlgeschlagen';
    $longErrorMessage = 'Datei Include-Datei ' . $includeFile . ' konnte nicht nicht gefunden werden (' . __FILE__ . ').';
    displayErrorPage($errorMessage, $longErrorMessage);
}
// Prüfen ob Request über Ajax läuft und template umschalten
if (isset($_GET['ajax'])) {
    $template->setTemplate('ajax_index.html');
    if ($user == null) {
        $template->viewMacro = 'ajaxNotLoggedIn';
    } else {
        $template->viewMacro = 'ajaxStandard';
    }
}
开发者ID:jeko,项目名称:pksworld,代码行数:31,代码来源:processSite.php

示例12: autoInactive

 function autoInactive()
 {
     $setQ = new SettingsQuery();
     $setQ->connect();
     if ($setQ->errorOccurred()) {
         $setQ->close();
         displayErrorPage($setQ);
     }
     $setQ->execSelect();
     if ($setQ->errorOccurred()) {
         $setQ->close();
         displayErrorPage($setQ);
     }
     $set = $setQ->fetchRow();
     $inactiveMemberAfterDays = 0 + $set->getInactiveMemberAfterDays();
     if ($inactiveMemberAfterDays > 0) {
         $sql = $this->mkSQL("UPDATE member SET is_active = 'N' WHERE last_activity_dt <= DATE_SUB(NOW(), INTERVAL %N DAY) ", $inactiveMemberAfterDays);
         $this->exec($sql);
     }
 }
开发者ID:Giordano-Bruno,项目名称:GiordanoBruno,代码行数:20,代码来源:MemberQuery.php

示例13: insertCopy

function insertCopy()
{
    global $copyQ, $copy;
    if (!$copyQ->insert($copy)) {
        $copyQ->close();
        if ($copyQ->getDbErrno() == "") {
            $pageErrors["barcodeNmbr"] = $copyQ->getError();
            $_SESSION["postVars"] = $_POST;
            $_SESSION["pageErrors"] = $pageErrors;
            header("Location: ../catalog/biblio_copy_new_form.php?bibid=" . U($bibid));
            exit;
        } else {
            displayErrorPage($copyQ);
        }
    }
}
开发者ID:Giordano-Bruno,项目名称:GiordanoBruno,代码行数:16,代码来源:biblio_copy_new.php

示例14: displayErrorPage

<?php

/*+**********************************************************************************
 * The contents of this file are subject to the vtiger CRM Public License Version 1.0
 * ("License"); You may not use this file except in compliance with the License
 * The Original Code is:  vtiger CRM Open Source
 * The Initial Developer of the Original Code is vtiger.
 * Portions created by vtiger are Copyright (C) vtiger.
 * All Rights Reserved.
 ************************************************************************************/
function displayErrorPage($request)
{
    ?>
	<h1>Workflow engine error</h1>
	<?php 
    echo "It appears that you have entered an invalid value.";
    ?>
	<?php 
}
displayErrorPage($_REQUEST);
开发者ID:hardikk,项目名称:HNH,代码行数:20,代码来源:errorpage.php

示例15: BiblioFieldQuery

        Fatal::internalError('no fieldid set');
    }
    $fieldid = $_GET["fieldid"];
    #****************************************************************************
    #*  Reading database for subfield values
    #****************************************************************************
    $fieldQ = new BiblioFieldQuery();
    $fieldQ->connect();
    if ($fieldQ->errorOccurred()) {
        $fieldQ->close();
        displayErrorPage($fieldQ);
    }
    $field = $fieldQ->doQuery($bibid, $fieldid);
    if ($fieldQ->errorOccurred()) {
        $fieldQ->close();
        displayErrorPage($fieldQ);
    }
    $fieldQ->close();
    $postVars["bibid"] = $bibid;
    $postVars["fieldid"] = $bibid;
    $postVars["tag"] = $field->getTag();
    $postVars["ind1Cd"] = $field->getInd1Cd();
    $postVars["ind2Cd"] = $field->getInd2Cd();
    $postVars["subfieldCd"] = $field->getSubfieldCd();
    $postVars["fieldData"] = $field->getFieldData();
    $selectedTag = $field->getTag();
    $selectedSubfld = $field->getSubfieldCd();
} else {
    $postVars = $_SESSION['postVars'];
    if (isset($_SESSION['pageErrors'])) {
        $pageErrors = $_SESSION['pageErrors'];
开发者ID:AevumDecessus,项目名称:docker-openbiblio,代码行数:31,代码来源:biblio_marc_edit_form.php


注:本文中的displayErrorPage函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。