Location: PHPKode > projects > staticDimension > MalphasWats-staticDimension-8871ab1/controlPanel/createDirectory.php
<?php
	session_start();
	//logged in?
	$user = $_SESSION['user'];
	if(!isset($user))
	{
		header('Location: ./'); exit;
	}
	
	$name = $_POST['name'];
	if($_POST['dir'] != ''){ $d = $_POST['dir']; }
	
	mkdir("../files/$d$name");

	header("Location: ./?file&dir=$d$name/");
?>
Return current item: staticDimension