Example #1
0
 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;
 }
Example #2
0
*
*  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'));
Example #3
0
/**
 * 删除多余全局变量,对GPCF加转义
 *
 * 多余的全局变量,会对站点安全构成威胁.需要保留的变量在$allowed中说明
 *
 */
function pwInitGlobals()
{
    S::filter();
}