summary refs log tree commit diff stats
path: root/pages/welcome.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/welcome.php')
-rwxr-xr-xpages/welcome.php105
1 files changed, 0 insertions, 105 deletions
diff --git a/pages/welcome.php b/pages/welcome.php deleted file mode 100755 index 819420b..0000000 --- a/pages/welcome.php +++ /dev/null
@@ -1,105 +0,0 @@
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 = 'blog';
26
27$hatNav = array( array( 'title' => 'Archive',
28 'url' => 'http://fourisland.com/blog/',
29 'icon' => '16-file-archive'));
30
31
32$template = new FITemplate('post');
33$template->adds_block('EXTERNAL',array('exi'=>1));
34$template->add('IFXAMP', $xhtml ? '&amp;' : '&');
35$template->add('IFXLT', $xhtml ? '&lt;' : '<');
36$template->add('IFXGT', $xhtml ? '&gt;' : '>');
37
38$curID = 0;
39
40$gettrack = "SELECT * FROM tracking WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\"";
41$gettrack2 = mysql_query($gettrack);
42$gettrack3 = mysql_fetch_array($gettrack2);
43
44$trackArr = explode(',',$gettrack3['rating']);
45
46$getpost = "SELECT * FROM updates ORDER BY id DESC LIMIT 0,4";
47$getpost2 = mysql_query($getpost);
48while ($getpost3 = mysql_fetch_array($getpost2))
49{
50 updatePop($getpost3['id'],'home_views');
51
52 $page_id = 'updates-' . $getpost3['id'];
53 $getcomments = "SELECT * FROM comments WHERE page_id = \"" . $page_id . "\" ORDER BY posttime";
54 $getcomments2 = mysql_query($getcomments);
55 $total_post=0;
56 while ($getcomments3[$total_post] = mysql_fetch_array($getcomments2))
57 {
58 $total_post++;
59 }
60 if ($total_post >= 2)
61 {
62 $plural = 's';
63 }
64 if ($total_post == 0)
65 {
66 $comText = 'No Comments';
67 } elseif ($total_post == 1)
68 {
69 $comText = '1 Comment';
70 } else {
71 $comText = $total_post . ' Comments';
72 }
73
74 $template->add_ref($curID, 'POST', array( 'ID' => $getpost3['id'],
75 'YEARID' => ((date('Y',strtotime($getpost3['pubDate']))-2006) % 4),
76 'DATE' => date('F jS Y \a\\t g:i:s a',strtotime($getpost3['pubDate'])),
77 'MONTH' => date('M',strtotime($getpost3['pubDate'])),
78 'DAY' => date('d',strtotime($getpost3['pubDate'])),
79 'CODED' => $getpost3['slug'],
80 'TITLE' => htmlentities(stripslashes($getpost3['title'])),
81 'AUTHOR' => $getpost3['author'],
82 'PLURALCOMMENT' => (isset($plural) ? $plural : ''),
83 'COMMENTS' => $comText,
84 'RATING' => $getpost3['rating'],
85 'TEXT' => parseText(stripslashes($getpost3['text']))));
86
87 $tags = getTags($getpost3['id']);
88 foreach ($tags as $tag)
89 {
90 $template->adds_ref_sub($curID, 'TAGS', array('TAG' => $tag));
91 }
92
93 if (($gettrack3['ip'] != $_SERVER['REMOTE_ADDR']) || (array_search($getpost3['id'],$trackArr) === FALSE))
94 {
95 $template->adds_ref_sub($curID, 'CANVOTE', array('exi'=>1));
96 } else {
97 $template->adds_ref_sub($curID, 'NOVOTE', array('exi'=>1));
98 }
99
100 $curID++;
101}
102
103$template->display();
104
105?>