30 ) { header("Location: error.php"); exit(); } // Test list existence if( !is_dir("$lists_path/$domain/$list_name") ) { header("Location: error.php"); exit(); } if (!isset($_SESSION["auth"]) || $_SESSION["auth"] != 1) { // If not authenticated, then redirect to login page header("Location: login.php"); exit(); } if(!empty($list_name)) { shell_exec("rm -rf $lists_path/$domain/$list_name"); header("Location: index.php"); exit(); } ?>