blob: 76b42b15e5b5e6531bd1b5d22b99b62eaae41466 (
plain) (
blame)
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
/*
444444444
4::::::::4
4:::::::::4
4::::44::::4
4::::4 4::::4 Four Island
4::::4 4::::4
4::::4 4::::4 Written and maintained by Starla Insigna
4::::444444::::444
4::::::::::::::::4 admin/welcome.php
4444444444:::::444
4::::4 Please do not use, reproduce or steal the
4::::4 contents of this file without explicit
4::::4 permission from Hatkirby.
44::::::44
4::::::::4
4444444444
*/
if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);}
require('headerproc.php');
$category = 'home';
$template = new FITemplate('admin/welcome');
$cntposts = "SELECT COUNT(*) FROM updates";
$cntposts2 = mysql_query($cntposts);
$cntposts3 = mysql_fetch_array($cntposts2);
$template->add('POSTS', $cntposts3['COUNT(*)']);
$cntpending = "SELECT COUNT(*) FROM pending";
$cntpending2 = mysql_query($cntpending);
$cntpending3 = mysql_fetch_array($cntpending2);
$template->add('PENDING', $cntpending3['COUNT(*)']);
$cntdrafts = "SELECT COUNT(*) FROM drafts";
$cntdrafts2 = mysql_query($cntdrafts);
$cntdrafts3 = mysql_fetch_array($cntdrafts2);
$template->add('DRAFTS', $cntdrafts3['COUNT(*)']);
$cntcomments = "SELECT COUNT(*) FROM moderation";
$cntcomments2 = mysql_query($cntcomments);
$cntcomments3 = mysql_fetch_array($cntcomments2);
$template->add('COMMENTS', $cntcomments3['COUNT(*)']);
$cntpolls = "SELECT COUNT(*) FROM polloftheweek";
$cntpolls2 = mysql_query($cntpolls);
$cntpolls3 = mysql_fetch_array($cntpolls2);
$template->add('POLLS', $cntpolls3['COUNT(*)']);
$cntquotes = "SELECT COUNT(*) FROM rash_quotes";
$cntquotes2 = mysql_query($cntquotes);
$cntquotes3 = mysql_fetch_array($cntquotes2);
$template->add('QUOTES', $cntquotes3['COUNT(*)']);
$cntflagged = "SELECT COUNT(*) FROM rash_quotes WHERE flag = 1";
$cntflagged2 = mysql_query($cntflagged);
$cntflagged3 = mysql_fetch_array($cntflagged2);
$template->add('FLAGGED', $cntflagged3['COUNT(*)']);
$cntmodcom = "SELECT COUNT(*) FROM rash_queue";
$cntmodcom2 = mysql_query($cntmodcom);
$cntmodcom3 = mysql_fetch_array($cntmodcom2);
$template->add('MODCOM', $cntmodcom3['COUNT(*)']);
$template->display();
?>
|