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


PHP getlang函数代码示例

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


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

示例1: IncFloder

 /**
  * 
  * @param string $Floder
  * @param string $app
  */
 public static function IncFloder($Floder, $app = '')
 {
     $app_name = $app == '' ? APP_NAME : $app;
     $Floderpath = 'Lang' . DS . $app_name . DS . \getlang() . DS . $Floder;
     $it = new \DirectoryIterator($Floderpath);
     foreach ($it as $file) {
         if (!$it->isDot()) {
             $langfile = $Floderpath . DS . $file;
             self::IncFile($langfile);
         }
     }
 }
开发者ID:liutongju,项目名称:DreamCMSCN,代码行数:17,代码来源:IncludeLang.class.php

示例2: parseLangFilePath

 /**
  * 解析默认路径 
  * 默认:项目/语言/模块/控制器.php
  * 
  */
 public function parseLangFilePath($shortFile = '')
 {
     $lang = \getlang();
     if (!$shortFile) {
         $PATH = 'Lang' . DIRECTORY_SEPARATOR . APP_NAME . DIRECTORY_SEPARATOR . $lang . DIRECTORY_SEPARATOR . MODULE_NAME . DIRECTORY_SEPARATOR . strtolower(CONTROLLER_NAME) . '.php';
     } else {
         $PATH = 'Lang' . DIRECTORY_SEPARATOR . APP_NAME . DIRECTORY_SEPARATOR . $lang . DIRECTORY_SEPARATOR . $shortFile . '.php';
     }
     if (!is_file($PATH)) {
         mkdir($PATH, 0777, true);
     }
     return $PATH;
 }
开发者ID:liutongju,项目名称:DreamCMSCN,代码行数:18,代码来源:SetLang.class.php

示例3: array

