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


PHP language::getinstance方法代码示例

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


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

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $lng = language::getinstance()->GetLngBlock('dataengine');
     $this->CronPattern = $lng['wormholes_cron'];
     $this->lastrun = DataEngine::config_key('wormhole_cleaning', 'lastrun');
 }
开发者ID:google-code-backups,项目名称:eude,代码行数:7,代码来源:crontab.php

示例2: __construct

 public function __construct()
 {
     $this->BASE_FILE = ROOT_URL . 'pillage.php';
     $this->ress = DataEngine::a_ressources();
     $this->lng = language::getinstance()->GetLngBlock('pillage');
     parent::__construct();
 }
开发者ID:google-code-backups,项目名称:eude,代码行数:7,代码来源:troops.tpl.php

示例3: __construct

 public function __construct()
 {
     $this->BASE_FILE = ROOT_URL . 'Membre.php';
     $this->lng = language::getinstance()->GetLngBlock('membre');
     parent::__construct();
     $this->page_title = $this->lng['page_title'];
 }
开发者ID:google-code-backups,项目名称:eude,代码行数:7,代码来源:membre.tpl.php

示例4: __construct

 public function __construct()
 {
     $this->BASE_FILE = ROOT_URL . "Carte.php";
     $this->map = map::getinstance();
     $this->lng = language::getinstance()->GetLngBlock('carte');
     parent::__construct();
 }
开发者ID:google-code-backups,项目名称:eude,代码行数:7,代码来源:carte.tpl.php

示例5: GetCustomPerms

 public function GetCustomPerms()
 {
     $lng = language::getinstance()->GetLngBlock(LNG_CODE, SCANNER_PATH);
     $value = array();
     $value[1000] = $lng['conf_perms'];
     $value['ADVANCED_SCANNER'] = $lng['conf_perms_global'];
     return $value;
 }
开发者ID:google-code-backups,项目名称:eude,代码行数:8,代码来源:advanced_scanner.conf.php

示例6: __construct

 public function __construct()
 {
     $this->BASE_FILE = ROOT_URL . 'cartographie.php';
     $this->BASE_GET = Get_string();
     $this->lng = language::getinstance()->GetLngBlock('cartographie');
     $this->SetheaderInput();
     parent::__construct();
 }
开发者ID:google-code-backups,项目名称:eude,代码行数:8,代码来源:cartographie.tpl.php

示例7: __construct

 public function __construct()
 {
     $this->lng = language::getinstance()->GetLngBlock('ownuniverse');
     foreach (DataEngine::a_ressources() as $v) {
         $this->ressourcesnames[$v['Field']] = $v['Nom'];
     }
     $this->BatimentsName = DataEngine::a_batiments();
     $this->parser = parser::getinstance();
 }
开发者ID:google-code-backups,项目名称:eude,代码行数:9,代码来源:ownuniverse.class.php

示例8: __construct

 public function __construct()
 {
     $this->BASE_FILE = ROOT_URL . 'Cartedetail.php';
     $this->lng = language::getinstance()->GetLngBlock('cartedetails');
     $this->bulle1 = bulle($this->lng['bulle1']);
     $this->bulle2 = bulle($this->lng['bulle2']);
     $this->lngtype = language::getinstance()->GetLngBlock('dataengine');
     $this->lngtype = $this->lngtype['types']['imgurl'];
     parent::__construct();
 }
开发者ID:google-code-backups,项目名称:eude,代码行数:10,代码来源:cartedetails.tpl.php

示例9: __construct

    public function __construct()
    {
        $this->BASE_FILE = ROOT_URL . "stats.php";
        $this->lng = language::getinstance()->GetLngBlock('stats');
        $this->lngtype = language::getinstance()->GetLngBlock('dataengine');
        $this->lngtype = $this->lngtype['types']['dropdown'];
        parent::__construct();
        $this->total = array_fill(-1, 8, 0);
        $actived_pts = isset($_GET['act']) ? 'titre' : 'header link';
        $actived_de = !isset($_GET['act']) ? 'titre' : 'header link';
        $out = <<<h
        <br/>
<table class="table_center table_nospacing" width="900px">
<tr class="spacing_header">
<td class="color_{$actived_de} text_center" width="450px" OnClick="location.href='{$this->BASE_FILE}';">{$this->lng['eude_stats']}</td>
<td class="color_{$actived_pts} text_center spacing_row" width="450px" OnClick="location.href='{$this->BASE_FILE}?act=pts';">{$this->lng['pts_stats']}</td></tr>
<tr><td colspan="2">
h;
        $this->PushOutput($out);
    }
开发者ID:google-code-backups,项目名称:eude,代码行数:20,代码来源:stats.tpl.php

示例10: __construct

    public function __construct()
    {
        $this->BASE_FILE = ROOT_URL . 'EAdmin.php';
        $this->lng = language::getinstance()->GetLngBlock('admin');
        parent::__construct();
        $out = <<<o
   <style>
       /* Redéfinition du style de base */
address, a:link, a:active, a:visited {
    color: blue;
    text-decoration: none;
}
a:hover {
    color: darkorange;
}
   </style>
   <br/>
o;
        $this->PushOutput($out);
    }
开发者ID:google-code-backups,项目名称:eude,代码行数:20,代码来源:eadmin.tpl.php

示例11: getinstance

 /**
  * @return troops
  */
 public static function getinstance()
 {
     if (!self::$instance) {
         self::$instance = new self();
         self::$instance->lng = language::getinstance()->GetLngBlock('pillage');
     }
     return self::$instance;
 }
开发者ID:google-code-backups,项目名称:eude,代码行数:11,代码来源:troops.class.php

示例12: die

/**
 * @author Alex10336
 * Dernière modification: $Id$
 * @license GNU Public License 3.0 ( http://www.gnu.org/licenses/gpl-3.0.txt )
 * @license Creative Commons 3.0 BY-SA ( http://creativecommons.org/licenses/by-sa/3.0/deed.fr )
 *
 **/
if (!SCRIPT_IN) {
    die('Need by included');
}
$validsession = false;
// false=nul, true=Ok, -1=Err?
$login_msg = '';
// Message en cas d'erreur.
$lng = language::getinstance()->GetLngBlock('login');
if (NO_SESSIONS) {
    $login = sqlesc(mb_strtolower($_POST['user'], 'utf8'), false);
    $mdp = $_POST['pass'];
    $query = 'SELECT LOWER(u.`Login`) as `Login`, u.`Permission`, m.`carte_prefs` from `SQL_PREFIX_Users` u, `SQL_PREFIX_Membres` m WHERE LOWER(u.`Login`)=LOWER(\'' . $login . '\') AND u.`Password`=\'' . $mdp . '\' AND (m.`Joueur`=LOWER(\'' . $login . '\'))';
    $mysql_result = DataEngine::sql($query);
    $ligne = mysql_fetch_assoc($mysql_result);
    if (is_array($ligne) && $ligne['Login'] == $login) {
        // session valide
        $validsession = true;
        $_SESSION['_login'] = $login;
        $_SESSION['_pass'] = $mdp;
        $_SESSION['_Perm'] = $ligne['Permission'];
        $_SESSION['carte_prefs'] = $ligne['carte_prefs'];
        $_SESSION['_IP'] = Get_IP();
        $_SESSION['_permkey'] = sha1($mdp . $_SESSION['_IP']);
开发者ID:google-code-backups,项目名称:eude,代码行数:30,代码来源:login.php

示例13: __construct

    public function __construct()
    {
        if (isset($_SESSION['carte_prefs']) && $_SESSION['carte_prefs'] != '') {
            $this->load_prefs($_SESSION['carte_prefs']);
        } else {
            $this->load_prefs('1;1;1;1;0;600;1;1;1');
        }
        $this->parcours = '';
        if (IS_IMG) {
            //            $this->inactif		= $_SESSION['inactif'];
            $this->IN = $_SESSION['IN'];
            $this->OUT = $_SESSION['OUT'];
            $this->loadfleet = isset($_SESSION['loadfleet']) ? $_SESSION['loadfleet'] : '';
            $this->parcours = $_SESSION['parcours'];
        } else {
            if (isset($_POST['coorin'])) {
                $this->IN = intval($_POST['coorin']);
            } else {
                $this->IN = 0;
            }
            if (isset($_POST['coorout'])) {
                $this->OUT = intval($_POST['coorout']);
            } else {
                $this->OUT = 0;
            }
            if ($this->IN < 1 || $this->IN > 10000) {
                $this->IN = '';
            }
            if ($this->OUT < 1 || $this->OUT > 10000) {
                $this->OUT = '';
            }
            $this->loadfleet = (isset($_REQUEST['loadfleet']) and intval($_REQUEST['loadfleet']) > 0) ? intval($_REQUEST['loadfleet']) : 0;
            $this->method = (isset($_REQUEST['method']) and intval($_REQUEST['method']) > 0) ? intval($_REQUEST['method']) : 2;
            //            $this->inactif		= ( isset($_POST['inactif']) 	&& $_POST['inactif'] > 0 ) 	? true: false;
            $this->nointrass = isset($_POST['nointrass']) && $_POST['nointrass'] > 0 ? true : false;
            $this->update_session();
            FB::warn($this->method, 'method');
        }
        // mise en variable, plus rapide que 36 call function
        if (($this->empire = trim(DataEngine::config_key('config', 'MyEmpire'))) == '') {
            $mysql_result = DataEngine::sql('Select g.`Grade` from
		`SQL_PREFIX_Membres` as m, `SQL_PREFIX_Grade` as g WHERE
		`Joueur`=\'' . sqlesc($_SESSION['_login']) . '\' AND (m.`Grade`=g.`GradeId`)');
            $ligne = mysql_fetch_assoc($mysql_result);
            $grade = $ligne['Grade'];
            $this->empire = $ligne['Grade'];
        }
        $this->cxx_empires = Members::CheckPerms('CARTE_SHOWEMPIRE');
        $this->lng = language::getinstance()->GetLngBlock('carte');
        $this->itineraire = $this->IN != '' && $this->OUT != '' && $this->IN != $this->OUT;
    }
开发者ID:google-code-backups,项目名称:eude,代码行数:51,代码来源:map.class.php

示例14: NoPermsAndDie

 public static function NoPermsAndDie()
 {
     $lng = language::getinstance()->GetLngBlock('dataengine');
     DataEngine::ErrorAndDie($lng['nopermsanddie']);
 }
开发者ID:google-code-backups,项目名称:eude,代码行数:5,代码来源:dataengine.class.php

示例15: explode

<?php

/**
 * @author Alex10336
 * Dernière modification: $Id$
 * @license GNU Public License 3.0 ( http://www.gnu.org/licenses/gpl-3.0.txt )
 * @license Creative Commons 3.0 BY-SA ( http://creativecommons.org/licenses/by-sa/3.0/deed.fr )
 * 
 **/
require_once './init.php';
require_once INCLUDE_PATH . 'Script.php';
require_once CLASS_PATH . 'parser.class.php';
Members::CheckPermsOrDie('PERSO');
$lng = language::getinstance()->GetLngBlock('personal');
if (isset($_POST['importation'])) {
    //    $data = file_get_contents('./test/data/mafiche_ff.txt');
    $data = gpc_esc($_POST['importation']);
    $parser = parser::getinstance();
    // simple détection...
    if (p_stripos($parser->GetValueByLabel($data, $lng['ident']), $_SESSION['_login'], 0) !== false) {
        $matrix = explode("\n", trim($data));
        $info = array();
        $info['GameGrade'] = trim($matrix[0]);
        $info['Race'] = $parser->GetValueByLabel($data, $lng['Race']);
        $info['Titre'] = $parser->GetValueByLabel($data, $lng['Titre']);
        $info['Commerce'] = $parser->GetValueByLabel($data, $lng['Commerce']);
        $info['Recherche'] = $parser->GetValueByLabel($data, $lng['Recherche']);
        $info['Combat'] = $parser->GetValueByLabel($data, $lng['Combat']);
        $info['Construction'] = $parser->GetValueByLabel($data, $lng['Construction']);
        $info['Economie'] = $parser->GetValueByLabel($data, $lng['Economie']);
        $info['Navigation'] = $parser->GetValueByLabel($data, $lng['Navigation']);
开发者ID:google-code-backups,项目名称:eude,代码行数:31,代码来源:Mafiche.php


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