当前位置: 首页>>代码示例>>PHP>>正文


PHP zen_get_file_directory函数代码示例

本文整理汇总了PHP中zen_get_file_directory函数的典型用法代码示例。如果您正苦于以下问题:PHP zen_get_file_directory函数的具体用法?PHP zen_get_file_directory怎么用?PHP zen_get_file_directory使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了zen_get_file_directory函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: shipping

 function shipping($module = '')
 {
     global $PHP_SELF, $messageStack;
     if (defined('MODULE_SHIPPING_INSTALLED') && zen_not_null(MODULE_SHIPPING_INSTALLED)) {
         $this->modules = explode(';', MODULE_SHIPPING_INSTALLED);
         $include_modules = array();
         if (zen_not_null($module) && in_array(substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, strrpos($PHP_SELF, '.') + 1), $this->modules)) {
             $include_modules[] = array('class' => substr($module['id'], 0, strpos($module['id'], '_')), 'file' => substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, strrpos($PHP_SELF, '.') + 1));
         } else {
             reset($this->modules);
             while (list(, $value) = each($this->modules)) {
                 $class = substr($value, 0, strrpos($value, '.'));
                 $include_modules[] = array('class' => $class, 'file' => $value);
             }
         }
         for ($i = 0, $n = sizeof($include_modules); $i < $n; $i++) {
             //          include(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/shipping/' . $include_modules[$i]['file']);
             $lang_file = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/shipping/', $include_modules[$i]['file'], 'false');
             if (@file_exists($lang_file)) {
                 include_once $lang_file;
             } else {
                 if (IS_ADMIN_FLAG === false) {
                     $messageStack->add(WARNING_COULD_NOT_LOCATE_LANG_FILE . $lang_file, 'caution');
                 } else {
                     $messageStack->add_session(WARNING_COULD_NOT_LOCATE_LANG_FILE . $lang_file, 'caution');
                 }
             }
             include_once DIR_WS_MODULES . 'shipping/' . $include_modules[$i]['file'];
             $GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class']();
         }
     }
 }
开发者ID:happyxlq,项目名称:lt_svn,代码行数:32,代码来源:shipping.php

示例2: order_total

 function order_total()
 {
     global $messageStack;
     if (defined('MODULE_ORDER_TOTAL_INSTALLED') && zen_not_null(MODULE_ORDER_TOTAL_INSTALLED)) {
         $module_list = explode(';', MODULE_ORDER_TOTAL_INSTALLED);
         reset($module_list);
         while (list(, $value) = each($module_list)) {
             //include(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/' . $value);
             $lang_file = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/', $value, 'false');
             if (@file_exists($lang_file)) {
                 include_once $lang_file;
             } else {
                 if (IS_ADMIN_FLAG === false && is_object($messageStack)) {
                     $messageStack->add('header', WARNING_COULD_NOT_LOCATE_LANG_FILE . $lang_file, 'caution');
                 } else {
                     $messageStack->add_session(WARNING_COULD_NOT_LOCATE_LANG_FILE . $lang_file, 'caution');
                 }
             }
             $module_file = DIR_WS_MODULES . 'order_total/' . $value;
             if (@file_exists($module_file)) {
                 include_once $module_file;
                 $class = substr($value, 0, strrpos($value, '.'));
                 $GLOBALS[$class] = new $class();
                 $this->modules[] = $value;
             }
         }
     }
 }
开发者ID:kirkbauer2,项目名称:kirkzc,代码行数:28,代码来源:order_total.php

