3 if (!defined(
'OX_IS_ADMIN')) {
4 define(
'OX_IS_ADMIN',
true);
7 if (!defined(
'OX_ADMIN_DIR')) {
8 define(
'OX_ADMIN_DIR', dirname(__FILE__));
11 require_once dirname(__FILE__) .
"/../bootstrap.php";
14 $blAjaxCall = (isset($_SERVER[
'HTTP_X_REQUESTED_WITH']) && $_SERVER[
'HTTP_X_REQUESTED_WITH'] ==
'XMLHttpRequest');
19 error_reporting(E_ALL ^ E_NOTICE);
24 $sUtilModule =
$myConfig->getConfigParam(
'sUtilModule');
25 if ($sUtilModule && file_exists(getShopBasePath() .
"modules/" . $sUtilModule)) {
26 include_once getShopBasePath() .
"modules/" . $sUtilModule;
29 $myConfig->setConfigParam(
'blAdmin',
true);
33 header(
"location:index.php");
39 $sContainer = trim(strtolower(basename($sContainer)));
42 $oAjaxComponent =
oxNew($sContainer .
'_ajax');
44 $sFile =
'inc/' . $sContainer .
'.inc.php';
45 if (file_exists($sFile)) {
48 $oAjaxComponent =
new ajaxcomponent($aColumns);
49 $oAjaxComponent->init($aColumns);
51 $oEx =
oxNew(
'oxFileException');
52 $oEx->setMessage(
'EXCEPTION_FILENOTFOUND');
53 $oEx->setFileName($sFile);
59 $oAjaxComponent->setName($sContainer);