Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 3.145.88.111
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
oasis /
aiet /
adm /
libs /
adodb5 /
[ HOME SHELL ]
Name
Size
Permission
Action
contrib
[ DIR ]
drwxrwsr-x
cute_icons_for_site
[ DIR ]
drwxrwsr-x
datadict
[ DIR ]
drwxrwsr-x
docs
[ DIR ]
drwxrwsr-x
drivers
[ DIR ]
drwxrwsr-x
lang
[ DIR ]
drwxrwsr-x
pear
[ DIR ]
drwxrwsr-x
perf
[ DIR ]
drwxrwsr-x
session
[ DIR ]
drwxrwsr-x
xsl
[ DIR ]
drwxrwsr-x
.mailmap
187
B
-rwxr-xr-x
LICENSE.md
25.61
KB
-rwxr-xr-x
README.md
4.51
KB
-rwxr-xr-x
adodb-active-record.inc.php
26.32
KB
-rwxr-xr-x
adodb-active-recordx.inc.php
37.93
KB
-rwxr-xr-x
adodb-csvlib.inc.php
8.31
KB
-rwxr-xr-x
adodb-datadict.inc.php
27.46
KB
-rwxr-xr-x
adodb-error.inc.php
8.67
KB
-rwxr-xr-x
adodb-errorhandler.inc.php
2.77
KB
-rwxr-xr-x
adodb-errorpear.inc.php
2.29
KB
-rwxr-xr-x
adodb-exceptions.inc.php
2.27
KB
-rwxr-xr-x
adodb-iterator.inc.php
780
B
-rwxr-xr-x
adodb-lib.inc.php
36.82
KB
-rwxr-xr-x
adodb-memcache.lib.inc.php
4.94
KB
-rwxr-xr-x
adodb-pager.inc.php
7.93
KB
-rwxr-xr-x
adodb-pear.inc.php
9.33
KB
-rwxr-xr-x
adodb-perf.inc.php
31.01
KB
-rwxr-xr-x
adodb-php4.inc.php
414
B
-rwxr-xr-x
adodb-time.inc.php
42.11
KB
-rwxr-xr-x
adodb-xmlschema.inc.php
53.58
KB
-rwxr-xr-x
adodb-xmlschema03.inc.php
60.7
KB
-rwxr-xr-x
adodb.inc.php
130.5
KB
-rwxr-xr-x
composer.json
696
B
-rwxr-xr-x
pivottable.inc.php
6.16
KB
-rwxr-xr-x
rsfilter.inc.php
1.55
KB
-rwxr-xr-x
server.php
2.31
KB
-rwxr-xr-x
toexport.inc.php
3.38
KB
-rwxr-xr-x
tohtml.inc.php
5.53
KB
-rwxr-xr-x
xmlschema.dtd
1.42
KB
-rwxr-xr-x
xmlschema03.dtd
1.64
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : adodb-memcache.lib.inc.php
<?php // security - hide paths if (!defined('ADODB_DIR')) die(); global $ADODB_INCLUDED_MEMCACHE; $ADODB_INCLUDED_MEMCACHE = 1; global $ADODB_INCLUDED_CSV; if (empty($ADODB_INCLUDED_CSV)) include_once(ADODB_DIR.'/adodb-csvlib.inc.php'); /* @version v5.20.9 21-Dec-2016 @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved. @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community 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. See License.txt. Set tabs to 4 for best viewing. Latest version is available at http://adodb.sourceforge.net Usage: $db = NewADOConnection($driver); $db->memCache = true; /// should we use memCache instead of caching in files $db->memCacheHost = array($ip1, $ip2, $ip3); $db->memCachePort = 11211; /// this is default memCache port $db->memCacheCompress = false; /// Use 'true' to store the item compressed (uses zlib) $db->Connect(...); $db->CacheExecute($sql); Note the memcache class is shared by all connections, is created during the first call to Connect/PConnect. Class instance is stored in $ADODB_CACHE */ class ADODB_Cache_MemCache { var $createdir = false; // create caching directory structure? //----------------------------- // memcache specific variables var $hosts; // array of hosts var $port = 11211; var $compress = false; // memcache compression with zlib var $_connected = false; var $_memcache = false; function __construct(&$obj) { $this->hosts = $obj->memCacheHost; $this->port = $obj->memCachePort; $this->compress = $obj->memCacheCompress; } // implement as lazy connection. The connection only occurs on CacheExecute call function connect(&$err) { if (!function_exists('memcache_pconnect')) { $err = 'Memcache module PECL extension not found!'; return false; } $memcache = new MemCache; if (!is_array($this->hosts)) $this->hosts = array($this->hosts); $failcnt = 0; foreach($this->hosts as $host) { if (!@$memcache->addServer($host,$this->port,true)) { $failcnt += 1; } } if ($failcnt == sizeof($this->hosts)) { $err = 'Can\'t connect to any memcache server'; return false; } $this->_connected = true; $this->_memcache = $memcache; return true; } // returns true or false. true if successful save function writecache($filename, $contents, $debug, $secs2cache) { if (!$this->_connected) { $err = ''; if (!$this->connect($err) && $debug) ADOConnection::outp($err); } if (!$this->_memcache) return false; if (!$this->_memcache->set($filename, $contents, $this->compress ? MEMCACHE_COMPRESSED : 0, $secs2cache)) { if ($debug) ADOConnection::outp(" Failed to save data at the memcached server!<br>\n"); return false; } return true; } // returns a recordset function readcache($filename, &$err, $secs2cache, $rsClass) { $false = false; if (!$this->_connected) $this->connect($err); if (!$this->_memcache) return $false; $rs = $this->_memcache->get($filename); if (!$rs) { $err = 'Item with such key doesn\'t exists on the memcached server.'; return $false; } // hack, should actually use _csv2rs $rs = explode("\n", $rs); unset($rs[0]); $rs = join("\n", $rs); $rs = unserialize($rs); if (! is_object($rs)) { $err = 'Unable to unserialize $rs'; return $false; } if ($rs->timeCreated == 0) return $rs; // apparently have been reports that timeCreated was set to 0 somewhere $tdiff = intval($rs->timeCreated+$secs2cache - time()); if ($tdiff <= 2) { switch($tdiff) { case 2: if ((rand() & 15) == 0) { $err = "Timeout 2"; return $false; } break; case 1: if ((rand() & 3) == 0) { $err = "Timeout 1"; return $false; } break; default: $err = "Timeout 0"; return $false; } } return $rs; } function flushall($debug=false) { if (!$this->_connected) { $err = ''; if (!$this->connect($err) && $debug) ADOConnection::outp($err); } if (!$this->_memcache) return false; $del = $this->_memcache->flush(); if ($debug) if (!$del) ADOConnection::outp("flushall: failed!<br>\n"); else ADOConnection::outp("flushall: succeeded!<br>\n"); return $del; } function flushcache($filename, $debug=false) { if (!$this->_connected) { $err = ''; if (!$this->connect($err) && $debug) ADOConnection::outp($err); } if (!$this->_memcache) return false; $del = $this->_memcache->delete($filename); if ($debug) if (!$del) ADOConnection::outp("flushcache: $key entry doesn't exist on memcached server!<br>\n"); else ADOConnection::outp("flushcache: $key entry flushed from memcached server!<br>\n"); return $del; } // not used for memcache function createdir($dir, $hash) { return true; } }
Close