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


PHP prepare_company_website_controller函数代码示例

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


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

示例1: __construct

 /**
  * Construct the MailController
  *
  * @access public
  * @param void
  * @return MailController
  */
 function __construct()
 {
     parent::__construct();
     prepare_company_website_controller($this, 'website');
     Env::useHelper('MailUtilities.class', $this->plugin_name);
     require_javascript("AddMail.js", $this->plugin_name);
 }
开发者ID:abhinay100,项目名称:fengoffice_app,代码行数:14,代码来源:MailController.class.php

示例2: __construct

 /**
  * Construct controller and check if we have logged in user
  *
  * @param void
  * @return null
  */
 function __construct()
 {
     trace(__FILE__, '__construct() - begin');
     parent::__construct();
     trace(__FILE__, '__construct() - prepare_company_website_controller');
     prepare_company_website_controller($this, 'dashboard');
 }
开发者ID:federosky,项目名称:ProjectPier-Core,代码行数:13,代码来源:DashboardController.class.php

示例3: __construct

	/**
	 * Construct the FilesController
	 *
	 * @access public
	 * @param void
	 * @return FilesController
	 */
	function __construct() {
		parent::__construct();
		
		$protocol = (strpos($_SERVER['SERVER_PROTOCOL'], 'HTTPS')) ? 'https' : 'http';
		
		prepare_company_website_controller($this, 'website');
	} // __construct
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:14,代码来源:FilesController.class.php

示例4: __construct

	/**
	 * Construct the AccountController
	 *
	 * @access public
	 * @param void
	 * @return AccountController
	 */
	function __construct() {
		parent::__construct();
		prepare_company_website_controller($this, 'website');
		if (array_var($_GET, 'current') != 'administration') {
			ajx_set_panel("account");
		}
	} // __construct
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:14,代码来源:AccountController.class.php

示例5: __construct

 function __construct()
 {
     trace(__FILE__, '__construct()');
     parent::__construct();
     trace(__FILE__, '__construct() - prepare_company_website_controller');
     prepare_company_website_controller($this, 'project_website');
     trace(__FILE__, '__construct() - add textile');
     $this->addHelper('textile');
 }
开发者ID:bklein01,项目名称:Project-Pier,代码行数:9,代码来源:WikiController.class.php

示例6: __construct

 /**
  * Construct the TimeController
  *
  * @access public
  * @param void
  * @return TimeController
  */
 function __construct()
 {
     parent::__construct();
     prepare_company_website_controller($this, 'website');
     if (!can_manage_time(logged_user(), true)) {
         flash_error(lang('no access permissions'));
         ajx_current("empty");
     }
 }
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:16,代码来源:TimeController.class.php

示例7: __construct

	/**
	 * Construct the ApplicationController
	 *
	 * @param void
	 * @return ApplicationController
	 */
	function __construct() {
		parent::__construct();
		prepare_company_website_controller($this, 'website');

		// Access permissios
		if(!can_manage_configuration(logged_user())) {
			flash_error(lang('no access permissions'));
			ajx_current("empty");
		} // if
	} // __construct
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:16,代码来源:ConfigController.class.php

示例8: __construct

	function __construct() {
		parent::__construct();
		prepare_company_website_controller($this, 'website');
		ajx_set_panel("administration");

		// Access permissios
		if(!logged_user()->isCompanyAdmin(owner_company())) {
			flash_error(lang('no access permissions'));
			ajx_current("empty");
		} // if
	}
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:11,代码来源:BillingController.class.php

示例9: __construct

 /**
  * Construct the ProjectSettingsController
  *
  * @access public
  * @param void
  * @return ProjectSettingsController
  */
 function __construct()
 {
     parent::__construct();
     prepare_company_website_controller($this, 'project_website');
     // Access permissions
     if (!logged_user()->isAdministrator(owner_company())) {
         flash_error(lang('no access permissions'));
         $this->redirectTo('dashboard');
     }
     // if
 }
开发者ID:bklein01,项目名称:Project-Pier,代码行数:18,代码来源:ProjectSettingsController.class.php

示例10: __construct

 /**
  * Construct the AdministrationController
  *
  * @access public
  * @param void
  * @return AdministrationController
  */
 function __construct()
 {
     parent::__construct();
     prepare_company_website_controller($this, 'website');
     //ajx_set_panel("administration");
     // Access permissions
     if (!logged_user()->isExecutiveGroup()) {
         flash_error(lang('no access permissions'));
         ajx_current("empty");
     }
     // if
     //Autentify password
     if (config_option('ask_administration_autentification')) {
         $last_login = array_var($_SESSION, 'admin_login', 0);
         if ($last_login < time() - ADMIN_SESSION_TIMEOUT) {
             if (array_var($_GET, 'a') != 'password_autentify') {
                 $ref_controller = null;
                 $ref_action = null;
                 $ref_params = array();
                 foreach ($_GET as $k => $v) {
                     $ref_var_name = $k;
                     switch ($ref_var_name) {
                         case 'c':
                             $ref_controller = $v;
                             break;
                         case 'a':
                             $ref_action = $v;
                             break;
                         default:
                             $ref_params[$ref_var_name] = $v;
                     }
                     // switch
                 }
                 $url = get_url($ref_controller, $ref_action, $ref_params);
                 $this->redirectTo('administration', 'password_autentify', array('url' => $url));
             }
         } else {
             $_SESSION['admin_login'] = time();
         }
     }
     //if
 }
开发者ID:abhinay100,项目名称:feng_app,代码行数:49,代码来源:AdministrationController.class.php

示例11: __construct

 /**
  * Construct controller and check if we have logged in user
  *
  * @param void
  * @return null
  */
 function __construct()
 {
     parent::__construct();
     prepare_company_website_controller($this, 'dashboard');
 }
开发者ID:ukd1,项目名称:Project-Pier,代码行数:11,代码来源:DashboardController.class.php

示例12: __construct

	/**
	 * Construct the ToolController
	 *
	 * @access public
	 * @param void
	 * @return ToolController
	 */
	function __construct() {
		parent::__construct();
		prepare_company_website_controller($this, 'html');
	} // __construct
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:11,代码来源:ToolController.class.php

示例13: __construct

 /**
  * Construct the MessageController
  *
  * @access public
  * @param void
  * @return MessageController
  */
 function __construct()
 {
     parent::__construct();
     prepare_company_website_controller($this, 'project_website');
 }
开发者ID:469306621,项目名称:Languages,代码行数:12,代码来源:FormController.class.php

示例14: __construct

 /**
  * Construct the AccountController
  *
  * @access public
  * @param void
  * @return AccountController
  */
 function __construct()
 {
     parent::__construct();
     prepare_company_website_controller($this, 'account');
 }
开发者ID:469306621,项目名称:Languages,代码行数:12,代码来源:AccountController.class.php

示例15: __construct

 /**
  * Construct the ContactController
  *
  * @access public
  * @param void
  * @return ContactController
  */
 function __construct()
 {
     parent::__construct();
     prepare_company_website_controller($this, 'website');
     $this->addHelper('contact_render_tab_functions');
 }
开发者ID:abhinay100,项目名称:feng_app,代码行数:13,代码来源:ContactController.class.php


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