Example #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';
	}
Example #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');
	}
Example #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'
					);
		}
	/**
	 * 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');
	}
Example #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();
	}
Example #6
0
	public function __construct($eBaySiteId = 0)
	{
		parent::__construct();

		$this->eBaySiteId = $eBaySiteId;

		$this->engine->LoadLangFile('ebay.api');
	}
	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();
	}
Example #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");
			}
		}
Example #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";
		}
	}
Example #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();
		}
	/**
	 * 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');
	}
Example #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;
		}
	}
Example #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'));
			}
		}
Example #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();
		}
Example #15
0
		public function __construct()
		{
			parent::__construct();
			$this->nestedset = new ISC_NESTEDSET_CATEGORIES;
			$this->categoryAPI = new API_CATEGORY();
		}
Example #16
0
		/**
		 * The constructor.
		 */
		public function __construct()
		{
			parent::__construct();
			$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('formfields');
		}
	public function __construct()
	{
		$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('redirects');

		parent::__construct();
	}
Example #18
0
	public function __construct()
	{
		parent::__construct();
		$this->log = $GLOBALS['ISC_CLASS_LOG'];
		$this->engine->loadLangFile('settings.tax');
	}
	/**
	 * The constructor.
	 */
	public function __construct()
	{
		parent::__construct();
		$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('settings.giftwrapping');
	}
Example #20
0
	public function __construct($searchType)
	{
		parent::__construct();
		$this->_searchType = $searchType;
	}
Example #21
0
	/**
	 * The constructor.
	 */
	public function __construct()
	{
		parent::__construct();
		$this->imageDirectory = GetConfig('ImageDirectory') . '/uploaded_images';
		$this->engine->LoadLangFile('imagemanager');
	}
Example #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;
			}
		}
Example #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');
	}
Example #24
0
	/**
	 * The constructor.
	 */
	public function __construct()
	{
		parent::__construct();
		$this->engine->LoadLangFile('index');
	}
Example #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();
		}
	}
Example #26
0
	/**
	 * The constructor.
	 */
	public function __construct()
	{
		parent::__construct();
		$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('vendor.payments');
	}
Example #27
0
	public function __construct()
	{
		parent::__construct();
		$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('ajax.export');
	}