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:23.07 GB of 70.42 GB (32.76%)
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/ doc/ libphp-adodb/ examples/ - drwxr-xr-x

Directory:
Viewing file:     test-pgblob.php (1.99 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

function getmicrotime()
{
    
$t microtime();
    
$t explode(' ',$t);
    return (float)
$t[1]+ (float)$t[0];
}

function 
doloop()
{
global 
$db,$MAX;
    
    
$sql "select id,firstname,lastname from adoxyz where 
        firstname not like ? and lastname not like ? and id=?"
;
    
$offset 0;
    
/*$sql = "select * from juris9.employee join juris9.emp_perf_plan on epp_empkey = emp_id 
        where emp_name not like ? and emp_name not like ? and emp_id=28000+?";
    $offset = 28000;*/
    
for ($i=1$i <= $MAX$i++) {
        
$db->Param(false);
        
$x = (rand() % 10) + 1;
        
$db->debug= ($i==1);
        
$id $db->GetOne($sql,
            array(
'Z%','Z%',$x));
        if(
$id != $offset+$x) {
            print 
"<p>Error at $x";
            break;
        }
    }
}

include_once(
'adodb/adodb.inc.php');
$db NewADOConnection('postgres7');
$db->PConnect('localhost','tester','test','test') || die("failed connection");

$enc "GIF89a%01%00%01%00%80%FF%00%C0%C0%C0%00%00%00%21%F9%04%01%00%00%00%00%2C%00%00%00%00%01%00%01%00%00%01%012%00%3Bt_clear.gif%0D";
$val rawurldecode($enc);

$MAX 1000;

adodb_pr($db->ServerInfo());

echo 
"<h4>Testing PREPARE/EXECUTE PLAN</h4>";


$db->_bindInputArray true// requires postgresql 7.3+ and ability to modify database
$t getmicrotime();
doloop();
echo 
'<p>',$MAX,' times, with plan=',getmicrotime() - $t,'</p>';


$db->_bindInputArray false;
$t getmicrotime();
doloop();
echo 
'<p>',$MAX,' times, no plan=',getmicrotime() - $t,'</p>';



echo 
"<h4>Testing UPDATEBLOB</h4>";
$db->debug=1;

### TEST BEGINS

$db->Execute("insert into photos (id,name) values(9999,'dot.gif')");
$db->UpdateBlob('photos','photo',$val,'id=9999');
$v $db->GetOne('select photo from photos where id=9999');


### CLEANUP

$db->Execute("delete from photos where id=9999");

### VALIDATION

if ($v !== $val) echo "<b>*** ERROR: Inserted value does not match downloaded val<b>";
else echo 
"<b>*** OK: Passed</b>";

echo 
"<pre>";
echo 
"INSERTED: "$enc;
echo 
"<hr />";
echo
"RETURNED: "rawurlencode($v);
echo 
"<hr /><p>";
echo 
"INSERTED: "$val;
echo 
"<hr />";
echo 
"RETURNED: "$v;

?>
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.201 seconds