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


PHP GlobalConfig类代码示例

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


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

示例1: envoismail

function envoismail($sujetmail, $text, $destinataire, $expediteur, $paramTypeMail = null, $conf = null)
{
    if ($conf == null) {
        $globalConfig = new GlobalConfig();
    }
    if ($globalConfig->getConf()->getSmtpServiceEnable() == TRUE) {
        /*
         * Toutes les adresses emails sont redirigées vers utilisateurs.fta@ldc.fr
         * Si la redirection est mis en place
         */
        if ($globalConfig->getConf()->getSmtpEmailRedirectionUser()) {
            $destinataire_orig = $destinataire;
            $destinataire = $globalConfig->getConf()->getSmtpEmailRedirectionUser();
            $sujetmail_orig = $sujetmail;
            $sujetmail = "[Environnement " . $globalConfig->getConf()->getExecEnvironment() . "] " . $sujetmail_orig;
            $text_orig = $text;
            if (is_array($destinataire_orig)) {
                $listeDesDestinataire = explode(",", $destinataire_orig);
            } else {
                $listeDesDestinataire = $destinataire_orig;
            }
            $text = $listeDesDestinataire . "\n" . $text_orig;
        }
        //Création du mail
        $mail = new htmlMimeMail5();
        $mail->setSMTPParams($globalConfig->getConf()->getSmtpServerName());
        // Set the From and Reply-To headers
        $mail->setFrom($expediteur);
        $mail->setReturnPath($expediteur);
        // Set the Subject
        $mail->setSubject($sujetmail);
        /**
         * Encodement en utf-8
         */
        $mail->setTextCharset("UTF-8");
        $mail->setHTMLCharset("UTF-8");
        $mail->setHeadCharset("UTF-8");
        // Set the body
        $mail->setHTML(nl2br($text));
        //$result = $mail->send(array($adresse_to), 'smtp');
        //$result = $mail->send(array($destinataire), 'smtp');
        /**
         * L'envoi réel du mail n'est pas réalisé en environnement Codeur
         */
        if ($paramTypeMail != "mail-transactions") {
            $result = $mail->send(array($destinataire), 'smtp');
        }
        if (!$result and $globalConfig->getConf()->getExecEnvironment() == EnvironmentConf::ENV_PRD) {
            $paramTypeMail = "Erreur";
        }
    }
    /**
     * Génération de log
     */
    $paramLog = $paramTypeMail . " " . $expediteur . " " . $destinataire . "\n" . $sujetmail . "\n" . $text;
    //    Logger::AddMail($paramLog, $paramTypeMail);
}
开发者ID:SalokineTerata,项目名称:intranet,代码行数:57,代码来源:functions.mail.php

示例2: isEditableNotificationMail

 /**
  * On vérifie si l'utilisateur connecter est le propriétaire de la transaction en cours.
  * @return boolean
  */
 function isEditableNotificationMail()
 {
     $globalConf = new GlobalConfig();
     $idUser = $globalConf->getAuthenticatedUser()->getKeyValue();
     $idUserRegister = $this->getDataField(self::FIELDNAME_ID_USER)->getFieldValue();
     if ($idUser == $idUserRegister) {
         $isEditable = Chapitre::EDITABLE;
     } else {
         $isEditable = Chapitre::NOT_EDITABLE;
     }
     return $isEditable;
 }
开发者ID:SalokineTerata,项目名称:intranet,代码行数:16,代码来源:Fta2ArcadiaTransactionModel.php

