⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 language.php

📁 this the oscommerce 3.0 aplha 4
💻 PHP
字号:
<?php/*  $Id: language.php 199 2005-09-22 17:56:13 +0200 (Do, 22 Sep 2005) hpdl $  osCommerce, Open Source E-Commerce Solutions  http://www.oscommerce.com  Copyright (c) 2007 osCommerce  This program is free software; you can redistribute it and/or modify  it under the terms of the GNU General Public License v2 (1991)  as published by the Free Software Foundation.*/  require('../admin/includes/classes/language.php');  class osC_LanguageInstall extends osC_Language_Admin {/* Private variables */    var $_languages = array();    /* Class constructor */    function osC_LanguageInstall() {      $osC_DirectoryListing = new osC_DirectoryListing('../includes/languages');      $osC_DirectoryListing->setIncludeDirectories(false);      $osC_DirectoryListing->setCheckExtension('xml');      foreach ($osC_DirectoryListing->getFiles() as $file) {        $osC_XML = new osC_XML(file_get_contents('../includes/languages/' . $file['name']));        $lang = $osC_XML->toArray();        $this->_languages[$lang['language']['data']['code']] = array('name' => $lang['language']['data']['title'],                                                                     'code' => $lang['language']['data']['code'],                                                                     'charset' => $lang['language']['data']['character_set']);      }      unset($lang);      $language = (isset($_GET['language']) && !empty($_GET['language']) ? $_GET['language'] : '');      $this->set($language);      $this->loadIniFile();      $this->loadIniFile(basename($_SERVER['SCRIPT_FILENAME']));    }  }?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -