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


PHP url_GetFromFilePath函数代码示例

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


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

示例1: __construct

 /**
  * Constructor
  */
 protected function __construct()
 {
     global $section;
     parent::__construct(__FILE__);
     // register backend
     if (class_exists('backend') && class_exists('shop')) {
         $backend = backend::getInstance();
         $method_menu = $backend->getMenu('shop_payment_methods');
         $recurring_menu = $backend->getMenu('shop_recurring_plans');
         // add menu entry for payment methods
         if (!is_null($method_menu)) {
             $method_menu->addChild('', new backend_MenuItem($this->getLanguageConstant('menu_paypal'), url_GetFromFilePath($this->path . 'images/icon.svg'), window_Open('paypal', 400, $this->getLanguageConstant('title_settings'), true, true, backend_UrlMake($this->name, 'settings')), $level = 5));
         }
         if (!is_null($recurring_menu)) {
             $recurring_menu->addChild('', new backend_MenuItem($this->getLanguageConstant('menu_paypal'), url_GetFromFilePath($this->path . 'images/icon.svg'), window_Open('paypal_recurring_plans', 400, $this->getLanguageConstant('title_recurring_plans'), true, true, backend_UrlMake($this->name, 'recurring_plans')), $level = 5));
         }
     }
     // register payment method
     if (class_exists('shop')) {
         require_once 'units/express_payment_method.php';
         require_once 'units/direct_payment_method.php';
         // set helped in debug mode if specified
         PayPal_Helper::setSandbox(shop::getInstance()->isDebug());
         PayPal_Helper::setCredentials($this->settings['api_username'], $this->settings['api_password'], $this->settings['api_signature']);
         // create payment methods
         if ($this->settings['express_enabled'] == 1) {
             $this->express_method = PayPal_Express::getInstance($this);
         }
         if ($this->settings['direct_enabled'] == 1) {
             $this->direct_method = PayPal_Direct::getInstance($this);
         }
     }
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:36,代码来源:paypal.php

示例2: __construct

 /**
  * Constructor
  */
 protected function __construct()
 {
     global $section, $action;
     parent::__construct(__FILE__);
     // register backend
     if (class_exists('backend')) {
         $backend = backend::getInstance();
         $import_menu = $backend->getMenu('shop_import');
         if (!is_null($import_menu)) {
             $import_menu->addChild(null, new backend_MenuItem($this->getLanguageConstant('menu_import_items'), url_GetFromFilePath($this->path . 'images/import.svg'), window_Open('shop_import_items', 350, $this->getLanguageConstant('title_import_items'), true, true, backend_UrlMake($this->name, 'import')), 6));
             $import_menu->addChild(null, new backend_MenuItem($this->getLanguageConstant('menu_import_english'), url_GetFromFilePath($this->path . 'images/import.svg'), window_Open('shop_import_items', 350, $this->getLanguageConstant('title_import_items'), true, true, backend_UrlMake($this->name, 'import_english')), 6));
         }
     }
     // register delivery method and create menu items
     if (ModuleHandler::is_loaded('backend') && ModuleHandler::is_loaded('shop')) {
         require_once 'units/method.php';
         require_once 'units/pickup_method.php';
         Paid_DeliveryMethod::getInstance($this);
         Pickup_DeliveryMethod::getInstance($this);
     }
     if (ModuleHandler::is_loaded('head_tag') && $section == 'shop' && $action == 'checkout') {
         $head_tag = head_tag::getInstance();
         $head_tag->addTag('script', array('src' => url_GetFromFilePath($this->path . 'include/pikaday.js'), 'type' => 'text/javascript'));
         $head_tag->addTag('link', array('href' => url_GetFromFilePath($this->path . 'include/pikaday.css'), 'rel' => 'stylesheet', 'type' => 'text/css'));
         $head_tag->addTag('link', array('href' => url_GetFromFilePath($this->path . 'include/checkout.css'), 'rel' => 'stylesheet', 'type' => 'text/css'));
     }
     if (ModuleHandler::is_loaded('backend') && ModuleHandler::is_loaded('head_tag') && $section == 'backend') {
         $head_tag = head_tag::getInstance();
         $head_tag->addTag('script', array('src' => url_GetFromFilePath($this->path . 'include/backend.js'), 'type' => 'text/javascript'));
     }
     // connect transaction handling event
     Events::connect('shop', 'transaction-completed', 'on_transaction_completed', $this);
 }
开发者ID:Way2CU,项目名称:AleyDafna-Shop,代码行数:36,代码来源:aley_dafna.php

示例3: __construct

 /**
  * Constructor
  */
 protected function __construct()
 {
     parent::__construct(__FILE__);
     if (class_exists('head_tag')) {
         $head_tag = head_tag::getInstance();
         $head_tag->addTag('script', array('src' => url_GetFromFilePath($this->path . 'include/swfobject.js'), 'type' => 'text/javascript'));
     }
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:11,代码来源:swfobject.php

示例4: __construct

 /**
  * Constructor
  */
 protected function __construct()
 {
     global $section;
     parent::__construct(__FILE__);
     // register backend
     if (class_exists('backend')) {
         $backend = backend::getInstance();
         $faq_menu = new backend_MenuItem($this->getLanguageConstant('menu_faq'), url_GetFromFilePath($this->path . 'images/icon.svg'), 'javascript:void(0);', $level = 4);
         $faq_menu->addChild('', new backend_MenuItem($this->getLanguageConstant('menu_manage_questions'), url_GetFromFilePath($this->path . 'images/questions.svg'), window_Open('faq', 700, $this->getLanguageConstant('title_questions'), true, true, backend_UrlMake($this->name, 'manage')), $level = 4));
         $backend->addMenu($this->name, $faq_menu);
     }
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:15,代码来源:faq.php

示例5: __construct

 /**
  * Constructor
  */
 protected function __construct()
 {
     global $section;
     parent::__construct(__FILE__);
     // register backend
     if ($section == 'backend' && class_exists('backend')) {
         $backend = backend::getInstance();
         $codes_menu = new backend_MenuItem($this->getLanguageConstant('menu_codes'), url_GetFromFilePath($this->path . 'images/icon.png'), 'javascript:void(0);', $level = 5);
         $codes_menu->addChild('', new backend_MenuItem($this->getLanguageConstant('menu_codes_manage'), url_GetFromFilePath($this->path . 'images/manage.png'), window_Open('codes_manage', 450, $this->getLanguageConstant('title_codes_manage'), true, true, backend_UrlMake($this->name, 'codes_manage')), $level = 5));
         $backend->addMenu($this->name, $codes_menu);
     }
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:15,代码来源:code_project.php

示例6: __construct

 /**
  * Constructor
  */
 protected function __construct()
 {
     global $section;
     parent::__construct(__FILE__);
     // register backend
     if (class_exists('backend')) {
         $backend = backend::getInstance();
         $menu = $backend->getMenu($backend->name);
         if (!is_null($menu)) {
             $menu->insertChild(new backend_MenuItem($this->getLanguageConstant('menu_license'), url_GetFromFilePath($this->path . 'images/icon.svg'), window_Open('licenses', 680, $this->getLanguageConstant('title_licenses'), true, false, backend_UrlMake($this->name, 'show')), $level = 10), 1);
         }
     }
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:16,代码来源:license.php

示例7: __construct

 /**
  * Constructor
  */
 protected function __construct()
 {
     global $section;
     parent::__construct(__FILE__);
     // load CSS and JScript
     if (class_exists('head_tag')) {
         $head_tag = head_tag::getInstance();
         $head_tag->addTag('script', array('src' => url_GetFromFilePath($this->path . 'include/language.js'), 'type' => 'text/javascript'));
         if ($section == 'backend') {
             $head_tag->addTag('script', array('src' => url_GetFromFilePath($this->path . 'include/selector.js'), 'type' => 'text/javascript'));
         }
     }
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:16,代码来源:language_menu.php

示例8: __construct

 /**
  * Constructor
  */
 protected function __construct()
 {
     global $section;
     parent::__construct(__FILE__);
     // register backend
     if ($section == 'backend' && class_exists('backend')) {
         $backend = backend::getInstance();
         $links_menu = new backend_MenuItem($this->getLanguageConstant('menu_links'), url_GetFromFilePath($this->path . 'images/icon.svg'), 'javascript:void(0);', $level = 5);
         $links_menu->addChild('', new backend_MenuItem($this->getLanguageConstant('menu_links_manage'), url_GetFromFilePath($this->path . 'images/manage.svg'), window_Open('links_list', 720, $this->getLanguageConstant('title_links_manage'), true, true, backend_UrlMake($this->name, 'links_list')), $level = 5));
         $links_menu->addChild('', new backend_MenuItem($this->getLanguageConstant('menu_links_groups'), url_getFromFilePath($this->path . 'images/groups.svg'), window_Open('groups_list', 500, $this->getLanguageConstant('title_groups_manage'), true, true, backend_UrlMake($this->name, 'groups_list')), $level = 5));
         $links_menu->addChild('', new backend_MenuItem($this->getLanguageConstant('menu_links_overview'), url_GetFromFilePath($this->path . 'images/overview.svg'), window_Open('links_overview', 650, $this->getLanguageConstant('title_links_overview'), true, true, backend_UrlMake($this->name, 'overview')), $level = 6));
         $backend->addMenu($this->name, $links_menu);
     }
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:17,代码来源:links.php

示例9: login

 /**
  * Show login form
  *
  * @param string $message
  */
 private function login($message = '')
 {
     $manager = LoginRetryManager::getInstance();
     $show_captcha = false;
     // check if user has more than 3 failed atempts
     $show_captcha = $manager->getRetryCount() > 3;
     // create template and show login form
     $template = new TemplateHandler('session_login.xml', $this->parent->path . 'templates/');
     $template->setMappedModule($this->parent->name);
     $params = array('show_captcha' => $show_captcha, 'username' => isset($_REQUEST['username']) ? fix_chars($_REQUEST['username']) : '', 'image' => url_GetFromFilePath($this->parent->path . 'images/icons/login.png'), 'message' => $message);
     $template->restoreXML();
     $template->setLocalParams($params);
     $template->parse();
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:19,代码来源:session_manager.php

示例10: __construct

 /**
  * Constructor
  */
 protected function __construct()
 {
     global $section;
     parent::__construct(__FILE__);
     // register backend
     if ($section == 'backend' && class_exists('backend')) {
         $backend = backend::getInstance();
         $mailchimp_menu = new backend_MenuItem($this->getLanguageConstant('menu_mailchimp'), url_GetFromFilePath($this->path . 'images/icon.svg'), 'javascript:void(0);', $level = 5);
         $mailchimp_menu->addChild('', new backend_MenuItem($this->getLanguageConstant('menu_lists'), url_GetFromFilePath($this->path . 'images/lists.svg'), window_Open('mailchimp_lists', 450, $this->getLanguageConstant('title_lists'), true, true, backend_UrlMake($this->name, 'lists')), $level = 5));
         $mailchimp_menu->addSeparator(5);
         $mailchimp_menu->addChild('', new backend_MenuItem($this->getLanguageConstant('menu_settings'), url_GetFromFilePath($this->path . 'images/settings.svg'), window_Open('mailchimp_settings', 450, $this->getLanguageConstant('title_settings'), true, true, backend_UrlMake($this->name, 'settings')), $level = 5));
         $backend->addMenu($this->name, $mailchimp_menu);
     }
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:17,代码来源:mailchimp.php

示例11: __construct

 /**
  * Constructor
  */
 protected function __construct()
 {
     global $section;
     parent::__construct(__FILE__);
     // register mailer
     if (class_exists('contact_form')) {
         $mailer = new Mandrill_Mailer($this->language, $this->settings['api_key']);
         $contact_form = contact_form::getInstance();
         $contact_form->registerMailer('mandrill', $mailer);
     }
     // register backend
     if (class_exists('backend') && $section == 'backend') {
         $backend = backend::getInstance();
         $mandrill_menu = new backend_MenuItem($this->getLanguageConstant('menu_mandrill'), url_GetFromFilePath($this->path . 'images/icon.svg'), window_Open('mandrill_settings', 370, $this->getLanguageConstant('title_settings'), true, true, backend_UrlMake($this->name, 'settings')), $level = 5);
         $backend->addMenu($this->name, $mandrill_menu);
     }
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:20,代码来源:mandrill.php

示例12: __construct

 /**
  * Constructor
  */
 protected function __construct()
 {
     global $section;
     parent::__construct(__FILE__);
     // register backend
     if ($section == 'backend' && class_exists('backend')) {
         $backend = backend::getInstance();
         if (class_exists('head_tag')) {
             $head_tag = head_tag::getInstance();
             $head_tag->addTag('script', array('src' => url_GetFromFilePath($this->path . 'include/backend.js'), 'type' => 'text/javascript'));
         }
         $leads_menu = new backend_MenuItem($this->getLanguageConstant('menu_leads'), url_GetFromFilePath($this->path . 'images/icon.svg'), 'javascript:void(0);', $level = 5);
         $leads_menu->addChild('', new backend_MenuItem($this->getLanguageConstant('menu_results'), url_GetFromFilePath($this->path . 'images/results.svg'), window_Open('leads_results', 730, $this->getLanguageConstant('title_results'), true, true, backend_UrlMake($this->name, 'results')), $level = 5));
         $leads_menu->addChild('', new backend_MenuItem($this->getLanguageConstant('menu_types'), url_GetFromFilePath($this->path . 'images/types.svg'), window_Open('leads_types', 350, $this->getLanguageConstant('title_types'), true, true, backend_UrlMake($this->name, 'types')), $level = 5));
         $backend->addMenu($this->name, $leads_menu);
     }
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:20,代码来源:leads.php

示例13: __construct

 /**
  * Constructor
  */
 protected function __construct()
 {
     global $section;
     parent::__construct(__FILE__);
     // register backend
     if ($section == 'backend' && class_exists('backend')) {
         $backend = backend::getInstance();
         $referrals_menu = new backend_MenuItem($this->getLanguageConstant('menu_affiliates'), url_GetFromFilePath($this->path . 'images/icon.svg'), 'javascript:void(0);', $level = 5);
         $referrals_menu->addChild('', new backend_MenuItem($this->getLanguageConstant('menu_manage_affiliates'), url_GetFromFilePath($this->path . 'images/affiliates.svg'), window_Open('affiliates', 700, $this->getLanguageConstant('title_affiliates'), true, true, backend_UrlMake($this->name, 'affiliates')), $level = 10));
         $referrals_menu->addChild('', new backend_MenuItem($this->getLanguageConstant('menu_referral_urls'), url_GetFromFilePath($this->path . 'images/referrals.svg'), window_Open('referrals', 750, $this->getLanguageConstant('title_referrals'), true, true, backend_UrlMake($this->name, 'referrals')), $level = 4));
         $referrals_menu->addChild('', new backend_MenuItem($this->getLanguageConstant('menu_information'), url_GetFromFilePath($this->path . 'images/information.svg'), window_Open('affiliate_information', 400, $this->getLanguageConstant('title_affiliate_information'), true, true, backend_UrlMake($this->name, 'information')), $level = 4));
         $backend->addMenu($this->name, $referrals_menu);
     }
     if (isset($_REQUEST['affiliate']) && $section != 'backend' && $section != 'backend_module') {
         $this->createReferral();
     }
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:20,代码来源:affiliates.php

示例14: __construct

 /**
  * Constructor
  */
 protected function __construct()
 {
     parent::__construct(__FILE__);
     // load module style and scripts
     if (class_exists('head_tag')) {
         $head_tag = head_tag::getInstance();
         //$head_tag->addTag('link', array('href'=>url_GetFromFilePath($this->path.'include/_blank.css'), 'rel'=>'stylesheet', 'type'=>'text/css'));
         //$head_tag->addTag('script', array('src'=>url_GetFromFilePath($this->path.'include/_blank.js'), 'type'=>'text/javascript'));
     }
     // register backend
     if (class_exists('backend')) {
         $backend = backend::getInstance();
         $tips_menu = new backend_MenuItem($this->getLanguageConstant('menu_tips'), url_GetFromFilePath($this->path . 'images/icon.svg'), 'javascript:void(0);', $level = 5);
         $tips_menu->addChild('', new backend_MenuItem($this->getLanguageConstant('menu_tips_manage'), url_GetFromFilePath($this->path . 'images/manage.svg'), window_Open('tips', 500, $this->getLanguageConstant('title_tips_manage'), true, true, backend_UrlMake($this->name, 'tips')), $level = 5));
         $backend->addMenu($this->name, $tips_menu);
     }
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:20,代码来源:tips.php

示例15: __construct

 /**
  * Constructor
  */
 protected function __construct()
 {
     global $section;
     parent::__construct(__FILE__);
     // register backend
     if (class_exists('backend')) {
         $backend = backend::getInstance();
         $callbox_menu = new backend_MenuItem($this->getLanguageConstant('menu_callbox'), url_GetFromFilePath($this->path . 'images/icon.svg'), 'javascript:void(0);', $level = 5);
         $callbox_menu->addChild('', new backend_MenuItem($this->getLanguageConstant('menu_settings'), url_GetFromFilePath($this->path . 'images/settings.svg'), window_Open('callbox_settings', 400, $this->getLanguageConstant('title_settings'), true, true, backend_UrlMake($this->name, 'settings')), $level = 5));
         $backend->addMenu($this->name, $callbox_menu);
     }
     if (class_exists('head_tag') && $section != 'backend' && $this->settings['include_code']) {
         $head_tag = head_tag::getInstance();
         $url = str_replace('{id}', $this->settings['account_id'], '//{id}.tctm.co/t.js');
         $head_tag->addTag('script', array('src' => $url, 'type' => 'text/javascript', 'async' => ''));
     }
 }
开发者ID:tareqy,项目名称:Caracal,代码行数:20,代码来源:callbox.php


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