includes/pageutils.php
changeset 414 818b4cd12b8b
parent 413 6607cd646d6d
child 458 c433348f3628
equal deleted inserted replaced
413:6607cd646d6d 414:818b4cd12b8b
   340     
   340     
   341     $pname = $paths->nslist[$namespace] . $page_id;
   341     $pname = $paths->nslist[$namespace] . $page_id;
   342     $wiki = ( ( $paths->pages[$pname]['wiki_mode'] == 2 && getConfig('wiki_mode') == '1') || $paths->pages[$pname]['wiki_mode'] == 1) ? true : false;
   342     $wiki = ( ( $paths->pages[$pname]['wiki_mode'] == 2 && getConfig('wiki_mode') == '1') || $paths->pages[$pname]['wiki_mode'] == 1) ? true : false;
   343     $prot = ( ( $paths->pages[$pname]['protected'] == 2 && $session->user_logged_in && $session->reg_time + 60*60*24*4 < time() ) || $paths->pages[$pname]['protected'] == 1) ? true : false;
   343     $prot = ( ( $paths->pages[$pname]['protected'] == 2 && $session->user_logged_in && $session->reg_time + 60*60*24*4 < time() ) || $paths->pages[$pname]['protected'] == 1) ? true : false;
   344     
   344     
   345     $q = 'SELECT time_id,date_string,page_id,namespace,author,edit_summary,minor_edit FROM ' . table_prefix.'logs WHERE log_type=\'page\' AND action=\'edit\' AND page_id=\'' . $page_id . '\' AND namespace=\'' . $namespace . '\' ORDER BY time_id DESC;';
   345     $q = 'SELECT time_id,date_string,page_id,namespace,author,edit_summary,minor_edit FROM ' . table_prefix.'logs WHERE log_type=\'page\' AND action=\'edit\' AND page_id=\'' . $page_id . '\' AND namespace=\'' . $namespace . '\' AND is_draft != 1 ORDER BY time_id DESC;';
   346     if(!$db->sql_query($q)) $db->_die('The history data for the page "' . $paths->cpage['name'] . '" could not be selected.');
   346     if(!$db->sql_query($q)) $db->_die('The history data for the page "' . $paths->cpage['name'] . '" could not be selected.');
   347     echo $lang->get('history_page_subtitle') . '
   347     echo $lang->get('history_page_subtitle') . '
   348           <h3>' . $lang->get('history_heading_edits') . '</h3>';
   348           <h3>' . $lang->get('history_heading_edits') . '</h3>';
   349     $numrows = $db->numrows();
   349     $numrows = $db->numrows();
   350     if ( $numrows < 1 )
   350     if ( $numrows < 1 )