本文整理汇总了PHP中validateQueryString函数的典型用法代码示例。如果您正苦于以下问题:PHP validateQueryString函数的具体用法?PHP validateQueryString怎么用?PHP validateQueryString使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了validateQueryString函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: validateQueryString
# published by the Free Software Foundation, version 2 of the License.
# See license.txt.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#***************************************************************************************
//error_reporting(1);
include "functions/ParamLib.php";
include 'Redirect_root.php';
$url = validateQueryString(curPageURL());
if ($url === FALSE) {
header('Location: index.php');
}
error_reporting(E_ERROR);
$start_time = time();
include 'Warehouse.php';
array_rwalk($_REQUEST, 'strip_tags');
if (!isset($_REQUEST['_openSIS_PDF'])) {
Warehouse('header');
//if(strpos($_REQUEST['modname'],'misc/')===false && $_REQUEST['modname']!='Students/Student.php' && $_REQUEST['modname']!='School_Setup/Calendar.php' && $_REQUEST['modname']!='Scheduling/Schedule.php' && $_REQUEST['modname']!='Attendance/Percent.php' && $_REQUEST['modname']!='Attendance/Percent.php?list_by_day=true' && $_REQUEST['modname']!='Scheduling/MassRequests.php' && $_REQUEST['modname']!='Scheduling/MassSchedule.php' && $_REQUEST['modname']!='Student_Billing/Fees.php')
//if(strpos($_REQUEST['modname'],'misc/')===false)
if (strpos(optional_param('modname', '', PARAM_NOTAGS), 'misc/') === false) {
echo '<script language="JavaScript">if(window == top && (!window.opener || window.opener.location.href.substring(0,(window.opener.location.href.indexOf("&")!=-1?window.opener.location.href.indexOf("&"):window.opener.location.href.replace("#","").length))!=window.location.href.substring(0,(window.location.href.indexOf("&")!=-1?window.location.href.indexOf("&"):window.location.href.replace("#","").length)))) window.location.href = "index.php";</script>';
}
echo "<BODY onload='doOnload();'>";
开发者ID:26746647,项目名称:Belize-openSIS,代码行数:31,代码来源:for_export.php
示例2: explode
# This program is released under the terms of the GNU General Public License as
# published by the Free Software Foundation, version 2 of the License.
# See license.txt.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#***************************************************************************************
$var1 = explode("?", $_SERVER['REQUEST_URI']);
include "functions/ParamLib.php";
$url = validateQueryString($var1[1]);
if ($url === FALSE || !$var1[1]) {
header('Location: index.php');
}
//echo $_SERVER['REQUEST_URI'];
//exit;
error_reporting(1);
include "./Warehouse.php";
$tmp_REQUEST = $_REQUEST;
$_SESSION['Side_PHP_SELF'] = "Side.php";
$old_school = UserSchool();
$old_syear = UserSyear();
$old_period = UserCoursePeriod();
//$btnn = $_REQUEST['btnn'];
$btnn = optional_param('btnn', '', PARAM_SPCL);
//$nsc = $_REQUEST['nsc'];
开发者ID:SysBind,项目名称:opensis-ml,代码行数:31,代码来源:Side.php
注:本文中的validateQueryString函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论