• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP insert_charset_header函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: execute

 /**
  * Perform execution of the application. This method is called from index2.php
  */
 function execute()
 {
     global $sugar_config;
     if (!empty($sugar_config['default_module'])) {
         $this->default_module = $sugar_config['default_module'];
     }
     $module = $this->default_module;
     if (!empty($_REQUEST['module'])) {
         $module = $_REQUEST['module'];
     }
     insert_charset_header();
     $this->setupPrint();
     $this->controller = ControllerFactory::getController($module);
     // If the entry point is defined to not need auth, then don't authenticate.
     if (empty($_REQUEST['entryPoint']) || $this->controller->checkEntryPointRequiresAuth($_REQUEST['entryPoint'])) {
         $this->loadUser();
         $this->ACLFilter();
         $this->preProcess();
         $this->controller->preProcess();
         $this->checkHTTPReferer();
     }
     SugarThemeRegistry::buildRegistry();
     $this->loadLanguages();
     $this->checkDatabaseVersion();
     $this->loadDisplaySettings();
     //$this->loadLicense();
     $this->loadGlobals();
     $this->setupResourceManagement($module);
     $this->controller->execute();
     sugar_cleanup();
 }
开发者ID:switcode,项目名称:SuiteCRM,代码行数:34,代码来源:SugarApplication.php


示例2: execute

 /**
  * Perform execution of the application. This method is called from index2.php
  */
 function execute()
 {
     global $sugar_config;
     if (!empty($sugar_config['default_module'])) {
         $this->default_module = $sugar_config['default_module'];
     }
     $module = $this->default_module;
     if (!empty($_REQUEST['module'])) {
         $module = $_REQUEST['module'];
     }
     insert_charset_header();
     $this->setupPrint();
     $this->controller = ControllerFactory::getController($module);
     // if the entry point is defined to not need auth, then don't authenicate
     if (empty($_REQUEST['entryPoint']) || $this->controller->checkEntryPointRequiresAuth($_REQUEST['entryPoint'])) {
         $this->loadUser();
         $this->ACLFilter();
         $this->preProcess();
         $this->controller->preProcess();
     }
     if (ini_get('session.auto_start') !== false) {
         $_SESSION['breadCrumbs'] = new BreadCrumbStack($GLOBALS['current_user']->id);
     }
     SugarThemeRegistry::buildRegistry();
     $this->loadLanguages();
     $this->checkDatabaseVersion();
     $this->loadDisplaySettings();
     $this->loadLicense();
     $this->loadGlobals();
     $this->setupResourceManagement($module);
     $this->controller->execute();
     sugar_cleanup();
 }
开发者ID:klr2003,项目名称:sourceread,代码行数:36,代码来源:SugarApplication.php


示例3: execute

 /**
  * Perform execution of the application. This method is called from index2.php
  */
 function execute()
 {
     global $sugar_config;
     if (!empty($sugar_config['default_module'])) {
         $this->default_module = $sugar_config['default_module'];
     }
     $module = $this->default_module;
     if (!empty($_REQUEST['module'])) {
         $module = $_REQUEST['module'];
     }
     insert_charset_header();
     $this->setupPrint();
     $this->controller = ControllerFactory::getController($module);
     // make sidecar view load faster
     // TODO the rest of the code will be removed as soon as we migrate all modules to sidecar
     if ($this->controller->action === 'sidecar' || $this->controller->action === 'index' && $this->controller->module === 'Home' && (empty($_REQUEST['entryPoint']) || isset($_REQUEST['action']) && $_REQUEST['action'] === 'DynamicAction') || empty($_REQUEST)) {
         // check for not authorised users
         $this->checkMobileRedirect();
         $this->controller->action = 'sidecar';
         $this->controller->execute();
         return;
     } elseif ($this->controller->action === 'Login' && $this->controller->module === 'Users') {
         // TODO remove this when we are "iFrame free"
         // by default login location is base site URL
         $location = rtrim($sugar_config['site_url'], '/') . '/';
         $loginRedirect = $this->getLoginRedirect();
         $loginVars = $this->getLoginVars();
         if (isset($loginVars['module'])) {
             if (isModuleBWC($loginVars['module'])) {
                 // in case if login module is BWC, location is the BWC URL (as if the user was already
                 // logged in), since authentication is managed by Sidecar, not the module itself
                 $location .= '#bwc/' . $loginRedirect;
             } else {
                 // otherwise compose basic Sidecar route
                 $location .= '#' . rawurlencode($loginVars['module']);
                 if (isset($loginVars['record'])) {
                     $location .= '/' . rawurlencode($loginVars['record']);
                 }
             }
         }
         echo '<script>
         if (parent.location == window.location) {
             window.location = ' . json_encode($location) . ';
         } else {
             window.top.SUGAR.App.bwc.login(' . json_encode($loginRedirect) . ');
         }
         </script>';
         return;
     }
     // If the entry point is defined to not need auth, then don't authenticate.
     if (empty($_REQUEST['entryPoint']) || $this->controller->checkEntryPointRequiresAuth($_REQUEST['entryPoint'])) {
         $this->startSession();
         // check for authorised users
         $this->checkMobileRedirect();
         $this->loadUser();
         $this->ACLFilter();
         $this->preProcess();
         $this->controller->preProcess();
         $this->checkHTTPReferer();
         $this->csrfAuthenticate();
     }
     SugarThemeRegistry::buildRegistry();
     $this->loadLanguages();
     $this->checkDatabaseVersion();
     $this->loadDisplaySettings();
     $this->loadLicense();
     $this->loadGlobals();
     $this->setupResourceManagement($module);
     $this->controller->execute();
     sugar_cleanup();
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:74,代码来源:SugarApplication.php


示例4: insert_charset_header

        $_SESSION['view'] = $view;
    }
    //session_register("view");
}
/** Function to set, character set in the header, as given in include/language/*_lang.php
 */
function insert_charset_header()
{
    global $app_strings, $default_charset;
    $charset = $default_charset;
    if (isset($app_strings['LBL_CHARSET'])) {
        $charset = $app_strings['LBL_CHARSET'];
    }
    header('Content-Type: text/html; charset=' . $charset);
}
insert_charset_header();
// Create or reestablish the current session
session_start();
if (!is_file('config.inc.php')) {
    header("Location: install.php");
    exit;
}
require_once 'config.inc.php';
if (!isset($dbconfig['db_hostname']) || $dbconfig['db_status'] == '_DB_STAT_') {
    header("Location: install.php");
    exit;
}
// load up the config_override.php file.  This is used to provide default user settings
if (is_file('config_override.php')) {
    require_once 'config_override.php';
}
开发者ID:shamimhasan,项目名称:Vtiger-CRM-5.4.0,代码行数:31,代码来源:index.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP insert_data函数代码示例发布时间:2022-05-15
下一篇:
PHP insert_cart_info函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap