-
Notifications
You must be signed in to change notification settings - Fork 3
/
bots.php
71 lines (51 loc) · 1.57 KB
/
bots.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
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
<?php
if (isset($_GET['editar'])) {
$page = 146;
} elseif (isset($_GET['efectos'])) {
$page = 43;
} elseif (isset($_GET['rares'])) {
$page = 34;
} elseif (isset($_GET['placas'])) {
$page = 35;
} else {
$page = 145;
}
define('PAGE_ID', $page);
require_once "global.php";
if (!LOGGED_IN) {
header("Location: " . WWW . "/");
exit;
}
$tpl->Init();
$tpl->AddGeneric('head/head-init');
$tpl->AddIncludeSet('generic');
$tpl->AddIncludeFile(new IncludeFile('text/css', '%www%/web-gallery/v2/styles/newcredits.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/javascript', '%www%/web-gallery/static/js/newcredits.js'));
$tpl->WriteIncludeFiles();
$tpl->AddGeneric('head/head-bottom');
$tpl->AddGeneric('generic-top');
if (isset($_GET['editar'])) {
$tpl->Write('<div id="column1" class="column">');
$tpl->AddGeneric('comp-bots-edit');
$tpl->Write('</div>');
$tpl->Write('<div id="column2" class="column">');
$tpl->AddGeneric('comp-bots-nav-edit');
$tpl->AddGeneric('comp-bots-edit2');
$tpl->Write('</div>');
} elseif (isset($_GET['efectos'])) {
$tpl->Write('<div id="column1" class="column">');
$tpl->AddGeneric('comp-bots-efectos');
$tpl->Write('</div>');
$tpl->Write('<div id="column2" class="column">');
$tpl->AddGeneric('comp-bots-nav-efectos');
$tpl->Write('</div>');
} else {
$tpl->Write('<div id="content">');
$tpl->AddGeneric('comp-bots');
$tpl->Write('</div>');
}
$tpl->AddGeneric('footer');
$tpl->SetParam('page_title', 'BOTS');
$tpl->SetParam('body_id', 'home');
$tpl->Output();
?>