"._YOUMUSTFILLFIELDS."

"._GOBACK.""; CloseTable(); include("footer.php"); die(); } elseif (is_user($user)) { cookiedecode($user); $username = $cookie[1]; $htime = date("h"); $mtime = date("i"); $ntime = date("a"); $mtime = "$htime:$mtime $ntime"; $mdate = date("m"); $ddate = date("d"); $ydate = date("Y"); $ndate = "$mdate-$ddate-$ydate"; $pdate = $ndate; $ptime = $mtime; if ($debug == "true") : echo ("UserName:$username
SiteName: $sitename"); endif; startjournal($sitename, $user); echo "
"; OpenTable(); echo ("
"._ENTRYADDED."


"); echo ("
[ "._RETURNJOURNAL." ]
"); CloseTable(); $username = $cookie[1]; $user = check_html($user, "nohtml"); $username = check_html($username, "nohtml"); $sitename = check_html($sitename, "nohtml"); $title = check_html($title, "nohtml"); $title = addslashes($title); if (isset($mood)) { $mood = check_html($mood, "nohtml"); } else { $mood = ""; } $jbodytext = kses(ADVT_stripslashes($jbodytext), $allowed); $jbodytext = addslashes($jbodytext); $sql = "INSERT INTO ".$prefix."_journal (jid,aid,title,bodytext,mood,pdate,ptime,status,mtime,mdate) VALUES (NULL,'$username','$title','$jbodytext','$mood','$pdate','$ptime','$status','$mtime','$ndate')"; $db->sql_query($sql); update_points(1); $sql = "SELECT * FROM ".$prefix."_journal_stats WHERE joid = '$username'"; $result = $db->sql_query($sql); $row_count = $db->sql_numrows($result); if ($row_count == 0): $query = "INSERT INTO ".$prefix."_journal_stats (id,joid,nop,ldp,ltp,micro) VALUES ('','$username','1',now(),'$mtime',now())"; $db->sql_query($query); else : $row = $db->sql_fetchrow($result); $nnop = $row['nop']; $nnnop = ($nnop + 1); $micro = date("U"); $nnnop = check_html($nnnop, "nohtml"); $ndate = check_html($ndate, "nohtml"); $mtime = check_html($mtime, "nohtml"); $micro = check_html($micro, "nohtml"); $query = "UPDATE ".$prefix."_journal_stats SET nop='$nnnop', ldp='$ndate', ltp='$mtime' micro='$micro' WHERE joid='$username'"; $db->sql_query($query); endif; journalfoot(); } else { $pagetitle = "- "._YOUMUSTBEMEMBER.""; $pagetitle = check_html($pagetitle, "nohtml"); OpenTable(); echo "
"._YOUMUSTBEMEMBER."
"; CloseTable(); include("footer.php"); die(); } ?>