if (!defined('IN_COMMON')) {
    exit;
}
//
// Configuration values
//
$config_values = array();
// do it like this :
//$config_values = array('name', 'value', 'option', 'display_order', 'type', 'plg_id', 'dynamic');
// General settings
$config_values[] = array('sitename', $config_sitename, '<input type=\\"text\\" id=\\"sitename\\" name=\\"sitename\\" value=\\"{con.sitename}\\" size=\\"50\\" />', 1, 'general', 0, 0);
$config_values[] = array('siteurl', $config_siteurl, '<input type=\\"text\\" id=\\"siteurl\\" name=\\"siteurl\\" value=\\"{con.siteurl}\\" size=\\"50\\" style=\\"direction:ltr\\" />', 2, 'general', 0, 0);
$config_values[] = array('sitemail', $config_sitemail, '<input type=\\"text\\" id=\\"sitemail\\" name=\\"sitemail\\" value=\\"{con.sitemail}\\" size=\\"25\\" style=\\"direction:ltr\\" />', 3, 'general', 0, 0);
$config_values[] = array('sitemail2', $config_sitemail, '<input type=\\"text\\" id=\\"sitemail2\\" name=\\"sitemail2\\" value=\\"{con.sitemail2}\\" size=\\"25\\" style=\\"direction:ltr\\" />', '4', 'general', 0, 0);
$config_values[] = array('del_f_day', '0', '<input type=\\"text\\" id=\\"del_f_day\\" name=\\"del_f_day\\" value=\\"{con.del_f_day}\\" size=\\"6\\" style=\\"text-align:center\\" />{lang.DELF_CAUTION}', 5, 'advanced', 0, 0);
$config_values[] = array('language', getlang(), '<select name=\\"language\\" id=\\"language\\">\\r\\n {lngfiles}\\r\\n </select>', 6, 'groups', 0, 0);
$config_values[] = array('time_zone', $config_time_zone, '<select name=\\"time_zone\\" id=\\"time_zone\\">\\r\\n {time_zones}\\r\\n </select>', 10, 'general', 0, 0);
$config_values[] = array('siteclose', '0', '<label>{lang.YES}<input type=\\"radio\\" id=\\"siteclose\\" name=\\"siteclose\\" value=\\"1\\"  <IF NAME=\\"con.siteclose==1\\"> checked=\\"checked\\"</IF> /></label><label>{lang.NO}<input type=\\"radio\\" id=\\"siteclose\\" name=\\"siteclose\\" value=\\"0\\"  <IF NAME=\\"con.siteclose==0\\"> checked=\\"checked\\"</IF> /></label>', 7, 'general', 0, 0);
$config_values[] = array('closemsg', 'sits is closed now', '<input type=\\"text\\" id=\\"closemsg\\" name=\\"closemsg\\" value=\\"{con.closemsg}\\" size=\\"68\\" />', 8, 'general', 0, 0);
$config_values[] = array('user_system', '1', '<select id=\\"user_system\\" name=\\"user_system\\">{authtypes}</select>', 9, 'advanced', 0, 0);
$config_values[] = array('register', '1', '<label>{lang.YES}<input type=\\"radio\\" id=\\"register\\" name=\\"register\\" value=\\"1\\"  <IF NAME=\\"con.register==1\\"> checked=\\"checked\\"</IF> /></label>\\r\\n <label>{lang.NO}<input type=\\"radio\\" id=\\"register\\" name=\\"register\\" value=\\"0\\"  <IF NAME=\\"con.register==0\\"> checked=\\"checked\\"</IF> /></label>', 10, 'general', 0, 0);
$config_values[] = array('enable_userfile', '1', '<label>{lang.YES}<input type=\\"radio\\" id=\\"enable_userfile\\" name=\\"enable_userfile\\" value=\\"1\\"  <IF NAME=\\"con.enable_userfile==1\\"> checked=\\"checked\\"</IF> /></label>\\r\\n <label>{lang.NO}<input type=\\"radio\\" id=\\"enable_userfile\\" name=\\"enable_userfile\\" value=\\"0\\"  <IF NAME=\\"con.enable_userfile==0\\"> checked=\\"checked\\"</IF> /></label>', 11, 'groups', 0, 0);
$config_values[] = array('mod_writer', '0', '<label>{lang.YES}<input type=\\"radio\\" id=\\"mod_writer\\" name=\\"mod_writer\\" value=\\"1\\"  <IF NAME=\\"con.mod_writer==1\\"> checked=\\"checked\\"</IF> /></label>\\r\\n <label>{lang.NO}<input type=\\"radio\\" id=\\"mod_writer\\" name=\\"mod_writer\\" value=\\"0\\"  <IF NAME=\\"con.mod_writer==0\\"> checked=\\"checked\\"</IF> /></label>\\r\\n   [ {lang.MOD_WRITER_EX} ]', 12, 'advanced', 0, 0);
// Cookies settings
$cookie_data = get_cookies_settings();
$config_values[] = array('cookie_name', $cookie_data['cookie_name'], '<input type=\\"text\\" id=\\"cookie_name\\" name=\\"cookie_name\\" value=\\"{con.cookie_name}\\" size=\\"20\\" style=\\"direction:ltr\\" />', '13', 'advanced', 0, 0);
$config_values[] = array('cookie_path', $cookie_data['cookie_path'], '<input type=\\"text\\" id=\\"cookie_path\\" name=\\"cookie_path\\" value=\\"{con.cookie_path}\\" size=\\"20\\" style=\\"direction:ltr\\" />', '14', 'advanced', 0, 0);
$config_values[] = array('cookie_domain', $cookie_data['cookie_domain'], '<input type=\\"text\\" id=\\"cookie_domain\\" name=\\"cookie_domain\\" value=\\"{con.cookie_domain}\\" size=\\"20\\" style=\\"direction:ltr\\" />', '15', 'advanced', 0, 0);
$config_values[] = array('cookie_secure', $cookie_data['cookie_secure'] ? '1' : '0', '<label>{lang.YES}<input type=\\"radio\\" id=\\"cookie_secure\\" name=\\"cookie_secure\\" value=\\"1\\"  <IF NAME=\\"con.cookie_secure==1\\"> checked=\\"checked\\"</IF> /></label>\\r\\n <label>{lang.NO}<input type=\\"radio\\" id=\\"cookie_secure\\" name=\\"cookie_secure\\" value=\\"0\\"  <IF NAME=\\"con.cookie_secure==0\\"> checked=\\"checked\\"</IF> /></label>', '16', 'advanced', 0, 0);
// Upload settings
$config_values[] = array('total_size', '10000000000', '<input type=\\"text\\" id=\\"total_size\\" name=\\"total_size\\" value=\\"{con.total_size}\\" size=\\"20\\" style=\\"direction:ltr\\" />', 17, 'upload', 0, 0);
开发者ID:Saleh7,项目名称:Kleeja,代码行数:31,代码来源:default_values.php

示例4: stripslashes

                <tr>
                  <td width="100%" height="20" class="leftHeader"><h2><?php 
