// remove deprecated PS_ADMIN_DIR by _PS_ADMIN_DIR_

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8666 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-09-20 15:53:57 +00:00
parent b9e7daf0b7
commit b45dd02452
79 changed files with 339 additions and 339 deletions
@@ -6,16 +6,15 @@
* @since 22/May/2007
*
*/
define('PS_ADMIN_DIR', getcwd());
require_once('../../config/config.inc.php');
require_once('../init.php');
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php");
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php");
@ob_start();
displayArray($_POST);
writeInfo(@ob_get_clean());
writeInfo(@ob_get_clean());
echo "{";
$error = "";
$info = "";
$info = "";
/* $_POST['new_folder'] = substr(md5(time()), 1, 5);
$_POST['currentFolderPath'] = "../../uploaded/";*/
if(CONFIG_SYS_VIEW_ONLY || !CONFIG_OPTIONS_NEWFOLDER)
@@ -45,12 +44,12 @@
$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 "ctime";
case "ctime";
case "mtime":
case "atime":
$v = date(DATE_TIME_FORMAT, $v);
@@ -61,10 +60,10 @@
case 'cssClass':
$v = 'folderEmpty';
break;
}
}
$info .= sprintf(", %s:'%s'", $k, $v);
}
}else
}else
{
$error = ERR_FOLDER_CREATION_FAILED;
}