equal
deleted
inserted
replaced
621 . " VALUES ( " . time() . ", '" . enano_date('d M Y h:i a') . "', 'page', 'create', \n" |
621 . " VALUES ( " . time() . ", '" . enano_date('d M Y h:i a') . "', 'page', 'create', \n" |
622 . " '" . $db->escape($session->username) . "', '" . $db->escape($this->page_id) . "', '" . $this->namespace . "');"); |
622 . " '" . $db->escape($session->username) . "', '" . $db->escape($this->page_id) . "', '" . $this->namespace . "');"); |
623 if ( !$q ) |
623 if ( !$q ) |
624 $db->_die('PageProcessor page creation - logging stage'); |
624 $db->_die('PageProcessor page creation - logging stage'); |
625 |
625 |
|
626 // Update the cache |
|
627 $paths->update_metadata_cache(); |
|
628 |
626 // Page created. We're good! |
629 // Page created. We're good! |
627 return true; |
630 return true; |
628 } |
631 } |
629 |
632 |
630 /** |
633 /** |
1123 else |
1126 else |
1124 { |
1127 { |
1125 $text = '?>' . $text; |
1128 $text = '?>' . $text; |
1126 $text = preg_replace('/<nowiki>(.*?)<\/nowiki>/s', '\\1', $text); |
1129 $text = preg_replace('/<nowiki>(.*?)<\/nowiki>/s', '\\1', $text); |
1127 } |
1130 } |
1128 // echo('<pre>'.htmlspecialchars($text).'</pre>'); |
1131 |
1129 eval ( $text ); |
1132 eval ( $text ); |
1130 |
1133 |
1131 $code = $plugins->setHook('pageprocess_render_tail'); |
1134 $code = $plugins->setHook('pageprocess_render_tail'); |
1132 foreach ( $code as $cmd ) |
1135 foreach ( $code as $cmd ) |
1133 { |
1136 { |
1352 unset($userdata); |
1355 unset($userdata); |
1353 } |
1356 } |
1354 } |
1357 } |
1355 |
1358 |
1356 // get the user's rank |
1359 // get the user's rank |
1357 $rank_data = $session->get_user_rank(intval($userdata['authoritative_uid'])); |
1360 if ( $user_exists ) |
|
1361 { |
|
1362 $rank_data = $session->get_user_rank(intval($userdata['authoritative_uid'])); |
|
1363 } |
|
1364 else |
|
1365 { |
|
1366 $rank_data = $session->get_user_rank(1); |
|
1367 } |
1358 |
1368 |
1359 $this->header(); |
1369 $this->header(); |
1360 |
1370 |
1361 // if ( $send_headers ) |
1371 // if ( $send_headers ) |
1362 // { |
1372 // { |