示例3: createTransOrderForBatch

 public function createTransOrderForBatch($fields)
 {
     $longId = CommonUtil::longId();
     //$batchNo = $longId . sprintf('%03s', $fields['channel']) . sprintf('%02s', $fields['gateway']) . mt_rand(100, 999) ;
     $batchNo = date('ymdHis') . mt_rand(100, 999);
     $requestData = json_decode($fields['request_data'], true);
     foreach ($requestData as $field) {
         if (!in_array($fields['gateway'], $this->_allowTransGateway)) {
             throw new PayException(ErrorCode::ERR_GATEWAY_FAIL, '该gateway不允许提现');
         }
         $validation = new TransValidator($field);
         if (!$validation->passes(TransValidator::$transDetailRule)) {
             throw new PayException(ErrCode::ERR_PARAM, $validation->errors);
         }
         if ($fields['gateway'] == PayVars::GATEWAY_YEEPAY) {
             if (!isset($field['bank_code']) || !isset(PayBankVars::$yeepayBankAlis[$field['bank_code']])) {
                 throw new PayException(ErrCode::ERR_PARAM, '银行编码错误!');
             }
         }
         $account = AccountBiz::getInstance()->getOrCreateAccount($field['user_id'], $fields['channel']);
         $primaryId = CommonUtil::LongIdIncrease($longId);
         $merTransNo = $primaryId;
         $insertArr[] = ['id' => $primaryId, 'user_id' => $field['user_id'], 'account_id' => $account['id'], 'mer_trans_no' => null !== ($localEnv = \GlobalConfig::getLocalEnv()) ? $merTransNo . $localEnv : $merTransNo, 'batch_no' => $batchNo, 'trans_amount' => $field['trans_amount'], 'create_time' => time(), 'person_name' => $field['user_name'], 'person_account' => $field['user_account'], 'channel' => $fields['channel'], 'gateway' => $fields['gateway'], 'callback_url' => $fields['callback_url'], 'subject' => $fields['subject'], 'body' => isset($field['body']) ? $field['body'] : '', 'mobile_no' => isset($field['mobile']) ? $field['mobile'] : '', 'bank_code' => isset($field['bank_code']) ? $field['bank_code'] : '', 'busi_trans_no' => isset($field['busi_trans_no']) ? $field['busi_trans_no'] : ''];
     }
     $trans = new TransModel();
     if (true !== $trans->insert($insertArr)) {
         throw new PayException(ErrCode::ERR_SYSTEM, '数据库保存失败');
     }
     return $batchNo;
 }
开发者ID:yellowriver,项目名称:pay,代码行数:30,代码来源:TransBiz.class.php

示例4: createRefundOrder

 public function createRefundOrder($fields)
 {
     $account = AccountBiz::getInstance()->getOrCreateAccount($fields['user_id'], $fields['channel']);
     $refund = new RefundModel();
     $refund->id = CommonUtil::longId();
     $refund->user_id = $fields['user_id'];
     $refund->account_id = $account['id'];
     $refund->channel = $fields['channel'];
     $refund->gateway = $fields['gateway'];
     $refund->recharge_id = $fields['recharge_id'];
     $refund->mer_refund_no = $refund->id . substr(sprintf('%012s', $fields['user_id']), -12);
     if (null !== ($localEnv = \GlobalConfig::getLocalEnv())) {
         $refund->mer_refund_no = substr($refund->mer_refund_no, 0, -strlen($localEnv)) . $localEnv;
     }
     $refund->amount = $fields['refund_amount'];
     $refund->create_time = time();
     $refund->callback_url = $fields['callback_url'];
     $refund->subject = $fields['subject'];
     $refund->body = isset($fields['body']) ? $fields['body'] : '';
     $refund->busi_refund_no = isset($fields['busi_refund_no']) ? $fields['busi_refund_no'] : '';
     $refund->seller_partner = isset($fields['seller_partner']) ? $fields['seller_partner'] : '';
     if (true !== $refund->save()) {
         throw new PayException(ErrCode::ERR_ORDER_CREATE_FAIL);
     }
     return $refund;
 }
开发者ID:yellowriver,项目名称:pay,代码行数:26,代码来源:RefundBiz.class.php

示例5: __construct

 function __construct()
 {
     $globalConfig = new GlobalConfig();
     try {
         parent::__construct(GlobalConfig::MYSQL_HOST . $globalConfig->getConf()->getMysqlServerName() . GlobalConfig::MYSQL_DBNAME . $globalConfig->getConf()->getMysqlDatabaseName(), $globalConfig->getConf()->getMysqlDatabaseAuthentificationUsername(), $globalConfig->getConf()->getMysqlDatabaseAuthentificationPassword(), array(PDO::ATTR_PERSISTENT => true));
         /**
          * PDO définit simplement le code d'erreur à inspecter
          * et il émettra un message E_WARNING traditionnel
          */
         $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
         $this->exec('SET NAMES utf8');
     } catch (PDOException $e) {
         die('Erreur : ' . $e->getMessage());
     }
     //  $this->setPdoObjet($globalConfig->getDatabaseConnexion());
 }
