-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·34 lines (27 loc) · 807 Bytes
/
index.php
File metadata and controls
executable file
·34 lines (27 loc) · 807 Bytes
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
<?php
include_once("header.php");
?>
<?php
$numEntries = getIndexNum();
$cookie = $_COOKIE['mindof'];
$storedcookie = getCookie();
$twitter_update = gettwitterCheck();
$twitter_email = gettwitterEmail();
if(checkCookie()) {
showUpdateForm();
}
if( (checkCookie()) && ((stripslashes($_POST['checksubmit']))) ) {
$update = strip_tags($_POST['update']);
addEntry($update);
if ( ($twitter_update == 1) && (strlen($twitter_email) > 0) ) {
$twit_update = stripslashes($_POST['update']);
updateTwitter($update);
}
echo " <img src=\"icon_accept.gif\" border=\"0\" /> mindof updated. ";
}
showEntriesIndex($numEntries);
echo "<a href=\"" . $siteUrl . "archive.php?pagenum=2\" class=\"box\">older »</a>";
?>
<?php
include_once("footer.php");
?>