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


PHP Access_Error函数代码示例

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


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

示例1: autodoc

function autodoc($fichier, $paragraphe)
{
    $fcontents = @file($fichier);
    if ($fcontents == '') {
        Access_Error();
    }
    $pasfin = false;
    $meta = '';
    dochead();
    echo '
   <table class="table table-striped">
       <caption>Documentation</caption>
       <thead>
       <tr>
         <th>Fonction</th>
         <th>Documentation</th>
       </tr>
       </thead>
       <tbody>';
    while (list($line_num, $line) = each($fcontents)) {
        if ($paragraphe != "") {
            if (strstr($line, "#autodoc:<{$paragraphe}>")) {
                $line = '';
                $pasfin = true;
            }
            if (strstr($line, "#autodoc:</{$paragraphe}>")) {
                $line = '';
                $pasfin = false;
            }
        } else {
            $pasfin = true;
        }
        $line = trim($line);
        if (strstr($line, "#autodoc") and $pasfin) {
            $posX = strpos($line, ':');
            $morceau1 = trim(substr($line, strpos($line, "#autodoc") + 8, $posX - 8));
            $morceau2 = rtrim(substr($line, $posX + 1));
            //         if ($morceau1=='' AND $morceau2=='') {$rowcolor="style=\"background-color: #FFFFFF;\"";} else {$rowcolor="style=\"background-color: #F0F0F0;\"";}
            $meta .= '
         <tr>
            <td><code>' . $morceau1 . '<code></td>
            <td>' . $morceau2 . '</span></td>
         </tr>';
        } else {
            if (strstr($line, "# autodoc") and $pasfin) {
                $posX = strpos($line, ':');
                $morceau1 = ltrim(substr($line, strpos($line, "# autodoc") + 9, $posX - 9));
                $morceau2 = rtrim(substr($line, $posX + 1));
                //         if ($morceau1=='' AND $morceau2=='') {$rowcolor="style=\"background-color: #FFFFFF;\"";} else {$rowcolor="style=\"background-color: #F0F0F0;\"";}
                $meta .= "\n         <tr {$rowcolor}>\n         <td nowrap=\"nowrap\" align=\"left\"><code>{$morceau1}<code></td>\n         <td><span style=\"font-size: 10px; font-family: Tahoma, Arial;\">{$morceau2}</span>&nbsp;</td>\n         </tr>";
            }
        }
    }
    echo $meta;
    echo '</tbody</table>
   <p align="right" style="font-size: 10px; font-family: Tahoma, Arial;">AutoDoc pour <a href="http://www.npds.org">NPDS</a></p>';
}
开发者ID:npds,项目名称:npds_dune,代码行数:57,代码来源:autodoc.php

示例2: autodoc

function autodoc($fichier, $paragraphe)
{
    $fcontents = @file($fichier);
    if ($fcontents == "") {
        Access_Error();
    }
    $pasfin = false;
    $meta = "";
    echo "<table cellspacing=\"2\" cellpadding=\"2\" border=\"0\" width=\"100%\">";
    while (list($line_num, $line) = each($fcontents)) {
        if ($paragraphe != "") {
            if (strstr($line, "#autodoc:<{$paragraphe}>")) {
                $line = "";
                $pasfin = true;
            }
            if (strstr($line, "#autodoc:</{$paragraphe}>")) {
                $line = "";
                $pasfin = false;
            }
        } else {
            $pasfin = true;
        }
        $line = trim($line);
        if (strstr($line, "#autodoc") and $pasfin) {
            $posX = strpos($line, ":");
            $morceau1 = trim(substr($line, strpos($line, "#autodoc") + 8, $posX - 8));
            $morceau2 = rtrim(substr($line, $posX + 1));
            if ($morceau1 == "" and $morceau2 == "") {
                $rowcolor = "style=\"background-color: #FFFFFF;\"";
            } else {
                $rowcolor = "style=\"background-color: #F0F0F0;\"";
            }
            if (cur_charset == "utf-8") {
                $morceau2 = utf8_encode($morceau2);
            }
            $meta .= "<tr {$rowcolor}><td nowrap=\"nowrap\" align=\"left\"><span style=\"font-size: 10px; font-family: Tahoma, Arial;\"><b>{$morceau1}</b></span>&nbsp;</td><td><span style=\"font-size: 10px; font-family: Tahoma, Arial;\">{$morceau2}</span>&nbsp;</td></tr>";
        } else {
            if (strstr($line, "# autodoc") and $pasfin) {
                $posX = strpos($line, ":");
                $morceau1 = ltrim(substr($line, strpos($line, "# autodoc") + 9, $posX - 9));
                $morceau2 = rtrim(substr($line, $posX + 1));
                if ($morceau1 == "" and $morceau2 == "") {
                    $rowcolor = "style=\"background-color: #FFFFFF;\"";
                } else {
                    $rowcolor = "style=\"background-color: #F0F0F0;\"";
                }
                if (cur_charset == "utf-8") {
                    $morceau2 = utf8_encode($morceau2);
                }
                $meta .= "<tr {$rowcolor}><td nowrap=\"nowrap\" align=\"left\"><span style=\"font-size: 10px; font-family: Tahoma, Arial;\"><b>{$morceau1}</b></span>&nbsp;</td><td><span style=\"font-size: 10px; font-family: Tahoma, Arial;\">{$morceau2}</span>&nbsp;</td></tr>";
            }
        }
    }
    echo $meta;
    echo "</table><p align=\"right\" style=\"font-size: 10px; font-family: Tahoma, Arial;\">AutoDoc pour <a href=\"http://www.npds.org\">NPDS</a></p>";
}
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:56,代码来源:autodoc.php