echo stripslashes($libellecde);
?>
</h2></td>
                </tr>
      </table>
    <p>&nbsp;</p>
    <tr>
    <td>
    <table width="100%" border="0" align="left"  cellpadding="3" cellspacing="1"  class="botBorder">
                              <tbody>
                                <tr align="left" valign="top" nowrap>
                                  <td width="18%" align=right valign="middle" class="botBorderTdall"><div align="center"><strong>Code dotation</strong></div></td>
                                  <td width="82%" align=left valign="middle" class="botBorderTdall"><div><strong><?php 
echo getlang(357);
?>
 type de dotation</strong></div></td>
                                </tr>
                                <?php 
echo $ligne;
?>
        </tbody>
      </table>
      </td>
  </tr>
  <tr><td>
    <p>&nbsp;</p>  
    <!--  End Libellé -->
    <table width="100%" cellspacing="0" cellpadding="0">
      <tr valign="top" class="EtatText">
开发者ID:benleibert,项目名称:channel-software,代码行数:31,代码来源:printlistetypedotation.php

示例5: getlang

?>
<br />
                
                  <input type="checkbox" name="toggleAll" value="checkbox" onclick="doMyAction();" />
                  Cochez toutes les fichiers                    </p>
                <table width="100%" border="0" cellpadding="5" cellspacing="0" class="tableBorder">
                  <tr class="header2Bg">
                    <td align="left" valign="top" class="boldText" >&nbsp;Confirmer la suppression ?</td>
                  </tr>
                  <tr>
                    <td class="text" align="center"><table width="600" border="0" align="left" cellpadding="5" cellspacing="0" class="botBorder">
                      <tbody>
                        <tr align="left" valign="top">
                          <td><input name="Vider" type="button" class="button" id="Vider"  value="Supprimer fichier" onclick="validateForm();" />
                            <input name="Retablir" type="reset" class="button" id="Retablir"  value='<?php 
echo getlang(217);
?>
' /></td>
                        </tr>
                      </tbody>
                    </table></td>
                  </tr>
              </table>
              </form></td>
          </tr>
          <!-- Data Tbale contener -->
        </table></td>
      </tr>
    </table><br>

开发者ID:benleibert,项目名称:channel-software,代码行数:29,代码来源:fichierexcel.php

示例6: getlang

?>
                  <!-- End Table row -->
                  </table>
                <!-- End Data Table --></td>
            </tr></form>
        </table>
          <table border="0" align="right" cellpadding="5" cellspacing="0" class="botBorder">
            <tbody>
              <tr align="left" valign="top">
                <td align="right"><input name="Enregistrer2" type="button" class="button" id="Enregistrer2"  value='<?php 
echo getlang(187);
?>
'  onclick="OpenBigWin('printetatstocklot.php','');" /></td>
                <td align="right"><span class="leftHeader">
                  <input name="Enregistrer3" type="button" class="button" id="Enregistrer3"  value='<?php 
echo getlang(188);
?>
'   onclick="OpenWin('genererexcelstocklot.php','Fichier Excel');" />
                </span></td>
              </tr>
            </tbody>
          </table>        </tr>
    </table>
          <!-- Fin Affichage -->
          </tr>
          <!-- Data Tbale contener -->
        </table></td>
      </tr>
    </table><br>

开发者ID:benleibert,项目名称:channel-software,代码行数:29,代码来源:etatstocklots1.php

示例7: stripslashes

                <tr>
                  <td width="100%" width="43" bgcolor="#FFCC66" class="leftHeader"><h2><?php 
echo stripslashes($libellecde);
?>
</h2></td>
                </tr>
      </table>
    <p>&nbsp;</p>
    <tr>
    <td>
    <table width="100%" border="0" align="left"  cellpadding="3" cellspacing="0"  class="botBorderTdall">
                              <tbody>
                                <tr align="left" valign="top" nowrap>
                                  <td width="14%" align=right valign="middle" class="botBorderTdall header2Bg"><div align="center"><strong>Code </strong></div></td>
                                  <td width="86%" align=left valign="middle" class="botBorderTdall header2Bg"><div><strong><?php 
echo getlang(206);
?>
 déclassment</strong></div></td>
                                </tr>
                                <?php 
echo $ligne;
?>
        </tbody>
      </table>
      </td>
  </tr>
  <tr><td>
    <p>&nbsp;</p>  
    <!--  End Libellé -->
    <table width="100%" cellspacing="0" cellpadding="0">
      <tr valign="top" class="EtatText">