开发者ID:SalokineTerata,项目名称:intranet,代码行数:16,代码来源:DatabaseConnection.php

示例6: createRechargeOrder

 public function createRechargeOrder($fields)
 {
     $account = AccountBiz::getInstance()->getOrCreateAccount($fields['user_id'], $fields['channel']);
     $primaryId = $this->_rechargeModel->calculPrimaryId();
     $this->_rechargeModel->id = $primaryId;
     $this->_rechargeModel->user_id = $fields['user_id'];
     $this->_rechargeModel->account_id = $account['id'];
     $this->_rechargeModel->channel = $fields['channel'];
     $this->_rechargeModel->gateway = $fields['gateway'];
     $this->_rechargeModel->mer_recharge_no = $primaryId . substr(sprintf('%012s', $fields['user_id']), -12);
     if (null !== ($localEnv = \GlobalConfig::getLocalEnv())) {
         $this->_rechargeModel->mer_recharge_no = substr($this->_rechargeModel->mer_recharge_no, 0, -strlen($localEnv)) . $localEnv;
     }
     $this->_rechargeModel->recharge_amount = $fields['recharge_amount'];
     $this->_rechargeModel->create_time = time();
     $this->_rechargeModel->return_url = $fields['return_url'];
     $this->_rechargeModel->callback_url = $fields['callback_url'];
     $this->_rechargeModel->subject = $fields['subject'];
     $this->_rechargeModel->expire_time = isset($fields['expire_time']) ? $fields['expire_time'] : 0;
     $this->_rechargeModel->consume_id = isset($fields['consume_id']) ? $fields['consume_id'] : '';
     $this->_rechargeModel->body = isset($fields['body']) ? $fields['body'] : '';
     $this->_rechargeModel->city_id = isset($fields['city_id']) ? $fields['city_id'] : 0;
     $this->_rechargeModel->plat = isset($fields['plat']) ? $fields['plat'] : 1;
     $this->_rechargeModel->plat_ext = isset($fields['plat_ext']) ? $fields['plat_ext'] : '';
     $this->_rechargeModel->mobile_no = isset($fields['mobile']) ? $fields['mobile'] : '';
     $this->_rechargeModel->bank_code = isset($fields['bank_code']) ? $fields['bank_code'] : '';
     $this->_rechargeModel->busi_recharge_no = isset($fields['busi_recharge_no']) ? $fields['busi_recharge_no'] : '';
     $this->_rechargeModel->gateway_account = $fields['gateway'] == PayVars::GATEWAY_WECHAT && isset($fields['open_id']) ? $fields['open_id'] : '';
     if (true !== $this->_rechargeModel->save()) {
         throw new PayException(ErrCode::ERR_ORDER_CREATE_FAIL);
     }
     return $this->_rechargeModel;
 }
开发者ID:yellowriver,项目名称:pay,代码行数:33,代码来源:RechargeBiz.class.php

示例7: func

function func(GearmanJob $job)
{
    $data = json_decode($job->workload(), true);
    // 临时关闭Logger
    $tmpEnable = GlobalConfig::$LOGGER_ENABLE;
    GlobalConfig::$LOGGER_ENABLE = false;
    LoggerInterface::save($data);
    GlobalConfig::$LOGGER_ENABLE = $tmpEnable;
}
开发者ID:aozhongxu,项目名称:web_hqoj,代码行数:9,代码来源:logger_async_worker.php

示例8: wso_g002

 function wso_g002($startDate, $endDate)
 {
     if ($this->isInit) {
         parent::clearParamsData();
         parent::addParamData("action", "get_stock_article");
         parent::addParamData('code_depot', GlobalConfig::getDepositCode());
         parent::addParamData('date_debut', $startDate);
         parent::addParamData('date_fin', $endDate);
         return parent::doRequest("GET");
     }
 }
开发者ID:rtajmahal,项目名称:PrestaShop-modules,代码行数:11,代码来源:getActionRequest.class.php