示例3: filtre_module

function filtre_module($strtmp)
{
    if (strstr($strtmp, "..") || stristr($strtmp, "script") || stristr($strtmp, "cookie") || stristr($strtmp, "iframe") || stristr($strtmp, "applet") || stristr($strtmp, "object")) {
        Access_Error();
    } else {
        if ($strtmp != "") {
            return true;
        } else {
            return false;
        }
    }
}
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:12,代码来源:modules.php

示例4: admindroits

function admindroits($aid, $f_meta_nom)
{
    global $NPDS_Prefix, $radminsuper;
    $res = sql_query("SELECT fnom, radminsuper FROM " . $NPDS_Prefix . "authors a LEFT JOIN " . $NPDS_Prefix . "droits d ON a.aid = d.d_aut_aid LEFT JOIN " . $NPDS_Prefix . "fonctions f ON d.d_fon_fid = f.fid WHERE a.aid='{$aid}'");
    $foncts = array();
    $supers = array();
    while ($data = sql_fetch_row($res)) {
        $foncts[] = $data[0];
        $supers[] = $data[1];
    }
    if (!in_array('1', $supers) and !in_array($f_meta_nom, $foncts)) {
        Access_Error();
    }
    $radminsuper = $supers[0];
}
开发者ID:npds,项目名称:npds_dune,代码行数:15,代码来源:admin.php

示例5: File_Navigator

 function File_Navigator($parm, $sort_filed = "N", $dir = "ASC", $DirSize = false)
 {
     if (!isset($parm)) {
         $parm = ".";
     }
     if (is_dir($parm)) {
         $this->CurDir = $parm;
     } else {
         Access_Error();
     }
     $this->GetDirSz = $DirSize;
     if (@chdir($this->CurDir)) {
         $this->Handle = opendir(".");
         $this->LoadList();
         closedir($this->Handle);
         $this->SortListF($sort_filed, $dir);
         $this->SortListD($sort_filed, $dir);
         $this->PointerPosF = 0;
         $this->PointerPosD = 0;
         return true;
     } else {
         return false;
     }
 }
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:24,代码来源:class.navigator.php

示例6: Access_Error

/************************************************************************/
/************************************************************************/
/* Module-Install Version 1.1 - Mai 2005                                */
/* --------------------------                                           */
/* Copyright (c) 2005 Boris L'Ordi-Dépanneur & Hotfirenet               */
/*                                                                      */
/* Version 1.2 - 22 Avril 2009                                          */
/* --------------------------                                           */
/*                                                                      */
/* Modifié par jpb et phr pour le rendre compatible avec Evolution      */
/*                                                                      */
/* --------------------------                                           */
/* Version 2.0 - 30/08/2015 by jpb                                      */
/************************************************************************/
if (!stristr($_SERVER['PHP_SELF'], "admin.php")) {
    Access_Error();
}
$f_meta_nom = 'modules';
$f_titre = adm_translate("Gestion, Installation Modules");
//==> controle droit
admindroits($aid, $f_meta_nom);
//<== controle droit
// *****************************
// * Fonctions de l'installeur *
// *****************************
function nmig_copyright()
{
    $clspin = ' text-success';
    if ($ModInstall == "" && $ModDesinstall != "") {
        $clspin = ' text-danger';
    }
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:31,代码来源:module-install.php


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