开发者ID:benleibert,项目名称:channel-software,代码行数:31,代码来源:printlistenatdeclassement.php

示例8: getlang

?>
">

								<input name="xid" type='hidden' id="xid" value="<?php 
echo $xid;
?>
" />
								<input name='rowSelection' type='hidden' id="rowSelection" value='' />
<input name="statut" type='hidden' id="statut" value="1" /></td>
                              </tr>
							  <tr align="left" valign="top">
							    <td width="4">&nbsp;</td>
							    <td colspan="6">
							      <!-- <input name="Precedent" type="button" class="button" id="Precedent"  value='&lt;&lt; Pr&eacute;c&eacute;dent' onClick="javascript:window.location.href='addBonentree.php?selectedTab=inputs';"> -->
							      <input name="Enregistrer" type="button" class="button" id="Enregistrer"  value='<?php 
echo getlang(180);
?>
'  onClick="validateForm();"></td>
  								</tr>
                          </table></td>
                        </tr>
                      </table>
                </form></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table><br>

开发者ID:benleibert,项目名称:channel-software,代码行数:29,代码来源:validdeclassement.php

示例9: getlang

?>
</h3></td>
                </tr>
      </table>
    <p>&nbsp;</p>
    <tr>
    <td>
    <table width="100%" border="0" align="left"  cellpadding="3" cellspacing="1"  class="botBorder">
                              <tbody>
                                <tr align="left" valign="top" nowrap>
                                  <td width="10%" align=right valign="middle" class="botBorderTdall"><div align="center"><strong>N&deg;</strong></div></td>
                                  <td align=left valign="middle" class="botBorderTdall"><div><strong><?php 
echo getlang(103);
?>
 <?php 
echo getlang(68);
?>
</strong></div></td>
                                </tr>
                                <?php 
echo $ligne;
?>
        </tbody>
      </table>
      </td>
  </tr>
  <tr><td>
    <p>&nbsp;</p>  
    <!--  End Libellé -->
    <table width="100%" cellspacing="0" cellpadding="0">
      <tr valign="top" class="EtatText">
开发者ID:benleibert,项目名称:channel-software,代码行数:31,代码来源:printlistegroupe.php

示例10: start_session_start

