本文整理汇总了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);
}
示例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');
}
示例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
示例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
示例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');
}
示例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");
}
}
示例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
示例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
}
示例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
}
示例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
}
示例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');
}
示例12: __construct
/**
* Construct the ToolController
*
* @access public
* @param void
* @return ToolController
*/
function __construct() {
parent::__construct();
prepare_company_website_controller($this, 'html');
} // __construct
示例13: __construct
/**
* Construct the MessageController
*
* @access public
* @param void
* @return MessageController
*/
function __construct()
{
parent::__construct();
prepare_company_website_controller($this, 'project_website');
}
示例14: __construct
/**
* Construct the AccountController
*
* @access public
* @param void
* @return AccountController
*/
function __construct()
{
parent::__construct();
prepare_company_website_controller($this, 'account');
}
示例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');
}