Advertisement
Guest User

Untitled

a guest
Aug 30th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <?php
  2. class bdPages_Model_GetVotes extends XenForo_Model_User
  3. {
  4. public function listVotes()
  5. {
  6. $options = XenForo_Application::get('options');
  7.  
  8. $servername = "-";
  9. $username = "-";
  10. $password = "-";
  11. $dbname = "-";
  12.  
  13. $conn = new mysqli($servername, $username, $password, $dbname);
  14.  
  15. $voterLimit = $options->benjVoterLimit;
  16. $sql = 'SELECT * FROM votesGALTotals ORDER BY votes DESC LIMIT '."$voterLimit".'';
  17. return $conn->query($sql);
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement