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


PHP System::getSystemConfiguration方法代码示例

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


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

示例1: system

 public function system()
 {
     require_once PATH_CONTROLLERS . 'main.php';
     G::loadClass('system');
     $skinsList = System::getSkingList();
     foreach ($skinsList['skins'] as $key => $value) {
         if ($value['SKIN_WORKSPACE'] != 'Global') {
             unset($skinsList['skins'][$key]);
         }
     }
     $skins = array();
     $timeZonesList = System::getAllTimeZones();
     $timeZonesList = array_keys($timeZonesList);
     $mainController = new Main();
     $languagesList = $mainController->getLanguagesList();
     $sysConf = System::getSystemConfiguration(PATH_CONFIG . 'env.ini');
     foreach ($skinsList['skins'] as $skin) {
         $skins[] = array($skin['SKIN_FOLDER_ID'], $skin['SKIN_NAME']);
     }
     foreach ($timeZonesList as $tz) {
         $timeZones[] = array($tz, $tz);
     }
     $this->includeExtJS('admin/system');
     //G::LoadClass('configuration');
     // $c = new Configurations();
     // $configPage = $c->getConfiguration('usersList', 'pageSize','',$_SESSION['USER_LOGGED']);
     // $Config['pageSize'] = isset($configPage['pageSize']) ? $configPage['pageSize'] : 20;
     $this->setJSVar('skinsList', $skins);
     $this->setJSVar('languagesList', $languagesList);
     $this->setJSVar('timeZonesList', $timeZones);
     $this->setJSVar('sysConf', $sysConf);
     G::RenderPage('publish', 'extJs');
 }
开发者ID:rodrigoivan,项目名称:processmaker,代码行数:33,代码来源:admin.php

示例2: configure

    public function configure()
    {
        parent::configure();

        $this->pmConfig = System::getSystemConfiguration();

        $e_all  = defined('E_DEPRECATED') ? E_ALL  & ~E_DEPRECATED : E_ALL;
        $e_all  = defined('E_STRICT')     ? $e_all & ~E_STRICT     : $e_all;
        $e_all  = $this->pmConfig['debug'] ? $e_all                : $e_all & ~E_NOTICE;

        // Do not change any of these settings directly, use env.ini instead
        ini_set('display_errors', $this->pmConfig['debug']);
        ini_set('error_reporting', $e_all);
        ini_set('short_open_tag', 'On');
        ini_set('default_charset', "UTF-8");
        ini_set('memory_limit', $this->pmConfig['memory_limit']);
        ini_set('soap.wsdl_cache_enabled', $this->pmConfig['wsdl_cache']);
        ini_set('date.timezone', $this->pmConfig['time_zone']);

        define ('DEBUG_SQL_LOG', $this->pmConfig['debug_sql']);
        define ('DEBUG_TIME_LOG', $this->pmConfig['debug_time']);
        define ('DEBUG_CALENDAR_LOG', $this->pmConfig['debug_calendar']);
        define ('MEMCACHED_ENABLED',  $this->pmConfig['memcached']);
        define ('MEMCACHED_SERVER',   $this->pmConfig['memcached_server']);
        define ('TIME_ZONE', $this->pmConfig['time_zone']);

        // enable ERROR_SHOW_SOURCE_CODE to display the source code for any WARNING OR NOTICE
        define ('ERROR_SHOW_SOURCE_CODE', true);
    }
开发者ID:rrsc,项目名称:processmaker,代码行数:29,代码来源:PmBootstrap.php

示例3: saveSystemConf

 public function saveSystemConf($httpData)
 {
     G::loadClass('system');
     $envFile = PATH_CONFIG . 'env.ini';
     $updateRedirector = false;
     $restart = false;
     if (!file_exists($envFile)) {
         // if ini file doesn't exists
         if (!is_writable(PATH_CONFIG)) {
             throw new Exception('The enviroment config directory is not writable. <br/>Please give write permission to directory: /workflow/engine/config');
         }
         $content = ";\r\n";
         $content .= "; ProcessMaker System Bootstrap Configuration\r\n";
         $content .= ";\r\n";
         file_put_contents($envFile, $content);
         //@chmod($envFile, 0777);
     } else {
         if (!is_writable($envFile)) {
             throw new Exception('The enviroment ini file file is not writable. <br/>Please give write permission to file: /workflow/engine/config/env.ini');
         }
     }
     $sysConf = System::getSystemConfiguration($envFile);
     $updatedConf = array();
     if ($sysConf['default_lang'] != $httpData->default_lang) {
         $updatedConf['default_lang'] = $sysConf['default_lang'] = $httpData->default_lang;
         $updateRedirector = true;
     }
     if ($sysConf['default_skin'] != $httpData->default_skin) {
         $updatedConf['default_skin'] = $sysConf['default_skin'] = $httpData->default_skin;
         $updateRedirector = true;
     }
     if ($sysConf['time_zone'] != $httpData->time_zone) {
         $updatedConf['time_zone'] = $httpData->time_zone;
     }
     $httpData->memory_limit .= 'M';
     if ($sysConf['memory_limit'] != $httpData->memory_limit) {
         $updatedConf['memory_limit'] = $httpData->memory_limit;
     }
     if ($updateRedirector) {
         if (!file_exists(PATH_HTML . 'index.html')) {
             throw new Exception('The index.html file is not writable on workflow/public_html directory.');
         } else {
             if (!is_writable(PATH_HTML . 'index.html')) {
                 throw new Exception(G::LoadTranslation('ID_INDEX_NOT_WRITEABLE') . ' /workflow/public_html/index.html');
             }
         }
         System::updateIndexFile(array('lang' => $sysConf['default_lang'], 'skin' => $sysConf['default_skin']));
         $restart = true;
     }
     G::update_php_ini($envFile, $updatedConf);
     if (substr($sysConf['default_skin'], 0, 2) == 'ux') {
         $urlPart = '/main/login';
     } else {
         $urlPart = '/login/login';
     }
     $this->success = true;
     $this->restart = $restart;
     $this->url = '/sys' . SYS_SYS . '/' . $sysConf['default_lang'] . '/' . $sysConf['default_skin'] . $urlPart;
     $this->message = 'Saved Successfully';
 }
开发者ID:nshong,项目名称:processmaker,代码行数:60,代码来源:adminProxy.php

示例4: install

function install($file)
{
    G::LoadThirdParty("pear/Archive", "Tar");
    $result = array();
    $status = 1;
    try {
        //Extract
        $tar = new Archive_Tar($file);
        $swTar = $tar->extract(PATH_OUTTRUNK);
        //true on success, false on error. //directory for extract
        //$swTar = $tar->extract(PATH_PLUGINS);
        if (!$swTar) {
            throw new Exception("Could not extract file.");
        }
        //Upgrade
        $option = array("http" => array("method" => "POST"));
        // Proxy settings
        $sysConf = System::getSystemConfiguration();
        if (isset($sysConf['proxy_host'])) {
            if ($sysConf['proxy_host'] != '') {
                if (!is_array($option['http'])) {
                    $option['http'] = array();
                }
                $option['http']['request_fulluri'] = true;
                $option['http']['proxy'] = 'tcp://' . $sysConf['proxy_host'] . ($sysConf['proxy_port'] != '' ? ':' . $sysConf['proxy_port'] : '');
                if ($sysConf['proxy_user'] != '') {
                    if (!isset($option['http']['header'])) {
                        $option['http']['header'] = '';
                    }
                    $option['http']['header'] .= 'Proxy-Authorization: Basic ' . base64_encode($sysConf['proxy_user'] . ($sysConf['proxy_pass'] != '' ? ':' . $sysConf['proxy_pass'] : ''));
                }
            }
        }
        $context = stream_context_create($option);
        ///////
        $fileData = @fopen(EnterpriseUtils::getUrlServerName() . "/sys" . SYS_SYS . "/" . SYS_LANG . "/" . SYS_SKIN . "/enterprise/services/processMakerUpgrade", "rb", false, $context);
        if ($fileData === false) {
            throw new Exception("Could not open services url.");
        }
        $resultAux = G::json_decode(stream_get_contents($fileData));
        if ($resultAux->status == "OK") {
            $result["status"] = $resultAux->status;
            //OK
            $result["message"] = $resultAux->message;
        } else {
            throw new Exception($resultAux->message);
        }
    } catch (Exception $e) {
        $result["message"] = $e->getMessage();
        $status = 0;
    }
    if ($status == 0) {
        $result["status"] = "ERROR";
    }
    return $result;
}
开发者ID:emildev35,项目名称:processmaker,代码行数:56,代码来源:processMakerAjax.php

示例5: getTimeZone

 /**
  * Get Time Zone
  *
  * @return string Return Time Zone
  */
 public static function getTimeZone()
 {
     try {
         $arraySystemConfiguration = \System::getSystemConfiguration('', '', SYS_SYS);
         //Return
         return $arraySystemConfiguration['time_zone'];
     } catch (\Exception $e) {
         throw $e;
     }
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:15,代码来源:System.php

示例6: index

 /**
  * getting default list
  *
  * @param string $httpData (opional)
  */
 public function index($httpData)
 {
     if ($this->userUxType == 'SINGLE') {
         $this->indexSingle($httpData);
         return;
     }
     require_once 'classes/model/UsersProperties.php';
     G::LoadClass('process');
     G::LoadClass('case');
     $userProperty = new UsersProperties();
     $process = new Process();
     $case = new Cases();
     G::loadClass('system');
     $sysConf = System::getSystemConfiguration(PATH_CONFIG . 'env.ini');
     //Get ProcessStatistics Info
     $start = 0;
     $limit = '';
     $proData = $process->getAllProcesses($start, $limit);
     $processList = $case->getStartCasesPerType($_SESSION['USER_LOGGED'], 'category');
     $switchLink = $userProperty->getUserLocation($_SESSION['USER_LOGGED']);
     if (!isset($_COOKIE['workspaceSkin'])) {
         if (substr($sysConf['default_skin'], 0, 2) == 'ux') {
             $_SESSION['_defaultUserLocation'] = $switchLink;
             $switchLink = '/sys' . SYS_SYS . '/' . SYS_LANG . '/' . $sysConf['default_skin'] . '/main';
         }
     }
     unset($processList[0]);
     //Get simplified options
     global $G_TMP_MENU;
     $mnu = new Menu();
     $mnu->load('simplified');
     $arrayMnuOption = array();
     $mnuNewCase = array();
     if (!empty($mnu->Options)) {
         foreach ($mnu->Options as $index => $value) {
             $option = array('id' => $mnu->Id[$index], 'url' => $mnu->Options[$index], 'label' => $mnu->Labels[$index], 'icon' => $mnu->Icons[$index], 'class' => $mnu->ElementClass[$index]);
             if ($mnu->Id[$index] != 'S_NEW_CASE') {
                 $arrayMnuOption[] = $option;
             } else {
                 $mnuNewCase = $option;
             }
         }
     }
     $this->setView($this->userUxBaseTemplate . PATH_SEP . 'index');
     $this->setVar('usrUid', $this->userID);
     $this->setVar('userName', $this->userName);
     $this->setVar('processList', $processList);
     $this->setVar('canStartCase', $case->canStartCase($_SESSION['USER_LOGGED']));
     $this->setVar('userUxType', $this->userUxType);
     $this->setVar('clientBrowser', $this->clientBrowser['name']);
     $this->setVar('switchLink', $switchLink);
     $this->setVar('arrayMnuOption', $arrayMnuOption);
     $this->setVar('mnuNewCase', $mnuNewCase);
     $this->render();
 }
开发者ID:ralpheav,项目名称:processmaker,代码行数:60,代码来源:home.php

示例7: __construct

 public function __construct($template, $skin, $content)
 {
     $this->template = $template;
     $this->skin = $skin;
     $this->content = $content;
     $this->skinVariants = array('blank', 'extjs', 'raw', 'tracker', 'submenu');
     $this->skinsBasePath = G::ExpandPath("skinEngine");
     $sysConf = System::getSystemConfiguration(PATH_CONFIG . 'env.ini');
     $this->skinDefault = isset($sysConf['default_skin']) && $sysConf['default_skin'] != '' ? $sysConf['default_skin'] : 'classic';
     $this->_init();
 }
开发者ID:bqevin,项目名称:processmaker,代码行数:11,代码来源:skinEngine.php

示例8: getUserByEmail

 /**
  * Get User by usrGmail
  *
  * @param string $usr_gmail Unique id of User
  *
  * return uid
  *
  */
 public function getUserByEmail($usr_gmail)
 {
     //getting the user data
     require_once PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "Users.php";
     $oUsers = new \Users();
     $response['user'] = $oUsers->loadByUserEmailInArray($usr_gmail);
     //getting the skin
     require_once PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "class.system.php";
     $sysConf = new \System();
     $responseSysConfig = $sysConf->getSystemConfiguration(PATH_CONFIG . 'env.ini');
     $response['enviroment'] = $responseSysConfig['default_skin'];
     return $response;
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:21,代码来源:Pmgmail.php

示例9: checkConnectivity

 public static function checkConnectivity($url)
 {
     try {
         if (extension_loaded('curl')) {
             $ch = curl_init();
             curl_setopt($ch, CURLOPT_URL, $url);
             curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
             curl_setopt($ch, CURLOPT_HEADER, true);
             curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
             curl_setopt($ch, CURLOPT_AUTOREFERER, true);
             curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
             curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
             curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
             curl_setopt($ch, CURLOPT_TIMEOUT, 20);
             curl_setopt($ch, CURLOPT_VERBOSE, true);
             //Apply proxy settings
             $sysConf = System::getSystemConfiguration();
             if (isset($sysConf['proxy_host'])) {
                 if ($sysConf['proxy_host'] != '') {
                     curl_setopt($ch, CURLOPT_PROXY, $sysConf['proxy_host'] . ($sysConf['proxy_port'] != '' ? ':' . $sysConf['proxy_port'] : ''));
                     if ($sysConf['proxy_port'] != '') {
                         curl_setopt($ch, CURLOPT_PROXYPORT, $sysConf['proxy_port']);
                     }
                     if ($sysConf['proxy_user'] != '') {
                         curl_setopt($ch, CURLOPT_PROXYUSERPWD, $sysConf['proxy_user'] . ($sysConf['proxy_pass'] != '' ? ':' . $sysConf['proxy_pass'] : ''));
                     }
                     curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
                 }
             }
             $content = curl_exec($ch);
             $headers = curl_getinfo($ch);
             $content = substr($content, $headers['header_size']);
             if ($headers['http_code'] === 200) {
                 return $content;
             }
         } else {
             throw new Exception('The "CURL" extension not loaded.');
         }
     } catch (Exception $e) {
         //Log the error
     }
     return false;
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:43,代码来源:class.enterpriseUtils.php

示例10: getSoapClientOptions

function getSoapClientOptions()
{
    $options = array('trace' => 1);
    //Apply proxy settings
    $sysConf = System::getSystemConfiguration();
    if ($sysConf['proxy_host'] != '') {
        $options['proxy_host'] = $sysConf['proxy_host'];
        if ($sysConf['proxy_port'] != '') {
            $options['proxy_port'] = $sysConf['proxy_port'];
        }
        if ($sysConf['proxy_user'] != '') {
            $options['proxy_login'] = $sysConf['proxy_user'];
        }
        if ($sysConf['proxy_pass'] != '') {
            $options['proxy_password'] = $sysConf['proxy_pass'];
        }
    }
    return $options;
}
开发者ID:rodrigoivan,项目名称:processmaker,代码行数:19,代码来源:class.pmSugarFunctions.php

示例11: system

 public function system()
 {
     global $RBAC;
     $RBAC->requirePermissions('PM_SETUP');
     require_once PATH_CONTROLLERS . 'main.php';
     G::loadClass('system');
     $skinsList = System::getSkingList();
     foreach ($skinsList['skins'] as $key => $value) {
         if ($value['SKIN_WORKSPACE'] != 'Global') {
             unset($skinsList['skins'][$key]);
         }
     }
     $skins = array();
     $mainController = new Main();
     $languagesList = $mainController->getLanguagesList();
     $languagesList[] = array("", G::LoadTranslation("ID_USE_LANGUAGE_URL"));
     $sysConf = System::getSystemConfiguration(PATH_CONFIG . 'env.ini');
     foreach ($skinsList['skins'] as $skin) {
         $skins[] = array($skin['SKIN_FOLDER_ID'], $skin['SKIN_NAME']);
     }
     $this->includeExtJS('admin/system');
     //G::LoadClass('configuration');
     // $c = new Configurations();
     // $configPage = $c->getConfiguration('usersList', 'pageSize','',$_SESSION['USER_LOGGED']);
     // $Config['pageSize'] = isset($configPage['pageSize']) ? $configPage['pageSize'] : 20;
     if (isset($sysConf["session.gc_maxlifetime"])) {
         $sysConf["session_gc_maxlifetime"] = $sysConf["session.gc_maxlifetime"];
     } else {
         $sysConf["session_gc_maxlifetime"] = ini_get('session.gc_maxlifetime');
     }
     $this->setJSVar('skinsList', $skins);
     $this->setJSVar('languagesList', $languagesList);
     $this->setJSVar('timeZonesList', array_map(function ($value) {
         return [$value, $value];
     }, DateTimeZone::listIdentifiers()));
     $this->setJSVar('sysConf', $sysConf);
     G::RenderPage('publish', 'extJs');
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:38,代码来源:admin.php

示例12: executeTalendWebservice

/**
 *
 * @method Executes a Talend Web Service..
 *
 * @name executeTalendWebservice
 * @label Executes a Talend Web Service.
 *
 * @param string | $wsdl | Talend Web Service (including ?WSDL)
 * @param array(array(n1 v1) array(n2 v2) array(nN vN)) | $params | Array of params. Pairs of param Name Value
 * @param string | $message | Message to be displayed
 * @return array | $return | Talend Array
 *
 */
function executeTalendWebservice($wsdl, $message, $params = array())
{
    $client = new SoapClient($wsdl, array('trace' => 1));
    //Apply proxy settings
    $sysConf = System::getSystemConfiguration();
    if ($sysConf['proxy_host'] != '') {
        curl_setopt($client, CURLOPT_PROXY, $sysConf['proxy_host'] . ($sysConf['proxy_port'] != '' ? ':' . $sysConf['proxy_port'] : ''));
        if ($sysConf['proxy_port'] != '') {
            curl_setopt($client, CURLOPT_PROXYPORT, $sysConf['proxy_port']);
        }
        if ($sysConf['proxy_user'] != '') {
            curl_setopt($client, CURLOPT_PROXYUSERPWD, $sysConf['proxy_user'] . ($sysConf['proxy_pass'] != '' ? ':' . $sysConf['proxy_pass'] : ''));
        }
        curl_setopt($client, CURLOPT_HTTPHEADER, array('Expect:'));
    }
    $params[0] = "";
    foreach ($params as $paramO) {
        $params[] = "--context_param" . $paramO[0] . "=" . $paramO[1];
    }
    $result = $client->__SoapCall('runJob', array($params));
    /*
     $params[1]="--context_param nb_line=".@=Quantity;
    
     $result = $client->__SoapCall('runJob', array($params));
     foreach ($result->item as $keyItem => $item){
     $gridRow=$keyItem+1;
     @=USERSINFO[$gridRow]['NAME']=$item->item[1];
     @=USERSINFO[$gridRow]['LASTNAME']=$item->item[2];
     @=USERSINFO[$gridRow]['DATE']=$item->item[0];
     @=USERSINFO[$gridRow]['STREET']=$item->item[3];
     @=USERSINFO[$gridRow]['CITY']=$item->item[4];
     @=USERSINFO[$gridRow]['STATE']=$item->item[5];
     @=USERSINFO[$gridRow]['STATEID']=$item->item[6];
    
     }
    */
    G::SendMessageText("<font color='blue'>Information from Talend ETL webservice</font><font color='darkgray'><br>" . $wsdl . "</font>", "INFO");
}
开发者ID:rodrigoivan,项目名称:processmaker,代码行数:51,代码来源:class.pmTalendFunctions.php

示例13: file_get_contents

 $data = $data . "Content-Disposition: form-data; name=\"action\"\n\n" . "requestToSales" . "\n";
 $data = $data . "--{$boundary}\n";
 $data = $data . "Content-Disposition: form-data; name=\"OBJ_NAME\"\n\n" . $addonId . "\n";
 $data = $data . "--{$boundary}\n";
 ///////
 //$licenseManager = &pmLicenseManager::getSingleton();
 $activeLicense = $licenseManager->getActiveLicense();
 $data = $data . "Content-Disposition: form-data; name=\"licenseFile\"; filename=\"" . $licenseManager->file . "\"\n";
 $data = $data . "Content-Type: text/plain\n";
 $data = $data . "Content-Transfer-Encoding: binary\n\n";
 $data = $data . file_get_contents($activeLicense["LICENSE_PATH"]) . "\n";
 $data = $data . "--{$boundary}\n";
 ///////
 $option = array("http" => array("method" => "POST", "header" => "Content-Type: multipart/form-data; boundary=" . $boundary, "content" => $data));
 // Proxy settings
 $sysConf = System::getSystemConfiguration();
 if ($sysConf['proxy_host'] != '') {
     if (!is_array($option['http'])) {
         $option['http'] = array();
     }
     $option['http']['request_fulluri'] = true;
     $option['http']['proxy'] = 'tcp://' . $sysConf['proxy_host'] . ($sysConf['proxy_port'] != '' ? ':' . $sysConf['proxy_port'] : '');
     if ($sysConf['proxy_user'] != '') {
         if (!isset($option['http']['header'])) {
             $option['http']['header'] = '';
         }
         $option['http']['header'] .= 'Proxy-Authorization: Basic ' . base64_encode($sysConf['proxy_user'] . ($sysConf['proxy_pass'] != '' ? ':' . $sysConf['proxy_pass'] : ''));
     }
 }
 $context = stream_context_create($option);
 ///////
开发者ID:emildev35,项目名称:processmaker,代码行数:31,代码来源:addonsStoreAction.php

示例14: dir

 $sObject = $workspaceName;
 $sNow = '';
 // $argv[2];
 $sFilter = '';
 for ($i = 3; $i < count($argv); $i++) {
     $sFilter .= ' ' . $argv[$i];
 }
 $oDirectory = dir(PATH_DB);
 if (is_dir(PATH_DB . $sObject)) {
     saveLog('main', 'action', "checking folder " . PATH_DB . $sObject);
     if (file_exists(PATH_DB . $sObject . PATH_SEP . 'db.php')) {
         define('SYS_SYS', $sObject);
         // ****************************************
         // read initialize file
         require_once PATH_HOME . 'engine' . PATH_SEP . 'classes' . PATH_SEP . 'class.system.php';
         $config = System::getSystemConfiguration('', '', SYS_SYS);
         define('MEMCACHED_ENABLED', $config['memcached']);
         define('MEMCACHED_SERVER', $config['memcached_server']);
         define('TIME_ZONE', $config['time_zone']);
         date_default_timezone_set(TIME_ZONE);
         print "TIME_ZONE: " . TIME_ZONE . "\n";
         print "MEMCACHED_ENABLED: " . MEMCACHED_ENABLED . "\n";
         print "MEMCACHED_SERVER: " . MEMCACHED_SERVER . "\n";
         // ****************************************
         include_once PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'paths_installed.php';
         include_once PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'paths.php';
         // ***************** PM Paths DATA **************************
         define('PATH_DATA_SITE', PATH_DATA . 'sites/' . SYS_SYS . '/');
         define('PATH_DOCUMENT', PATH_DATA_SITE . 'files/');
         define('PATH_DATA_MAILTEMPLATES', PATH_DATA_SITE . 'mailTemplates/');
         define('PATH_DATA_PUBLIC', PATH_DATA_SITE . 'public/');
开发者ID:rodrigoivan,项目名称:processmaker,代码行数:31,代码来源:reindex_solr.php

示例15: parseNormalUri

 public function parseNormalUri($aRequestUri)
 {
     if (substr($aRequestUri[1], 0, 3) == 'sys') {
         define('SYS_TEMP', substr($aRequestUri[1], 3));
     } else {
         define("ENABLE_ENCRYPT", 'yes');
         define('SYS_TEMP', $aRequestUri[1]);
         $plain = '/sys' . SYS_TEMP;
         for ($i = 2; $i < count($aRequestUri); $i++) {
             $decoded = G::decrypt(urldecode($aRequestUri[$i]), URL_KEY);
             if ($decoded == 'sWì›') {
                 $decoded = $VARS[$i];
                 //this is for the string  "../"
             }
             $plain .= '/' . $decoded;
         }
         $_SERVER["REQUEST_URI"] = $plain;
     }
     $work = explode('?', $_SERVER["REQUEST_URI"]);
     if (count($work) > 1) {
         define('SYS_CURRENT_PARMS', $work[1]);
     } else {
         define('SYS_CURRENT_PARMS', '');
     }
     define('SYS_CURRENT_URI', $work[0]);
     if (!defined('SYS_CURRENT_PARMS')) {
         define('SYS_CURRENT_PARMS', $work[1]);
     }
     $preArray = explode('&', SYS_CURRENT_PARMS);
     $buffer = explode('.', $work[0]);
     if (count($buffer) == 1) {
         $buffer[1] = '';
     }
     //request type
     define('REQUEST_TYPE', $buffer[1] != "" ? $buffer[1] : 'html');
     $toparse = substr($buffer[0], 1, strlen($buffer[0]) - 1);
     $uriVars = explode('/', $toparse);
     unset($work);
     unset($buffer);
     unset($toparse);
     array_shift($uriVars);
     $args = array();
     $args['SYS_LANG'] = array_shift($uriVars);
     $args['SYS_SKIN'] = array_shift($uriVars);
     $args['SYS_COLLECTION'] = array_shift($uriVars);
     $args['SYS_TARGET'] = array_shift($uriVars);
     //to enable more than 2 directories...in the methods structure
     while (count($uriVars) > 0) {
         $args['SYS_TARGET'] .= '/' . array_shift($uriVars);
     }
     /* Fix to prevent use uxs skin outside siplified interface,
        because that skin is not compatible with others interfaces*/
     if ($args['SYS_SKIN'] == 'uxs' && $args['SYS_COLLECTION'] != 'home' && $args['SYS_COLLECTION'] != 'cases') {
         $config = System::getSystemConfiguration();
         $args['SYS_SKIN'] = $config['default_skin'];
     }
     return $args;
 }
开发者ID:rodrigoivan,项目名称:processmaker,代码行数:58,代码来源:class.g.php


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