예제 #1
0
	public function HandleToDo()
	{
		/**
		 * Convert the input character set from the hard coded UTF-8 to their
		 * selected character set
		 */
		convertRequestInput();

		GetLib('class.json');

		$what = isc_strtolower(@$_REQUEST['w']);

		switch ($what) {
			case "loadlinker":
				if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->IsLoggedIn()) {
					$this->loadLinker();
				}
				exit;
				break;
			case "search":
				if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->IsLoggedIn()) {
					$this->search();
				}
				exit;
				break;
		}
	}
 public function HandleToDo()
 {
     /**
      * Convert the input character set from the hard coded UTF-8 to their
      * selected character set
      */
     convertRequestInput();
     $what = isc_strtolower(@$_REQUEST['w']);
     switch ($what) {
         case "getformfieldgrid":
             $this->getFormFieldGrid();
             break;
         case 'resortformfieldgrid':
             $this->resortFormFieldGrid();
             break;
         case 'getfieldsetuppopup':
             $this->getFieldSetupPopup();
             break;
         case 'addfieldsetuppopup':
             $this->addFieldSetupPopup();
             break;
         case 'copyfieldsetuppopup':
             $this->copyFieldSetupPopup();
             break;
         case 'deletefield':
             $this->deleteField();
             break;
         case 'deletemultifield':
             $this->deleteMultiField();
             break;
         case 'savefieldsetup':
             $this->saveFieldSetup();
             break;
     }
 }
 public function HandleToDo()
 {
     /**
      * Convert the input character set from the hard coded UTF-8 to their
      * selected character set
      */
     convertRequestInput();
     $what = isc_strtolower(@$_REQUEST['w']);
     switch ($what) {
         case "getallbrands":
             $this->GetAllBrands();
             break;
         case "getseries":
             $this->GetSeries();
             break;
             //zcs=>
         //zcs=>
         case "getseriesoption":
             $this->GetSeriesOption();
             break;
         case "getsubcategoryoption":
             $this->GetSubCategoryOption();
             break;
             //<=zcs
         //<=zcs
         case "getbrandseries":
             $this->GetBrandSeries();
             break;
         default:
             break;
     }
 }
 public function HandleToDo()
 {
     /**
      * Convert the input character set from the hard coded UTF-8 to their
      * selected character set
      */
     convertRequestInput();
     $what = isc_strtolower(@$_REQUEST['w']);
     switch ($what) {
         case "addcustomfield":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Create_Product) || $GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Edit_Products)) {
                 $this->addCustomField();
             }
             exit;
             break;
         case "addproductfield":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Products)) {
                 $this->addProductField();
             }
             exit;
             break;
         case 'viewaffectedvariations':
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Products)) {
                 $this->viewAffectedVariations();
             }
             exit;
             break;
     }
 }
 public function HandleToDo()
 {
     /**
      * Convert the input character set from the hard coded UTF-8 to their
      * selected character set
      */
     convertRequestInput();
     $what = isc_strtolower(@$_REQUEST['w']);
     switch ($what) {
         case "getcheckoutfieldgrid":
             $this->getCheckoutFieldGrid();
             break;
         case 'resortcheckoutfieldgrid':
             $this->resortCheckoutFieldGrid();
             break;
         case 'getwidgetsetuppopup':
             $this->getWidgetSetupPopup();
             break;
         case 'addwidgetsetuppopup':
             $this->addWidgetSetupPopup();
             break;
         case 'deletewidget':
             $this->deleteWidget();
             break;
         case 'deletemultiwidget':
             $this->deleteMultiWidget();
             break;
         case 'savewidgetsetup':
             $this->saveWidgetSetup();
             break;
     }
 }
