Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class bdPages_Model_GetVotes extends XenForo_Model_User
- {
- public function listVotes()
- {
- $options = XenForo_Application::get('options');
- $servername = "-";
- $username = "-";
- $password = "-";
- $dbname = "-";
- $conn = new mysqli($servername, $username, $password, $dbname);
- $voterLimit = $options->benjVoterLimit;
- $sql = 'SELECT * FROM votesGALTotals ORDER BY votes DESC LIMIT '."$voterLimit".'';
- return $conn->query($sql);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement