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 /
doc /
Tree /
docs /
TreeEditor /
[ HOME SHELL ]
Name
Size
Permission
Action
closedFolder.gif
670
B
-rw-r--r--
config.xml
1.43
KB
-rw-r--r--
copy.gif
161
B
-rw-r--r--
cut.gif
128
B
-rw-r--r--
delete.gif
128
B
-rw-r--r--
folder.gif
646
B
-rw-r--r--
index.php
7.81
KB
-rw-r--r--
index.tpl
6.14
KB
-rw-r--r--
mysql_db.sql
1.9
KB
-rw-r--r--
openFolder.gif
683
B
-rw-r--r--
paste.gif
214
B
-rw-r--r--
treeClass.php
2.7
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : treeClass.php
<?php // // $Log$ // Revision 1.1 2002/08/23 17:18:28 cain // - a good example to show how the tree works // // require_once('Tree/Memory.php'); class treeClass extends Tree_Memory { function getPathAsString( $id ) { return preg_replace('/Root\s-\s/','',parent::getPathAsString( $id , ' - ' )); } /** * just a wrapper to be compatible to vp_DB_Common * */ function &getAll() { return $this->getNode(); } /** * this is only for the getAllVisible it is called by the walk-method * to retreive only the nodes that shall be visible * * @param array this is the node to check * @return mixed an array if the node shall be visible * nothing if the node shall not be shown */ function _walkForGettingVisibleFolders( $node ) { global $session; if( $node['id']==$this->getRootId() ) return $node; $parentsIds = $this->getParentsIds($node['id']); if( !@$this->_unfoldAll ) { foreach( $parentsIds as $aParentId ) { if( !@$session->temp->openProjectFolders[$aParentId] && $aParentId!=$node['id']) // dont check the node itself, since we only look if the parents are openend, then this $node is shown! return false; } } else { // if all folders shall be unfolded save the unfold-ids in the session $session->temp->openProjectFolders[$node['id']] = $node['id']; } return $node; } /** * this returns all the visible projects, the folders returned * are those which are unfolded, the explorer-like way * it also handles the 'unfold' parameter, which we simply might be given * so the unfold/fold works on every page that shows only visible folders * i think that is really cool :-) * * @return array only those folders which are visible */ function getAllVisible() { $this->unfoldHandler(); return $this->walk( array(&$this,'_walkForGettingVisibleFolders') , 0 , 'ifArray' ); } function unfoldHandler() { global $session; if( @$_REQUEST['unfoldAll'] ) { $this->_unfoldAll = true; } if( @$_REQUEST['unfold'] ) { if( @$session->temp->openProjectFolders[$_REQUEST['unfold']] ) { unset($session->temp->openProjectFolders[$_REQUEST['unfold']]); } else { $session->temp->openProjectFolders[$_REQUEST['unfold']] = $_REQUEST['unfold']; } } } } ?>
Close