*thinking out loud*
from what I can see, since the url the user is going /journal/index.php?mode=edit&type=entry&je_id=20040518032829627
sooo, since type=entry, thats true... so we go over to shownavigation and then editjournalentry($je_id). from what i understand, $je_id would = 20040518032829627 if we use the url above.
Text Formatted Code
case 'edit':
if ($type == 'entry') {
$display .= shownavigation($mode,$cur_journal);
$display .= editjournalentry($je_id);
over to editjournalentry in functions.inc, the first few lines...
Text Formatted Code
if( ownsjournal( $jrn_id ) )
soo, that would call ownsjournal ( $jrn_id ), right? But how does it know what $jrn_id is, it wasn't passed in the previous call or in the URL? anyways...
Text Formatted Code
$result = DB_query("SELECT jrn_uid FROM {$_TABLES['journal']} WHERE jrn_id = $jrn_id");
$A = DB_fetchArray($result);
if( $_USER["uid"] == $A["jrn_uid"] )
sooo, not knowing how $jrn_id gets here. from the SQL error in my previous post its almost like it doesn't? help? please
-- destr0yr
"I love deadlines. I like the whooshing sound they make as they fly by." -- Douglas Adams