亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? translation.class.php

?? 視頻監(jiān)控網(wǎng)絡部分的協(xié)議ddns,的模塊的實現(xiàn)代碼,請大家大膽指正.
?? PHP
?? 第 1 頁 / 共 2 頁
字號:
<?php
/** * File translation.class.php * * @package Translation */
/**
 * require dependencies
 */require_once 'PEAR.php';
require_once 'DB.php';

/**
 * Translation class
 *
 * Class allows storing and retrieving all the strings on multilingual site
 * in a database.
 * The class connects to any database using PEAR::DB extension - so it needs
 * PEAR to be installed to work correctly.
 * The object should be created for every page. While creation all the strings
 * connected with specific page and the strings connected with all the pages
 * on the site are loaded into variable, so accessing them is quite fast and
 * does not overload database server connection.
 * The class can reuse existing DB connections. To do so just pass to the
 * constructor the handle for the connection instead of DSN.
 *
 * @author Wojciech Zieli駍ki <voyteck@caffe.com.pl>
 * @version 1.2.3
 * @access public
 * @package Translation
 */
class Translation extends PEAR {

    /**
     * The translations are retrieved from this class object
     * @see Translation(), gstr(), getLangName(), getOtherLangs(), getMetaTags
     */

    /**
     * Strings of the given page array
     *
     * This one is for fast access to cached strings for specified page
     *
     * @var array string $Strings
     */
	var $Strings = array();

    /**
     * Page identifier
     *
     * @var string $PageName
     */
	var $PageName = '';

    /**
     * Language identifier
     *
     * @var string $LanguageID
     */
	var $LanguageID = '';

    /**
     * Connection to database
     *
     * @var object DB $db
     */
	var $db;

    /**
     * Is true if the connection was reused, not made from the class
     *
     * @var int $ConnectionReused
     */
	var $ConnectionReused;

    /**
     * The string that will be displayed, if no string has been found in the
     * DB for specified string_id
     * @var string $ErrorText
     */
	var $ErrorText;

    /**
     * The array with table and column names
     *
     * The table may have following items:
     *
     * 'langsavail' - table, in which all the information of the possible languages
     * is kept. This array item may be the string - then the structure of the table
     * remains as original, but the name is specified here; or the array with the
     * following items:
     * 'name' - the name of the table - default is 'tr_langsavail'
     * 'lang_id' - the column that stores the language identifier - default
     * is 'lang_id'
     * 'lang_name' - the column that stores the language name - default
     * is 'name'
     * 'metatags' - the column that stores meta tags for the pages in specified
     * language - default is 'metatags'
     * 'errortext' - the column that stores the text that will be displayed in case
     * if some text will not be found in the DB - default is 'errortext'
     *
     * 'strings_XX' - table, in which the strings of language "XX" (the
     * corresponding lang_id) are kept. This array item may be the string - then
     * the structure of the table remains as original, but the name is specified
     * here; or the array with the following items:
     * 'name' - the name of the table - default is 'tr_strings_XX'
     * 'page_id' - the page identifier - default is 'page_id'.
     * 'string_id' - the string indetifier - default is 'string_id'.
     * 'string' - the string itself - default is 'string'.
     *
     * This parameter in fact has impact only if the DB is used as the strings
     * repository. The defaults are set in the way that the method is compatible
     * with lower versions.
     *
     * @var array $CustomTables
     */
	var $TableDefinitions;