//
start_session_start();
//
require_once 'include/libaaa.php';
require_once 'include/libwwwstuff.php';
//
require_once 'config/config.php';
if (isset($configdir)) {
    require $configdir . "/config.php";
} else {
    $configdir = 'config';
}
//
//
//
$lang = getlang();
if (isset($lang)) {
    if (file_exists("{$configdir}/{$lang}/config.php")) {
        require "{$configdir}/{$lang}/config.php";
    }
}
//
//
$pageid = getpageid();
if (!isset($pageid)) {
    $pageid = $defaultpage;
}
$page_include = "include/" . $pageid;
$config_include = $configdir . "/" . $pageid;
if (file_exists($page_include)) {
    if (file_exists($config_include)) {
开发者ID:BackupTheBerlios,项目名称:odp-svn,代码行数:31,代码来源:index.php

示例11: getlang

                                  <td width="264" align=right valign="middle" class="botBorderTdall header2Bg"><div align="left"><strong><?php 
echo getlang(199);
?>
</strong> </div></td>
                                  <td width="48" align=center valign="middle" class="botBorderTdall header2Bg"><div align="center"><strong><?php 
echo getlang(237);
?>
 des 12 derniers mois</strong></div></td>

                                 
                                  <td width="48" align=center valign="middle" class="botBorderTdall header2Bg"><div align="center"><strong><?php 
echo getlang(237);
?>
 des 6 derniers mois</strong></div></td>
                                  <td width="20" align=center valign="middle" class="botBorderTdall header2Bg"><div align="center"><strong><?php 
echo getlang(237);
?>
 des 3 derniers mois</strong></div></td>
                                </tr>
                                <?php 
echo $ligne;
?>
        </tbody>
      </table>
      </td>
  </tr>
  <tr><td>
    <p>&nbsp;</p>  
    <!--  End Libellé -->
    <table width="100%" cellspacing="5" cellpadding="10" >
      <tr valign="top" class="EtatText">
开发者ID:benleibert,项目名称:channel-software,代码行数:31,代码来源:printetatrapsortiemensuelle.php

示例12: define

/**
 * If set false, SQL Errors will be shown 
 */
define('MYSQL_NO_ERRORS', true);
#Detect choosing another lang while installing
if (isset($_GET['change_lang'])) {
    if (!empty($_POST['lang'])) {
        header('Location: ' . $_SERVER['PHP_SELF'] . '?step=' . $_POST['step_is'] . '&lang=' . $_POST['lang']);
    }
}
if (!isset($_path) || empty($_path)) {
    $_path = './';
}
# Including current language
include $_path . 'lang/' . getlang() . '/common.php';
include $_path . 'lang/' . getlang() . '/install.php';
# Exceptions for development
$IN_DEV = false;
if (file_exists($_path . '.svn/entries') || file_exists('dev.txt')) {
    define('DEV_STAGE', true);
    $IN_DEV = true;
}
/**
 * Return current language of installing wizard
 *
 * @param bool $link Return the langauge as link or not
 * @return string The langauge short name, i.e. ar, en
 */
function getlang($link = false)
{
    global $_path;
开发者ID:omtim,项目名称:kleeja,代码行数:31,代码来源:functions_install.php

示例13: getlang

      <tr>
        <td><table width="100%" border="0" align="left" cellpadding="1" cellspacing="1">
          <tr>
            <td width="43"  bgcolor="#FFCC66" class="leftHeader"><?php 
echo getlang(77);
?>
</td>
          </tr>
          <tr>
            <td align="left" valign="top" height="3"></td>
          </tr>

          <tr>
            <td align="left" valign="top" class="text">
              <p><?php 
echo getlang(346);
?>
</p></td>
          </tr>
          <!-- Data Tbale contener -->
        </table></td>
      </tr>
    </table><br>


</td>
  </tr>
  <tr>
    <td height="10%">&nbsp;</td>
    <td height="10%">&nbsp;</td>
  </tr>
开发者ID:benleibert,项目名称:channel-software,代码行数:31,代码来源:rapport.php

示例14: getlang

    <tr class="searchBg">
      <td height="21" align="center">

	 <table border="0"cellspacing="0" cellpadding="0">
          <tr>
            <form name="stockform" action="file:///C|/wamp/www/sources/search.php" method="post" onsubmit=''>
            <td align="right">&nbsp;

              </td>
            <td><input name="Go" type="submit" class="buttonGo" value="GO"></td>
            	<input type="hidden" name="requestid" value="SNAPSHOT">
				<input type="hidden" name="selectedLink" value="">
				<input type="hidden" name="selectedTab" value="Network Database">
	    <td>&nbsp;&nbsp;<a href="file:///C|/wamp/www/sources/dipsearch.php"><span class="text"><?php 
echo getlang(139);
?>
 avanc&eacute;e</span></a>&nbsp;</td>
	    </form>
	  </tr>
	</table>

	 </td>
    </tr>
    <tr class=bodyBg>
      <td height="8"></td>
    </tr>
  </table>
</td>
  </tr>
</table>
开发者ID:benleibert,项目名称:channel-software,代码行数:30,代码来源:sends.php

示例15: strtolower

                $e = strtolower($e[sizeof($e) - 1]);
                if ($e == "klj") {
                    $contents = @file_get_contents($pl_path . '/' . $file);
                    $gtree = $XML->xml_to_array($contents);
                    if ($gtree != false) {
                        $plg_dsc = $gtree['kleeja']['info']['plugin_description'];
                        if (isset($plg_dsc)) {
                            if (is_array($plg_dsc['description']) && array_key_exists("attributes", $plg_dsc['description'])) {
                                $plg_dsc['description'] = array($plg_dsc['description']);
                            }
                            $p_desc = array();
                            foreach ($plg_dsc['description'] as $in) {
                                $p_desc[$in['attributes']['lang']] = $in['value'];
                            }
                        }
                        $plugins[] = array('p_file' => $file, 'p_name' => htmlspecialchars($gtree['kleeja']['info']['plugin_name']['value']), 'p_ver' => htmlspecialchars($gtree['kleeja']['info']['plugin_version']['value']), 'p_des' => isset($p_desc[getlang()]) ? $p_desc[getlang()] : $p_desc['en']);
                    }
                }
            }
            echo gettpl('plugins_options.html');
        }
        break;
    case 'end':
        echo gettpl('end.html');
        //for safe ..
        //@rename("install.php", "install.lock");
        break;
}
/**
* print footer
*/
开发者ID:Amine12boutouil,项目名称:Kleeja-2.0.0-alpha,代码行数:31,代码来源:install.php


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