예제 #6
0
	public function __construct()
	{
		/**
		 * Convert the input character set from the hard coded UTF-8 to their
		 * selected character set
		 */
		convertRequestInput();

		$this->template = Interspire_Template::getInstance('admin');
		$this->db = $GLOBALS['ISC_CLASS_DB'];
		$this->auth = getClass('ISC_ADMIN_AUTH');
		$this->engine = getClass('ISC_ADMIN_ENGINE');
		parent::__construct();
	}
 public function HandleToDo()
 {
     /**
      * Convert the input character set from the hard coded UTF-8 to their
      * selected character set
      */
     convertRequestInput();
     $what = isc_strtolower(@$_REQUEST['w']);
     switch ($what) {
         case "getselectedstates":
             if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Edit_Customers) || $GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Add_Customer)) {
                 $this->getSelectedStates();
             }
             exit;
             break;
         case "checkemailuniqueness":
             if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Edit_Customers) || $GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Add_Customer)) {
                 $this->checkEmailUniqueness();
             }
             exit;
             break;
         case 'viewcustomernotes':
             $this->ViewCustomerNotes();
             break;
         case 'savecustomernotes':
             $this->SaveCustomerNotes();
             break;
         case 'viewordernotes':
             $this->ViewOrderNotes();
             break;
         case 'saveordernotes':
             $this->SaveOrderNotes();
             break;
             //zcs=>
         //zcs=>
         case 'viewphotonotes':
             $this->ViewPhotoNotes();
             break;
         case 'savephotonotes':
             $this->SavePhotoNotes();
             break;
         case 'getphotonotes':
             $this->GetPhotoNotes();
             break;
             //<=zcs
     }
 }
예제 #8
0
	public function HandleToDo()
	{
		/**
		 * Convert the input character set from the hard coded UTF-8 to their
		 * selected character set
		 */
		convertRequestInput();

		GetLib('class.json');

		$action = isc_strtolower(@$_REQUEST['w']);

		if(method_exists($this, $action)) {
			$this->$action();
			die();
		}
	}
예제 #9
0
 /**
  * Handle the incoming action.
  */
 public function HandleToDo()
 {
     /**
      * Convert the input character set from the hard coded UTF-8 to their
      * selected character set
      */
     convertRequestInput();
     $what = isc_strtolower(@$_REQUEST['w']);
     if (!$GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Vendors)) {
         exit;
     }
     switch ($what) {
         case "getvendorpaymentdetails":
             $this->GetVendorPaymentDetails();
             break;
     }
 }
예제 #10
0
	public function HandleToDo()
	{
		/**
		 * Convert the input character set from the hard coded UTF-8 to their
		 * selected character set
		 */
		convertRequestInput();

		GetLib('class.json');

		$action = isc_strtolower(@$_REQUEST['w']);

		if (!$GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Redirects)) {
			ISC_JSON::output(GetLang('NoPermission'));
			die();
		}

		if(method_exists($this, $action)) {
			$this->$action();
			die();
		}

		ISC_JSON::output(GetLang('InvalidAction'));
	}
