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


PHP Main::clean_array方法代码示例

本文整理汇总了PHP中Main::clean_array方法的典型用法代码示例。如果您正苦于以下问题:PHP Main::clean_array方法的具体用法?PHP Main::clean_array怎么用?PHP Main::clean_array使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Main的用法示例。


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

示例1: Main

<?php

/*
 * This software is part of the Tiger php news system
 * http://tpns.sourceforge.net
 * 
 * This software comes with ABSOLUTELY NO WARRANTY. For details, see
 * the enclosed file COPYING for license information (GPL). If you
 * did not receive this file, see http://www.gnu.org/licenses/gpl.txt.
 * 
 */
//{{{ Init
require_once 'Main.php';
include 'config.php';
$main = new Main();
$_REQUEST = $main->clean_array($_REQUEST);
$userid = 0;
$role = 0;
//}}}
//{{{Login
if (isset($_REQUEST['user']) and isset($_REQUEST['passwd'])) {
    $user = "";
    if ($_REQUEST['user'] != "") {
        $user = $_REQUEST['user'];
    }
    $passwd = "";
    if ($_REQUEST['passwd'] != "") {
        $passwd = $_REQUEST['passwd'];
    }
    $userdata = $main->login($user, $passwd, false);
    if ($userdata->rows != 0) {
开发者ID:michaelprem,项目名称:phc,代码行数:31,代码来源:atom.php

示例2: fclose

        // Close the file
        fclose($fp);
    }
}
//}}}
$havecookie = false;
if (isset($_COOKIE['PHPSESSID']) and isset($_SESSION['reqid'])) {
    $havecookie = true;
}
$main->isbot = $isbot;
$main->havecookie = $havecookie;
$upload_max_filesize = ini_get('upload_max_filesize');
$form_upload_max_filesize = preg_replace('/M/', '000000', $upload_max_filesize);
$text_upload_max_filesize = preg_replace('/M/', ' Megabyte(s)', $upload_max_filesize);
//$main->Main();
$_REQUEST = $main->clean_array($_REQUEST, true);
$_SERVER = $main->clean_array($_SERVER, false, false);
if (isset($_SESSION['nr'])) {
    $nr = $_SESSION['nr'];
}
if (isset($_REQUEST['nr'])) {
    $nr = $_REQUEST['nr'];
}
$count = 0;
$plugins = array();
//Variables
$page = "start";
if ($initpage == "true") {
    $page = "init";
}
if ($enablesplash) {
开发者ID:michaelprem,项目名称:phc,代码行数:31,代码来源:index.php


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