示例9: InitController

 /**
  * Initializes the controller to be tested and clears all previous
  * authentication as well as output variable assignments
  *
  * @param string name of controller class (ex AccountController)
  * @param bool true to clear all authentication
  */
 function InitController($classname, $clearAuth = true)
 {
     $gc = GlobalConfig::GetInstance();
     eval('$this->controller = new ' . $classname . '($this->phreezer, $this->renderEngine, $gc->GetContext(), $this->router );');
     $this->controller->UnitTestMode = true;
     $this->controller->CaptureOutputMode = true;
     // clear all previous input
     $this->InputClearAll();
     // remove any authentication that was hanging around
     if ($clearAuth) {
         $this->ClearCurrentUser();
     }
     // get rid of any feedback or warnings
     $this->renderEngine->clear("warning");
     $this->renderEngine->clear("feedback");
     $this->overrideController->OverrideSetContext("feedback", "");
     $this->Println("-- Controller '{$classname}' initialized");
 }
开发者ID:niceboy120,项目名称:phreeze,代码行数:25,代码来源:BaseTestClass.php

示例10: insert

 private static function insert($tag, $level, $msg)
 {
     // 是否需要Logger
     if (!GlobalConfig::$LOGGER_ENABLE) {
         return;
     }
     // 临时关闭Logger
     $tmpEnable = GlobalConfig::$LOGGER_ENABLE;
     GlobalConfig::$LOGGER_ENABLE = false;
     // 校验tag
     $tags = LoggerKeys::$allTags;
     if (!in_array($tag, $tags)) {
         throw new LibraryException("TAG:{$tag} 需要在LoggerKeys中定义!");
     }
     // 获取错误信息
     if (is_subclass_of($msg, 'Exception')) {
         $traceList = $msg->getTrace();
         $message = $msg->getMessage();
         $traceInfo = $traceList[0];
         $loc = $traceInfo['file'] . ':' . $traceInfo['line'];
     } else {
         $traceList = debug_backtrace();
         $message = $msg;
         $traceInfo = $traceList[1];
         $loc = $traceInfo['file'] . ':' . $traceInfo['line'];
     }
     $now = time();
     $data = array('create_time' => $now, 'update_time' => $now, 'tag' => $tag, 'level' => $level, 'client_ip' => Http::getClientIp(), 'client_port' => Http::getClientPort(), 'server_ip' => Http::getServerIp(), 'server_port' => Http::getServerPort(), 'url' => Url::getCurrentUrl(), 'post' => json_encode($_POST), 'loc' => $loc, 'message' => $message, 'trace' => json_encode($traceList));
     if (GlobalConfig::$LOGGER_ASYNC) {
         $gearman = GearmanPool::getClient(GearmanConfig::$SERVER_COMMON);
         $gearman->doBackground('logger_async', json_encode($data));
     } else {
         LoggerInterface::save($data);
     }
     GlobalConfig::$LOGGER_ENABLE = $tmpEnable;
 }
开发者ID:aozhongxu,项目名称:web_hqoj,代码行数:36,代码来源:Logger.class.php

示例11: array

/**
 * SESSION CLASSES
 * Any classes that will be stored in the session can be added here
 * and will be pre-loaded on every page
 */
require_once "Model/User.php";
/**
 * RENDER ENGINE
 * You can use any template system that implements
 * IRenderEngine for the view layer.  Phreeze provides pre-built
 * implementations for Smarty, Savant, Blade and plain PHP.
 */
require_once 'verysimple/Phreeze/BladeRenderEngine.php';
GlobalConfig::$TEMPLATE_ENGINE = 'BladeRenderEngine';
GlobalConfig::$TEMPLATE_PATH = GlobalConfig::$APP_ROOT . '/views/';
GlobalConfig::$TEMPLATE_CACHE_PATH = GlobalConfig::$APP_ROOT . '/storage/';
/**
 * ROUTE MAP
 * The route map connects URLs to Controller+Method and additionally maps the
 * wildcards to a named parameter so that they are accessible inside the
 * Controller without having to parse the URL for parameters such as IDs
 */
