forked from Xenland/MiningFarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·147 lines (128 loc) · 5.13 KB
/
index.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
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
<?php
// Load Linkage Variables //
$dir = dirname(__FILE__);
$req = $dir."/req/";
$functions = $req."functions.php";
//Include hashing functions
include($functions);
//Include bitcoind functions
include($bitcoind);
$pageTitle = outputPageTitle()." - ";
$pageTitle .= gettext("Main Page");
//Set user details for userInfo box
$rawCookie = "";
$rawCookie = $_COOKIE[$cookieName];
$getCredientials = new getCredientials;
$loginValid = $getCredientials->checkLogin($rawCookie);
?>
<?php
//Include the header & slogan
include($header);
////////////////////////////
?>
<div class="art-sheet">
<div class="art-sheet-tl"></div>
<div class="art-sheet-tr"></div>
<div class="art-sheet-bl"></div>
<div class="art-sheet-br"></div>
<div class="art-sheet-tc"></div>
<div class="art-sheet-bc"></div>
<div class="art-sheet-cl"></div>
<div class="art-sheet-cr"></div>
<div class="art-sheet-cc"></div>
<div class="art-sheet-body">
<div class="art-content-layout">
<div class="art-content-layout-row">
<div class="art-layout-cell art-content">
<div class="art-post">
<div class="art-post-body">
<div class="art-post-inner art-article">
<div class="art-postcontent">
<div class="socialBar">
<div>
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_clickback":true,"data_track_addressbar":true};</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4e22713a770589c9"></script>
<!-- AddThis Button END -->
</div>
</div>
<hr size="1" width="100%"/>
</div>
<div class="art-postcontent">
<!-- Show the last blog post reported this way the graphs don't get in the way of the blogs -->
<?php
//Get last blog post
$lastBlogPost = mysql_query("SELECT `title`, `timestamp`, `message` FROM `blogPosts` ORDER BY `timestamp` DESC LIMIT 0,1");
$lastBlogPost = mysql_fetch_object($lastBlogPost);
?>
<div class="blogContainer">
<div class="blogHeader">
<h1 class="blogHeader">
<?php echo $lastBlogPost->title;?>
</h1>
</div>
<div class="blogContent">
<span class="blogTimeReported">
<?php echo date("m/d/Y G:s", $lastBlogPost->timestamp); ?>
</span><br/>
<?php echo $lastBlogPost->message; ?>
</div>
</div><br/>
<?php
//Include graphs
include($dir."/includes/graphs_poolstats.php");
//Include stats users graph
include($dir."/includes/graphs_bitcoinHistory.php");
?>
<br/>
<!-- quick bloging -->
<!-- start blogging -->
<?php
//retireve blogs
$blogs = mysql_query("SELECT `title`, `timestamp`, `message` FROM `blogPosts` ORDER BY `timestamp` DESC LIMIT 0,5");
$i=0;
while($blog = mysql_fetch_array($blogs)){
//Don't include the first blog, that one is reserved for the top
if($i > 0){
?>
<div class="blogContainer">
<div class="blogHeader">
<h1 class="blogHeader">
<?php echo $blog["title"];?>
</h1>
</div>
<div class="blogContent">
<span class="blogTimeReported">
<?php echo date("m/d/Y G:s", $blog["timestamp"]); ?>
</span><br/>
<?php echo $blog["message"]; ?>
</div>
</div>
<?php
}
$i++;
}
?>
</div>
<div class="cleared"></div>
</div>
<div class="cleared"></div>
</div>
</div>
<div class="cleared"></div>
</div>
</div>
</div>
<?php
//Include Footer
////////////////////
include($footer);
?>