Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
lib /
php /
Tree /
Memory /
[ HOME SHELL ]
Name
Size
Permission
Action
Array.php
11.2
KB
-rw-r--r--
DBnested.php
2.89
KB
-rw-r--r--
DBsimple.php
14.95
KB
-rw-r--r--
Filesystem.php
7.21
KB
-rw-r--r--
MDB2nested.php
2.91
KB
-rw-r--r--
MDB2simple.php
15.86
KB
-rw-r--r--
MDBnested.php
2.89
KB
-rw-r--r--
MDBsimple.php
15.8
KB
-rw-r--r--
XML.php
9.3
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : MDBnested.php
<?php /* vim: set expandtab tabstop=4 shiftwidth=4: */ // +----------------------------------------------------------------------+ // | PHP Version 4 | // +----------------------------------------------------------------------+ // | Copyright (c) 1997-2003 The PHP Group | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.02 of the PHP license, | // | that is bundled with this package in the file LICENSE, and is | // | available at through the world-wide-web at | // | http://www.php.net/license/2_02.txt. | // | If you did not receive a copy of the PHP license and are unable to | // | obtain it through the world-wide-web, please send a note to | // | license@php.net so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // | Authors: | // +----------------------------------------------------------------------+ // // $Id: MDBnested.php 320703 2011-12-08 22:08:40Z danielc $ require_once 'Tree/Dynamic/MDBnested.php'; /** * * * @access public * @author * @package Tree */ class Tree_Memory_MDBnested extends Tree_Dynamic_MDBnested { /** * retreive all the data from the db and prepare the data so the structure * can be built in the parent class * * @version 2002/04/20 * @access public * @author Wolfram Kriesing <wolfram@kriesing.de> * @param array the result of a query which retreives (all) * the tree data from a DB * @return array the result */ function setup($res = null) { if ($res == null) { // $whereAddOn = ''; if ($this->options['whereAddOn']) { $whereAddOn = 'WHERE '.$this->getOption('whereAddOn'); } // $orderBy = 'left'; if ($order=$this->getOption('order')) { $orderBy = $order; } // build the query this way, that the root, which has no parent // (parentId=0) is first $query = sprintf('SELECT * FROM %s %s ORDER BY %s', $this->table, $whereAddOn, // sort by the left-column, so we have the data //sorted as it is supposed to be :-) $this->_getColName($orderBy) ); if (MDB::isError($res = $this->dbh->getAll($query))) { return $this->_throwError($res->getMessage(), __LINE__); } } return $this->_prepareResults($res); } }
Close