GlobalConfig::$ROUTE_MAP = array('GET:' => array('route' => 'Default.Home'), 'GET:loginform' => array('route' => 'Secure.LoginForm'), 'POST:login' => array('route' => 'Secure.Login'), 'GET:secureuser' => array('route' => 'Secure.UserPage'), 'GET:secureadmin' => array('route' => 'Secure.AdminPage'), 'GET:logout' => array('route' => 'Secure.Logout'), 'GET:roles' => array('route' => 'Role.ListView'), 'GET:role/(:num)' => array('route' => 'Role.SingleView', 'params' => array('id' => 1)), 'GET:api/roles' => array('route' => 'Role.Query'), 'POST:api/role' => array('route' => 'Role.Create'), 'GET:api/role/(:num)' => array('route' => 'Role.Read', 'params' => array('id' => 2)), 'PUT:api/role/(:num)' => array('route' => 'Role.Update', 'params' => array('id' => 2)), 'DELETE:api/role/(:num)' => array('route' => 'Role.Delete', 'params' => array('id' => 2)), 'GET:users' => array('route' => 'User.ListView'), 'GET:user/(:num)' => array('route' => 'User.SingleView', 'params' => array('id' => 1)), 'GET:api/users' => array('route' => 'User.Query'), 'POST:api/user' => array('route' => 'User.Create'), 'GET:api/user/(:num)' => array('route' => 'User.Read', 'params' => array('id' => 2)), 'PUT:api/user/(:num)' => array('route' => 'User.Update', 'params' => array('id' => 2)), 'DELETE:api/user/(:num)' => array('route' => 'User.Delete', 'params' => array('id' => 2)), 'GET:imovels' => array('route' => 'Imovel.ListView'), 'GET:imovel/(:num)' => array('route' => 'Imovel.SingleView', 'params' => array('id' => 1)), 'GET:api/imovels' => array('route' => 'Imovel.Query'), 'POST:api/imovel' => array('route' => 'Imovel.Create'), 'GET:api/imovel/(:num)' => array('route' => 'Imovel.Read', 'params' => array('id' => 2)), 'PUT:api/imovel/(:num)' => array('route' => 'Imovel.Update', 'params' => array('id' => 2)), 'DELETE:api/imovel/(:num)' => array('route' => 'Imovel.Delete', 'params' => array('id' => 2)), 'GET:tipoimovels' => array('route' => 'TipoImovel.ListView'), 'GET:tipoimovel/(:num)' => array('route' => 'TipoImovel.SingleView', 'params' => array('id' => 1)), 'GET:api/tipoimovels' => array('route' => 'TipoImovel.Query'), 'POST:api/tipoimovel' => array('route' => 'TipoImovel.Create'), 'GET:api/tipoimovel/(:num)' => array('route' => 'TipoImovel.Read', 'params' => array('id' => 2)), 'PUT:api/tipoimovel/(:num)' => array('route' => 'TipoImovel.Update', 'params' => array('id' => 2)), 'DELETE:api/tipoimovel/(:num)' => array('route' => 'TipoImovel.Delete', 'params' => array('id' => 2)), 'GET:api/(:any)' => array('route' => 'Default.ErrorApi404'), 'PUT:api/(:any)' => array('route' => 'Default.ErrorApi404'), 'POST:api/(:any)' => array('route' => 'Default.ErrorApi404'), 'DELETE:api/(:any)' => array('route' => 'Default.ErrorApi404'));
/**
 * FETCHING STRATEGY
 * You may uncomment any of the lines below to specify always eager fetching.
 * Alternatively, you can copy/paste to a specific page for one-time eager fetching
 * If you paste into a controller method, replace $G_PHREEZER with $this->Phreezer
 */
// $GlobalConfig->GetInstance()->GetPhreezer()->SetLoadType("Imovel","fk_imovel_tipo_imovel1",KM_LOAD_EAGER); // KM_LOAD_INNER | KM_LOAD_EAGER | KM_LOAD_LAZY
// $GlobalConfig->GetInstance()->GetPhreezer()->SetLoadType("User","fk_user_role",KM_LOAD_EAGER); // KM_LOAD_INNER | KM_LOAD_EAGER | KM_LOAD_LAZY
开发者ID:edusalazar,项目名称:imoveis,代码行数:31,代码来源:_app_config.php