示例3: CommerceShipping

 function CommerceShipping($module = '')
 {
     global $gBitCustomer;
     if (defined('MODULE_SHIPPING_INSTALLED') && zen_not_null(MODULE_SHIPPING_INSTALLED)) {
         $this->modules = explode(';', MODULE_SHIPPING_INSTALLED);
         $include_modules = array();
         if (zen_not_null($module) && in_array(substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($_SERVER['SCRIPT_NAME'], strrpos($_SERVER['SCRIPT_NAME'], '.') + 1), $this->modules)) {
             $include_modules[] = array('class' => substr($module['id'], 0, strpos($module['id'], '_')), 'file' => substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($_SERVER['SCRIPT_NAME'], strrpos($_SERVER['SCRIPT_NAME'], '.') + 1));
         } else {
             reset($this->modules);
             while (list(, $value) = each($this->modules)) {
                 $base = basename($value);
                 $class = substr($base, 0, strrpos($base, '.'));
                 $include_modules[] = array('class' => $class, 'file' => $value);
             }
         }
         for ($i = 0, $n = sizeof($include_modules); $i < $n; $i++) {
             //					include(DIR_WS_LANGUAGES . $gBitCustomer->getLanguage() . '/modules/shipping/' . $include_modules[$i]['file']);
             $langFile = zen_get_file_directory(DIR_WS_LANGUAGES . $gBitCustomer->getLanguage() . '/modules/shipping/', $include_modules[$i]['file'], 'false');
             if (file_exists($langFile)) {
                 include_once $langFile;
             }
             include_once BITCOMMERCE_PKG_PATH . DIR_WS_MODULES . 'shipping/' . $include_modules[$i]['file'];
             $GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class']();
         }
     }
 }
开发者ID:bitweaver,项目名称:commerce,代码行数:27,代码来源:CommerceShipping.php

示例4: payment

 function payment($module = '')
 {
     global $PHP_SELF, $language, $credit_covers, $messageStack;
     if (defined('MODULE_PAYMENT_INSTALLED') && zen_not_null(MODULE_PAYMENT_INSTALLED)) {
         $this->modules = explode(';', MODULE_PAYMENT_INSTALLED);
         $include_modules = array();
         if (zen_not_null($module) && in_array($module . '.' . substr($PHP_SELF, strrpos($PHP_SELF, '.') + 1), $this->modules)) {
             $this->selected_module = $module;
             $include_modules[] = array('class' => $module, 'file' => $module . '.php');
         } else {
             reset($this->modules);
             // Free Payment Only shows
             if (zen_get_configuration_key_value('MODULE_PAYMENT_FREECHARGER_STATUS') and ($_SESSION['cart']->show_total() == 0 and $_SESSION['shipping']['cost'] == 0)) {
                 $this->selected_module = $module;
                 if (file_exists(DIR_FS_CATALOG . DIR_WS_MODULES . '/payment/' . 'freecharger.php')) {
                     $include_modules[] = array('class' => 'freecharger', 'file' => 'freecharger.php');
                 }
             } else {
                 // All Other Payment Modules show
                 while (list(, $value) = each($this->modules)) {
                     // double check that the module really exists before adding to the array
                     if (file_exists(DIR_FS_CATALOG . DIR_WS_MODULES . '/payment/' . $value)) {
                         $class = substr($value, 0, strrpos($value, '.'));
                         // Don't show Free Payment Module
                         if ($class != 'freecharger') {
                             $include_modules[] = array('class' => $class, 'file' => $value);
                         }
                     }
                 }
             }
         }
         for ($i = 0, $n = sizeof($include_modules); $i < $n; $i++) {
             //          include(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/payment/' . $include_modules[$i]['file']);
             $lang_file = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/payment/', $include_modules[$i]['file'], 'false');
             if (@file_exists($lang_file)) {
                 include_once $lang_file;
             } else {
                 if (IS_ADMIN_FLAG === false) {
                     $messageStack->add(WARNING_COULD_NOT_LOCATE_LANG_FILE . $lang_file, 'caution');
                 } else {
                     $messageStack->add_session(WARNING_COULD_NOT_LOCATE_LANG_FILE . $lang_file, 'caution');
                 }
             }
             include_once DIR_WS_MODULES . 'payment/' . $include_modules[$i]['file'];
             $GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class']();
         }
         // if there is only one payment method, select it as default because in
         // checkout_confirmation.php the $payment variable is being assigned the
         // $_POST['payment'] value which will be empty (no radio button selection possible)
         if (zen_count_payment_modules() == 1 && (!isset($_SESSION['payment']) || isset($_SESSION['payment']) && !is_object($_SESSION['payment']))) {
             if (!$credit_covers) {
                 $_SESSION['payment'] = $include_modules[0]['class'];
             }
         }
         if (zen_not_null($module) && in_array($module, $this->modules) && isset($GLOBALS[$module]->form_action_url)) {
             $this->form_action_url = $GLOBALS[$module]->form_action_url;
         }
     }
 }
