plugins/SpecialUserFuncs.php
changeset 414 818b4cd12b8b
parent 411 d1a95497b68f
child 430 ec90736b9cb9
equal deleted inserted replaced
413:6607cd646d6d 414:818b4cd12b8b
  1019     $template->footer();
  1019     $template->footer();
  1020     return;
  1020     return;
  1021   }
  1021   }
  1022   
  1022   
  1023   $user = $db->escape($user);
  1023   $user = $db->escape($user);
  1024   $q = 'SELECT log_type, time_id, action, date_string, page_id, namespace, author, edit_summary, minor_edit, page_id, namespace, ( action = \'edit\' ) AS is_edit FROM '.table_prefix.'logs WHERE author=\''.$user.'\' AND log_type=\'page\' ORDER BY is_edit DESC, time_id DESC;';
  1024   $q = 'SELECT log_type, time_id, action, date_string, page_id, namespace, author, edit_summary, minor_edit, page_id, namespace, ( action = \'edit\' ) AS is_edit FROM '.table_prefix.'logs WHERE author=\''.$user.'\' AND log_type=\'page\' AND is_draft != 1 ORDER BY is_edit DESC, time_id DESC;';
  1025   $q = $db->sql_query($q);
  1025   $q = $db->sql_query($q);
  1026   if ( !$q )
  1026   if ( !$q )
  1027     $db->_die('SpecialUserFuncs selecting contribution data');
  1027     $db->_die('SpecialUserFuncs selecting contribution data');
  1028   
  1028   
  1029   echo '<h3>' . $lang->get('userfuncs_contribs_heading_edits') . '</h3>';
  1029   echo '<h3>' . $lang->get('userfuncs_contribs_heading_edits') . '</h3>';