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

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/var/www/html/admin/webmail/plugins/example_addressbook/   drwxr-xr-x
Free 9.19 GB of 93.48 GB (9.83%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     example_addressbook_backend.php (1.47 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * Example backend class for a custom address book
 *
 * This one just holds a static list of address records
 *
 * @author Thomas Bruederli
 */
class example_addressbook_backend extends rcube_addressbook
{
  public 
$primary_key 'ID';
  public 
$readonly true;
  
  private 
$filter;
  private 
$result;
  
  public function 
__construct()
  {
    
$this->ready true;
  }
  
  public function 
set_search_set($filter)
  {
    
$this->filter $filter;
  }
  
  public function 
get_search_set()
  {
    return 
$this->filter;
  }

  public function 
reset()
  {
    
$this->result null;
    
$this->filter null;
  }

  public function 
list_records($cols=null$subset=0)
  {
    
$this->result $this->count();
    
$this->result->add(array('ID' => '111''name' => "Example Contact"'firstname' => "Example"'surname' => "Contact"'email' => "example@roundcube.net"));
    
    return 
$this->result;
  }

  public function 
search($fields$value$strict=false$select=true)
  {
    
// no search implemented, just list all records
    
return $this->list_records();
  }

  public function 
count()
  {
    return new 
rcube_result_set(1, ($this->list_page-1) * $this->page_size);
  }

  public function 
get_result()
  {
    return 
$this->result;
  }

  public function 
get_record($id$assoc=false)
  {
    
$this->list_records();
    
$first $this->result->first();
    
$sql_arr $first['ID'] == $id $first null;
    
    return 
$assoc && $sql_arr $sql_arr $this->result;
  }
  
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

:: 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.0041 ]--