예제 #11
0
 public function HandleToDo()
 {
     /**
      * Convert the input character set from the hard coded UTF-8 to their
      * selected character set
      */
     convertRequestInput();
     $what = isc_strtolower(@$_REQUEST['w']);
     switch ($what) {
         case 'getpageparentoptions':
             $this->GetPageParentOptions();
             break;
         case "getshippingmoduleproperties":
             $this->GetShippingModuleProperties();
             break;
         case "getrulemoduleproperties":
             $this->GetRuleModuleProperties();
             break;
         case "multicountrystates":
             $this->GetMultiCountryStates();
             break;
         case "saveversion":
             $this->SaveVersion();
             break;
         case "testsmtpsettings":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Settings)) {
                 $this->TestSMTPSettings();
             }
             break;
         case "updatecustomergroup":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Edit_Customers)) {
                 $this->UpdateCustomerGroup();
             }
             break;
         case "clearcreditcarddetails":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Orders)) {
                 $this->ClearCreditCardDetails();
             }
             break;
         case "getvariationcombinations":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Create_Product)) {
                 $this->GetVariationCombinationsTable();
             }
             break;
         case "customfieldsformailinglist":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Newsletter_Subscribers)) {
                 $this->GetCustomFieldsForMailingList();
             }
             break;
         case "textcustomfieldsformailinglist":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Newsletter_Subscribers)) {
                 $this->GetTextCustomFieldsForMailingList();
             }
             break;
         case "relatedproducts":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Products)) {
                 $this->GetRelatedProducts();
             }
             break;
         case "inventorylevels":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Products)) {
                 $this->GetInventoryLevels();
             }
             break;
         case "orderquickview":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Orders)) {
                 $this->GetOrderQuickView();
             }
             break;
         case "countrystates":
             $this->GetCountryStates();
             break;
         case "addorderprodsearch":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Orders)) {
                 $this->GetMatchingProducts();
             }
             break;
         case "customerorders":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Orders)) {
                 $this->GetCustomerOrders();
             }
             break;
         case "updateorderstatus":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Edit_Orders)) {
                 $this->UpdateOrderStatus();
             }
             break;
         case "updatetrackingno":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Edit_Orders)) {
                 $this->UpdateTrackingNo();
             }
             break;
         case "updateperproductinventorylevels":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Edit_Products)) {
                 $this->UpdatePerProductInventoryLevels();
             }
             break;
         case "updateperoptioninventorylevels":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Edit_Products)) {
                 $this->UpdatePerOptionInventoryLevels();
             }
             break;
         case "testftpsettings":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Backups)) {
                 $this->TestFTPSettings();
             }
             break;
         case "checknewtemplates":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Templates)) {
                 $this->CheckNewTemplates();
             }
             break;
         case "downloadtemplatefile":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Templates)) {
                 $this->DownloadTemplateFile();
             }
             break;
         case "checktemplatekey":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Templates)) {
                 $this->CheckTemplateKey();
             }
             break;
         case "checktemplateversion":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Templates)) {
                 $this->CheckTemplateVersion();
             }
             break;
         case "saveproductdownload":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Products)) {
                 $this->SaveProductDownload();
             }
             break;
         case "deleteproductdownload":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Products)) {
                 $this->DeleteProductDownload();
             }
             break;
         case "editproductdownload":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Products)) {
                 $this->EditProductDownload();
             }
             break;
         case "updatepageorders":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Pages)) {
                 $this->UpdatePageOrders();
             }
             break;
         case "updatecategoryorders":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Categories)) {
                 $this->UpdateCategoryOrders();
             }
             break;
         case "updatediscountorder":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Pages)) {
                 $this->UpdateDiscountOrder();
             }
             break;
         case "savequickcategory":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Categories)) {
                 $this->SaveNewQuickCategory();
             }
             break;
         case "approvereviews":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Reviews)) {
                 $this->ApproveReviews();
             }
             break;
         case "disapprovereviews":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Reviews)) {
                 $this->DisapproveReviews();
             }
             break;
         case "deletereviews":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Reviews)) {
                 $this->DeleteReviews();
             }
             break;
         case "popupproductsearch":
             $this->PopupProductSearch();
             break;
         case "popupproductsort":
             $this->PopupProductSort();
             break;
         case "popupproductlist":
             $this->PopupProductList();
             break;
         case "loginfoquickview":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Products)) {
                 $this->LogInfoQuickView();
             }
             break;
         case "generateapikey":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Edit_Users) || $GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Add_User)) {
                 $this->GenerateNewAPIKey();
             }
             break;
         case "returnquickview":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Returns)) {
                 $this->ReturnQuickView();
             }
             break;
         case "updatereturnnotes":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Returns)) {
                 $this->UpdateReturnNotes();
             }
             break;
         case "updatereturnstatus":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Returns)) {
                 $this->UpdateReturnStatus();
             }
             break;
         case "updatestorecredit":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Returns)) {
                 $this->UpdateStoreCredit();
             }
             break;
         case "giftcertificatequickview":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_GiftCertificates)) {
                 $this->GiftCertificateQuickView();
             }
             break;
         case "updategiftcertificatestatus":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_GiftCertificates)) {
                 $this->UpdateGiftCertificateStatus();
             }
             break;
         case "toggledesignmode":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Templates)) {
                 $this->ToggleDesignMode();
             }
             break;
         case "updatelanguage":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Templates)) {
                 $this->UpdateLanguage();
             }
             break;
         case "validateaddonkey":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Addons)) {
                 $this->CheckAddonKey();
             }
             break;
         case "downloadaddonzip":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Addons)) {
                 $this->DownloadAddonZip();
             }
             break;
         case "getemailtemplate":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Templates)) {
                 $this->GetEmailTemplate();
             }
             break;
         case "updateemailtemplate":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Templates)) {
                 $this->UpdateEmailTemplate();
             }
             break;
         case "useproductserverfile":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Edit_Products) || $GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Add_Products)) {
                 $this->UseProductServerFile();
             }
             break;
         case "updatelogo":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Templates)) {
                 $this->UpdateLogo();
                 die;
                 break;
             }
         case "previewlogo":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Templates)) {
                 $this->PreviewLogo();
                 die;
                 break;
             }
         case 'updatelogonone':
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Templates)) {
                 $this->UpdateLogoNone();
                 die;
                 break;
             }
         case "checknewlogos":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Templates)) {
                 $this->CheckNewLogos();
                 die;
                 break;
             }
         case "downloadlogofile":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Templates)) {
                 $this->DownloadLogoFile();
                 die;
                 break;
             }
             break;
         case "getexchangerate":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Settings)) {
                 $this->getExchangeRate();
                 die;
                 break;
             }
             break;
         case "updateexchangerate":
             if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Settings)) {
                 $this->UpdateExchangeRate();
                 die;
                 break;
             }
             break;
         case "updatetemplatefields":
             $this->UpdateTemplateFields();
             break;
         case "getstates":
             $this->GetStateList();
             break;
     }
 }
 public function HandleToDo()
 {
     /**
      * Convert the input character set from the hard coded UTF-8 to their
      * selected character set
      */
     convertRequestInput();
     $what = isc_strtolower(@$_REQUEST['w']);
     if (!$GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Orders)) {
         exit;
     }
     switch ($what) {
         case "updatemultiorderstatusrequest":
             $this->updateOrderStatusBoxRequest();
             break;
         case 'viewgiftwrappingdetails':
             $this->ViewGiftWrappingDetails();
             break;
         case 'createshipment':
             $this->CreateShipment();
             break;
         case 'savenewshipment':
             $this->SaveNewShipment();
             break;
         case 'getshipmentquickview':
             $this->GetShipmentQuickView();
             break;
         case 'viewordernotes':
             $this->ViewOrderNotes();
             break;
         case 'viewcustomfields':
             $this->ViewCustomFields();
             break;
         case 'saveordernotes':
             $this->SaveOrderNotes();
             break;
         case 'loadorderproductfieldsdata':
             $this->LoadOrderProductFields();
             break;
         case 'ordersearchcustomers':
             $this->SearchCustomers();
             break;
         case 'delayedcapture':
             $this->DelayedCapture();
             break;
         case 'loadrefundform':
             $this->LoadRefundForm();
             break;
         case 'voidtransaction':
             $this->VoidTransaction();
             break;
         case 'orderloadcustomeraddresses':
             $this->LoadCustomerAddresses();
             break;
         case 'ordersearchproducts':
             $this->SearchProducts();
             break;
         case 'orderremoveproduct':
             $this->OrderRemoveProduct();
             break;
         case 'orderconfigureproduct':
             $this->OrderConfigureProduct();
             break;
         case 'orderaddnewproduct':
             $this->OrderAddProduct();
             break;
         case 'orderupdatetotals':
             $this->OrderUpdateTotals();
             break;
         case 'orderapplycouponcode':
             $this->OrderApplyCouponCode();
             break;
         case 'orderremovegiftcertificate':
             $this->OrderRemoveGiftCertificate();
             break;
         case 'orderselectgiftwrap':
             $this->OrderSelectGiftWrap();
             break;
         case 'ordersavegiftwrap':
             $this->OrderSaveGiftWrap();
             break;
         case 'orderremovegiftwrap':
             $this->OrderRemoveGiftWrap();
             break;
         case 'updateordertimeout':
             $this->UpdateOrderTimeout();
             break;
         case 'orderupdateproductconfig':
             $this->OrderUpdateProductConfig();
             break;
         case 'ordercalculateshipping':
             $this->OrderCalculateShipping();
             break;
         case 'ordersaveshipping':
             $this->OrderSaveShipping();
             break;
         case 'orderremovecoupon':
             $this->OrderRemoveCoupon();
             break;
     }
 }
