Exemplo n.º 1
0
	/**
	 * Constructor, set some default values.
	*/
	public function __construct()
	{
		parent::__construct();
		$this->filePath = ISC_BASE_PATH.'/robots.txt';

		$default  = "User-agent: *\n";
		$default .= "Disallow: /account.php\n";
		$default .= "Disallow: /cart.php\n";
		$default .= "Disallow: /checkout.php\n";
		$default .= "Disallow: /finishorder.php\n";
		$default .= "Disallow: /login.php\n";
		$default .= "Disallow: /orderstatus.php\n";
		$default .= "Disallow: /postreview.php\n";
		$default .= "Disallow: /productimage.php\n";
		$default .= "Disallow: /productupdates.php\n";
		$default .= "Disallow: /remote.php\n";
		$default .= "Disallow: /search.php\n";
		$default .= "Disallow: /viewfile.php\n";
		$default .= "Disallow: /wishlist.php\n";
		$default .= "Disallow: /admin/\n";
		$default .= "Disallow: /*sort=\n";
		$this->defaultContent = $default;

		$this->mainUrl = 'index.php?ToDo=ViewEditRobotsTxt';
	}
Exemplo n.º 2
0
	public function __construct()
	{
		parent::__construct();
		// Initialise custom searches functionality
		require_once(dirname(__FILE__).'/class.customsearch.php');
		$GLOBALS['ISC_CLASS_ADMIN_CUSTOMSEARCH'] = new ISC_ADMIN_CUSTOMSEARCH('returns');
	}
Exemplo n.º 3
0
		public function __construct()
		{
			parent::__construct();
			$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('customers');

			if (!gzte11(ISC_MEDIUMPRINT)) {
				$GLOBALS[base64_decode('SGlkZUV4cG9ydA==')] = "none";
				$GLOBALS[base64_decode('SGlkZVN0b3JlQ3JlZGl0')] = "none";
				$GLOBALS[base64_decode('SGlkZUN1c3RvbUZpZWxkcw==')] = "none";
			}

			// Initialize the categories
			$GLOBALS['ISC_CLASS_ADMIN_CATEGORY'] = GetClass('ISC_ADMIN_CATEGORY');

			// Initialise custom searches functionality
			$GLOBALS['ISC_CLASS_ADMIN_CUSTOMSEARCH'] = new ISC_ADMIN_CUSTOMSEARCH('customers');

			$this->customerEntity = new ISC_ENTITY_CUSTOMER();
			$this->groupEntity = new ISC_ENTITY_CUSTOMERGROUP();
			$this->shippingEntity = new ISC_ENTITY_SHIPPING();

			$this->shippingMap = array(
						'FirstName' => 'shipfirstname',
						'LastName' => 'shiplastname',
						'CompanyName' => 'shipcompany',
						'AddressLine1' => 'shipaddress1',
						'AddressLine2' => 'shipaddress2',
						'City' => 'shipcity',
						'Country' => 'shipcountry',
						'State' => 'shipstate',
						'Zip' => 'shipzip',
						'Phone' => 'shipphone'
					);
		}
Exemplo n.º 4
0
	/**
	 * Constructs a new shopping comparison "controller" and sets defaults.
	 *
	 * @return Isc_Admin_ShoppingComparison
	 */
	public function __construct()
	{
		parent::__construct();

		// parse the language file
		$this->engine->loadLangFile('shoppingcomparison');
	}
Exemplo n.º 5
0
	/**
	 * The constructor.
	 */
	public function __construct()
	{
		parent::__construct();
		$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('vendors');
		$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('settings.shipping');

		$GLOBALS['CurrentVendor'] = $GLOBALS['ISC_CLASS_ADMIN_AUTH']->GetVendorId();
	}
Exemplo n.º 6
0
	public function __construct($eBaySiteId = 0)
	{
		parent::__construct();

		$this->eBaySiteId = $eBaySiteId;

		$this->engine->LoadLangFile('ebay.api');
	}
Exemplo n.º 7
0
	public function __construct()
	{
		parent::__construct();

		$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('settings.checkout');

		include_once(ISC_BASE_PATH . '/lib/form.php');
		$GLOBALS['ISC_CLASS_FORM'] = new ISC_FORM();
	}
