includes/pageutils.php
changeset 57 b354deeaa4c4
parent 40 723bb7acf914
child 73 0a74676a2f2f
equal deleted inserted replaced
56:eb8eacb056d1 57:b354deeaa4c4
   574             </div>
   574             </div>
   575             <br />
   575             <br />
   576             <input type="hidden" name="do" value="diff" />
   576             <input type="hidden" name="do" value="diff" />
   577             <input type="submit" value="Compare selected revisions" />
   577             <input type="submit" value="Compare selected revisions" />
   578             </form>
   578             </form>
   579             <script type="text/javascript">buildDiffList();</script>';
   579             <script type="text/javascript">if ( !KILL_SWITCH ) { buildDiffList(); }</script>';
   580     }
   580     }
   581     $db->free_result();
   581     $db->free_result();
   582     echo '<h3>Other changes:</h3>';
   582     echo '<h3>Other changes:</h3>';
   583     $q = 'SELECT time_id,action,date_string,page_id,namespace,author,edit_summary,minor_edit FROM '.table_prefix.'logs WHERE log_type=\'page\' AND action!=\'edit\' AND page_id=\''.$paths->cpage['urlname_nons'].'\' AND namespace=\''.$paths->namespace.'\' ORDER BY time_id DESC;';
   583     $q = 'SELECT time_id,action,date_string,page_id,namespace,author,edit_summary,minor_edit FROM '.table_prefix.'logs WHERE log_type=\'page\' AND action!=\'edit\' AND page_id=\''.$paths->cpage['urlname_nons'].'\' AND namespace=\''.$paths->namespace.'\' ORDER BY time_id DESC;';
   584     if(!$db->sql_query($q)) $db->_die('The history data for the page "'.$paths->cpage['name'].'" could not be selected.');
   584     if(!$db->sql_query($q)) $db->_die('The history data for the page "'.$paths->cpage['name'].'" could not be selected.');