本文整理汇总了PHP中icms_core_DataFilter::stripslashesGPC方法的典型用法代码示例。如果您正苦于以下问题:PHP icms_core_DataFilter::stripslashesGPC方法的具体用法?PHP icms_core_DataFilter::stripslashesGPC怎么用?PHP icms_core_DataFilter::stripslashesGPC使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类icms_core_DataFilter
的用法示例。
在下文中一共展示了icms_core_DataFilter::stripslashesGPC方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: icms_cp_footer
if (count($error) > 0) {
icms_core_Message::error($error);
echo "<p><a href='admin.php?fct=modulesadmin'>" . _MD_AM_BTOMADMIN . "</a></p>";
icms_cp_footer();
exit;
}
echo "<h4 style='text-align:" . _GLOBAL_LEFT . ";'>" . _MD_AM_PCMFM . "</h4>" . "<form action='admin.php' method='post'>" . "<input type='hidden' name='fct' value='modulesadmin' />" . "<input type='hidden' name='op' value='submit' />" . "<table width='100%' border='0' cellspacing='1' class='outer'>" . "<tr align='center'><th>" . _MD_AM_MODULE . "</th><th>" . _MD_AM_ACTION . "</th><th>" . _MD_AM_ORDER . "</th></tr>";
$mcount = 0;
foreach ($module as $mid) {
if ($mcount % 2 != 0) {
$class = 'odd';
} else {
$class = 'even';
}
echo '<tr class="' . $class . '"><td align="center">' . icms_core_DataFilter::stripSlashesGPC($oldname[$mid]);
$newname[$mid] = trim(icms_core_DataFilter::stripslashesGPC($newname[$mid]));
if ($newname[$mid] != $oldname[$mid]) {
echo ' »» <span style="color:#ff0000;font-weight:bold;">' . $newname[$mid] . '</span>';
}
echo '</td><td align="center">';
if (isset($newstatus[$mid]) && $newstatus[$mid] == 1) {
if ($oldstatus[$mid] == 0) {
echo "<span style='color:#ff0000;font-weight:bold;'>" . _MD_AM_ACTIVATE . "</span>";
} else {
echo _MD_AM_NOCHANGE;
}
} else {
$newstatus[$mid] = 0;
if ($oldstatus[$mid] == 1) {
echo "<span style='color:#ff0000;font-weight:bold;'>" . _MD_AM_DEACTIVATE . "</span>";
} else {
示例2: redirect_header
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if (!icms::$security->check(TRUE, FALSE, 'BANNER_LOGIN')) {
redirect_header('banners.php', 3, implode('<br />', icms::$security->getErrors()));
}
$_SESSION['banner_login'] = icms_core_DataFilter::stripslashesGPC(trim($_POST['login']));
$_SESSION['banner_pass'] = icms_core_DataFilter::stripslashesGPC(trim($_POST['pass']));
}
bannerstats();
break;
case _BANNERS_CHANGE:
if (!icms::$security->check(TRUE, FALSE, 'BANNER_EDIT')) {
redirect_header('banners.php', 3, implode('<br />', icms::$security->getErrors()));
}
$bid = $cid = 0;
if (!empty($_POST['url'])) {
$url = icms_core_DataFilter::stripslashesGPC(trim($_POST['url']));
}
if (!empty($_POST['bid'])) {
$bid = (int) $_POST['bid'];
}
if (!empty($_POST['cid'])) {
$cid = (int) $_POST['cid'];
}
change_banner_url_by_client($cid, $bid, $url);
break;
case 'EmailStats':
$bid = $cid = 0;
if (!empty($_GET['bid'])) {
$bid = (int) $_GET['bid'];
}
if (!empty($_GET['cid'])) {