示例12: display

    /**
     * Displays the GUI input form
     */
    function display()
    {
        global $db, $sid, $lang, $root_path, $pid, $insurance_show, $user_id, $mode, $dbtype, $no_tribe, $no_region, $update, $photo_filename;
        #, $_FILES $_POST, $_SESSION;
        extract($_POST);
        require_once $root_path . 'include/care_api_classes/class_advanced_search.php';
        # Load the language tables
        $lang_tables = $this->langfiles;
        include $root_path . 'include/inc_load_lang_tables.php';
        include_once $root_path . 'include/inc_date_format_functions.php';
        include_once $root_path . 'include/care_api_classes/class_insurance.php';
        include_once $root_path . 'include/care_api_classes/class_person.php';
        $db->debug = FALSE;
        # Create the new person object
        $person_obj =& new Person($pid);
        # Create a new person insurance object
        $pinsure_obj =& new PersonInsurance($pid);
        if (!isset($insurance_show)) {
            $insurance_show = TRUE;
        }
        $newdata = 1;
        $error = 0;
        $dbtable = 'care_person';
        if (!isset($photo_filename) || empty($photo_filename)) {
            $photo_filename = 'nopic';
        }
        # Assume first that image is not uploaded
        $valid_image = FALSE;
        //* Get the global config for person's registration form*/
        include_once $root_path . 'include/care_api_classes/class_globalconfig.php';
        $glob_obj = new GlobalConfig($GLOBAL_CONFIG);
        $glob_obj->getConfig('person_%');
        extract($GLOBAL_CONFIG);
        # Check whether config foto path exists, else use default path
        $photo_path = is_dir($root_path . $GLOBAL_CONFIG['person_foto_path']) ? $GLOBAL_CONFIG['person_foto_path'] : $this->default_photo_path;
        if ($mode == 'save' || $mode == 'forcesave') {
            $search_obj =& new advanced_search();
            if (is_array($result_array = $search_obj->get_equal_words("tribe_name", "care_tz_tribes", false, 65, 'tribe_id')) && $name_maiden && !$no_tribe) {
                $tribe_array = $result_array;
            } else {
                $tribe_array = $result_array;
            }
            if (is_array($result_array = $search_obj->get_equal_words("name", "care_tz_religion", false, 65, 'nr')) && $religion && !$person_religion_hide) {
                $religion_array = $result_array;
            } else {
                $religion_array = $result_array;
            }
            /*
            		if (is_array($result_array=$search_obj->get_equal_words("region_name", "care_tz_region", false, 65, 'region_id')) && $email && !$person_email_hide )
            		{
            			$region_array=$result_array;
            		}
            		else
            		{
            			 $region_array=$result_array;
            		}
            		if (is_array($result_array=$search_obj->get_equal_words1("district_name", "care_tz_district", false, 65, 'district_id',$email)) && $sss_nr )
            		{
            			$district_array=$result_array;
            		}
            		else
            		{
            			 $district_array=$result_array;
            		}
            		if (is_array($result_array=$search_obj->get_equal_words1("ward_name", "care_tz_ward", false, 65, 'ward_id',$sss_nr)) && $nat_id_nr )
            		{
            			$ward_array=$result_array;
            		}
            		else
            		{
            			 $ward_array=$result_array;
            		}
            */
            # If saving is not forced, validate important elements
            if ($mode != 'forcesave') {
                # clean and check input data variables
                if (trim($encoder) == '') {
                    $encoder = $aufnahme_user;
                }
                if (trim($name_last) == '') {
                    $errornamelast = 1;
                    $error++;
                }
                //if (trim($selian_pid)=='' || !is_numeric($selian_pid) || (!$update && $person_obj->SelianFileExists($selian_pid))) { $errorfilenr=1; $error++;}
                if ($person_obj->IsHospitalFileNrMandatory()) {
                    if (trim($selian_pid) == '' || !$update && $person_obj->SelianFileExists($selian_pid)) {
                        $errorfilenr = 1;
                        $error++;
                    }
                }
                if (trim($name_first) == '') {
                    $errornamefirst = 1;
                    $error++;
                }
                if (trim($date_birth) == '') {
                    $errordatebirth = 1;
                    $error++;
//.........这里部分代码省略.........
开发者ID:patmark,项目名称:care2x-tz,代码行数:101,代码来源:class_gui_input_person_old.php

示例13: define

 * @version     CVS: $Id: maple.inc.php,v 1.2 2006/10/13 09:38:47 Ryuji.M Exp $
 */
//
//基本となるディレクトリの設定
//
if (!defined('BASE_DIR')) {
    define('BASE_DIR', dirname(dirname(dirname(__FILE__))));
}
define('WEBAPP_DIR', dirname(dirname(__FILE__)));
define('MAPLE_DIR', 'maple');
//
//基本となる定数の読み込み
//
require_once BASE_DIR . "/" . MAPLE_DIR . '/config/common.php';
require_once BASE_DIR . "/" . MAPLE_DIR . '/core/GlobalConfig.class.php';
GlobalConfig::loadConstantsFromFile(dirname(__FILE__) . '/' . GLOBAL_CONFIG);
//
// Smarty関連のディレクトリ設定
// (注意)ディレクトリ指定での最後に「/」をつけること
//
define('SMARTY_DIR', MAPLE_DIR . '/smarty/');
define('SMARTY_COMPILE_DIR', WEBAPP_DIR . '/templates_c/');
define('SMARTY_DEFAULT_MODIFIERS', 'escape:"html"');
//configテーブルにデータがない場合に使用されるデフォルト値
define('SMARTY_CACHING', 2);
define('SMARTY_CACHE_LIFETIME', 3600);
//1時間キャッシュを保持
define('SMARTY_COMPILE_CHECK', false);
define('SMARTY_FORCE_COMPILE', false);
//define('SMARTY_DEBUGGING',     false);
//
开发者ID:RikaFujiwara,项目名称:NetCommons2,代码行数:31,代码来源:maple.inc.php

示例14: PersonInsurance

    $_SESSION['sess_full_pnr'];
}
$patregtable = 'care_person';
// The table of the patient registration data
//$dbtable='care_encounter'; // The table of admission data
/* Create new person's insurance object */
$pinsure_obj = new PersonInsurance($pid);
/* Get the insurance classes */
$insurance_classes =& $pinsure_obj->getInsuranceClassInfoObject('class_nr,name,LD_var');
/* Create new person object */
$person_obj = new Person($pid);
/* Create personell object */
$personell_obj = new Personell();
if ($pid || $personell_nr) {
    # Get the patient global configs
    $glob_obj = new GlobalConfig($GLOBAL_CONFIG);
    $glob_obj->getConfig('personell_%');
    $glob_obj->getConfig('person_foto_path');
    # Check whether config path exists, else use default path
    $photo_path = is_dir($root_path . $GLOBAL_CONFIG['person_foto_path']) ? $GLOBAL_CONFIG['person_foto_path'] : $default_photo_path;
    if ($pid) {
        # Check whether the person is currently admitted. If yes jump to display admission data
        if ($mode != 'save' && ($personell_nr = $personell_obj->Exists($pid))) {
            header('Location:personell_register_show.php' . URL_REDIRECT_APPEND . '&personell_nr=' . $personell_nr . '&origin=admit&sem=isadmitted&target=personell_reg');
            exit;
        }
        # Get the related insurance data
        $p_insurance =& $pinsure_obj->getPersonInsuranceObject($pid);
        if ($p_insurance == FALSE) {
            $insurance_show = TRUE;
        } else {
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:personell_register.php

示例15: GlobalConfig

<?php

include '../inc/php.php';
//$autologin = null;
//$enable_autologin = false;
$autologin = Lib::isDefined('autologin');
$enable_autologin = Lib::isDefined('autologin');
$num_log = Lib::isDefined('num_log');
$globalConfig = new GlobalConfig();
//if ($conf->exec_debug) {
//    echo '<h3>Mode Debugger</h3>';
//}
//Autologin
if (!$autologin and $enable_autologin == 1) {
    $autologin = $_GET['autologin'];
    $enable_autologin = $_GET['enable_autologin'];
    echo '
Pour accéder à l\'intranet en mode <b>Authentification automatique</b>, veuillez configurer votre navigateur Internet Explorer de la manière suivante:<br>
<br>
1. Aller dans Outils > Options Internet > Sécurité:<br>
2. Sélectionner \'Sites de confiance\'<br>
3. Cliquez sur le bouton \'Sites\'<br>
4. Ajouter *.agis.fr<br>
5. Décochez \'Exiger un serveur sécurisé (https) pour tous les sites de cette zone\'<br>
6. Validez en cliquant sur le bouton \'Fermer\'<br>
7. Cliquez sur \'personnaliser le niveau\'<br>
8. Aller dans \'Contrôles ActiveX et plug-ins\'<br>
9. Activer \'Contrôles d\'initialisation et de scripts ActiveX non marqué comme sécurisés pour l\'écriture de script\'<br>
10. Fermer et réouvrir le navigateur.<br>
<br>
<br>
开发者ID:SalokineTerata,项目名称:intranet,代码行数:31,代码来源:index.php


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