Exemplo n.º 8
0
		public function __construct()
		{
			parent::__construct();
			if(isset($_REQUEST['query'])) {
				$this->query = $GLOBALS['ISC_CLASS_DB']->Quote($_REQUEST['query']);
			}
			else {
				header("Location:index.php");
			}
		}
Exemplo n.º 9
0
	public function __construct()
	{
		parent::__construct();
		$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('logs');

		if(!gzte11(ISC_LARGEPRINT)) {
			$GLOBALS[base64_decode('SGlkZVN0YWZmTG9ncw==')] = "none";
			$GLOBALS[base64_decode('SGlkZUFkbWluTG9ncw==')] = "none";
		}
	}
Exemplo n.º 10
0
		/**
		 * The constructor.
		 */
		public function __construct()
		{
			parent::__construct();
			$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('orders');

			// Initialise custom searches functionality
			require_once(dirname(__FILE__).'/class.customsearch.php');
			$GLOBALS['ISC_CLASS_ADMIN_CUSTOMSEARCH'] = new ISC_ADMIN_CUSTOMSEARCH('orders');

			$this->orderEntity = new ISC_ENTITY_ORDER();
			$this->customerEntity = new ISC_ENTITY_CUSTOMER();
		}
Exemplo n.º 11
0
	/**
	 * The constructor.
	 */
	public function __construct()
	{
		parent::__construct();
		if(isset($_REQUEST['vendorId'])) {
			$GLOBALS['VendorIdAdd'] = '&vendorId='.(int)$_REQUEST['vendorId'];
		}
		else {
			$GLOBALS['VendorIdAdd'] = '';
		}

		$GLOBALS['CurrentVendor'] = $GLOBALS['ISC_CLASS_ADMIN_AUTH']->GetVendorId();
		$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('settings.shipping');
	}
Exemplo n.º 12
0
	/**
	 * The constructor.
	 */
	public function __construct()
	{
		parent::__construct();

		$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('backups');

		if(!gzte11(ISC_MEDIUMPRINT) || GetConfig('DisableBackupSettings')) {
			exit;
		}

		// If being run by cron, we don't want to show any output
		if(PHP_SAPI == "cli") {
			$this->Verbose = false;
		}
	}
Exemplo n.º 13
0
		/**
		* Constructor
		* Work out which addon we're running so we can show it in the breadcrum trail amongst other things
		*
		* @return Void
		*/
		public function __construct()
		{
			parent::__construct();

			if(isset($_REQUEST['addon'])) {
				$addon_folder = str_replace("addon_", "", $_REQUEST['addon']);

				if(!GetAddonsModule($this->_addon, strtolower($addon_folder))) {
					$this->_BadAddon(sprintf(GetLang('InvalidAddon'), $addon_folder));
				}
			}
			else {
				// No addon specified
				$this->_BadAddon(GetLang('NoAddonSpecified'));
			}
		}
Exemplo n.º 14
0
		/**
		 * The constructor.
		 */
		public function __construct()
		{
			parent::__construct();
			$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('products');
			$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('optimizer');
			$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->stylesheets[] = 'Styles/products.css';

			// set the database member object
			$this->db = $GLOBALS['ISC_CLASS_DB'];
			$this->engine = &$GLOBALS['ISC_CLASS_ADMIN_ENGINE'];

			// Initialise custom searches functionality
			require_once(dirname(__FILE__).'/class.customsearch.php');
			$GLOBALS['ISC_CLASS_ADMIN_CUSTOMSEARCH'] = new ISC_ADMIN_CUSTOMSEARCH('products');
			$GLOBALS['WeightMeasurement'] = GetConfig('WeightMeasurement');
			$GLOBALS['LengthMeasurement'] = GetConfig('LengthMeasurement');

			$this->productEntity = new ISC_ENTITY_PRODUCT();
		}
Exemplo n.º 15
0
		public function __construct()
		{
			parent::__construct();
			$this->nestedset = new ISC_NESTEDSET_CATEGORIES;
			$this->categoryAPI = new API_CATEGORY();
		}
Exemplo n.º 16
0
		/**
		 * The constructor.
		 */
		public function __construct()
		{
			parent::__construct();
			$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('formfields');
		}
Exemplo n.º 17
0
	public function __construct()
	{
		$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('redirects');

		parent::__construct();
	}
Exemplo n.º 18
0
	public function __construct()
	{
		parent::__construct();
		$this->log = $GLOBALS['ISC_CLASS_LOG'];
		$this->engine->loadLangFile('settings.tax');
	}
Exemplo n.º 19
0
	/**
	 * The constructor.
	 */
	public function __construct()
	{
		parent::__construct();
		$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('settings.giftwrapping');
	}
Exemplo n.º 20
0
	public function __construct($searchType)
	{
		parent::__construct();
		$this->_searchType = $searchType;
	}
Exemplo n.º 21
0
	/**
	 * The constructor.
	 */
	public function __construct()
	{
		parent::__construct();
		$this->imageDirectory = GetConfig('ImageDirectory') . '/uploaded_images';
		$this->engine->LoadLangFile('imagemanager');
	}
Exemplo n.º 22
0
		/**
		 * The constructor.
		 */
		public function __construct()
		{
			parent::__construct();
			if(!gzte11(ISC_LARGEPRINT)) {
				$GLOBALS['HideStaffLogs'] = "none";
			}

			if (isset($_REQUEST['currentTab'])) {
				$GLOBALS['CurrentTab'] = (int)$_REQUEST['currentTab'];
			} else {
				$GLOBALS['CurrentTab'] = 0;
			}
		}
Exemplo n.º 23
0
	/**
	 * The constructor.
	 */
	public function __construct()
	{
		parent::__construct();
		require_once(ISC_BASE_PATH.'/lib/class.file.php');
		$this->cacheBaseDir = ISC_BASE_PATH.'/cache/ebaydata';
		$this->fileHandler = new FileClass();
		$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('ebay');
	}
Exemplo n.º 24
0
	/**
	 * The constructor.
	 */
	public function __construct()
	{
		parent::__construct();
		$this->engine->LoadLangFile('index');
	}
Exemplo n.º 25
0
	/**
	 * Runs the import actions
	 */

	public function __construct($customFields=array())
	{
		parent::__construct();
		$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('batch.importer');

		define("ISC_TMP_IMPORT_DIRECTORY", ISC_CACHE_DIRECTORY."/import");

		// Set the import session

		if(!isset($_REQUEST['ImportSession'])) {
			$_REQUEST['ImportSession'] = md5(uniqid(rand(), true).time());
		} else {
			require_once ISC_TMP_IMPORT_DIRECTORY . "/session-" . $_REQUEST['ImportSession'];
			if (isset($ImportSession)) {
				$this->ImportSession = $ImportSession;
			}
		}

		$this->ServerImportDirectory = dirname(__FILE__)."/../../import";

		/**
		 * Set the custom fields
		 */
		if (!is_array($customFields)) {
			$customFields = array();
		}

		$this->customFields = $customFields;

		if (!is_dir(ISC_TMP_IMPORT_DIRECTORY)) {
			isc_mkdir(ISC_TMP_IMPORT_DIRECTORY);
		}

		$GLOBALS['ToDo'] = $_REQUEST['ToDo'];

		if(!isset($_REQUEST['Step'])) {
			$_REQUEST['Step'] = 1;
		}
		switch($_REQUEST['Step'])
		{
			case 2:
				$this->_ImportStep2();
				break;
			case 3:
				$this->_ImportStep3();
				break;
			case 4:
				$this->_Import();
				break;
			case 5:
				$this->_GenerateImportSummary();
				break;
			case 'ImportFrame':
				$this->_ImportStatusFrame();
				break;
			case "ViewReport":
				$this->_GenerateReport($_REQUEST['ReportType']);
			default:
				$this->_ImportStep1();
		}
	}
Exemplo n.º 26
0
	/**
	 * The constructor.
	 */
	public function __construct()
	{
		parent::__construct();
		$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('vendor.payments');
	}
Exemplo n.º 27
0
	public function __construct()
	{
		parent::__construct();
		$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('ajax.export');
	}