equal
deleted
inserted
replaced
457 display_page_headers(); |
457 display_page_headers(); |
458 } |
458 } |
459 |
459 |
460 if ( $this->revision_id ) |
460 if ( $this->revision_id ) |
461 { |
461 { |
462 echo '<div class="info-box" style="margin-left: 0; margin-top: 5px;"><b>Notice:</b><br />The page you are viewing was archived on '.date('F d, Y \a\t h:i a', $this->revision_id).'.<br /><a href="'.makeUrlNS($this->namespace, $this->page_id).'" onclick="ajaxReset(); return false;">View current version</a> | <a href="'.makeUrlNS($this->namespace, $this->pageid, 'do=rollback&id='.$this->revision_id).'" onclick="ajaxRollback(\''.$this->revision_id.'\')">Restore this version</a></div><br />'; |
462 echo '<div class="info-box" style="margin-left: 0; margin-top: 5px;"><b>Notice:</b><br />The page you are viewing was archived on '.date('F d, Y \a\t h:i a', $this->revision_id).'.<br /><a href="'.makeUrlNS($this->namespace, $this->page_id).'" onclick="ajaxReset(); return false;">View current version</a> | <a href="'.makeUrlNS($this->namespace, $this->page_id, 'do=rollback&id='.$this->revision_id).'" onclick="ajaxRollback(\''.$this->revision_id.'\')">Restore this version</a></div><br />'; |
463 } |
463 } |
464 |
464 |
465 if ( $redir_enabled ) |
465 if ( $redir_enabled ) |
466 { |
466 { |
467 echo $redir_html; |
467 echo $redir_html; |
667 LEFT JOIN '.table_prefix.'users_extra AS x |
667 LEFT JOIN '.table_prefix.'users_extra AS x |
668 ON ( u.user_id = x.user_id OR x.user_id IS NULL ) |
668 ON ( u.user_id = x.user_id OR x.user_id IS NULL ) |
669 LEFT JOIN '.table_prefix.'comments AS c |
669 LEFT JOIN '.table_prefix.'comments AS c |
670 ON ( ( c.user_id=u.user_id AND c.name=u.username AND c.approved=1 ) OR ( c.comment_id IS NULL AND c.approved IS NULL ) ) |
670 ON ( ( c.user_id=u.user_id AND c.name=u.username AND c.approved=1 ) OR ( c.comment_id IS NULL AND c.approved IS NULL ) ) |
671 WHERE u.username=\'' . $db->escape($target_username) . '\' |
671 WHERE u.username=\'' . $db->escape($target_username) . '\' |
672 GROUP BY u.user_id;'); |
672 GROUP BY u.username, u.user_id, u.real_name, u.email, u.reg_time,x.user_id, x.user_aim, x.user_yahoo, x.user_msn, x.user_xmpp, x.user_homepage, x.user_location, x.user_job, x.user_hobbies, x.email_public;'); |
673 if ( !$q ) |
673 if ( !$q ) |
674 $db->_die(); |
674 $db->_die(); |
675 |
675 |
676 $user_exists = true; |
676 $user_exists = true; |
677 |
677 |