ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:27.14 GB of 70.42 GB (38.55%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ usr/ share/ php/ adodb/ drivers/ - drwxr-xr-x

Directory:
Viewing file:     adodb-vfp.inc.php (2.42 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* 
V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). 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 4 for best viewing.
  
  Latest version is available at http://adodb.sourceforge.net
  
  Microsoft Visual FoxPro data driver. Requires ODBC. Works only on MS Windows.
*/

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

if (!
defined('_ADODB_ODBC_LAYER')) {
    include(
ADODB_DIR."/drivers/adodb-odbc.inc.php");
}
if (!
defined('ADODB_VFP')){
define('ADODB_VFP',1);
class 
ADODB_vfp extends ADODB_odbc {
    var 
$databaseType "vfp";    
    var 
$fmtDate "{^Y-m-d}";
    var 
$fmtTimeStamp "{^Y-m-d, h:i:sA}";
    var 
$replaceQuote "'+chr(39)+'" ;
    var 
$true '.T.';
    var 
$false '.F.';
    var 
$hasTop 'top';        // support mssql SELECT TOP 10 * FROM TABLE
    
var $_bindInputArray false// strangely enough, setting to true does not work reliably
    
var $sysTimeStamp 'datetime()';
    var 
$sysDate 'date()';
    var 
$ansiOuter true;
    var 
$hasTransactions false;
    var 
$curmode false // See sqlext.h, SQL_CUR_DEFAULT == SQL_CUR_USE_DRIVER == 2L
    
    
function ADODB_vfp()
    {
        
$this->ADODB_odbc();
    }
    
    function 
Time()
    {
        return 
time();
    }
    
    function 
BeginTrans() { return false;}
    
    
// quote string to be sent back to database
    
function qstr($s,$nofixquotes=false)
    {
        if (!
$nofixquotes) return  "'".str_replace("\r\n","'+chr(13)+'",str_replace("'",$this->replaceQuote,$s))."'";
        return 
"'".$s."'";
    }

    
    
// TOP requires ORDER BY for VFP
    
function SelectLimit($sql,$nrows=-1,$offset=-1$inputarr=false,$secs2cache=0)
    {
        
$this->hasTop preg_match('/ORDER[ \t\r\n]+BY/is',$sql) ? 'top' false;
        
$ret ADOConnection::SelectLimit($sql,$nrows,$offset,$inputarr,$secs2cache);
        return 
$ret;
    }
    


};
 

class  
ADORecordSet_vfp extends ADORecordSet_odbc {    
    
    var 
$databaseType "vfp";        

    
    function 
ADORecordSet_vfp($id,$mode=false)
    {
        return 
$this->ADORecordSet_odbc($id,$mode);
    }

    function 
MetaType($t,$len=-1)
    {
        if (
is_object($t)) {
            
$fieldobj $t;
            
$t $fieldobj->type;
            
$len $fieldobj->max_length;
        }
        switch (
strtoupper($t)) {
        case 
'C':
            if (
$len <= $this->blobSize) return 'C';
        case 
'M':
            return 
'X';
             
        case 
'D': return 'D';
        
        case 
'T': return 'T';
        
        case 
'L': return 'L';
        
        case 
'I': return 'I';
        
        default: return 
'N';
        }
    }
}

//define
?>
Command:
Quick Commands:
Upload:
[Read-Only] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [Read-Only]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.4298 seconds