// fix ajax file manager error with undefined employee
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8602 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
224b55c3c2
commit
70a130854c
21 files changed
+27
-8
No files matched your search
@@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php");
|
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php");
|
||||||
|
define('PS_ADMIN_DIR', getcwd());
|
||||||
require_once('../../config/config.inc.php');
|
require_once('../../config/config.inc.php');
|
||||||
require_once('../init.php');
|
require_once('../init.php');
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
* @since 22/May/2007
|
* @since 22/May/2007
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
define('PS_ADMIN_DIR', getcwd());
|
||||||
require_once('../../config/config.inc.php');
|
require_once('../../config/config.inc.php');
|
||||||
require_once('../init.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");
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
* @since 22/April/2007
|
* @since 22/April/2007
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
define('PS_ADMIN_DIR', getcwd());
|
||||||
require_once('../../config/config.inc.php');
|
require_once('../../config/config.inc.php');
|
||||||
require_once('../init.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");
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
* @since 22/April/2007
|
* @since 22/April/2007
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
define('PS_ADMIN_DIR', getcwd());
|
||||||
require_once('../../config/config.inc.php');
|
require_once('../../config/config.inc.php');
|
||||||
require_once('../init.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");
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
* @since 22/May/2007
|
* @since 22/May/2007
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
define('PS_ADMIN_DIR', getcwd());
|
||||||
require_once('../../config/config.inc.php');
|
require_once('../../config/config.inc.php');
|
||||||
require_once('../init.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");
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
* @since 22/May/2007
|
* @since 22/May/2007
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
define('PS_ADMIN_DIR', getcwd());
|
||||||
require_once('../../config/config.inc.php');
|
require_once('../../config/config.inc.php');
|
||||||
require_once('../init.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");
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
* @since 22/May/2007
|
* @since 22/May/2007
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
define('PS_ADMIN_DIR', getcwd());
|
||||||
require_once('../../config/config.inc.php');
|
require_once('../../config/config.inc.php');
|
||||||
require_once('../init.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");
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
<?
|
<?
|
||||||
include_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php");
|
include_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php");
|
||||||
require_once('../../config/config.inc.php');
|
define('PS_ADMIN_DIR', getcwd());
|
||||||
require_once('../init.php');
|
require_once('../../config/config.inc.php');
|
||||||
$error = '';
|
require_once('../init.php');
|
||||||
$fileMoved = array();
|
$error = '';
|
||||||
$unmovedDocDueToSamePath = array();
|
$fileMoved = array();
|
||||||
|
$unmovedDocDueToSamePath = array();
|
||||||
if(CONFIG_SYS_VIEW_ONLY || (!CONFIG_OPTIONS_CUT && !CONFIG_OPTIONS_COPY))
|
if(CONFIG_SYS_VIEW_ONLY || (!CONFIG_OPTIONS_CUT && !CONFIG_OPTIONS_COPY))
|
||||||
{
|
{
|
||||||
$error = SYS_DISABLED;
|
$error = SYS_DISABLED;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
* @since 22/May/2007
|
* @since 22/May/2007
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
define('PS_ADMIN_DIR', getcwd());
|
||||||
require_once('../../config/config.inc.php');
|
require_once('../../config/config.inc.php');
|
||||||
require_once('../init.php');
|
require_once('../init.php');
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
define('PS_ADMIN_DIR', getcwd());
|
||||||
require_once('../../config/config.inc.php');
|
require_once('../../config/config.inc.php');
|
||||||
require_once('../init.php');
|
require_once('../init.php');
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
define('PS_ADMIN_DIR', getcwd());
|
||||||
require_once('../../config/config.inc.php');
|
require_once('../../config/config.inc.php');
|
||||||
require_once('../init.php');
|
require_once('../init.php');
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
define('PS_ADMIN_DIR', getcwd());
|
||||||
require_once('../../config/config.inc.php');
|
require_once('../../config/config.inc.php');
|
||||||
require_once('../init.php');
|
require_once('../init.php');
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
define('PS_ADMIN_DIR', getcwd());
|
||||||
require_once('../../config/config.inc.php');
|
require_once('../../config/config.inc.php');
|
||||||
require_once('../init.php');
|
require_once('../init.php');
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
define('PS_ADMIN_DIR', getcwd());
|
||||||
require_once('../../config/config.inc.php');
|
require_once('../../config/config.inc.php');
|
||||||
require_once('../init.php');
|
require_once('../init.php');
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
define('PS_ADMIN_DIR', getcwd());
|
||||||
require_once('../../config/config.inc.php');
|
require_once('../../config/config.inc.php');
|
||||||
require_once('../init.php');
|
require_once('../init.php');
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
define('PS_ADMIN_DIR', getcwd());
|
||||||
require_once('../../config/config.inc.php');
|
require_once('../../config/config.inc.php');
|
||||||
require_once('../init.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");
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
define('PS_ADMIN_DIR', getcwd());
|
||||||
require_once('../../config/config.inc.php');
|
require_once('../../config/config.inc.php');
|
||||||
require_once('../init.php');
|
require_once('../init.php');
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
define('PS_ADMIN_DIR', getcwd());
|
||||||
require_once('../../config/config.inc.php');
|
require_once('../../config/config.inc.php');
|
||||||
require_once('../init.php');
|
require_once('../init.php');
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
define('PS_ADMIN_DIR', getcwd());
|
||||||
require_once('../../config/config.inc.php');
|
require_once('../../config/config.inc.php');
|
||||||
require_once('../init.php');
|
require_once('../init.php');
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
define('PS_ADMIN_DIR', getcwd());
|
||||||
require_once('../../config/config.inc.php');
|
require_once('../../config/config.inc.php');
|
||||||
require_once('../init.php');
|
require_once('../init.php');
|
||||||
/**
|
/**
|
||||||
|
|||||||
+1
-1
@@ -32,7 +32,7 @@ $context = Context::getContext();
|
|||||||
if (isset($_GET['logout']))
|
if (isset($_GET['logout']))
|
||||||
$context->employee->logout();
|
$context->employee->logout();
|
||||||
|
|
||||||
if (!$context->employee->isLoggedBack())
|
if (!isset($context->employee) || !$context->employee->isLoggedBack())
|
||||||
Tools::redirectAdmin('login.php?redirect='.$_SERVER['REQUEST_URI']);
|
Tools::redirectAdmin('login.php?redirect='.$_SERVER['REQUEST_URI']);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user