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
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
|
<?php ///////////////////////////////////////////// // Shadowed Portal // ///////////////////////////////////////////// // Copyright (C) 2003 by Shadowed Works. // // Please read our terms and conditions // // at http://www.shad0wed.com/. // ///////////////////////////////////////////// // !Donnot Edit This File! // ///////////////////////////////////////////// require("code.php"); if($functions_declared != $xcode) {
function in_illegals($sf1) { require("globals.php"); $illegals_arr = explode(",",$illegals); foreach($illegals_arr as $single_illegal) { if(str_replace($single_illegal,"",$sf1) != $sf1) { return true; } } return false; } function dir_illegals($sf1) { require("globals.php"); $illegals_arr = explode(",",$dir_illegals); foreach($illegals_arr as $single_illegal) { if(str_replace($single_illegal,"",$sf1) != $sf1) { return true; } } return false; } function instr($sf1,$sf2) { if(str_replace($sf1,"",$sf2) != $sf2) { return true; } else { return false; } } function strip_illegals($sf1) { require("globals.php"); $illegals_arr = explode(",",$illegals); foreach($illegals_arr as $single_illegal) { $sf1 = str_replace($single_illegal,"",$sf1); } $sr = $sf1; return $sr; } function strip_dir_illegals($sf1) { require("globals.php"); $illegals_arr = explode(",",$dir_illegals); foreach($illegals_arr as $single_illegal) { $sf1 = str_replace($single_illegal,"",$sf1); } $sr = $sf1; return $sr; } function get_avatar($sf1) { if(file_exists("users/".strtolower($sf1).".php")) { require("users/".strtolower($sf1).".php"); $prop = @getimagesize($avatar); if($prop[0] != 0) { $width = $prop[0]; $height = $prop[1]; if($width >= 125) { $width = 125; } if($height >= 125) { $height = 125; } $sr = "<img src=\"".$avatar."\" width=\"".$width."\" height=\"".$height."\" border=\"0\">"; return $sr; } } else { return ""; } } function html_alter($sf1,$sf2) { $variables = "default,default2"; $dir = stripslashes("modules"); $handle=@opendir($dir); $i = 0; $dir_arr = array(); while ($file = readdir($handle)) { if ($file != "." && $file != ".." && $file != "index.php") { if(is_dir($dir."/".$file)) { if(file_exists($dir."/".$file."/variables.php")) { $vars = ""; require($dir."/".$file."/variables.php"); if($vars != "") { $variables = $variables . "," . $vars; } } } $i++; } } closedir($handle); $variables_arr = explode(",",$variables); foreach($variables_arr as $single_variable) { $sf1 = str_replace("<#".$single_variable."#>","<!--#var_$single_variable#-->\"; if(\$var_code != \$xcode) { \$".$sf2." = \$".$sf2." . \$var['$single_variable']; } \$".$sf2." = \$".$sf2." . \"",$sf1); } $sf1 = str_replace("<#","<!--#null_",$sf1); $sf1 = str_replace("#>","#-->",$sf1); $sf1 = str_replace("<online>","\"; if(\$online == 1) { \$".$sf2." = \$".$sf2." . \"<!--online-->",$sf1); $sf1 = str_replace("</online>","<!--/online-->\"; } \$".$sf2." = \$".$sf2." . \"",$sf1); $sf1 = str_replace("</@>","<!--/@-->\"; } \$".$sf2." = \$".$sf2." . \"",$sf1); $sf1 = str_replace("<@","\"; \$n_rank = \"",$sf1); $sf1 = str_replace("@!>=","\"; \$n_compare = \">=\"; if(\$u_rank >=",$sf1); $sf1 = str_replace("@!<=","\"; \$n_compare = \"<=\"; if(\$u_rank <=",$sf1); $sf1 = str_replace("@!!=","\"; \$n_compare = \"!=\"; if(\$u_rank !=",$sf1); $sf1 = str_replace("@!=","\"; \$n_compare = \"=\"; if(\$u_rank =",$sf1); $sf1 = str_replace("@!>","\"; \$n_compare = \">\"; if(\$u_rank >",$sf1); $sf1 = str_replace("@!<","\"; \$n_compare = \"<\"; if(\$u_rank <",$sf1); $sf1 = str_replace("@>"," \$n_rank) { \$".$sf2." = \$".$sf2." . \"<!--@\$n_rank@!\$n_compare@-->",$sf1); $sf1 = str_replace("<offline>","\"; if((\$online == 0) || (\$hf_code == \$xcode)) { \$".$sf2." = \$".$sf2." . \"<!--offline-->",$sf1); $sf1 = str_replace("</offline>","<!--/offline-->\"; } \$".$sf2." = \$".$sf2." . \"",$sf1); $sf1 = str_replace("</online>","<!--/online-->\"; } \$".$sf2." = \$".$sf2." . \"",$sf1); $sf1 = str_replace("<users_online>","\".\$users_online.\"",$sf1); $sf1 = str_replace("<count_online>","\".\$count_online.\"",$sf1); $sf1 = str_replace("<user>","\".\$usr.\"",$sf1); $sf1 = str_replace("<rank>","\".\$u_rank.\"",$sf1); $sf1 = str_replace("<*design:","\"; \$design_title = \"",$sf1); $sf1 = str_replace(":header_divisor*>","\"; if(\$var_code != \$xcode) { \$".$sf2." = \$".$sf2." . add_design(\$design_title,\"header_divisor\",\$use_template); } else { \$".$sf2." = \$".$sf2." . \"<@star;design:\".\$design_title.\":header_divisor@star;>\"; } \$".$sf2." = \$".$sf2." . \"",$sf1); $sf1 = str_replace(":header*>","\"; if(\$var_code != \$xcode) { \$".$sf2." = \$".$sf2." . add_design(\$design_title,\"header\",\$use_template); } else { \$".$sf2." = \$".$sf2." . \"<@star;design:\".\$design_title.\":header@star;>\"; } \$".$sf2." = \$".$sf2." . \"",$sf1); $sf1 = str_replace(":footer_divisor*>","\"; if(\$var_code != \$xcode) { \$".$sf2." = \$".$sf2." . add_design(\$design_title,\"footer_divisor\",\$use_template); } else { \$".$sf2." = \$".$sf2." . \"<@star;design:\".\$design_title.\":footer_divisor@star;>\"; } \$".$sf2." = \$".$sf2." . \"",$sf1); $sf1 = str_replace(":footer*>","\"; if(\$var_code != \$xcode) { \$".$sf2." = \$".$sf2." . add_design(\$design_title,\"footer\",\$use_template); } else { \$".$sf2." = \$".$sf2." . \"<@star;design:\".\$design_title.\":footer@star;>\"; } \$".$sf2." = \$".$sf2." . \"",$sf1); $sf1 = str_replace("<*box:","\"; \$box_title = \"",$sf1); $sf1 = str_replace(":top*>","\"; if(\$var_code != \$xcode) { \$".$sf2." = \$".$sf2." . add_boxes(\$box_title,\"top\",\$use_template); } else { \$".$sf2." = \$".$sf2." . \"<@star;box:\".\$box_title.\":top@star;>\"; } \$".$sf2." = \$".$sf2." . \"",$sf1); $sf1 = str_replace(":bottom*>","\"; if(\$var_code != \$xcode) { \$".$sf2." = \$".$sf2." . add_boxes(\$box_title,\"bottom\",\$use_template); } else { \$".$sf2." = \$".$sf2." . \"<@star;box:\".\$box_title.\":bottom@star;>\"; } \$".$sf2." = \$".$sf2." . \"",$sf1); $sf1 = str_replace("<*template:","\"; \$use_template = \"",$sf1); $sf1 = str_replace("*>","\"; if(\$var_code == \$xcode) { \$".$sf2." = \$".$sf2." . \"<@star;template:\".\$use_template.\"@star;>\"; } \$".$sf2." = \$".$sf2." . \"",$sf1); $sr = $sf1; return $sr; } function html_reset($sf1) { $sf1 = str_replace("<!--#var_","<#",$sf1); $sf1 = str_replace("#-->","#>",$sf1); $sf1 = str_replace("<!--#null_","<#",$sf1); $sf1 = str_replace("#-->","#>",$sf1); $sf1 = str_replace("<!--/@-->","</@>",$sf1); $sf1 = str_replace("<!--@","<@",$sf1); $sf1 = str_replace("@-->","@>",$sf1); $sf1 = str_replace("<!--online-->","<online>",$sf1); $sf1 = str_replace("<!--/online-->","</online>",$sf1); $sf1 = str_replace("<!--offline-->","<offline>",$sf1); $sf1 = str_replace("<!--/offline-->","</offline>",$sf1); $sf1 = str_replace("@star;","*",$sf1); $sr = $sf1; return $sr; } function add_emoticons($sfrom) { $sfrom = str_replace(";(","<img src='images/emoticons/angry.gif' border='0'>",$sfrom); $sfrom = str_replace(":\\'(","<img src='images/emoticons/crying.gif' border='0'>",$sfrom); $sfrom = str_replace(":D","<img src='images/emoticons/laughing.gif' border='0'>",$sfrom); $sfrom = str_replace(":(","<img src='images/emoticons/sad.gif' border='0'>",$sfrom); $sfrom = str_replace(":)","<img src='images/emoticons/smile.gif' border='0'>",$sfrom); $sfrom = str_replace(":P","<img src='images/emoticons/tongue.gif' border='0'>",$sfrom); $sfrom = str_replace(";/","<img src='images/emoticons/wassat.gif' border='0'>",$sfrom); $sfrom = str_replace(";)","<img src='images/emoticons/wink.gif' border='0'>",$sfrom); $sfrom = str_replace(":gun:","<img src='images/emoticons/gun.gif' border='0'>",$sfrom); $sreturn = $sfrom; return $sreturn; } function add_vxcode($sfrom,$tip) { $sfrom = str_replace("[i]","<i>",$sfrom); $sfrom = str_replace("[/i]","</i>",$sfrom); $sfrom = str_replace("[b]","<b>",$sfrom); $sfrom = str_replace("[/b]","</b>",$sfrom); $sfrom = str_replace("[u]","<u>",$sfrom); $sfrom = str_replace("[/u]","</u>",$sfrom); $sfrom = str_replace("[link]","<a href='",$sfrom); if($tip == 0) { $sfrom = str_replace("[x]","' target='_blank'>",$sfrom); } if($tip == 1) { $sfrom = str_replace("[x]","'>",$sfrom); } $sfrom = str_replace("[/link]","</a>",$sfrom); if($v != "Shout_Box") { $sfrom = str_replace("[br]","<br />\n",$sfrom); $sfrom = str_replace("\n","<br />\n",$sfrom); $sfrom = str_replace("[img]","<img src='",$sfrom); $sfrom = str_replace("[/img]","' border='0'>",$sfrom); } $sreturn = $sfrom; return $sreturn; } function rem_emoticons($sfrom) { $sfrom = str_replace("<img src='images/emoticons/angry.gif' border='0'>",";(",$sfrom); $sfrom = str_replace("<img src='images/emoticons/crying.gif' border='0'>",":\\'(",$sfrom); $sfrom = str_replace("<img src='images/emoticons/laughing.gif' border='0'>",":D",$sfrom); $sfrom = str_replace("<img src='images/emoticons/sad.gif' border='0'>",":(",$sfrom); $sfrom = str_replace("<img src='images/emoticons/smile.gif' border='0'>",":)",$sfrom); $sfrom = str_replace("<img src='images/emoticons/tongue.gif' border='0'>",":P",$sfrom); $sfrom = str_replace("<img src='images/emoticons/wassat.gif' border='0'>",";/",$sfrom); $sfrom = str_replace("<img src='images/emoticons/wink.gif' border='0'>",";)",$sfrom); $sfrom = str_replace("<img src='images/emoticons/gun.gif' border='0'>",":gun:",$sfrom); $sreturn = $sfrom; return $sreturn; } function rem_vxcode($sfrom) { $sfrom = str_replace("<i>","[i]",$sfrom); $sfrom = str_replace("</i>","[/i]",$sfrom); $sfrom = str_replace("<b>","[b]",$sfrom); $sfrom = str_replace("</b>","[/b]",$sfrom); $sfrom = str_replace("<u>","[u]",$sfrom); $sfrom = str_replace("</u>","[/u]",$sfrom); $sfrom = str_replace("<a href='","[link]",$sfrom); $sfrom = str_replace("' target='_blank'>","[x]",$sfrom); $sfrom = str_replace("</a>","[/link]",$sfrom); $sfrom = str_replace("<br />\n","\n",$sfrom); $sfrom = str_replace("<br />","\n",$sfrom); $sfrom = str_replace("<img src='","[img]",$sfrom); $sfrom = str_replace("' border='0'>","[/img]",$sfrom); $sfrom = str_replace("'>","[x]",$sfrom); $sreturn = $sfrom; return $sreturn; } function addbr($sfrom) { $sreturn = str_replace("\n","<br />\n",$sfrom); return $sreturn; } function add_url($sf1) { require("config.php"); $sr = str_replace("%...",$img_url,str_replace("#...",$img_url,str_replace("&...",$url,$sf1))); return $sr; } function dmsg($sf1) { echo $sf1."<br /><br />\n"; } function derr($sf1) { echo "<b>Error:</b> ".$sf1."<br /><br />\n"; } function restore_uc($sf1) { $rs = str_replace("[BLSH]","\\",str_replace("[SLSH]","/",str_replace("[NBSP]"," ",str_replace("[MINU]","-",str_replace("[PLUS]","+",str_replace("[NSPC]","\n",str_replace("[QUOT]","\"",str_replace("[CDCT]",";",str_replace("[CNUM]","#",str_replace("[CQMK]","?",str_replace("[CAND]","&",$sf1))))))))))); return $rs; } function replace_uc($sf1) { $rs = str_replace("\\","[BLSH]",str_replace("/","[SLSH]",str_replace(" ","[NBSP]",str_replace("-","[MINU]",str_replace("+","[PLUS]",str_replace("\n","[NSPC]",str_replace("\"","[QUOT]",str_replace(";","[CDCT]",str_replace("#","[CNUM]",str_replace("?","[CQMK]",str_replace("&","[CAND]",$sf1))))))))))); return $rs; } function blankc($sf1,$sf2) { if($sf1 == "") { derr("<i>".$sf2."</i> is blank."); return true; } else { return false; } } function make_code($sf1) { $chars = "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z"; $chars_arr = explode(",",$chars); $rand = ""; $count = 0; for($count = 0; $count <= $sf1; $count++) { $rand1 = rand(1,8); if($rand1 >= 6) { $rand2 = rand(0,25); $rand = $rand . $chars_arr[$rand2]; } else { $rand = $rand . rand(1,99); } } $sr = $rand; return $sr; } function ghost_file($sf1) { if(($sf1 == ".") || ($sf1 == "..")) { return true; } else { return false; } } function wf($sf1,$sf2,$sf3) { $fp = fopen($sf1,$sf2); fwrite($fp,$sf3); fclose($fp); } function rf($sf1) { $rp = fopen($sf1,"r"); $sr = fread($rp,filesize($sf1)); fclose($rp); return $sr; } function quot_alter($sf1) { $sr = str_replace("\"","\\\"",stripslashes($sf1)); return $sr; } function alter($sf1) { $sr = str_replace("&","&",strip_illegals(htmlspecialchars(quot_alter(trim($sf1))))); return $sr; } function alter2($sf1) { $sr = quot_alter(trim($sf1)); return $sr; } function filter($sf1,$sf2) { $sr = str_replace($sf1,"",$sf2); return $sr; } function pencode($sf1) { //$sr = md5($sf1); //return $sr; $sf1 = str_replace("|", "0.70554750.5334240.57951860.28956250.3019480.77474011.401764E-020.7607236|",$sf1); $sf1 = str_replace("A", "0.10443230.18540250.07768470.43275950.95927090.54202930.49437670.9729667|",$sf1); $sf1 = str_replace("B", "0.21779980.37899120.39584430.28150340.50337120.13873230.51725580.9653645|",$sf1); $sf1 = str_replace("C", "0.5575010.90920410.65725640.44111470.69299456.449115E-020.75609260.7005143|",$sf1); $sf1 = str_replace("D", "0.4970710.15543570.22373750.3261440.78448865.026281E-020.51801590.7570295|",$sf1); $sf1 = str_replace("E", "0.80066980.32520540.9727290.80426720.67482610.90512930.87577970.4166484|",$sf1); $sf1 = str_replace("F", "0.12308280.95415790.79729730.6962850.40160460.01629770.16776280.1642342|",$sf1); $sf1 = str_replace("G", "0.509720.40606270.10613380.27612330.64304680.84910.49796920.1877751|",$sf1); $sf1 = str_replace("H", "0.89661660.37281430.32355480.77083280.21800040.44699320.23602780.8783846|",$sf1); $sf1 = str_replace("I", "0.61043280.37443220.38950190.86058930.58593790.93155940.51719240.3303008|",$sf1); $sf1 = str_replace("J", "0.86845370.2590610.25954130.17869350.34695712.50566E-030.74234210.8408871|",$sf1); $sf1 = str_replace("K", "0.27858940.70297010.40486460.81157140.74178070.43766397.798058E-020.4106317|",$sf1); $sf1 = str_replace("L", "0.33937520.71055420.31228810.79877350.15175620.59299120.95623690.2431479|",$sf1); $sf1 = str_replace("M", "0.93997110.11433280.98425320.63297580.59885640.90256970.57486490.2451739|",$sf1); $sf1 = str_replace("N", "0.86016247.495034E-020.43882640.7599790.24567880.37860620.39724360.5265732|",$sf1); $sf1 = str_replace("O", "0.27035920.58117640.2096997.870889E-020.89544620.11143290.65237670.9003339|",$sf1); $sf1 = str_replace("P", "0.23159660.94990550.84618740.44121620.49200620.76950680.83489330.3825693|",$sf1); $sf1 = str_replace("Q", "0.19553490.32615720.41323310.15267680.61983159.940994E-020.20504720.6925178|",$sf1); $sf1 = str_replace("R", "0.50445910.1830760.99140240.47139144.019678E-030.42584930.28871730.7525425|",$sf1); $sf1 = str_replace("S", "0.89127940.82193150.17688690.10878591.029342E-020.1516570.37740760.1881318|",$sf1); $sf1 = str_replace("T", "0.9795310.87211810.58150270.72941090.14500040.257792.824694E-020.827899|",$sf1); $sf1 = str_replace("U", "0.7833740.79115550.33269150.45094230.55511330.80333030.56398920.2035823|",$sf1); $sf1 = str_replace("V", "0.20759360.3646880.57351950.34418080.52822970.4254850.57301345.004501E-02|",$sf1); $sf1 = str_replace("W", "0.54760.20648540.96267830.93305230.99257220.83958610.40932330.8052754|",$sf1); $sf1 = str_replace("X", "0.98942820.2584420.17448410.69460751.698869E-020.33909070.69254790.1103868|",$sf1); $sf1 = str_replace("Y", "0.10973850.29057750.39887840.55902220.31095170.29558070.8079410.3096175|",$sf1); $sf1 = str_replace("Z", "0.3758160.40103640.84142760.40959720.72455880.65876330.40638170.9503307|",$sf1); $sf1 = str_replace("a", "0.60304370.51769320.59643780.32962540.90929840.77007190.57587390.4316001|",$sf1); $sf1 = str_replace("b", "0.73252460.16294215.961686E-020.24331070.75857440.95124760.34533510.6842518|",$sf1); $sf1 = str_replace("c", "0.7914643.544009E-020.79417350.48348830.20649860.60210410.90887890.9452806|",$sf1); $sf1 = str_replace("d", "0.65339730.01458180.66192420.9647099.418428E-030.95359847.363421E-020.2932997|",$sf1); $sf1 = str_replace("e", "0.58248440.80788670.04031025.464864E-020.56430670.31481250.4123550.5100474|",$sf1); $sf1 = str_replace("f", "0.73351070.45099940.3223987.410789E-020.4087610.57295360.76342020.5803871|",$sf1); $sf1 = str_replace("g", "0.65188620.80768930.4168790.79701260.72100390.69335350.73083360.192307|",$sf1); $sf1 = str_replace("h", "0.77364616.985104E-020.24806960.95041350.81988330.21946940.18422420.2369204|",$sf1); $sf1 = str_replace("i", "0.92545050.25750410.25591120.71448640.66487160.77288330.75884590.3084655|",$sf1); $sf1 = str_replace("j", "0.82458470.7187930.89597020.2225320.35606660.55330220.35557750.2043056|",$sf1); $sf1 = str_replace("k", "0.57895870.62998740.1394386.097627E-020.6341910.83855810.64092310.4249291|",$sf1); $sf1 = str_replace("l", "0.18710770.49548160.9731310.76936980.38059230.48460810.54701140.6739492|",$sf1); $sf1 = str_replace("m", "3.819197E-020.64779530.89949070.34038850.11724320.42553410.77159650.3581042|",$sf1); $sf1 = str_replace("n", "0.41199650.7475730.43658330.71983310.50674150.17354330.27805728.725739E-02|",$sf1); $sf1 = str_replace("o", "0.97893160.28358420.61810050.30662940.85230960.31896770.79539730.174397|",$sf1); $sf1 = str_replace("p", "0.30003237.272351E-020.49335840.45282820.59779543.026426E-020.31824590.1356363|",$sf1); $sf1 = str_replace("q", "0.32695880.76001040.62729870.96360520.82767150.5540150.60685690.1902137|",$sf1); $sf1 = str_replace("r", "0.90199630.31858930.60048750.59726120.76703540.71492710.68710910.7604923|",$sf1); $sf1 = str_replace("s", "0.25805490.54972990.50911650.5652220.281610.41583240.35050640.9719605|",$sf1); $sf1 = str_replace("t", "0.51866980.58282670.46500193.203845E-020.37774270.1376880.65417770.1532316|",$sf1); $sf1 = str_replace("u", "0.19800110.37539929.558517E-020.61538620.70240630.4395760.4208770.3360438|",$sf1); $sf1 = str_replace("v", "0.7008340.2130924.393274E-020.88606624.319853E-020.45870340.73898320.7552605|",$sf1); $sf1 = str_replace("w", "0.82257860.20967450.4687360.86800410.82834190.41040220.46250020.3488698|",$sf1); $sf1 = str_replace("x", "0.24927010.80704130.54431130.53825070.62668410.08812940.71105680.2579851|",$sf1); $sf1 = str_replace("y", "5.756873E-020.27521190.96060020.32698180.64769790.36346710.3699070.3268447|",$sf1); $sf1 = str_replace("z", "0.21475950.21233090.4231690.61749820.24148080.68612230.58992960.6028118|",$sf1); $sr = $sf1; return $sr; } function pdecode($sf1) { //$sr = md5($sf1); //return $sr; $sf1 = str_replace("0.10443230.18540250.07768470.43275950.95927090.54202930.49437670.9729667|", "A",$sf1); $sf1 = str_replace("0.21779980.37899120.39584430.28150340.50337120.13873230.51725580.9653645|", "B",$sf1); $sf1 = str_replace("0.5575010.90920410.65725640.44111470.69299456.449115E-020.75609260.7005143|", "C",$sf1); $sf1 = str_replace("0.4970710.15543570.22373750.3261440.78448865.026281E-020.51801590.7570295|", "D",$sf1); $sf1 = str_replace("0.80066980.32520540.9727290.80426720.67482610.90512930.87577970.4166484|", "E",$sf1); $sf1 = str_replace("0.12308280.95415790.79729730.6962850.40160460.01629770.16776280.1642342|", "F",$sf1); $sf1 = str_replace("0.509720.40606270.10613380.27612330.64304680.84910.49796920.1877751|", "G",$sf1); $sf1 = str_replace("0.89661660.37281430.32355480.77083280.21800040.44699320.23602780.8783846|", "H",$sf1); $sf1 = str_replace("0.61043280.37443220.38950190.86058930.58593790.93155940.51719240.3303008|", "I",$sf1); $sf1 = str_replace("0.86845370.2590610.25954130.17869350.34695712.50566E-030.74234210.8408871|", "J",$sf1); $sf1 = str_replace("0.27858940.70297010.40486460.81157140.74178070.43766397.798058E-020.4106317|", "K",$sf1); $sf1 = str_replace("0.33937520.71055420.31228810.79877350.15175620.59299120.95623690.2431479|", "L",$sf1); $sf1 = str_replace("0.93997110.11433280.98425320.63297580.59885640.90256970.57486490.2451739|", "M",$sf1); $sf1 = str_replace("0.86016247.495034E-020.43882640.7599790.24567880.37860620.39724360.5265732|", "N",$sf1); $sf1 = str_replace("0.27035920.58117640.2096997.870889E-020.89544620.11143290.65237670.9003339|", "O",$sf1); $sf1 = str_replace("0.23159660.94990550.84618740.44121620.49200620.76950680.83489330.3825693|", "P",$sf1); $sf1 = str_replace("0.19553490.32615720.41323310.15267680.61983159.940994E-020.20504720.6925178|", "Q",$sf1); $sf1 = str_replace("0.50445910.1830760.99140240.47139144.019678E-030.42584930.28871730.7525425|", "R",$sf1); $sf1 = str_replace("0.89127940.82193150.17688690.10878591.029342E-020.1516570.37740760.1881318|", "S",$sf1); $sf1 = str_replace("0.9795310.87211810.58150270.72941090.14500040.257792.824694E-020.827899|", "T",$sf1); $sf1 = str_replace("0.7833740.79115550.33269150.45094230.55511330.80333030.56398920.2035823|", "U",$sf1); $sf1 = str_replace("0.20759360.3646880.57351950.34418080.52822970.4254850.57301345.004501E-02|", "V",$sf1); $sf1 = str_replace("0.54760.20648540.96267830.93305230.99257220.83958610.40932330.8052754|", "W",$sf1); $sf1 = str_replace("0.98942820.2584420.17448410.69460751.698869E-020.33909070.69254790.1103868|", "X",$sf1); $sf1 = str_replace("0.10973850.29057750.39887840.55902220.31095170.29558070.8079410.3096175|", "Y",$sf1); $sf1 = str_replace("0.3758160.40103640.84142760.40959720.72455880.65876330.40638170.9503307|", "Z",$sf1); $sf1 = str_replace("0.60304370.51769320.59643780.32962540.90929840.77007190.57587390.4316001|", "a",$sf1); $sf1 = str_replace("0.73252460.16294215.961686E-020.24331070.75857440.95124760.34533510.6842518|", "b",$sf1); $sf1 = str_replace("0.7914643.544009E-020.79417350.48348830.20649860.60210410.90887890.9452806|", "c",$sf1); $sf1 = str_replace("0.65339730.01458180.66192420.9647099.418428E-030.95359847.363421E-020.2932997|", "d",$sf1); $sf1 = str_replace("0.58248440.80788670.04031025.464864E-020.56430670.31481250.4123550.5100474|", "e",$sf1); $sf1 = str_replace("0.73351070.45099940.3223987.410789E-020.4087610.57295360.76342020.5803871|", "f",$sf1); $sf1 = str_replace("0.65188620.80768930.4168790.79701260.72100390.69335350.73083360.192307|", "g",$sf1); $sf1 = str_replace("0.77364616.985104E-020.24806960.95041350.81988330.21946940.18422420.2369204|", "h",$sf1); $sf1 = str_replace("0.92545050.25750410.25591120.71448640.66487160.77288330.75884590.3084655|", "i",$sf1); $sf1 = str_replace("0.82458470.7187930.89597020.2225320.35606660.55330220.35557750.2043056|", "j",$sf1); $sf1 = str_replace("0.57895870.62998740.1394386.097627E-020.6341910.83855810.64092310.4249291|", "k",$sf1); $sf1 = str_replace("0.18710770.49548160.9731310.76936980.38059230.48460810.54701140.6739492|", "l",$sf1); $sf1 = str_replace("3.819197E-020.64779530.89949070.34038850.11724320.42553410.77159650.3581042|", "m",$sf1); $sf1 = str_replace("0.41199650.7475730.43658330.71983310.50674150.17354330.27805728.725739E-02|", "n",$sf1); $sf1 = str_replace("0.97893160.28358420.61810050.30662940.85230960.31896770.79539730.174397|", "o",$sf1); $sf1 = str_replace("0.30003237.272351E-020.49335840.45282820.59779543.026426E-020.31824590.1356363|", "p",$sf1); $sf1 = str_replace("0.32695880.76001040.62729870.96360520.82767150.5540150.60685690.1902137|", "q",$sf1); $sf1 = str_replace("0.90199630.31858930.60048750.59726120.76703540.71492710.68710910.7604923|", "r",$sf1); $sf1 = str_replace("0.25805490.54972990.50911650.5652220.281610.41583240.35050640.9719605|", "s",$sf1); $sf1 = str_replace("0.51866980.58282670.46500193.203845E-020.37774270.1376880.65417770.1532316|", "t",$sf1); $sf1 = str_replace("0.19800110.37539929.558517E-020.61538620.70240630.4395760.4208770.3360438|", "u",$sf1); $sf1 = str_replace("0.7008340.2130924.393274E-020.88606624.319853E-020.45870340.73898320.7552605|", "v",$sf1); $sf1 = str_replace("0.82257860.20967450.4687360.86800410.82834190.41040220.46250020.3488698|", "w",$sf1); $sf1 = str_replace("0.24927010.80704130.54431130.53825070.62668410.08812940.71105680.2579851|", "x",$sf1); $sf1 = str_replace("5.756873E-020.27521190.96060020.32698180.64769790.36346710.3699070.3268447|", "y",$sf1); $sf1 = str_replace("0.21475950.21233090.4231690.61749820.24148080.68612230.58992960.6028118|", "z",$sf1); $sr = $sf1; return $sr; } function add_design($sf1,$sf2,$sf3) { if(file_exists("templates/".$sf3."/".$sf2.".php")) { $tmp_img_url = "#.../templates/".$sf3."/images"; $sr = strip_illegals(str_replace("#...",$tmp_img_url,str_replace("<design_title>",$sf1,rf("templates/".$sf3."/".$sf2.".php")))); } else { $sr = derr(strtoupper($sf2)." design of template <i>".$sf3."</i> not found."); } return $sr; } function add_boxes($sf1,$sf2,$sf3) { if(file_exists("templates/".$sf3."/box_".$sf2.".php")) { $tmp_img_url = "#.../templates/".$sf3."/images"; $sr = strip_illegals(str_replace("#...",$tmp_img_url,str_replace("<box_title>",$sf1,rf("templates/".$sf3."/box_".$sf2.".php")))); } else { $sr = derr(strtoupper($sf2)." box of template <i>".$sf3."</i> not found."); } return $sr; } function template_alter($sf1,$sf2,$sf3) { $sr = html_alter(alter2(strip_illegals(str_replace("#...",$sf3,$sf1))),$sf2); return $sr; } function setup_template($s_template) { $template = $s_template; $sr = ""; $root = "."; $online = 1; $u_rank = 100; if($template != "") { if(is_dir("templates/".$template)) { $tmp_img_url = "#.../templates/".$template."/images"; if((file_exists("templates/".$template."/box_top.php")) && (file_exists("templates/".$template."/box_top.php"))) { require("code.php"); $var_code = $xcode; $hf_code = $xcode; $users_online = "<users_online>"; $count_online = "<count_online>"; $u_rank = "<rank>"; $usr = "<user>"; require("header.php"); require("footer.php"); $var_code = ""; $hf_code = ""; $new_header = html_reset($header); $new_footer = html_reset($footer); $new_header = str_replace("<*template:".$use_template."*>\n","",$new_header); $new_header = str_replace("<*template:".$use_template."*>","",$new_header); /* $dir = "templates/"; $handle = @opendir($dir); while ($file = readdir($handle)) { if(($file != ".") && ($file != "..")) { if(is_dir($dir."/".$file)) { $new_header = str_replace("<*template:".$file."*>\n","",$new_header); $new_header = str_replace("<*template:".$file."*>","",$new_header); } } } closedir($handle); */ $template = $s_template; if(!instr(":header*>",$new_header)) { $new_header = "<*design:#.../title.jpg:header*>" . $new_header; } if(!instr(":footer*>",$new_footer)) { $new_footer = $new_footer . "<*design::footer*>"; } if(file_exists("templates/".$template."/header_divisor.php")) { if(!instr(":header_divisor*>",$new_header)) { $new_header = $new_header . "\n<*design::header_divisor*>"; } } if(file_exists("templates/".$template."/footer_divisor.php")) { if(!instr(":footer_divisor*>",$new_footer)) { $new_footer = "<*design::footer_divisor*>\n" . $new_footer; } } wf("header.php","w","<?php\nrequire(\$root.\"/code.php\");\n\$header = \"".template_alter("<*template:".$template."*>\n".$new_header,"header",$tmp_img_url)."\";\n?>"); wf("footer.php","w","<?php\nrequire(\$root.\"/code.php\");\n\$footer = \"".template_alter($new_footer,"footer",$tmp_img_url)."\";\n?>"); } else { if(file_exists("templates/".$template."/header.php")) { $new_header = template_alter(rf("templates/".$template."/header.php"),"header",$tmp_img_url); wf("header.php","w","<?php\nrequire(\$root.\"/code.php\");\n\$header = \"$new_header\";\n?>"); } if(file_exists("templates/".$template."/footer.php")) { $new_footer = template_alter(rf("templates/".$template."/footer.php"),"footer",$tmp_img_url); wf("footer.php","w","<?php\nrequire(\$root.\"/code.php\");\n\$footer = \"$new_footer\";\n?>"); } } if(file_exists("templates/".$template."/styles.php")) { $new_styles = str_replace("#...",$tmp_img_url,rf("templates/".$template."/styles.php")); wf("includes/styles.php","w",$new_styles); } if(file_exists("templates/".$template."/mods.php")) { $new_mods = str_replace("#...",$tmp_img_url,rf("templates/".$template."/mods.php")); $mods_arr = explode(";;",$new_mods); foreach($mods_arr as $single_mod) { $mod = explode("$$",$single_mod); if(file_exists("modules/".$mod[0]."/".$mod[1])) { wf("modules/".$mod[0]."/".$mod[1],"w",str_replace("$\\$","$$",str_replace(";\\;",";;",stripslashes($mod[2])))); } } } $sr = "done"; return $sr; } else { $sr = "not found"; return $sr; } } else { $sr = "not set"; return $sr; } }
$functions_declared = $xcode; } ?>
|