开发者ID:dalinhuang,项目名称:kakayaga,代码行数:59,代码来源:payment.php

示例5: order_total

 function order_total()
 {
     if (defined('MODULE_ORDER_TOTAL_INSTALLED') && zen_not_null(MODULE_ORDER_TOTAL_INSTALLED)) {
         $this->modules = explode(';', MODULE_ORDER_TOTAL_INSTALLED);
         reset($this->modules);
         while (list(, $value) = each($this->modules)) {
             //          include(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/' . $value);
             include zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/', $value, 'false');
             include DIR_WS_MODULES . 'order_total/' . $value;
             $class = substr($value, 0, strrpos($value, '.'));
             $GLOBALS[$class] = new $class();
         }
     }
 }
开发者ID:sgkohata,项目名称:zencart-sugu,代码行数:14,代码来源:order_total.php

示例6: __construct

 function __construct($module = '')
 {
     global $payment, $gBitCustomer;
     if (defined('MODULE_PAYMENT_INSTALLED') && zen_not_null(MODULE_PAYMENT_INSTALLED)) {
         $this->modules = explode(';', MODULE_PAYMENT_INSTALLED);
         $include_modules = array();
         if (zen_not_null($module) && in_array($module . '.' . substr($_SERVER['SCRIPT_NAME'], strrpos($_SERVER['SCRIPT_NAME'], '.') + 1), $this->modules)) {
             $this->selected_module = $module;
             $include_modules[] = array('class' => $module, 'file' => $module . '.php');
         } else {
             reset($this->modules);
             // Free Payment Only shows
             if (zen_get_configuration_key_value('MODULE_PAYMENT_FREECHARGER_STATUS') and ($gBitCustomer->mCart->show_total() == 0 and $gBitCustomer->mCart->show_weight() == 0)) {
                 $this->selected_module = $module;
                 if (file_exists(DIR_FS_CATALOG . DIR_WS_MODULES . '/payment/' . 'freecharger.php')) {
                     $include_modules[] = array('class' => 'freecharger', 'file' => 'freecharger.php');
                 }
             } else {
                 // All Other Payment Modules show
                 while (list(, $value) = each($this->modules)) {
                     // double check that the module really exists before adding to the array
                     if (file_exists(DIR_FS_CATALOG . DIR_WS_MODULES . '/payment/' . $value)) {
                         $class = substr($value, 0, strrpos($value, '.'));
                         // Don't show Free Payment Module
                         if ($class != 'freecharger') {
                             $include_modules[] = array('class' => $class, 'file' => $value);
                         }
                     }
                 }
             }
         }
         for ($i = 0, $n = sizeof($include_modules); $i < $n; $i++) {
             $langFile = zen_get_file_directory(DIR_WS_LANGUAGES . $gBitCustomer->getLanguage() . '/modules/payment/', $include_modules[$i]['file'], 'false');
             if (file_exists($langFile)) {
                 include $langFile;
             }
             include DIR_WS_MODULES . 'payment/' . $include_modules[$i]['file'];
             $GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class']();
         }
         // if there is only one payment method, select it as default because in
         // checkout_confirmation.php the $payment variable is being assigned the
         // $_POST['payment'] value which will be empty (no radio button selection possible)
         if (zen_count_payment_modules() == 1 && (!isset($_SESSION['payment']) || isset($_SESSION['payment']) && !is_object($_SESSION['payment']))) {
             $_SESSION['payment'] = $include_modules[0]['class'];
         }
         if (zen_not_null($module) && in_array($module, $this->modules) && isset($GLOBALS[$module]->form_action_url)) {
             $this->form_action_url = $GLOBALS[$module]->form_action_url;
         }
     }
 }
开发者ID:bitweaver,项目名称:commerce,代码行数:50,代码来源:CommercePaymentManager.php