예제 #13
0
 public function HandleToDo()
 {
     /**
      * Convert the input character set from the hard coded UTF-8 to their
      * selected character set
      */
     convertRequestInput();
     $what = isc_strtolower(@$_REQUEST['w']);
     switch ($what) {
         case "countrystates":
             $this->GetCountryStates();
             break;
         case "getstates":
             $this->GetStateList();
             break;
         case "getcountries":
             $this->GetCountryList();
             break;
         case "getexchangerate":
             $this->GetExchangeRate();
             break;
         case "expresscheckoutregister":
             $this->ExpressCheckoutRegister();
             break;
         case "expresscheckoutlogin":
             $this->ExpressCheckoutLogin();
             break;
         case "expresscheckoutgetaddressfields":
             $this->GetExpressCheckoutAddressFields();
             break;
         case "expresscheckoutgetshippers":
             if ($_SESSION['makeaoffer'] == "Yes") {
                 $this->GetExpressOfferShippers();
             } else {
                 $this->GetExpressCheckoutShippers();
             }
             break;
         case "expresscheckoutgetaddonproducts":
             $this->GetExpressCheckoutAddonProducts();
             break;
         case "expresscheckoutshowconfirmation":
             if ($_SESSION['makeaoffer'] == "Yes") {
                 $this->GetExpressOfferConfirmation();
             } else {
                 $this->GetExpressCheckoutConfirmation();
             }
             break;
         case "expresscheckoutloadpaymentform":
             if ($_SESSION['makeaoffer'] == "Yes") {
                 $this->GetExpressOfferPaymentForm();
             } else {
                 $this->GetExpressCheckoutPaymentForm();
             }
             break;
         case "getshippingquotes":
             $this->GetShippingQuotes();
             break;
         case 'selectgiftwrapping':
             $this->SelectGiftWrapping();
             break;
         case 'editconfigurablefieldsincart':
             $this->EditConfigurableFieldsInCart();
             break;
         case 'deleteuploadedfileincart':
             $this->DeleteUploadedFileInCart();
             break;
         case 'addproducts':
             $this->AddProductsToCart();
             break;
         case 'linker':
             $linker = GetClass("ISC_LINKER");
             $linker->HandleToDo();
             break;
         case 'checkcustomeremail':
             // johnny add
             $this->checkCustomerEmail();
             break;
         case 'checkproduct':
             // alandy_2011-12-26 add
             $this->checkproduct();
             break;
         case 'getproductpqvq':
             echo self::getProductPQVQ();
             // dada 2012-03-14
             break;
     }
 }
