1656 if ( !$q2 = $db->sql_query('SELECT time_id,page_text,char_tag,author,edit_summary FROM ' . table_prefix.'logs WHERE log_id = ' . $id2 . ' AND log_type=\'page\' AND action=\'edit\' AND page_id=\'' . $page_id . '\' AND namespace=\'' . $namespace . '\';')) return 'MySQL error: ' . $db->get_error(); |
1656 if ( !$q2 = $db->sql_query('SELECT time_id,page_text,char_tag,author,edit_summary FROM ' . table_prefix.'logs WHERE log_id = ' . $id2 . ' AND log_type=\'page\' AND action=\'edit\' AND page_id=\'' . $page_id . '\' AND namespace=\'' . $namespace . '\';')) return 'MySQL error: ' . $db->get_error(); |
1657 $row1 = $db->fetchrow($q1); |
1657 $row1 = $db->fetchrow($q1); |
1658 $db->free_result($q1); |
1658 $db->free_result($q1); |
1659 $row2 = $db->fetchrow($q2); |
1659 $row2 = $db->fetchrow($q2); |
1660 $db->free_result($q2); |
1660 $db->free_result($q2); |
1661 if(sizeof($row1) < 1 || sizeof($row2) < 2) return 'Couldn\'t find any rows that matched the query. The time ID probably doesn\'t exist in the logs table.'; |
1661 if(sizeof($row1) < 1 || sizeof($row2) < 2) |
|
1662 { |
|
1663 if ( !$q1 = $db->sql_query('SELECT time_id,page_text,char_tag,author,edit_summary FROM ' . table_prefix.'logs WHERE time_id = ' . $id1 . ' AND log_type=\'page\' AND action=\'edit\' AND page_id=\'' . $page_id . '\' AND namespace=\'' . $namespace . '\';')) return 'MySQL error: ' . $db->get_error(); |
|
1664 if ( !$q2 = $db->sql_query('SELECT time_id,page_text,char_tag,author,edit_summary FROM ' . table_prefix.'logs WHERE time_id = ' . $id2 . ' AND log_type=\'page\' AND action=\'edit\' AND page_id=\'' . $page_id . '\' AND namespace=\'' . $namespace . '\';')) return 'MySQL error: ' . $db->get_error(); |
|
1665 $row1 = $db->fetchrow($q1); |
|
1666 $db->free_result($q1); |
|
1667 $row2 = $db->fetchrow($q2); |
|
1668 $db->free_result($q2); |
|
1669 if(sizeof($row1) < 1 || sizeof($row2) < 2) |
|
1670 return 'Couldn\'t find any rows that matched the query. The time ID probably doesn\'t exist in the logs table.'; |
|
1671 } |
1662 $text1 = $row1['page_text']; |
1672 $text1 = $row1['page_text']; |
1663 $text2 = $row2['page_text']; |
1673 $text2 = $row2['page_text']; |
1664 $time1 = enano_date('F d, Y h:i a', $row1['time_id']); |
1674 $time1 = enano_date('F d, Y h:i a', $row1['time_id']); |
1665 $time2 = enano_date('F d, Y h:i a', $row2['time_id']); |
1675 $time2 = enano_date('F d, Y h:i a', $row2['time_id']); |
1666 $_ob = " |
1676 $_ob = " |