示例7: order_total

 function order_total()
 {
     global $gBitCustomer;
     if (defined('MODULE_ORDER_TOTAL_INSTALLED') && zen_not_null(MODULE_ORDER_TOTAL_INSTALLED)) {
         $this->modules = explode(';', MODULE_ORDER_TOTAL_INSTALLED);
         reset($this->modules);
         while (list(, $value) = each($this->modules)) {
             //          include(DIR_WS_LANGUAGES . $gBitCustomer->getLanguage() . '/modules/order_total/' . $value);
             $class = substr($value, 0, strrpos($value, '.'));
             if (!class_exists($class)) {
                 $langFile = zen_get_file_directory(DIR_WS_LANGUAGES . $gBitCustomer->getLanguage() . '/modules/order_total/', $value, 'false');
                 if (file_exists($langFile)) {
                     include $langFile;
                 }
                 include DIR_WS_MODULES . 'order_total/' . $value;
             }
             $GLOBALS[$class] = new $class();
         }
     }
 }
开发者ID:bitweaver,项目名称:commerce,代码行数:20,代码来源:order_total.php

示例8: shipping

 function shipping($module = '')
 {
     global $PHP_SELF;
     if (defined('MODULE_SHIPPING_INSTALLED') && zen_not_null(MODULE_SHIPPING_INSTALLED)) {
         $this->modules = explode(';', MODULE_SHIPPING_INSTALLED);
         $include_modules = array();
         if (zen_not_null($module) && in_array(substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, strrpos($PHP_SELF, '.') + 1), $this->modules)) {
             $include_modules[] = array('class' => substr($module['id'], 0, strpos($module['id'], '_')), 'file' => substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, strrpos($PHP_SELF, '.') + 1));
         } else {
             reset($this->modules);
             while (list(, $value) = each($this->modules)) {
                 $class = substr($value, 0, strrpos($value, '.'));
                 $include_modules[] = array('class' => $class, 'file' => $value);
             }
         }
         for ($i = 0, $n = sizeof($include_modules); $i < $n; $i++) {
             //          include(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/shipping/' . $include_modules[$i]['file']);
             include zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/shipping/', $include_modules[$i]['file'], 'false');
             include DIR_WS_MODULES . 'shipping/' . $include_modules[$i]['file'];
             $GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class']();
         }
     }
 }
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:23,代码来源:shipping.php

示例9: zen_get_module_directory

<?php

/**
 * Privacy Page
 * 
 * @package page
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: header_php.php 3230 2006-03-20 23:21:29Z drbyte $
 */
require DIR_WS_MODULES . zen_get_module_directory('require_languages.php');
// include template specific file name defines
$define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_ESTIMATE_DELIVERY_TIME, 'false');
$breadcrumb->add("Estimate Delivery Time");
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:15,代码来源:header_php.php

示例10: define

define('TEXT_VIRTUAL_EDIT', 'Warning: This product is marked - Free Shipping and Skips Shipping Address<br />No shipping will be requested when all products in the order are Virtual Products');
define('TEXT_FREE_SHIPPING_PREVIEW', 'Warning: This product is marked - Free Shipping, Shipping Address Required<br />Free Shipping Module is required when all products in the order are Always Free Shipping Products');
define('TEXT_FREE_SHIPPING_EDIT', 'Warning: Yes makes the product - Free Shipping, Shipping Address Required<br />Free Shipping Module is required when all products in the order are Always Free Shipping Products');
// admin activity log warnings
define('WARNING_ADMIN_ACTIVITY_LOG_DATE', 'WARNING: The Admin Activity Log table has records over 2 months old and should be archived to conserve space ... ');
define('WARNING_ADMIN_ACTIVITY_LOG_RECORDS', 'WARNING: The Admin Activity Log table has over 50,000 records and should be archived to conserve space ... ');
define('RESET_ADMIN_ACTIVITY_LOG', 'You can view and archive Admin Activity details via the Admin Access Management menu, if you have appropriate permissions.');
define('TEXT_ACTIVITY_LOG_ACCESSED', 'Admin Activity Log accessed. Output format: %s. Filter: %s. %s');
define('TEXT_ERROR_FAILED_ADMIN_LOGIN_FOR_USER', 'Failed admin login attempt: ');
define('TEXT_ERROR_ATTEMPTED_TO_LOG_IN_TO_LOCKED_ACCOUNT', 'Attempted to log into locked account:');
define('TEXT_ERROR_ATTEMPTED_ADMIN_LOGIN_WITHOUT_CSRF_TOKEN', 'Attempted login without CSRF token.');
define('TEXT_ERROR_ATTEMPTED_ADMIN_LOGIN_WITHOUT_USERNAME', 'Attempted login without username.');
define('TEXT_ERROR_INCORRECT_PASSWORD_DURING_RESET_FOR_USER', 'Incorrect password while attempting a password reset for: ');
define('CATEGORY_HAS_SUBCATEGORIES', 'NOTE: Category has SubCategories<br />Products cannot be added');
define('WARNING_WELCOME_DISCOUNT_COUPON_EXPIRES_IN', 'WARNING! Welcome Email Discount Coupon expires in %s days');
define('WARNING_ADMIN_FOLDERNAME_VULNERABLE', 'CAUTION: <a href="http://tutorials.zen-cart.com/index.php?article=33" target="_blank">Your /admin/ foldername should be renamed to something less common</a>, to prevent unauthorized access.');
define('WARNING_EMAIL_SYSTEM_DISABLED', 'WARNING: The email subsystem is turned off. No emails will be sent until it is re-enabled in Admin->Configuration->Email Options.');
define('TEXT_CURRENT_VER_IS', 'You are presently using: ');
define('ERROR_NO_DATA_TO_SAVE', 'ERROR: The data you submitted was found to be empty. YOUR CHANGES HAVE *NOT* BEEN SAVED. You may have a problem with your browser or your internet connection.');
define('TEXT_HIDDEN', 'Hidden');
define('TEXT_VISIBLE', 'Visible');
define('TEXT_HIDE', 'Hide');
define('TEXT_EMAIL', 'Email');
define('TEXT_NOEMAIL', 'No Email');
define('BOX_HEADING_PRODUCT_TYPES', 'Product Types');
define('ERROR_DATABASE_MAINTENANCE_NEEDED', '<a href="http://www.zen-cart.com/content.php?334-ERROR-0071-There-appears-to-be-a-problem-with-the-database-Maintenance-is-required" target="_blank">ERROR 0071: There appears to be a problem with the database. Maintenance is required.</a>');
///////////////////////////////////////////////////////////
// include additional files:
require DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . FILENAME_EMAIL_EXTRAS;
include zen_get_file_directory(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/', FILENAME_OTHER_IMAGES_NAMES, 'false');
开发者ID:kirkbauer2,项目名称:kirkzc,代码行数:30,代码来源:english.php

示例11: getPluginCoreFiles

 /**
  * Retrieve a list of core plugin files required to install a plugin.
  * These resources are only needed if they are not already installed.
  *
  * @return multitype:string
  */
 private function getPluginCoreFiles()
 {
     $retval = array(DIR_FS_ADMIN . DIR_WS_CLASSES . 'plugin.php', DIR_FS_ADMIN . DIR_WS_CLASSES . strtolower($this->getUniqueKey()) . '_plugin.php');
     foreach (new DirectoryIterator(DIR_FS_ADMIN . DIR_WS_LANGUAGES) as $folder) {
         if ($folder->isDot() || !$folder->isDir()) {
             continue;
         }
         $core = zen_get_file_directory(DIR_FS_ADMIN . DIR_WS_LANGUAGES . $folder->getFilename() . '/modules/plugin', '/plugin.php', 'false');
         $subclass = zen_get_file_directory(DIR_FS_ADMIN . DIR_WS_LANGUAGES . $folder->getFilename() . '/modules/plugin', '/' . strtolower($this->getUniqueKey()) . '.php', 'false');
         if (file_exists($core)) {
             $retval[] = $core;
         }
         if (file_exists($subclass)) {
             $retval[] = $subclass;
         }
     }
     return $retval;
 }
开发者ID:bislewl,项目名称:super_edit_orders_with_ty,代码行数:24,代码来源:plugin.php

示例12: zen_get_file_directory

<?php

//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce                                       |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers                           |
// |                                                                      |
// | http://www.zen-cart.com/index.php                                    |
// |                                                                      |
// | Portions Copyright (c) 2003 osCommerce                               |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available through the world-wide-web at the following url:           |
// | http://www.zen-cart.com/license/2_0.txt.                             |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to       |
// | license@zen-cart.com so we can mail you a copy immediately.          |
// +----------------------------------------------------------------------+
// $Id$
//
require_once DIR_FS_MODULES . 'require_languages.php';
// include template specific file name defines
$define_shippinginfo = zen_get_file_directory(DIR_WS_LANGUAGES . $gBitCustomer->getLanguage() . '/html_includes/', FILENAME_DEFINE_SHIPPINGINFO, 'false');
$breadcrumb->add(NAVBAR_TITLE);
开发者ID:bitweaver,项目名称:commerce,代码行数:26,代码来源:header_php.php

示例13: zen_get_module_directory

<?php

/**
 * login_as_customer info
 *
 * @package page
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: header_php.php 3230 2006-03-20 23:21:29Z drbyte $
 */
require DIR_WS_MODULES . zen_get_module_directory('require_languages.php');
// logout
// kill active session
unset($_SESSION['customer_id']);
// include template specific file name defines
$define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_LOGIN_AS_CUSTOMER, 'false');
开发者ID:jeking928,项目名称:Admin-login-as-customer,代码行数:17,代码来源:header_php.php

