-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdoom.php
60 lines (51 loc) · 1.48 KB
/
doom.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
<?php
require 'classes/Session.class.php';
require 'classes/System.class.php';
require 'classes/Storyline.class.php';
require 'classes/Process.class.php';
$session = new Session();
$system = new System();
ob_start();
require 'template/contentStart.php';
$display = 'current';
$current = 'active';
$failed = '';
if($system->issetGet('show')){
if($_GET['show'] == 'failed'){
$display = 'failed';
$current = '';
$failed = 'active';
} else {
header("Location:doom");
exit();
}
}
?>
<div class="span12">
<?php
if($session->issetMsg()){
$session->returnMsg();
}
?>
<div class="widget-box">
<div class="widget-title">
<ul class="nav nav-tabs">
<li class="link <?php echo $current; ?>"><a href="doom"><span class="icon-tab he16-doom"></span><span class="hide-phone">Doom Progress</span></a></li>
<li class="link <?php echo $failed; ?>"><a href="?show=failed"><span class="icon-tab he16-doom_failed"></span><span class="hide-phone">Failed Attempts</span></a></li>
<a href="#"><span class="label label-info"><?php echo _("Help"); ?></span></a>
</ul>
</div>
<div class="widget-content padding noborder">
<?php
$storyline = new Storyline();
$storyline->doom_displayProgress($display);
?>
</div>
<div class="nav nav-tabs" style="clear: both;">
</div>
<?php
ob_end_flush();
ob_start();
require 'template/contentEnd.php';
ob_end_flush();
?>