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.133.148.222
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 /
website /
gfgcg /
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-datadict.php
<?php /* V4.81 3 May 2006 (c) 2000-2008 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 4 for best viewing. */ error_reporting(E_ALL); include_once('../adodb.inc.php'); foreach(array('sapdb','sybase','mysql','access','oci8po','postgres','odbc_mssql','odbc','db2','firebird','informix') as $dbType) { echo "<h3>$dbType</h3><p>"; $db = NewADOConnection($dbType); $dict = NewDataDictionary($db); if (!$dict) continue; $dict->debug = 1; $opts = array('REPLACE','mysql' => 'ENGINE=INNODB', 'oci8' => 'TABLESPACE USERS'); /* $flds = array( array('id', 'I', 'AUTO','KEY'), array('name' => 'firstname', 'type' => 'varchar','size' => 30, 'DEFAULT'=>'Joan'), array('lastname','varchar',28, 'DEFAULT'=>'Chen','key'), array('averylonglongfieldname','X',1024, 'NOTNULL','default' => 'test'), array('price','N','7.2', 'NOTNULL','default' => '0.00'), array('MYDATE', 'D', 'DEFDATE'), array('TS','T', 'DEFTIMESTAMP') );*/ $flds = " ID I AUTO KEY, FIRSTNAME VARCHAR(30) DEFAULT 'Joan' INDEX idx_name, LASTNAME VARCHAR(28) DEFAULT 'Chen' key INDEX idx_name, averylonglongfieldname X(1024) DEFAULT 'test', price N(7.2) DEFAULT '0.00', MYDATE D DEFDATE INDEX idx_date, BIGFELLOW X NOTNULL, TS T DEFTIMESTAMP"; $sqla = $dict->CreateDatabase('KUTU',array('postgres'=>"LOCATION='/u01/postdata'")); $dict->SetSchema('KUTU'); $sqli = ($dict->CreateTableSQL('testtable',$flds, $opts)); $sqla = array_merge($sqla,$sqli); $sqli = $dict->CreateIndexSQL('idx','testtable','price,firstname,lastname',array('BITMAP','FULLTEXT','CLUSTERED','HASH')); $sqla = array_merge($sqla,$sqli); $sqli = $dict->CreateIndexSQL('idx2','testtable','price,lastname');//,array('BITMAP','FULLTEXT','CLUSTERED')); $sqla = array_merge($sqla,$sqli); $addflds = array(array('height', 'F'),array('weight','F')); $sqli = $dict->AddColumnSQL('testtable',$addflds); $sqla = array_merge($sqla,$sqli); $addflds = array(array('height', 'F','NOTNULL'),array('weight','F','NOTNULL')); $sqli = $dict->AlterColumnSQL('testtable',$addflds); $sqla = array_merge($sqla,$sqli); printsqla($dbType,$sqla); if (file_exists('d:\inetpub\wwwroot\php\phplens\adodb\adodb.inc.php')) if ($dbType == 'mysqlt') { $db->Connect('localhost', "root", "", "test"); $dict->SetSchema(''); $sqla2 = $dict->ChangeTableSQL('adoxyz',$flds); if ($sqla2) printsqla($dbType,$sqla2); } if ($dbType == 'postgres') { if (@$db->Connect('localhost', "tester", "test", "test")); $dict->SetSchema(''); $sqla2 = $dict->ChangeTableSQL('adoxyz',$flds); if ($sqla2) printsqla($dbType,$sqla2); } if ($dbType == 'odbc_mssql') { $dsn = $dsn = "PROVIDER=MSDASQL;Driver={SQL Server};Server=localhost;Database=northwind;"; if (@$db->Connect($dsn, "sa", "natsoft", "test")); $dict->SetSchema(''); $sqla2 = $dict->ChangeTableSQL('adoxyz',$flds); if ($sqla2) printsqla($dbType,$sqla2); } adodb_pr($dict->databaseType); printsqla($dbType, $dict->DropColumnSQL('table',array('my col','`col2_with_Quotes`','A_col3','col3(10)'))); printsqla($dbType, $dict->ChangeTableSQL('adoxyz','LASTNAME varchar(32)')); } function printsqla($dbType,$sqla) { print "<pre>"; //print_r($dict->MetaTables()); foreach($sqla as $s) { $s = htmlspecialchars($s); print "$s;\n"; if ($dbType == 'oci8') print "/\n"; } print "</pre><hr />"; } /*** Generated SQL: mysql CREATE DATABASE KUTU; DROP TABLE KUTU.testtable; CREATE TABLE KUTU.testtable ( id INTEGER NOT NULL AUTO_INCREMENT, firstname VARCHAR(30) DEFAULT 'Joan', lastname VARCHAR(28) NOT NULL DEFAULT 'Chen', averylonglongfieldname LONGTEXT NOT NULL, price NUMERIC(7,2) NOT NULL DEFAULT 0.00, MYDATE DATE DEFAULT CURDATE(), PRIMARY KEY (id, lastname) )TYPE=ISAM; CREATE FULLTEXT INDEX idx ON KUTU.testtable (firstname,lastname); CREATE INDEX idx2 ON KUTU.testtable (price,lastname); ALTER TABLE KUTU.testtable ADD height DOUBLE; ALTER TABLE KUTU.testtable ADD weight DOUBLE; ALTER TABLE KUTU.testtable MODIFY COLUMN height DOUBLE NOT NULL; ALTER TABLE KUTU.testtable MODIFY COLUMN weight DOUBLE NOT NULL; -------------------------------------------------------------------------------- oci8 CREATE USER KUTU IDENTIFIED BY tiger; / GRANT CREATE SESSION, CREATE TABLE,UNLIMITED TABLESPACE,CREATE SEQUENCE TO KUTU; / DROP TABLE KUTU.testtable CASCADE CONSTRAINTS; / CREATE TABLE KUTU.testtable ( id NUMBER(16) NOT NULL, firstname VARCHAR(30) DEFAULT 'Joan', lastname VARCHAR(28) DEFAULT 'Chen' NOT NULL, averylonglongfieldname CLOB NOT NULL, price NUMBER(7,2) DEFAULT 0.00 NOT NULL, MYDATE DATE DEFAULT TRUNC(SYSDATE), PRIMARY KEY (id, lastname) )TABLESPACE USERS; / DROP SEQUENCE KUTU.SEQ_testtable; / CREATE SEQUENCE KUTU.SEQ_testtable; / CREATE OR REPLACE TRIGGER KUTU.TRIG_SEQ_testtable BEFORE insert ON KUTU.testtable FOR EACH ROW BEGIN select KUTU.SEQ_testtable.nextval into :new.id from dual; END; / CREATE BITMAP INDEX idx ON KUTU.testtable (firstname,lastname); / CREATE INDEX idx2 ON KUTU.testtable (price,lastname); / ALTER TABLE testtable ADD ( height NUMBER, weight NUMBER); / ALTER TABLE testtable MODIFY( height NUMBER NOT NULL, weight NUMBER NOT NULL); / -------------------------------------------------------------------------------- postgres AlterColumnSQL not supported for PostgreSQL CREATE DATABASE KUTU LOCATION='/u01/postdata'; DROP TABLE KUTU.testtable; CREATE TABLE KUTU.testtable ( id SERIAL, firstname VARCHAR(30) DEFAULT 'Joan', lastname VARCHAR(28) DEFAULT 'Chen' NOT NULL, averylonglongfieldname TEXT NOT NULL, price NUMERIC(7,2) DEFAULT 0.00 NOT NULL, MYDATE DATE DEFAULT CURRENT_DATE, PRIMARY KEY (id, lastname) ); CREATE INDEX idx ON KUTU.testtable USING HASH (firstname,lastname); CREATE INDEX idx2 ON KUTU.testtable (price,lastname); ALTER TABLE KUTU.testtable ADD height FLOAT8; ALTER TABLE KUTU.testtable ADD weight FLOAT8; -------------------------------------------------------------------------------- odbc_mssql CREATE DATABASE KUTU; DROP TABLE KUTU.testtable; CREATE TABLE KUTU.testtable ( id INT IDENTITY(1,1) NOT NULL, firstname VARCHAR(30) DEFAULT 'Joan', lastname VARCHAR(28) DEFAULT 'Chen' NOT NULL, averylonglongfieldname TEXT NOT NULL, price NUMERIC(7,2) DEFAULT 0.00 NOT NULL, MYDATE DATETIME DEFAULT GetDate(), PRIMARY KEY (id, lastname) ); CREATE CLUSTERED INDEX idx ON KUTU.testtable (firstname,lastname); CREATE INDEX idx2 ON KUTU.testtable (price,lastname); ALTER TABLE KUTU.testtable ADD height REAL, weight REAL; ALTER TABLE KUTU.testtable ALTER COLUMN height REAL NOT NULL; ALTER TABLE KUTU.testtable ALTER COLUMN weight REAL NOT NULL; -------------------------------------------------------------------------------- */ echo "<h1>Test XML Schema</h1>"; $ff = file('xmlschema.xml'); echo "<pre>"; foreach($ff as $xml) echo htmlspecialchars($xml); echo "</pre>"; include_once('test-xmlschema.php'); ?>
Close