mkdir(addTrailingSlash($_POST['currentFolderPath']) . $_POST['new_folder'], 0777)) { include_once(CLASS_MANAGER); $manager = new manager(addTrailingSlash($_POST['currentFolderPath']) . $_POST['new_folder'], false); $pathInfo = $manager->getFolderInfo(addTrailingSlash($_POST['currentFolderPath']) . $_POST['new_folder']); foreach($pathInfo as $k=>$v) { switch ($k) { case "path"; $info .= sprintf(", %s:'%s'", 'realpath', $v); $v = transformFilePath($v); break; case "ctime"; case "mtime": case "atime": $v = date(DATE_TIME_FORMAT, $v); break; } $info .= sprintf(", %s:'%s'", $k, $v); } $info .= sprintf(", url:'%s'", appendQueryString(CONFIG_URL_HOME, "path=" . $pathInfo['path'] . "&" . makeQueryString(array('path')))); $info .= sprintf(", tip:'%s'", $k, TIP_FOLDER_GO_DOWN); $info .= sprintf(", tipedit:'%s'", $k, TIP_DOC_RENAME); }else { $error = ERR_FOLDER_CREATION_FAILED; } //$error = "For security reason, folder creation function has been disabled."; } echo "error:'" . $error . "'"; echo $info; echo "}"; ?>