diff -r be6c5fdd9203 -r 4ccdfeee9a11 includes/pageprocess.php --- a/includes/pageprocess.php Mon Dec 31 21:43:51 2007 -0500 +++ b/includes/pageprocess.php Thu Jan 03 00:53:33 2008 -0500 @@ -427,7 +427,7 @@ $time = time(); $edit_summary = ( strval($edit_summary) === $edit_summary ) ? $db->escape($edit_summary) : ''; $minor_edit = ( $minor_edit ) ? '1' : '0'; - $date_string = date('d M Y h:i a'); + $date_string = enano_date('d M Y h:i a'); // Insert log entry $sql = 'INSERT INTO ' . table_prefix . "logs ( time_id, date_string, log_type, action, page_id, namespace, author, page_text, edit_summary, minor_edit )\n" @@ -681,7 +681,7 @@ if ( $this->revision_id ) { - echo '
Notice:
The page you are viewing was archived on '.date('F d, Y \a\t h:i a', $this->revision_id).'.
View current version | Restore this version

'; + echo '
Notice:
The page you are viewing was archived on '.enano_date('F d, Y \a\t h:i a', $this->revision_id).'.
View current version | Restore this version

'; } if ( $redir_enabled ) @@ -689,6 +689,12 @@ echo $redir_html; } + $code = $plugins->setHook('pageprocess_render_head'); + foreach ( $code as $cmd ) + { + eval($cmd); + } + if ( $incl_inner_headers ) { $text = '?>' . RenderMan::render($text); @@ -701,6 +707,12 @@ // echo('
'.htmlspecialchars($text).'
'); eval ( $text ); + $code = $plugins->setHook('pageprocess_render_tail'); + foreach ( $code as $cmd ) + { + eval($cmd); + } + if ( $incl_inner_headers ) { display_page_footers(); @@ -941,7 +953,7 @@ { echo '' . $lang->get('usercp_avatar_image_alt', array('username' => $userdata['username'])) . ''; } - echo 'Joined: ' . date('F d, Y h:i a', $userdata['reg_time']) . ''; + echo 'Joined: ' . enano_date('F d, Y h:i a', $userdata['reg_time']) . ''; echo 'Total comments: ' . $userdata['n_comments'] . ''; if ( !empty($userdata['real_name']) ) @@ -970,7 +982,7 @@ { do { - $row['time'] = date('F d, Y', $row['time']); + $row['time'] = enano_date('F d, Y', $row['time']); $comments[] = $row; } while ( $row = $db->fetchrow() ); @@ -1241,7 +1253,7 @@ global $email; // Log it for crying out loud - $q = $db->sql_query('INSERT INTO '.table_prefix.'logs(log_type,action,time_id,date_string,author,edit_summary,page_text) VALUES(\'security\', \'illegal_page\', '.time().', \''.date('d M Y h:i a').'\', \''.$db->escape($session->username).'\', \''.$db->escape($_SERVER['REMOTE_ADDR']).'\', \'' . $db->escape(serialize(array($this->page_id, $this->namespace))) . '\')'); + $q = $db->sql_query('INSERT INTO '.table_prefix.'logs(log_type,action,time_id,date_string,author,edit_summary,page_text) VALUES(\'security\', \'illegal_page\', '.time().', \''.enano_date('d M Y h:i a').'\', \''.$db->escape($session->username).'\', \''.$db->escape($_SERVER['REMOTE_ADDR']).'\', \'' . $db->escape(serialize(array($this->page_id, $this->namespace))) . '\')'); $ob = ''; //$template->tpl_strings['PAGE_NAME'] = 'Access denied'; @@ -1458,16 +1470,6 @@ } /** - * PHP 4 constructor. - * @see PageProcessor::__construct() - */ - - function PageProcessor( $page_id, $namespace, $revision_id = 0 ) - { - $this->__construct($page_id, $namespace, $revision_id); - } - - /** * Send an error message and die. For debugging or critical technical errors only - nothing that would under normal circumstances be shown to the user. * @var string Error message * @var bool If true, send DBAL's debugging information as well