SiteName: $sitename
JID: $jid"); endif; startjournal($sitename, $user); echo "
"; OpenTable(); echo ("
"._EDITJOURNAL."

"); echo ("
[ "._ADDENTRY." | "._YOURLAST20." | "._LISTALLENTRIES." ]
"); CloseTable(); echo "
"; OpenTable(); $jid = intval($jid); $sql = "SELECT * FROM ".$prefix."_journal WHERE jid = '$jid'"; $result = $db->sql_query($sql); while ($row = $db->sql_fetchrow($result)) { $jaid = check_html($row['aid'], "nohtml"); if (!is_admin($admin)): if ($username != $jaid): echo ("
"); OpenTable(); echo ("
"._NOTYOURS2."
"); CloseTable(); CloseTable(); journalfoot(); include("footer.php"); die(); endif; endif; $jid = intval($jid); $jtitle = check_html($row['title'], "nohtml"); $jbodytext = $row['bodytext']; $jbodytext = kses(ADVT_stripslashes($jbodytext), $allowed); $jmood = check_html($row['mood'], "nohtml"); print ("
"); print (""); print (""); print (""); print (""); print (""); printf ("", $jtitle); print (""); print (""); print (""); printf ("", $jbodytext); print (""); print (""); print (""); echo ""); print (""); print (""); print (""); print (""); print (""); print (""); print (""); print ("
"._TITLE.":
"._BODY.":
"._WRAP."
"._LITTLEGRAPH.":
"._OPTIONAL."
"; $tempcount = 0; $tempcount = intval($tempcount); $checked = ""; $direktori = "$jsmiles"; $handle = opendir($direktori); while ($file = readdir($handle)) { if (is_file($file) && strtolower(substr($file, -4)) == '.gif' || '.jpg') { $filelist[] = $file; } else { OpenTable(); echo "
"._ANERROR."
"; CloseTable(); include("footer.php"); exit; } } closedir($handle); asort($filelist); while (list ($key, $file) = each ($filelist)) { if (!ereg(".gif|.jpg",$file)) { } elseif ($file == "." || $file == "..") { $a = 1; } else { if ($file == $jmood) { $checked = "checked"; } else { $checked = ""; } if ($tempcount == 6): echo ""; echo ""; $tempcount = 0; else : echo ""; endif; $tempcount = $tempcount + 1; } } echo "
\"$file\"\"$file\"
"; print ("
"._PUBLIC.": "); print (""); print ("


"._TYPOS."
"); echo "\n"; echo "\n"; print ("
"); } CloseTable(); journalfoot(); } if (is_admin($admin)) { cookiedecode($user); $username = $cookie[1]; $user = check_html($user, nohtml); $username = check_html($username, nohtml); $sitename = check_html($sitename, nohtml); $jid = intval($jid); if ($debug == "true") : echo ("UserName:$username
SiteName: $sitename
JID: $jid"); endif; startjournal($sitename, $user); echo "
"; OpenTable(); echo ("
"._EDITJOURNAL."

"); echo ("
[ "._ADDENTRY." | "._YOURLAST20." | "._LISTALLENTRIES." ]
"); CloseTable(); echo "
"; OpenTable(); $jid = intval($jid); $sql = "SELECT * FROM ".$prefix."_journal WHERE jid = '$jid'"; $result = $db->sql_query($sql); while ($row = $db->sql_fetchrow($result)) { $jaid = check_html($row['aid'], "nohtml"); $jid = intval($jid); $jtitle = check_html($row['title'], "nohtml"); $jbodytext = $row['bodytext']; $jbodytext = kses(ADVT_stripslashes($jbodytext), $allowed); $jmood = check_html($row['mood'], "nohtml"); print ("
"); print (""); print (""); print (""); print (""); print (""); printf ("", $jtitle); print (""); print (""); print (""); printf ("", $jbodytext); print (""); print (""); print (""); echo ""); print (""); print (""); print (""); print (""); print (""); print (""); print (""); print ("
"._TITLE.":
"._BODY.":
"._WRAP."
"._LITTLEGRAPH.":
"._OPTIONAL."
"; $tempcount = 0; $tempcount = intval($tempcount); $checked = htmlspecialchars($checked); $direktori = "$jsmiles"; $handle = opendir($direktori); while ($file = readdir($handle)) { if (is_file($file) && strtolower(substr($file, -4)) == '.gif' || '.jpg') { $filelist[] = $file; } else { include("header.php"); OpenTable(); echo "
"._ANERROR."
"; CloseTable(); include("footer.php"); exit; } } closedir($handle); asort($filelist); while (list ($key, $file) = each ($filelist)) { ereg(".gif|.jpg", $file); if ($file == "." || $file == "..") { $a = 1; } else { if ($file == $jmood) { $checked = "checked"; } else { $checked = ""; } if ($tempcount == 6): echo ""; echo ""; $tempcount = 0; else : echo ""; endif; $tempcount = $tempcount + 1; } } echo "
\"$file\"\"$file\"
"; print ("
"._PUBLIC.": "); print (""); print ("


"._TYPOS."
"); echo "\n"; echo "\n"; print ("
"); } CloseTable(); journalfoot(); } $pagetitle = "- "._YOUMUSTBEMEMBER.""; $pagetitle = check_html($pagetitle, "nohtml"); OpenTable(); echo "
"._YOUMUSTBEMEMBER."
"; CloseTable(); include("footer.php"); die(); ?>