本文整理汇总了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) {
示例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) {