本文整理汇总了PHP中isc_strtolower函数的典型用法代码示例。如果您正苦于以下问题:PHP isc_strtolower函数的具体用法?PHP isc_strtolower怎么用?PHP isc_strtolower使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了isc_strtolower函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: HandleToDo
/**
* HandleToDo
* Work out which function to run
*
* @param String $Do Which action to run
* @return Void
*/
public function HandleToDo($Do)
{
if(GetConfig('DisableAddons') == true) {
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
}
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('addons');
switch (isc_strtolower($Do)) {
case "purchasedownloadaddons": {
if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Manage_Customers)) {
$this->PurchaseAddonForm();
}
break;
}
default: {
if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Manage_Customers)) {
$GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('Addons') => "index.php?ToDo=viewDownloadAddons");
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
$this->ListAddons();
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
} else {
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
}
break;
}
}
}
示例2: HandleToDo
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;
}
}
示例3: HandleToDo
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;
}
}
示例4: HandleToDo
/**
* Handle the incoming action.
*
* @param string The action to perform.
*/
public function HandleToDo($Do)
{
$GLOBALS['ISC_CLASS_TEMPLATE']->ParseLangFile(APP_ROOT . "/../language/" . GetConfig('Language') . "/converter_language.ini");
$GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('ExportStoreWizard') => "index.php?ToDo=Exporter");
if (!$GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Store_Importer) || GetConfig('DisableStoreImporters')) {
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
}
// Set the database to log all errors & queries if we're in debug mode
if ($this->_Debug == true) {
$GLOBALS['ISC_CLASS_DB']->QueryLog = dirname(__FILE__) . "/logs/export-sts.queries.txt";
$GLOBALS['ISC_CLASS_DB']->TimeLog = dirname(__FILE__) . "/logs/export-sts.query_time.txt";
$GLOBALS['ISC_CLASS_DB']->ErrorLog = dirname(__FILE__) . "/logs/export-sts.db_errors.txt";
}
switch (isc_strtolower($Do)) {
case "cancelexporter":
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
$this->CancelExporter();
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
break;
case "showexporterframe":
$this->ShowExporterFrame();
break;
case "runexporter":
$this->RunModule();
break;
default:
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
$this->InitializeExporter();
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
}
}
示例5: HandleToDo
public function HandleToDo($Do)
{
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('froogle');
switch (isc_strtolower($Do)) {
case "cancelfroogleexport":
if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Export_Froogle)) {
$this->CancelFroogleExport();
} else {
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
}
break;
case "downloadfroogleexport":
if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Export_Froogle)) {
$this->DownloadFroogleExport();
} else {
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
}
break;
case "exportfroogleintro":
if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Export_Froogle)) {
$this->ExportFroogleIntro();
} else {
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
}
break;
case "exportfroogle":
if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Export_Froogle)) {
$this->ExportFroogle();
} else {
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
}
}
}
示例6: HandleToDo
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;
}
}
示例7: HandleToDo
/**
* Handle the action for this section.
*
* @param string The name of the action to do.
*/
public function HandleToDo($Do)
{
if (isset($_REQUEST['currentTab'])) {
$GLOBALS['CurrentTab'] = (int)$_REQUEST['currentTab'];
}
else {
$GLOBALS['CurrentTab'] = 0;
}
$GLOBALS['BreadcrumEntries'] = array (
GetLang('Home') => "index.php",
GetLang('Settings') => "index.php?ToDo=viewSettings",
GetLang('LiveChatSettings') => "index.php?ToDo=viewLiveChatSettings"
);
if (!$GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Settings)) {
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
return;
}
switch(isc_strtolower($Do)) {
case "saveupdatedlivechatsettings":
$this->SaveUpdatedLiveChatSettings();
break;
case "livechatsettingscallback":
$this->LiveChatSettingsCallback();
case "viewlivechatsettings":
$GLOBALS['BreadcrumEntries'][GetLang('LiveChatSettings')] = "index.php?ToDo=viewLiveChatSettings";
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
$this->ManageLiveChatSettings();
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
break;
}
}
示例8: HandleToDo
public function HandleToDo($Do)
{
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('optimizer');
$todo = isc_strtolower($Do);
switch($todo) {
default:
if ($GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Website_Optimizer)) {
$GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('GoogleWebsiteOptimizer') => "index.php?ToDo=manageOptimizer");
if(!isset($_REQUEST['ajax'])) {
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
}
$this->manageOptimizer();
if(!isset($_REQUEST['ajax'])) {
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
}
} else {
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
}
break;
}
}
示例9: Init
/**
* Initialises this method for exporting
*
* @param ISC_ADMIN_EXPORTOPTIONS The options to export with
*/
public function Init(ISC_ADMIN_EXPORTOPTIONS $options)
{
$filetype = $options->getFileType();
// initialise the file type
$filetype->Init($this, $options->getTemplateId(), $options->getWhere(), $options->getHaving());
// set the type name
$details = $filetype->GetTypeDetails();
$name = $details['name'];
if (substr($name, -1, 1) == "s") {
$name = substr($name, 0, -1);
}
$this->type_name = $name;
$this->filetype = $filetype;
// load settings for this method
$settings = $this->GetSettings($options->getTemplateId());
foreach ($settings as $var => $setting) {
$this->settings[$var] = $setting['value'];
}
$this->className = 'exporttemplate';
$this->exportName = $details['title'];
$GLOBALS['ExportName'] = $details['title'];
$GLOBALS['ExportGenerate'] = GetLang('AjaxExportLink', array('title' => isc_strtolower($details['title']), 'type' => $this->method_name));
$GLOBALS['ExportIntro'] = GetLang('AjaxExportIntro');
}
示例10: _GetChangesReportList
public function _GetChangesReportList(&$Query, $Start, $SortField, $SortOrder, &$NumResults)
{
// Return an array containing details about changes.report.
// Takes into account search too.
// PostgreSQL is case sensitive for likes, so all matches are done in lower case
$Query = trim(isc_strtolower($Query));
if (isset($_GET['days']) && $_GET['days'] != '') {
$days = (int) $_GET['days'];
} else {
$days = 15;
}
$query = "\n\t\t\t\tSELECT *, \n (SELECT COUNT(productid) \n FROM [|PREFIX|]products p \n WHERE p.prodbrandid=b.brandid) AS totalproducts,\n (SELECT COUNT(productid) \n FROM [|PREFIX|]products p \n WHERE p.prodbrandid=b.brandid AND proddateadded >= UNIX_TIMESTAMP(DATE_SUB(CURDATE(), INTERVAL {$days} DAY))) AS newproducts,\n (SELECT COUNT(DISTINCT p.productid) \n FROM [|PREFIX|]changes_report cr \n INNER JOIN [|PREFIX|]products p ON cr.changeprodid = p.productid \n WHERE p.prodbrandid=b.brandid AND cr.changetype='content' AND changedtime > DATE_SUB(NOW(), INTERVAL {$days} DAY)) AS contentcount,\n (SELECT COUNT(DISTINCT p.productid) \n FROM [|PREFIX|]changes_report cr \n INNER JOIN [|PREFIX|]products p ON cr.changeprodid = p.productid \n WHERE p.prodbrandid=b.brandid AND cr.changetype='application' AND changedtime > DATE_SUB(NOW(), INTERVAL {$days} DAY)) AS applicationcount,\n (SELECT COUNT(DISTINCT p.productid) \n FROM [|PREFIX|]changes_report cr \n INNER JOIN [|PREFIX|]products p ON cr.changeprodid = p.productid \n WHERE p.prodbrandid=b.brandid AND cr.changetype='price' AND changedtime > DATE_SUB(NOW(), INTERVAL {$days} DAY)) AS pricecount \n\t\t\t\tFROM [|PREFIX|]brands b\n \n\t\t\t";
//proddateadded
$countQuery = "SELECT COUNT(*) FROM [|PREFIX|]brands b";
$queryWhere = ' WHERE 1=1 ';
if ($Query != "") {
$queryWhere .= " AND LOWER(b.brandname) LIKE '%" . $GLOBALS['ISC_CLASS_DB']->Quote($Query) . "%'";
}
$query .= $queryWhere;
$countQuery .= $queryWhere;
$result = $GLOBALS['ISC_CLASS_DB']->Query($countQuery);
$NumResults = $GLOBALS['ISC_CLASS_DB']->FetchOne($result);
if ($NumResults > 0) {
$query .= " ORDER BY " . $SortField . " " . $SortOrder;
// Add the limit
$query .= $GLOBALS["ISC_CLASS_DB"]->AddLimit($Start, ISC_REPORTS_PER_PAGE);
$result = $GLOBALS["ISC_CLASS_DB"]->Query($query);
return $result;
} else {
return false;
}
}
示例11: xml
protected function xml()
{
$group =& $this->data->nodeData;
if (!$group) {
throw new Exception('Cannot load customer group with nodeId: ' . $this->data->nodeId);
}
if (isc_strtolower($this->data->service) == 'pricelevelmod') {
$reference = $this->quickbooks->getAccountingReference($this->data->nodeId, 'customergroup');
if ($reference) {
$this->xmlNode->writeElement('ListID', trim($reference['ListID']));
$this->xmlNode->writeElement('EditSequence', trim($reference['EditSequence']));
}
}
$this->writeElementCData('Name', $group['groupname']);
if (isset($product['isactive']) && $product['isactive'] !== '') {
$this->xmlNode->writeElement('IsActive', (int) $product['isactive']);
}
/**
* Must have this regardless if we have a percentage rate or not
*/
if (!isset($group['groupname']) || $group['groupname'] == '') {
$group['groupname'] = 0;
}
$this->xmlNode->writeElement('PriceLevelFixedPercentage', (double) $group['discount']);
return $this->buildOutput();
}
示例12: HandleToDo
/**
* ISC_ADMIN_DESIGNMODE::HandleToDo()
*
* @return
*/
public function HandleToDo()
{
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->LoadLangFile('layout');
if (isset($_REQUEST['ToDo'])) {
$do = $_REQUEST['ToDo'];
} else {
$do = '';
}
// Include the Admin authorisation class
$GLOBALS['ISC_CLASS_ADMIN_AUTH'] = GetClass('ISC_ADMIN_AUTH');
if ($GLOBALS['ISC_CLASS_ADMIN_AUTH']->IsLoggedIn() && $GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Design_Mode)) {
switch (isc_strtolower($do)) {
case "saveupdatedfile":
$this->SaveFile();
break;
case "editfile":
$this->EditFile();
break;
case "revertfile":
$this->RevertFile();
break;
default:
$this->UpdateLayoutPanels();
}
} else {
$GLOBALS["ISC_CLASS_ADMIN_ENGINE"]->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
}
}
示例13: HandleToDo
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;
}
}
示例14: HandleToDo
public function HandleToDo()
{
if (!$GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Website_Optimizer)) {
return false;
}
$todo = isc_strtolower(@$_REQUEST['w']);
switch ($todo) {
case "showconfigform":
$this->showConfigForm();
break;
case "saveconfigform":
$this->saveConfigForm();
break;
case "installautoscripts":
$this->installAutoScripts();
break;
case "resetmodule":
$this->resetMoudle();
break;
case "downloadvalidationfiles":
$this->downloadValidationFiles();
break;
case "getconversionpageurl":
$this->getConversionPageUrl();
break;
}
}
示例15: HandleToDo
/**
* Handle the incoming action.
*
* @param string The name of the action we wish to perform.
*/
public function HandleToDo($do)
{
if (!$GLOBALS['ISC_CLASS_ADMIN_AUTH']->HasPermission(AUTH_Manage_Settings)) {
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->DoHomePage(GetLang('Unauthorized'), MSG_ERROR);
return;
}
$GLOBALS['BreadcrumEntries'] = array(GetLang('Home') => "index.php", GetLang('Settings') => "index.php?ToDo=viewSettings");
switch (isc_strtolower($do)) {
case "settingsedittaxstatus":
$GLOBALS['BreadcrumEntries'][GetLang('TaxSettings')] = "index.php?ToDo=viewTaxSettings";
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
$this->UpdateTaxStatus();
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
break;
case "settingssavetaxsettings":
$GLOBALS['BreadcrumEntries'][GetLang('TaxSettings')] = "index.php?ToDo=viewTaxSettings";
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
$this->SaveTaxSettings();
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
break;
case "settingsdeletetaxrates":
$GLOBALS['BreadcrumEntries'][GetLang('TaxSettings')] = "index.php?ToDo=viewTaxSettings";
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
$this->DeleteTaxRates();
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
break;
case "settingsaddtaxrate":
$GLOBALS['BreadcrumEntries'][GetLang('TaxSettings')] = "index.php?ToDo=viewTaxSettings";
$GLOBALS['BreadcrumEntries'][GetLang('AddTaxRate')] = "index.php?ToDo=settingsAddTaxRate";
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
$this->AddTaxRate();
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
break;
case "settingssavenewtaxrate":
$GLOBALS['BreadcrumEntries'][GetLang('TaxSettings')] = "index.php?ToDo=viewTaxSettings";
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
$this->SaveNewTaxRate();
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
break;
case "settingsedittaxrate":
$GLOBALS['BreadcrumEntries'][GetLang('TaxSettings')] = "index.php?ToDo=viewTaxSettings";
$GLOBALS['BreadcrumEntries'][GetLang('EditTaxRate')] = "index.php?ToDo=settingsEditTaxRate";
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
$this->EditTaxRate();
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
break;
case "settingssaveupdatedtaxrate":
$GLOBALS['BreadcrumEntries'][GetLang('TaxSettings')] = "index.php?ToDo=viewTaxSettings";
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
$this->SaveUpdatedTaxRate();
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
break;
default:
$GLOBALS['BreadcrumEntries'][GetLang('TaxSettings')] = "index.php?ToDo=viewTaxSettings";
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintHeader();
$this->ManageTaxSettings();
$GLOBALS['ISC_CLASS_ADMIN_ENGINE']->PrintFooter();
break;
}
}