    /**
     * Class constructor
     *
     * @param string $PageName	the page identifier. It identifies
     * strings connected with specific page on the site
     * @param string $LanguageID language id. All the languages
     * are stored on the database on specific ID's.
     * @since version 1.2.1
     * @param string $pear_DSN	This might be 3 types: the PEAR DSN
     * string form making the connection; the PEAR DB connection handle;
     * the string has the following format:
     * gettext://LOCALE:LANG:BINDTXTDOMAIN:TXTDOMAINFILE:TXTDOMAIN:CFGFILE
     * for using the native PHP gettext support.
     * @param array $CustomTables				This is the array of the names of the tables and
     * optionally the names of columns. It contains the following elements:
     */
	function Translation($PageName, $LanguageID, $pear_DSN, $CustomTables = 0)
	{
		$this->PageName   = $PageName;
		$this->LanguageID = $LanguageID;
		if (!DB::isConnection($pear_DSN)) {
			$this->db = DB::connect($pear_DSN);
			$this->ConnectionReused = 0;
		} else {
			$this->db = $pear_DSN;
			$this->ConnectionReused = 1;
		}
		if (DB::isError($this->db)) {
			die ($this->db->getMessage());
		}

	    $this->TableDefinitions = array(
	            'langsavail' => array(
	                    'name'      => 'tr_langsavail',
	                    'lang_id'   => 'lang_id',
	                    'lang_name' => 'name',
	                    'metatags'  => 'metatags',
	                    'errortext' => 'errortext'
	            )
        );
		if (is_array($CustomTables['langsavail'])) {
			$this->TableDefinitions['langsavail']['name']      = isset($CustomTables['langsavail']['name'])      ? $CustomTables['langsavail']['name']      : 'tr_langsavail';
			$this->TableDefinitions['langsavail']['lang_id']   = isset($CustomTables['langsavail']['lang_id'])   ? $CustomTables['langsavail']['lang_id']   : 'lang_id';
			$this->TableDefinitions['langsavail']['lang_name'] = isset($CustomTables['langsavail']['lang_name']) ? $CustomTables['langsavail']['lang_name'] : 'lang_name';
			$this->TableDefinitions['langsavail']['metatags']  = isset($CustomTables['langsavail']['metatags'])  ? $CustomTables['langsavail']['metatags']  : 'metatags';
			$this->TableDefinitions['langsavail']['errortext'] = isset($CustomTables['langsavail']['errortext']) ? $CustomTables['langsavail']['errortext'] : 'errortext';
		} elseif (!empty($CustomTables['langsavail'])) {
			$this->TableDefinitions['langsavail']['name'] = $CustomTables['langsavail'];
		}
		$result = $this->db->query('SELECT ' . $this->TableDefinitions['langsavail']['lang_id'] . ' FROM ' . $this->TableDefinitions['langsavail']['name']);
		if (DB::isError($result)) {
			die ($result->getMessage());
		}
		while ($row = $result->fetchRow()) {
			$this->TableDefinitions['strings_'.$row[0]] = array(
			        'name'      => 'tr_strings_'.$row[0],
			        'page_id'   => 'page_id',
			        'string_id' => 'string_id',
			        'string'    => 'string'
			);
			if (is_array($CustomTables['strings_'.$row[0]])) {
				$this->TableDefinitions['strings_'.$row[0]]['name']      = isset($CustomTables['strings_'.$row[0]]['name'])      ? $CustomTables['strings_'.$row[0]]['name']      : 'strings_'.$row[0];
				$this->TableDefinitions['strings_'.$row[0]]['page_id']   = isset($CustomTables['strings_'.$row[0]]['page_id'])   ? $CustomTables['strings_'.$row[0]]['page_id']   : 'page_id';
				$this->TableDefinitions['strings_'.$row[0]]['string_id'] = isset($CustomTables['strings_'.$row[0]]['string_id']) ? $CustomTables['strings_'.$row[0]]['string_id'] : 'string_id';
				$this->TableDefinitions['strings_'.$row[0]]['string']    = isset($CustomTables['strings_'.$row[0]]['string'])    ? $CustomTables['strings_'.$row[0]]['string']    : 'string';
			} elseif (!empty($CustomTables['strings_'.$row[0]])) {
				$this->TableDefinitions['strings_'.$row[0]]['name'] = $CustomTables['strings_'.$row[0]];
			}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
婷婷中文字幕一区三区| 亚洲综合在线第一页| **网站欧美大片在线观看| 日韩毛片高清在线播放| 久久精品99国产精品日本| 99re这里都是精品| 欧美va天堂va视频va在线| 一区二区三区在线高清| 国产一区视频导航| 91精品国产综合久久精品app | eeuss鲁片一区二区三区在线观看| 亚洲精品一区二区在线观看| 国产人成亚洲第一网站在线播放| 亚洲激情欧美激情| 大胆亚洲人体视频| 久久久亚洲精华液精华液精华液| 国产精品77777| 制服丝袜一区二区三区| 亚洲一区二区精品3399| 北条麻妃国产九九精品视频| 国产亚洲综合在线| 久久精品理论片| 日韩一区二区在线看| 午夜久久久久久电影| 色婷婷激情一区二区三区| 最好看的中文字幕久久| 成人高清av在线| 国产精品天天摸av网| 97aⅴ精品视频一二三区| 国产suv一区二区三区88区| 日本国产一区二区| 亚洲色图第一区| 99免费精品在线观看| 亚洲欧美综合色| av激情亚洲男人天堂| 国产精品久久久久影院| 成人成人成人在线视频| 国产精品福利在线播放| 91丨九色丨国产丨porny| 国产精品免费av| 91亚洲资源网| 亚洲影院免费观看| 欧美体内she精高潮| 视频一区视频二区中文字幕| 欧美一区二区在线不卡| 狠狠色丁香婷婷综合久久片| 久久免费电影网| 成人午夜电影久久影院| 亚洲三级理论片| 欧美在线三级电影| 日本视频免费一区| 久久亚洲精品国产精品紫薇| 成人妖精视频yjsp地址| 亚洲蜜桃精久久久久久久| 欧美又粗又大又爽| 久久99久久99精品免视看婷婷 | 中文字幕中文字幕在线一区| 一本一本大道香蕉久在线精品| 亚洲综合丁香婷婷六月香| 欧美一区二区不卡视频| 国产一区二区三区香蕉| 国产精品国产a| 91麻豆精品国产| 粉嫩av亚洲一区二区图片| 亚洲精品乱码久久久久久久久| 欧美一区二区视频免费观看| 国产乱码精品一区二区三区五月婷| 国产精品久久久久久户外露出| 欧美综合色免费| 韩国三级在线一区| 亚洲精品乱码久久久久久日本蜜臀| 日韩午夜中文字幕| 91色在线porny| 久久精品av麻豆的观看方式| 国产精品成人免费在线| 日韩午夜在线影院| 91色.com| 国产不卡视频在线播放| 亚洲bt欧美bt精品| 国产精品美女久久久久久久| 欧美一区二区精美| 色乱码一区二区三区88| 国产成人一级电影| 人人超碰91尤物精品国产| 1000部国产精品成人观看| 欧美不卡一区二区| 欧美日韩在线电影| 91丝袜高跟美女视频| 国产激情91久久精品导航| 亚洲大片一区二区三区| 亚洲桃色在线一区| 日本一区二区三区免费乱视频| 欧美精品1区2区| 在线视频国产一区| 成人综合婷婷国产精品久久| 精品制服美女丁香| 亚洲国产人成综合网站| 亚洲美女免费视频| 国产精品少妇自拍| 亚洲aⅴ怡春院| 欧美日韩在线播放一区| 日韩一区欧美一区| 成人免费在线播放视频| 成人sese在线| 国产高清不卡一区| 精品一区二区三区香蕉蜜桃| 午夜婷婷国产麻豆精品| 亚洲国产一区在线观看| 亚洲色图另类专区| 国产精品久久福利| 亚洲欧美综合另类在线卡通| 中文字幕av资源一区| 久久久久久9999| 精品国产91洋老外米糕| 精品国产乱码久久久久久久久| 69堂精品视频| 日韩视频免费直播| 精品va天堂亚洲国产| 精品日韩一区二区三区免费视频| 91精品欧美福利在线观看| 日韩欧美国产系列| 日韩视频永久免费| 久久久久九九视频| 免费xxxx性欧美18vr| 久久久亚洲综合| 91麻豆精品国产91久久久使用方法 | 天天色图综合网| 日韩精品高清不卡| 久久精品噜噜噜成人av农村| 国产一区二区久久| 成人午夜精品在线| 欧美在线一二三| 日韩欧美一区电影| 国产三级一区二区| 亚洲色图.com| 秋霞影院一区二区| 国产乱码精品一区二区三区av| 高清成人免费视频| 91久久香蕉国产日韩欧美9色| 欧美人体做爰大胆视频| 日韩美女在线视频| 中文字幕亚洲区| 午夜激情久久久| 国内不卡的二区三区中文字幕 | 91小视频免费观看| 欧美视频在线一区| 久久婷婷国产综合精品青草| 国产精品的网站| 日本在线观看不卡视频| 青青草原综合久久大伊人精品优势 | 亚洲综合成人在线| 五月婷婷色综合| 91福利视频久久久久| 欧美一级二级三级蜜桃| 国产精品免费网站在线观看| 亚洲成av人片在www色猫咪| 国内欧美视频一区二区| 91久久精品网| 26uuu久久天堂性欧美| 亚洲老妇xxxxxx| 国产一区二区在线免费观看| 91成人在线精品| 国产清纯白嫩初高生在线观看91 | 免费在线观看精品| 99综合电影在线视频| 欧美电影免费观看完整版| 亚洲人成人一区二区在线观看| 久久精品国产免费看久久精品| 色综合欧美在线| 国产香蕉久久精品综合网| 日韩电影一区二区三区四区| www.在线欧美| 久久久国产精华| 秋霞午夜鲁丝一区二区老狼| 色婷婷激情综合| 中文字幕在线不卡视频| 国产另类ts人妖一区二区| 正在播放一区二区| 亚洲一区二区综合| 成人国产精品免费观看动漫| 2023国产精华国产精品| 日韩综合小视频| 欧美亚洲国产一区在线观看网站| 国产午夜精品一区二区三区嫩草 | 国产成人综合网| 欧美大片免费久久精品三p| 亚洲高清免费在线| 在线视频你懂得一区| 日韩美女精品在线| 成人av网站在线观看免费| 国产偷国产偷精品高清尤物| 麻豆91小视频| 中文字幕亚洲精品在线观看| av不卡免费在线观看| 欧美精品第1页| 亚洲观看高清完整版在线观看| 91麻豆精品在线观看| 国产精品美女久久久久高潮| 国产成人精品午夜视频免费| 欧美激情一区三区|