-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.php
More file actions
832 lines (217 loc) · 10.1 KB
/
default.php
File metadata and controls
832 lines (217 loc) · 10.1 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
<?
$host=$_SERVER['HTTP_HOST'];
$startdir = '.';
$showthumbnails = false;
$showdirs = true;
$forcedownloads = false;
$hide = array(
'dlf',
'public_html',
'index.php',
'Thumbs',
'.htaccess',
'.htpasswd'
);
$displayindex = false;
$allowuploads = false;
$overwrite = false;
$indexfiles = array (
'index.html',
'index.htm',
'default.htm',
'default.html'
);
$filetypes = array (
'png' => 'jpg.gif',
'jpeg' => 'jpg.gif',
'bmp' => 'jpg.gif',
'jpg' => 'jpg.gif',
'gif' => 'gif.gif',
'zip' => 'archive.png',
'rar' => 'archive.png',
'exe' => 'exe.gif',
'setup' => 'setup.gif',
'txt' => 'text.png',
'htm' => 'html.gif',
'html' => 'html.gif',
'php' => 'php.gif',
'fla' => 'fla.gif',
'swf' => 'swf.gif',
'xls' => 'xls.gif',
'doc' => 'doc.gif',
'sig' => 'sig.gif',
'fh10' => 'fh10.gif',
'pdf' => 'pdf.gif',
'psd' => 'psd.gif',
'rm' => 'real.gif',
'mpg' => 'video.gif',
'mpeg' => 'video.gif',
'mov' => 'video2.gif',
'avi' => 'video.gif',
'eps' => 'eps.gif',
'gz' => 'archive.png',
'asc' => 'sig.gif',
);
error_reporting(0);
if(!function_exists('imagecreatetruecolor')) $showthumbnails = false;
$leadon = $startdir;
if($leadon=='.') $leadon = '';
if((substr($leadon, -1, 1)!='/') && $leadon!='') $leadon = $leadon . '/';
$startdir = $leadon;
if($_GET['dir']) {
//check this is okay.
if(substr($_GET['dir'], -1, 1)!='/') {
$_GET['dir'] = $_GET['dir'] . '/';
}
$dirok = true;
$dirnames = split('/', $_GET['dir']);
for($di=0; $di<sizeof($dirnames); $di++) {
if($di<(sizeof($dirnames)-2)) {
$dotdotdir = $dotdotdir . $dirnames[$di] . '/';
}
if($dirnames[$di] == '..') {
$dirok = false;
}
}
if(substr($_GET['dir'], 0, 1)=='/') {
$dirok = false;
}
if($dirok) {
$leadon = $leadon . $_GET['dir'];
}
}
$opendir = $leadon;
if(!$leadon) $opendir = '.';
if(!file_exists($opendir)) {
$opendir = '.';
$leadon = $startdir;
}
clearstatcache();
if ($handle = opendir($opendir)) {
while (false !== ($file = readdir($handle))) {
//first see if this file is required in the listing
if ($file == "." || $file == "..") continue;
$discard = false;
for($hi=0;$hi<sizeof($hide);$hi++) {
if(strpos($file, $hide[$hi])!==false) {
$discard = true;
}
}
if($discard) continue;
if (@filetype($leadon.$file) == "dir") {
if(!$showdirs) continue;
$n++;
if($_GET['sort']=="date") {
$key = @filemtime($leadon.$file) . ".$n";
}
else {
$key = $n;
}
$dirs[$key] = $file . "/";
}
else {
$n++;
if($_GET['sort']=="date") {
$key = @filemtime($leadon.$file) . ".$n";
}
elseif($_GET['sort']=="size") {
$key = @filesize($leadon.$file) . ".$n";
}
else {
$key = $n;
}
$files[$key] = $file;
if($displayindex) {
if(in_array(strtolower($file), $indexfiles)) {
header("Location: $file");
die();
}
}
}
}
closedir($handle);
}
//sort our files
if($_GET['sort']=="date") {
@ksort($dirs, SORT_NUMERIC);
@ksort($files, SORT_NUMERIC);
}
elseif($_GET['sort']=="size") {
@natcasesort($dirs);
@ksort($files, SORT_NUMERIC);
}
else {
@natcasesort($dirs);
@natcasesort($files);
}
//order correctly
if($_GET['order']=="desc" && $_GET['sort']!="size") {$dirs = @array_reverse($dirs);}
if($_GET['order']=="desc") {$files = @array_reverse($files);}
$dirs = @array_values($dirs); $files = @array_values($files);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://developers.facebook.com/schema/">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><? print $host; ?> free hosting server</title>
<meta name="description" content="<? print $host; ?> website created at Bugs 3 free hosting and free servers. Create your own website like <? print $host; ?> absolutely for free at Bugs3.com" />
<meta name="keywords" content="<? print $host; ?>, bugs3, bugs free, free hosting, free server, free servers, bugs3.com, free website, free web host." />
<meta itemprop="name" content="Free Servers" />
<meta itemprop="description" content="Free servers with Ftp, Php, MySQL and with no ads! Get free web hosting and SQL servers for free. Servers free for website hosting with PHP and Cpanel." />
<meta property="og:url" content="http://www.serversfree.com/"/>
<meta property="og:site_name" content="ServersFree.com"/>
<meta property="og:title" content="Free Servers"/>
<meta property="og:description" content="Free servers with Ftp, Php, MySQL and with no ads! Get free web hosting and SQL servers for free. Servers free for website hosting with PHP and Cpanel."/>
<meta property="og:type" content="product"/>
<meta property="og:image" content=""/>
<style type="text/css">
html, body { height:100% !important; min-height:100%; }
body, form { padding:0; margin:0; }
body { background-color: #F0EDEF; color: #005e86; font-family:georgia,Arial; font-size: 14px;}
div, input, textarea, select { position:relative; }
a { color:#ffffff; outline:none; text-decoration:none;}
a:hover { text-decoration:underline; }
#start { width:100%; min-width:1003px; min-height:600px; height:100%; }
#bef-main { width:100%; min-height:100%; overflow:hidden; }
#main { width:100%; height:509px; position:absolute; margin:0 auto; top:50%; }
.borders { padding:10px; background: url("http://cpanel.serversfree.com/themes/login/images/borders.png") no-repeat; width:956px; height:507px; top:-50%; margin:0 auto; }
.picture { width:956px; height:507px; overflow:auto; background:#0495ff url("http://www.serversfree.com/cdn-media/free-servers-bg.jpg") no-repeat scroll 0 0;}
#free-hosting { margin: 130px 0 0 0; }
#free-hosting h1, #free-hosting h2 { text-align: center; color:#005e86; margin-top:40px;margin-left:20px;margin-right:20px;}
#free-hosting h1 span.ok{ color: #ffffff; }
#free-hosting ul { margin: 30px 0 0 50px; line-height: 22px;}
#foot { width:955px; text-align:right; margin:0 auto; padding-top:13px;color: #9d9d9d;}
#foot a { color:#9d9d9d; }
</style>
</head>
<body>
<div id="fb-root"></div>
<div id="start">
<div id="bef-main">
<div id="main">
<div class="borders">
<div class="picture" title="serversfree.com">
<div id="free-hosting">
<h1><span class="ok">Congratulations!</span> Your website <strong><? print $host; ?></strong> is running successfully on ServersFree.com free hosting servers!</h1>
<h2>Here are few great tips to get started with your new account:</h2>
<ul>
<li>Like us to get latest news, updates or free limited offers:
<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2FServersFree&send=false&layout=button_count&width=250&show_faces=false&action=like&colorscheme=light&font&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:200px; height:21px;" allowTransparency="true"></iframe>
</li>
<li>Upload your website by using FTP (for example with freeware <a rel="nofollow" href="http://filezilla-project.org/download.php" target="_blank">FileZilla</a>) or web based File Manager.</li>
<li>Use "<a href="http://cpanel.serversfree.com/website/auto-installer">Auto installer</a>" to install most popular blog, forum or e-commerce software such as Joomla, Wordpress, Drupal, osCommerce or phpBB.</li>
<li>Use "<a href="http://cpanel.serversfree.com/website/builder">Easy Website Builder</a>" to build your website without any HTML or coding knowledge.</li>
<li>Already have an existing site or migrating from other provider? Create "zip" archive file and just <a href="http://cpanel.serversfree.com/website/import">import it</a>.</li>
<li>If you have any questions please get <a href="http://cpanel.serversfree.com/helpdesk">Free Support</a>.</li>
<li><strong>Note:</strong> Please delete the file "<strong>default.php</strong>" from the <strong>public_html</strong> folder before installing your new website!</li>
</ul>
</div>
</div>
<div id="foot">© 2013 All rights reserved <a href="http://www.serversfree.com/">Free Servers</a> & <a href="http://www.bugs3.com/">Free hosting</a></div>
</div>
</div>
</div>
</div>
</body>
</html>
<!--DEFAULT_WELCOME_PAGE-->