Advertisement
Guest User

Untitled

a guest
Mar 6th, 2013
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.5.0
  8. * @ Author : DeZender
  9. * @ Release on : 09.06.2012
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function commenttable($rows, $type = '', $edit = '', $lc = false, $quote = false, $return = false) {
  15. global $is_mod;
  16. global $CURUSER;
  17. global $BASEURL;
  18. global $rootpath;
  19. global $pic_base_url;
  20. global $lang;
  21. global $usergroups;
  22. global $timeformat;
  23. global $dateformat;
  24. global $useajax;
  25. global $regdateformat;
  26.  
  27. include_once( INC_PATH . '/functions_ratio.php' );
  28. $moderator = $is_mod;
  29. $dt = TIMENOW - TS_TIMEOUT;
  30. $totalrows = count( $rows );
  31. $quickmenu = '';
  32. $showcommentstable = '';
  33. $ajax_quick_edit_loaded = false;
  34. $QuickVoteLoaded = false;
  35.  
  36. if (defined( 'LCID' )) {
  37. $_count = LCID;
  38. } else {
  39. $_count = 0;
  40. }
  41.  
  42. $lang->load( 'comment' );
  43. foreach ($rows as $row) {
  44. if ($row['totalvotes'] != '0|0') {
  45. $TotalVotes = @explode( '|', $row['totalvotes'] );
  46. $row['totalvotes'] = $TotalVotes[0] - $TotalVotes[1];
  47.  
  48. if (( $row['totalvotes'] <= 0 - 5 && !$moderator )) {
  49. continue;
  50. }
  51. } else {
  52. $row['totalvotes'] = 0;
  53. }
  54.  
  55. ++$_count;
  56. $p_commenthistory = $p_edit = $p_delete = $p_text = $p_report = $p_quote = $p_approve = '';
  57.  
  58. if ($QuickVoteLoaded == false) {
  59. $showcommentstable .= '<script type="text/javascript" src="' . $BASEURL . '/scripts/quick_vote.js?v=' . O_SCRIPT_VERSION . '"></script>';
  60. }
  61. ..................................................................................
  62. ..................................
  63. ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement