You don\'t have access to this page (yet?). Bug an admin to delete a plan post.

'); need ('sql'); function convertToHTML ($string) { $table = array_flip (get_html_translation_table (HTML_ENTITIES)); return strtr ($string, $table); } function convertFromHTML ($string) { $table = get_html_translation_table (HTML_ENTITIES); return strtr ($string, $table); } function planEntrySummary ($a) { need ("date"); return '' .' ' . $a['p_id'] . '' .' ' . dateFromSQLDateTime ($a['p_date']) . '' .' ' . $a['p_user'] . '' .' ' . substr (convertFromHTML (StripSlashes ($a['p_plan'])), 0, 50) . '…' .''; } function planEntryEditor ($array) { need ("boxes date news"); $id = $array['p_id']; $usr = $array['p_user']; $date = dateFromSQLDateTime ($array['p_date']); $subj = convertFromHTML (stripSlashes ($array['p_title'])); $txt = convertFromHTML (stripSlashes ($array['p_plan'])); newsBoxOpen ("Edit Plan Entry #$id"); ?>
Posted on by
Subject:
Bad mojo, man. I couldn't talk to the SQL server. It said '$sqlError'.

"; } elseif ($rows === false) { echo "

Something bad happened, and MySQL said '$sqlError'. Bug an admin.

"; } elseif (!$rows) { echo '

Your edit was correctly formed, but had no effect on the database. Go fig, huh?

'; } else { echo '

Your edit was processed successfully. Congratulations on your revision of history.:)

'; } } else { $query = 'SELECT p_id, p_date, p_user, p_title, p_plan FROM plans' ." WHERE p_id=$planID"; $entries = sqlReadQuery ($query); if ($entries === null) { echo "

Bad mojo, man. I couldn't talk to the SQL server. It said '$sqlError'.

"; } elseif ($entries === false) { echo "

Something bad happened, and MySQL said '$sqlError'. Bug an admin.

"; } elseif (count ($entries) == 1) { planEntryEditor ($entries[0]); } else { echo "

This shouldn't even be possible, but there's more than one plan entry with ID '$planID'!

"; } } } else { newsBoxOpen ("All Plan Entries"); $query = 'SELECT p_id, p_date, p_user, p_title, p_plan FROM plans' .' ORDER BY p_date DESC'; $entries = sqlReadQuery ($query); if ($entries && is_array ($entries) && count ($entries)) { tableHeader ("100%"); ?> ID Date User Text No plan entries available."; } newsBoxClose (); } ?>