Beispiel #1
0
<?php

/*
	[SupeSite] (C) 2007-2009 Comsenz Inc.
	$Id: batch.javascript.php 10898 2008-12-31 02:58:50Z zhaofei $
*/
include_once './common.php';
$mincachetime = 600;
if (empty($_GET['param'])) {
    jsecho('JavaScript Error');
}
$param = $_GET['param'];
include_once './data/system/config.cache.php';
$param = js_passport_decrypt($param, $_SSCONFIG['sitekey']);
$paramkey = md5($param);
$timestamp = time();
$paramarr = array();
$params = explode('/', $param);
for ($i = 0; $i < count($params) - 1; $i = $i + 2) {
    $j = $i + 1;
    if (!isset($params[$j])) {
        jsecho('JavaScript Error');
    }
    $paramarr[$params[$i]] = $params[$j];
}
if (empty($paramarr['blocktype']) || empty($paramarr['tpl'])) {
    jsecho('JavaScript Error');
}
if (!empty($paramarr['cachetime']) && intval($paramarr['cachetime']) > $mincachetime) {
    $paramarr['cachetime'] = intval($paramarr['cachetime']);
} else {
<?php

/**
 *      [品牌空間] (C)2001-2010 Comsenz Inc.
 *      This is NOT a freeware, use is subject to license terms
 *
 *      $Id: batch.javascript.php 4359 2010-09-07 07:58:57Z fanshengshuai $
 */
include_once './common.php';
$mincachetime = 600;
if (empty($_GET['param'])) {
    jsecho('JavaScript Error');
}
$param = $_GET['param'];
include_once './data/system/config.cache.php';
$param = js_passport_decrypt($param, $_G['setting']['sitekey']);
$paramkey = md5($param);
$timestamp = time();
$paramarr = array();
$params = explode('/', $param);
for ($i = 0; $i < count($params) - 1; $i = $i + 2) {
    $j = $i + 1;
    if (!isset($params[$j])) {
        jsecho('JavaScript Error');
    }
    $paramarr[$params[$i]] = $params[$j];
}
if (empty($paramarr['blocktype']) || empty($paramarr['tpl'])) {
    jsecho('JavaScript Error');
}
if (!empty($paramarr['cachetime']) && intval($paramarr['cachetime']) > $mincachetime) {