예제 #1
0
    include INSTALL_PATH . '/../config/settings.inc.php';
    $oldversion = _PS_VERSION_;
    $tooOld = version_compare($oldversion, MINIMUM_VERSION_TO_UPDATE) == -1;
    $sameVersions = version_compare($oldversion, INSTALL_VERSION) == 0;
    $installOfOldVersion = version_compare($oldversion, INSTALL_VERSION) == 1;
}
include INSTALL_PATH . '/classes/LanguagesManager.php';
$lm = new LanguageManager(dirname(__FILE__) . '/langs/list.xml');
$_LANG = array();
$_LIST_WORDS = array();
function lang($txt)
{
    global $_LANG, $_LIST_WORDS;
    return isset($_LANG[$txt]) ? $_LANG[$txt] : $txt;
}
if ($lm->getIncludeTradFilename()) {
    include_once $lm->getIncludeTradFilename();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
	<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="Cache" content="no store" />
	<meta http-equiv="Expires" content="-1" />
	<meta name="robots" content="noindex" />
	<title><?php 
echo lang('PrestaShop ' . INSTALL_VERSION . ' Installer');
?>
예제 #2
0
    $oldversion = implode('.', $arrayVersion);
    // end of fix
    $tooOld = version_compare($oldversion, MINIMUM_VERSION_TO_UPDATE) == -1;
    $sameVersions = version_compare($oldversion, INSTALL_VERSION) == 0;
    $installOfOldVersion = version_compare($oldversion, INSTALL_VERSION) == 1;
}
require_once INSTALL_PATH . '/classes/LanguagesManager.php';
$lm = new LanguageManager(dirname(__FILE__) . '/langs/list.xml');
$_LANG = array();
$_LIST_WORDS = array();
function lang($txt)
{
    global $_LANG, $_LIST_WORDS;
    return isset($_LANG[$txt]) ? $_LANG[$txt] : $txt;
}
if ($lm->getIncludeTradFilename()) {
    require_once $lm->getIncludeTradFilename();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
	<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="Cache" content="no store" />
	<meta http-equiv="Expires" content="-1" />
	<meta name="robots" content="noindex" />
	<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" />
	<title><?php 
echo sprintf(lang('PrestaShop %s Installer'), INSTALL_VERSION);