本文整理匯總了PHP中CommonFunctions::initLanguage方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonFunctions::initLanguage方法的具體用法?PHP CommonFunctions::initLanguage怎麽用?PHP CommonFunctions::initLanguage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CommonFunctions
的用法示例。
在下文中一共展示了CommonFunctions::initLanguage方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: realpath
$basePath = realpath(dirname(__FILE__));
if (!@(include_once $basePath . '/config/config.php')) {
die('Unable to load file ' . $basePath . '/config/config.php');
}
require_once $basePath . '/classloader.inc.php';
@header('content-type: text/html; charset=' . ($useUtf8 ? 'UTF-8' : 'ISO-8859-1'));
if (!@(include_once ASCMS_LIBRARY_PATH . '/PEAR/HTML/Template/Sigma/Sigma.php')) {
die('Unable to load file ' . ASCMS_LIBRARY_PATH . '/PEAR/HTML/Template/Sigma/Sigma.php');
}
if (!@(include_once $basePath . '/common.class.php')) {
die('Unable to load file ' . $basePath . '/common.class.php');
}
if (!@(include_once $basePath . '/installer.class.php')) {
die('Unable to load file ' . $basePath . '/installer.class.php');
}
if (!@(include_once $basePath . '/../core/Env.class.php')) {
die('Unable to load file ' . $basePath . '/../core/Env.class.php');
}
$objCommon = new CommonFunctions();
$objInstaller = new Installer();
$objCommon->initLanguage();
$objTpl = new HTML_Template_Sigma($templatePath);
$objTpl->setErrorHandling(PEAR_ERROR_DIE);
$objTpl->loadTemplateFile('index.html');
$objTpl->setVariable('CHARSET', $useUtf8 ? 'UTF-8' : 'ISO-8859-1');
$objTpl->setVariable($_ARRLANG);
$objInstaller->checkOptions();
$objInstaller->getNavigation();
$objInstaller->getPage();
$objInstaller->getContentNavigation();
$objTpl->show();