!C99Shell v. 1.0 pre-release build #13!

Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a 

uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 

uid=99(nobody) gid=98(nobody) groups=98(nobody) 

Safe-mode: OFF (not secure)

/home/jerryg/public_html/gallery2/lib/adodb/drivers/   drwxr-xr-x
Free 318.34 GB of 458.09 GB (69.49%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     adodb-mysqlt.inc.php (3.69 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
  Released under both BSD license and Lesser GPL library license. 
  Whenever there is any discrepancy between the two licenses, 
  the BSD license will take precedence.
  Set tabs to 8.
  
  MySQL code that supports transactions. For MySQL 3.23 or later.
  Code from James Poon <jpoon88@yahoo.com>
  
  Requires mysql client. Works on Windows and Unix.
*/

// security - hide paths
if (!defined('ADODB_DIR')) die();

include_once(
ADODB_DIR."/drivers/adodb-mysql.inc.php");


class 
ADODB_mysqlt extends ADODB_mysql {
    var 
$databaseType 'mysqlt';
    var 
$ansiOuter true// for Version 3.23.17 or later
    
var $hasTransactions true;
    var 
$autoRollback true// apparently mysql does not autorollback properly 
    
    
function ADODB_mysqlt() 
    {            
    global 
$ADODB_EXTENSION; if ($ADODB_EXTENSION$this->rsPrefix .= 'ext_';
    }
    
    
/* set transaction mode
    
    SET [GLOBAL | SESSION] TRANSACTION ISOLATION LEVEL
{ READ UNCOMMITTED | READ COMMITTED | REPEATABLE READ | SERIALIZABLE }

    */
    
function SetTransactionMode$transaction_mode 
    {
        
$this->_transmode  $transaction_mode;
        if (empty(
$transaction_mode)) {
            
$this->Execute('SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ');
            return;
        }
        if (!
stristr($transaction_mode,'isolation')) $transaction_mode 'ISOLATION LEVEL '.$transaction_mode;
        
$this->Execute("SET SESSION TRANSACTION ".$transaction_mode);
    }
    
    function 
BeginTrans()
    {      
        if (
$this->transOff) return true;
        
$this->transCnt += 1;
        
$this->Execute('SET AUTOCOMMIT=0');
        
$this->Execute('BEGIN');
        return 
true;
    }
    
    function 
CommitTrans($ok=true
    {
        if (
$this->transOff) return true
        if (!
$ok) return $this->RollbackTrans();
        
        if (
$this->transCnt$this->transCnt -= 1;
        
$this->Execute('COMMIT');
        
$this->Execute('SET AUTOCOMMIT=1');
        return 
true;
    }
    
    function 
RollbackTrans()
    {
        if (
$this->transOff) return true;
        if (
$this->transCnt$this->transCnt -= 1;
        
$this->Execute('ROLLBACK');
        
$this->Execute('SET AUTOCOMMIT=1');
        return 
true;
    }
    
    function 
RowLock($tables,$where='',$flds='1 as adodb_ignore'
    {
        if (
$this->transCnt==0$this->BeginTrans();
        if (
$where$where ' where '.$where;
        
$rs =& $this->Execute("select $flds from $tables $where for update");
        return !empty(
$rs); 
    }
    
}

class 
ADORecordSet_mysqlt extends ADORecordSet_mysql{    
    var 
$databaseType "mysqlt";
    
    function 
ADORecordSet_mysqlt($queryID,$mode=false
    {
        if (
$mode === false) { 
            global 
$ADODB_FETCH_MODE;
            
$mode $ADODB_FETCH_MODE;
        }
        
        switch (
$mode)
        {
        case 
ADODB_FETCH_NUM$this->fetchMode MYSQL_NUM; break;
        case 
ADODB_FETCH_ASSOC:$this->fetchMode MYSQL_ASSOC; break;
        
        case 
ADODB_FETCH_DEFAULT:
        case 
ADODB_FETCH_BOTH:
        default: 
$this->fetchMode MYSQL_BOTH; break;
        }
    
        
$this->adodbFetchMode $mode;
        
$this->ADORecordSet($queryID);    
    }
    
    function 
MoveNext()
    {
        if (@
$this->fields mysql_fetch_array($this->_queryID,$this->fetchMode)) {
            
$this->_currentRow += 1;
            return 
true;
        }
        if (!
$this->EOF) {
            
$this->_currentRow += 1;
            
$this->EOF true;
        }
        return 
false;
    }
}

class 
ADORecordSet_ext_mysqlt extends ADORecordSet_mysqlt {    

    function 
ADORecordSet_ext_mysqlt($queryID,$mode=false
    {
        if (
$mode === false) { 
            global 
$ADODB_FETCH_MODE;
            
$mode $ADODB_FETCH_MODE;
        }
        switch (
$mode)
        {
        case 
ADODB_FETCH_NUM$this->fetchMode MYSQL_NUM; break;
        case 
ADODB_FETCH_ASSOC:$this->fetchMode MYSQL_ASSOC; break;
        
        case 
ADODB_FETCH_DEFAULT:
        case 
ADODB_FETCH_BOTH:
        default: 
            
$this->fetchMode MYSQL_BOTH; break;
        }
        
$this->adodbFetchMode $mode;
        
$this->ADORecordSet($queryID);    
    }
    
    function 
MoveNext()
    {
        return 
adodb_movenext($this);
    }
}

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.005 ]--