예제 #14
0
		public function HandleToDo()
		{
			/**
			 * Convert the input character set from the hard coded UTF-8 to their
			 * selected character set
			 */
			convertRequestInput();

			$what = isc_strtolower(@$_REQUEST['w']);

			switch  ($what) {
				case "countrystates": {
					$this->GetCountryStates();
					break;
				}
				case "getstates": {
					$this->GetStateList();
					break;
				}
				case "getcountries": {
					$this->GetCountryList();
					break;
				}
				case "getexchangerate": {
					$this->GetExchangeRate();
					break;
				}
				case "expresscheckoutlogin":
					$this->ExpressCheckoutLogin();
					break;
				case "expresscheckoutgetaddressfields":
					$this->GetExpressCheckoutAddressFields();
					break;
				case 'getexpresscheckoutconfirmation':
					$this->GetExpressCheckoutConfirmation();
					break;
				case "expresscheckoutloadpaymentform":
					$this->GetExpressCheckoutPaymentForm();
					break;
				case 'saveexpresscheckoutbillingaddress':
					$this->saveExpressCheckoutBillingAddress();
					break;
				case 'saveexpresscheckoutshippingaddress':
					$this->saveExpressCheckoutShippingAddress();
					break;
				case 'saveexpresscheckoutshippingprovider':
					$this->saveExpressCheckoutShippingProvider();
					break;
				case "getshippingquotes":
					$this->GetShippingQuotes();
					break;
				case 'selectgiftwrapping':
					$this->SelectGiftWrapping();
					break;
				case 'editconfigurablefieldsincart':
					$this->EditConfigurableFieldsInCart();
					break;
				case 'deleteuploadedfileincart':
					$this->DeleteUploadedFileInCart();
					break;
				case 'addproducts':
					$this->AddProductsToCart();
					break;
				case 'paymentprovideraction':
					$this->ProcessRemoteActions();
					break;
				case 'doadvancesearch':
					$this->doAdvanceSearch();
					break;
				case 'sortadvancesearch':
					$this->sortAdvanceSearch();
					break;
				case 'getvariationoptions':
					$this->GetVariationOptions();
					break;
				case "updatelanguage": {
					$this->UpdateLanguage();
					break;
				}
				case 'disabledesignmode':
					$this->DisableDesignMode();
					break;
			}
		}