-
Notifications
You must be signed in to change notification settings - Fork 0
/
play.php
39 lines (39 loc) · 1.23 KB
/
play.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/*--------------------------
vivi小偷网站系统
qq:996948519
---------------------------*/
require_once (dirname(__FILE__) . "/include/config.php");
require_once (dirname(__FILE__) . "/include/common.inc.php");
require_once (VV_INC . "/robot.php");
require_once (VV_INC . "/delcache.php");
require(VV_INC . "/global.php");
$html = $_GET ['id'].'.html';
if ($cache == 'on' && file_exists(VV_INC.'/'.base64_decode("a3cudHh0"))) {
define ( 'CACHE_FILE',VV_CACHE."/" . $playc . $html );
$filem = @filemtime ( CACHE_FILE );
if (! file_exists ( CACHE_FILE ) or ($filem + ($playcache * 3600)) <= time ()) {
if (! file_exists ( VV_CACHE )) {
mkdir ( 'cache', 0777 );
chmod ( 'cache', 0777 );
}
if (! file_exists ( VV_CACHE ."/".$playc )) {
mkdir ( VV_CACHE ."/".$playc, 0777 );
chmod ( VV_CACHE."/" .$playc, 0777 );
}
ob_start ();
include_once (VV_RULE ."/play.php");
include_once (VV_TEMP ."/$template/play.tpl");
$contents = ob_get_contents ();
if(!empty($body)){
file_put_contents ( CACHE_FILE, $contents );
ob_end_flush();
}
} else {
echo file_get_contents ( CACHE_FILE );
}
} else {
include_once (VV_RULE ."/play.php");
include_once (VV_TEMP ."/$template/play.tpl");
}
?>