summary refs log tree commit diff stats
path: root/pages/welcome.php
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2008-11-19 17:27:03 -0500
committerStarla Insigna <hatkirby@fourisland.com>2008-11-19 17:27:03 -0500
commit24503e3abe705acde2df159aeae61be0d009f92e (patch)
tree8debbd53dcd0db2f5934c5e2af4e697e3787781d /pages/welcome.php
downloadfourisland-24503e3abe705acde2df159aeae61be0d009f92e.tar.gz
fourisland-24503e3abe705acde2df159aeae61be0d009f92e.tar.bz2
fourisland-24503e3abe705acde2df159aeae61be0d009f92e.zip
Imported sources
Diffstat (limited to 'pages/welcome.php')
-rw-r--r--pages/welcome.php81
1 files changed, 81 insertions, 0 deletions
diff --git a/pages/welcome.php b/pages/welcome.php new file mode 100644 index 0000000..24fd7ad --- /dev/null +++ b/pages/welcome.php
@@ -0,0 +1,81 @@
1<?php
2/*
3 444444444
4 4::::::::4
5 4:::::::::4
6 4::::44::::4
7 4::::4 4::::4 Four Island
8 4::::4 4::::4
9 4::::4 4::::4 Written and maintained by Starla Insigna
104::::444444::::444
114::::::::::::::::4 pages/welcome.php
124444444444:::::444
13 4::::4 Please do not use, reproduce or steal the
14 4::::4 contents of this file without explicit
15 4::::4 permission from Hatkirby.
16 44::::::44
17 4::::::::4
18 4444444444
19*/
20
21if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);}
22
23require('headerproc.php');
24
25$pageCategory = 'home';
26
27$template = new FITemplate('post');
28$template->adds_block('EXTERNAL',array('exi'=>1));
29
30$curID = 0;
31
32$getpost = "SELECT * FROM updates ORDER BY id DESC LIMIT 0,4";
33$getpost2 = mysql_query($getpost);
34while ($getpost3 = mysql_fetch_array($getpost2))
35{
36 updatePop($getpost3['id'],'home_views');
37
38 $page_id = 'updates-' . $getpost3['id'];
39 $getcomments = "SELECT * FROM comments WHERE page_id = \"" . $page_id . "\" ORDER BY posttime";
40 $getcomments2 = mysql_query($getcomments);
41 $total_post=0;
42 while ($getcomments3[$total_post] = mysql_fetch_array($getcomments2))
43 {
44 $total_post++;
45 }
46 if ($total_post >= 2)
47 {
48 $plural = 's';
49 }
50 if ($total_post == 0)
51 {
52 $comText = 'No Comments';
53 } elseif ($total_post == 1)
54 {
55 $comText = '1 Comment';
56 } else {
57 $comText = $total_post . ' Comments';
58 }
59
60 $template->add_ref($curID, 'POST', array( 'ID' => $getpost3['id'],
61 'YEARID' => ((date('Y',strtotime($getpost3['pubDate']))-2006) % 4),
62 'DATE' => date('F dS Y \a\\t g:i:s a',strtotime($getpost3['pubDate'])),
63 'MONTH' => date('M',strtotime($getpost3['pubDate'])),
64 'DAY' => date('d',strtotime($getpost3['pubDate'])),
65 'CODED' => $getpost3['slug'],
66 'TITLE' => $getpost3['title'],
67 'AUTHOR' => $getpost3['author'],
68 'TAG1' => $getpost3['tag1'],
69 'TAG2' => $getpost3['tag2'],
70 'TAG3' => $getpost3['tag3'],
71 'PLURALCOMMENT' => (isset($plural) ? $plural : ''),
72 'COMMENTS' => $comText,
73 'RATING' => $getpost3['rating'],
74 'TEXT' => parseBBCode($getpost3['text'])));
75
76 $curID++;
77}
78
79$template->display();
80
81?>