
oto moj kod
<?php function usun_usera($id) { $login = $r['login']; } $this->_usun_users_form(); } } ?>
Aha dodam ze na serwerze jest katalog danego usera a w nim są jeszcze dwa katalogi i kilka plików

<?php function usun_usera($id) { $login = $r['login']; } $this->_usun_users_form(); } } ?>
<?php #Pseudokod function delete($sToDeletePath) { } else { delete($sToDeletePath); } } } ?>
<?php /** * Delete Files * * Deletes all files contained in the supplied directory path. * Files must be writable or owned by the system in order to be deleted. * If the second parameter is set to TRUE, any directories contained * within the supplied base directory will be nuked as well. * * @access public * @param string path to file * @param bool whether to delete any directories found in the path * @return bool */ function delete_files($path, $del_dir = FALSE, $level = 0) { // Trim the trailing slash return; { if ($filename != "." and $filename != "..") { { $level++; delete_files($path.'/'.$filename, $del_dir, $level); } else { } } } if ($del_dir == TRUE AND $level > 0) { } } ?>
<?php function DeleteFromDirectory ($Dir) { $items = scandir($Dir); { foreach($items as $file) { { } { DeleteFromDirectory ($Dir . '/' . $file); } } } } ?>
<?php function _usun_users_form() { $ilosc = $r['ile']; $start = (int)$_GET['p']; $start *= 70; echo ' <tr> <td>'.$login.'</td> <td>'.($owner?'tak':'nie').'</td> <td><a href="index.php?cmd=usun_usera&id='.$id.'">usuń</a></td> </tr> '; } for($i=1; $i<($ilosc/70); $i++) { echo ' <a href="?k=usun_users&p='.$i.'">'.$i.'</a> '; } } function usun_usera($id) { $login = $r['login']; } $this->_usun_users_form(); } } ?>
<?php function DeleteFromDirectory ( $Dir ) { $items = scandir( $Dir ); foreach( $items as $file ) { } DeleteFromDirectory ( $Dir . '/' . $file ); } } } } } function _usun_users_form() { $ilosc = $r['ile']; $start = ( int )$_GET['p']; $start *= 70; } echo ' <tr> <td>' . $login . '</td> <td>' . ( $owner?'tak':'nie' ) . '</td> <td><a href="index.php?cmd=usun_usera&id=' . $id . '">usuń</a></td> </tr> '; } for( $i = 1; $i < ( $ilosc / 70 ); $i++ ) { echo ' <a href="?k=usun_users&p=' . $i . '">' . $i . '</a> '; } } function usun_usera( $id ) { $login = $r['login']; DeleteFromDirectory ( 'users/' . $login ); $this->_usun_users_form(); } ?>
<?php function DeleteFromDirectory ( $Dir ) { $items = scandir( $Dir ); foreach( $items as $file ) { } DeleteFromDirectory ( $Dir . '/' . $file ); } } } } } function _usun_users_form() { $ilosc = $r['ile']; $start = ( int )$_GET['p']; $start *= 70; } echo ' <tr> <td>' . $login . '</td> <td>' . ( $owner?'tak':'nie' ) . '</td> <td><a href="index.php?cmd=usun_usera&id=' . $id . '">usuń</a></td> </tr> '; } for( $i = 1; $i < ( $ilosc / 70 ); $i++ ) { echo ' <a href="?k=usun_users&p=' . $i . '">' . $i . '</a> '; } } function usun_usera( $id ) { $login = $r['login']; DeleteFromDirectory ( 'users/' . $login ); $this->_usun_users_form(); } } ?>