示例14: array

            $notificationsArray[] = array('counter' => $counter, 'products_id' => $products->fields['products_id'], 'products_name' => $products->fields['products_name']);
            $counter++;
            $products->MoveNext();
        }
    }
    $flag_show_products_notification = (CUSTOMERS_PRODUCTS_NOTIFICATION_STATUS == '1' and sizeof($notificationsArray) > 0 and $flag_global_notifications != '1') ? true : false;
    $products_displayed = array();
    $gv_query = "SELECT amount\n               FROM " . TABLE_COUPON_GV_CUSTOMER . "\n               WHERE customer_id = :customersID ";
    $gv_query = $db->bindVars($gv_query, ':customersID', $_SESSION['customer_id'], 'integer');
    $gv_result = $db->Execute($gv_query);
    if ($gv_result->fields['amount'] > 0) {
        $customer_has_gv_balance = true;
        $customer_gv_balance = $currencies->format($gv_result->fields['amount']);
    }
    // include template specific file name defines
    $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', 'define_checkout_failure', 'false');
} else {
    echo '<html><head>';
    echo '<script type="text/javascript">
<!--
theTimer = 0;
timeOut = 12;

function submit_form()
{
  theTimer = setTimeout("submit_form();", 100);
  if (timeOut > 0) {
    timeOut -= 1;
  }
  else
  {
开发者ID:nab-velocity,项目名称:zencart-plugin,代码行数:31,代码来源:header_php.php

示例15: array

$za_who = $_GET['za_lookup'];
if ($action == 'new_page') {
    $page = $_GET['define_it'];
    $check_directory = array();
    $check_directory[] = DIR_FS_CATALOG . DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/';
    $directory_files = zen_display_files();
    $za_lookup = array();
    for ($i = 0, $n = sizeof($directory_files); $i < $n; $i++) {
        $za_lookup[] = array('id' => $i, 'text' => $directory_files[$i]);
    }
    // This will cause it to look for 'define_conditions.php'
    $_GET['filename'] = $za_lookup[$page]['text'];
    $_GET['box_name'] = BOX_TOOLS_DEFINE_CONDITIONS;
}
// define template specific file name defines
$file = zen_get_file_directory(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/html_includes/', $_GET['filename'], 'false');
switch ($_GET['action']) {
    case 'set_editor':
        if ($_GET['reset_editor'] == '0') {
            $_SESSION['html_editor_preference_status'] = 'NONE';
        } else {
            $_SESSION['html_editor_preference_status'] = 'HTMLAREA';
        }
        $action = '';
        zen_redirect(zen_href_link(FILENAME_DEFINE_PAGES_EDITOR));
        break;
    case 'save':
        if ($_GET['lngdir'] && $_GET['filename']) {
            if (file_exists($file)) {
                if (file_exists('bak' . $file)) {
                    @unlink('bak' . $file);
开发者ID:sgkohata,项目名称:zencart-sugu,代码行数:31,代码来源:define_pages_editor.php


注:本文中的zen_get_file_directory函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。