本文整理汇总了PHP中S::filter方法的典型用法代码示例。如果您正苦于以下问题:PHP S::filter方法的具体用法?PHP S::filter怎么用?PHP S::filter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类S
的用法示例。
在下文中一共展示了S::filter方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
function display()
{
header("Content-Type: application/x-shockwave-flash");
$this->beginMovie();
$num = strlen($this->codes);
if ($num > 0) {
$this->imageWidth = floor($this->frameWidth / $num);
$this->imageHeight = $this->frameHeight;
$X1 = $Y1 = 0;
$X2 = $this->imageWidth * 20;
$Y2 = $this->imageHeight * 20;
$imgpath = $GLOBALS['imgdir'] . '/ck/flash/';
for ($i = 0; $i < strlen($this->codes); $i++) {
$file = $imgpath . strtolower($this->codes[$i]) . '.jpg';
$image = $this->defineBitmapJPEG($file);
$CharacterInfo = $this->defineRectangleBitmap($X1, $Y1, $X2, $Y2, $this->imageWidth, false, false, 0, 0, 0, 0, 'c', $image, true, null);
$characterdepth = $this->easyPlaceObject($CharacterInfo['charid']);
$X1 += $this->imageWidth * 20;
$X2 += $this->imageWidth * 20;
}
$this->endFrame();
S::filter();
}
$this->endMovie();
print $this->getMovie();
exit;
}
示例2: exit
*
* Copyright (c) 2003-09 phpwind.net. All rights reserved.
* Support : http://www.phpwind.net
* This software is the proprietary information of phpwind.com.
*
*/
!defined('R_P') && exit('Forbidden');
define('P_W', 'admincp');
define('UC_CLIENT_ROOT', R_P . '/uc_client/');
isset($_GET['ajax']) && $_GET['ajax'] == 1 && define('AJAX', 1);
function_exists('date_default_timezone_set') && date_default_timezone_set('Etc/GMT+0');
require_once R_P . 'require/common.php';
require_once R_P . 'require/functions.php';
//S::filter();
//modified@2010/7/7 S&P
S::filter();
//* include_once pwCache::getPath(D_P.'data/bbscache/config.php');
pwCache::getData(D_P . 'data/bbscache/config.php');
define('AREA_PATH', R_P . $db_htmdir . '/channel/');
define('PORTAL_PATH', R_P . $db_htmdir . '/portal/');
$db_userurl = $db_htmifopen && $db_userurlopen ? 'u/' : 'u.php?uid=';
//url
define('USER_URL', $db_userurl);
$timestamp = time();
$db_cvtime != 0 && ($timestamp += $db_cvtime * 60);
$onlineip = pwGetIp();
$db_cc && pwDefendCc($db_cc);
$ceversion = defined('CE') ? 1 : 0;
#phpwind version
list($wind_version, $wind_repair, $wind_from) = explode(',', WIND_VERSION);
S::gp(array('adminjob', 'admintype', 'adminitem', 'type', 'hackset', 'a_type', 'action', 'verify', 'adskin', 'job', 'ajax', 'admin_keyword'));
示例3: pwInitGlobals
/**
* 删除多余全局变量,对GPCF加转义
*
* 多余的全局变量,会对站点安全构成威胁.需要保留的变量在$allowed中说明
*
*/
function pwInitGlobals()
{
S::filter();
}