0 && is_numeric($_POST['cpd']) ) { $fullpath = $al3x_set['updir'] . '/' . $_POST['uid'] . '/' . substr($_SESSION[$_POST['akey']][$_POST['cpd']]['path'] , 1); if (al3x_create_dir($_POST['newdir'], $fullpath ) ) { al3x_notify('Success: Directory created!'); } else { al3x_notify('Error: Directory could not be created!', 'error'); } } elseif ( isset($_GET['action']) && $_GET['action'] == 'delete' && is_numeric($_GET['uid']) ) { if ( is_file($al3x_set['updir'] . '/' . $_GET['uid'] . '/' . $_GET['delpath']) ) { if (unlink($al3x_set['updir'] . '/' . $_GET['uid'] . '/' . $_GET['delpath']) ) al3x_notify('Success: File deleted!'); else al3x_notify('Error: File could not be deleted!', 'error'); } elseif ( is_dir($al3x_set['updir'] . '/' . $_GET['uid'] . '/' . $_GET['delpath']) ) { if (rmdir($al3x_set['updir'] . '/' . $_GET['uid'] . '/' . $_GET['delpath'])) al3x_notify('Success: Directory deleted!'); else al3x_notify('Error: Directory could not be deleted, maybe directory is not empty!', 'error'); } } ?>