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

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

?? adodb-xmlschema.inc.php

?? asterisk用 的voip記費軟件
?? PHP
?? 第 1 頁 / 共 4 頁
字號:
<?php// Copyright (c) 2004 ars Cognita Inc., all rights reserved/* ******************************************************************************    Released under both BSD license and Lesser GPL library license.  	Whenever there is any discrepancy between the two licenses,  	the BSD license will take precedence. *******************************************************************************//** * xmlschema is a class that allows the user to quickly and easily * build a database on any ADOdb-supported platform using a simple * XML schema. * * Last Editor: $Author: jlim $ * @author Richard Tango-Lowy & Dan Cech * @version $Revision: 1.12 $ * * @package axmls * @tutorial getting_started.pkg */ function _file_get_contents($file) { 	if (function_exists('file_get_contents')) return file_get_contents($file);		$f = fopen($file,'r');	if (!$f) return '';	$t = '';		while ($s = fread($f,100000)) $t .= $s;	fclose($f);	return $t;}/*** Debug on or off*/if( !defined( 'XMLS_DEBUG' ) ) {	define( 'XMLS_DEBUG', FALSE );}/*** Default prefix key*/if( !defined( 'XMLS_PREFIX' ) ) {	define( 'XMLS_PREFIX', '%%P' );}/*** Maximum length allowed for object prefix*/if( !defined( 'XMLS_PREFIX_MAXLEN' ) ) {	define( 'XMLS_PREFIX_MAXLEN', 10 );}/*** Execute SQL inline as it is generated*/if( !defined( 'XMLS_EXECUTE_INLINE' ) ) {	define( 'XMLS_EXECUTE_INLINE', FALSE );}/*** Continue SQL Execution if an error occurs?*/if( !defined( 'XMLS_CONTINUE_ON_ERROR' ) ) {	define( 'XMLS_CONTINUE_ON_ERROR', FALSE );}/*** Current Schema Version*/if( !defined( 'XMLS_SCHEMA_VERSION' ) ) {	define( 'XMLS_SCHEMA_VERSION', '0.2' );}/*** Default Schema Version.  Used for Schemas without an explicit version set.*/if( !defined( 'XMLS_DEFAULT_SCHEMA_VERSION' ) ) {	define( 'XMLS_DEFAULT_SCHEMA_VERSION', '0.1' );}/*** Default Schema Version.  Used for Schemas without an explicit version set.*/if( !defined( 'XMLS_DEFAULT_UPGRADE_METHOD' ) ) {	define( 'XMLS_DEFAULT_UPGRADE_METHOD', 'ALTER' );}/*** Include the main ADODB library*/if( !defined( '_ADODB_LAYER' ) ) {	require( 'adodb.inc.php' );	require( 'adodb-datadict.inc.php' );}/*** Abstract DB Object. This class provides basic methods for database objects, such* as tables and indexes.** @package axmls* @access private*/class dbObject {		/**	* var object Parent	*/	var $parent;		/**	* var string current element	*/	var $currentElement;		/**	* NOP	*/	function dbObject( &$parent, $attributes = NULL ) {		$this->parent =& $parent;	}		/**	* XML Callback to process start elements	*	* @access private	*/	function _tag_open( &$parser, $tag, $attributes ) {			}		/**	* XML Callback to process CDATA elements	*	* @access private	*/	function _tag_cdata( &$parser, $cdata ) {			}		/**	* XML Callback to process end elements	*	* @access private	*/	function _tag_close( &$parser, $tag ) {			}		function create() {		return array();	}		/**	* Destroys the object	*/	function destroy() {		unset( $this );	}		/**	* Checks whether the specified RDBMS is supported by the current	* database object or its ranking ancestor.	*	* @param string $platform RDBMS platform name (from ADODB platform list).	* @return boolean TRUE if RDBMS is supported; otherwise returns FALSE.	*/	function supportedPlatform( $platform = NULL ) {		return is_object( $this->parent ) ? $this->parent->supportedPlatform( $platform ) : TRUE;	}		/**	* Returns the prefix set by the ranking ancestor of the database object.	*	* @param string $name Prefix string.	* @return string Prefix.	*/	function prefix( $name = '' ) {		return is_object( $this->parent ) ? $this->parent->prefix( $name ) : $name;	}		/**	* Extracts a field ID from the specified field.	*	* @param string $field Field.	* @return string Field ID.	*/	function FieldID( $field ) {		return strtoupper( preg_replace( '/^`(.+)`$/', '$1', $field ) );	}}/*** Creates a table object in ADOdb's datadict format** This class stores information about a database table. As charactaristics* of the table are loaded from the external source, methods and properties* of this class are used to build up the table description in ADOdb's* datadict format.** @package axmls* @access private*/class dbTable extends dbObject {		/**	* @var string Table name	*/	var $name;		/**	* @var array Field specifier: Meta-information about each field	*/	var $fields = array();		/**	* @var array List of table indexes.	*/	var $indexes = array();		/**	* @var array Table options: Table-level options	*/	var $opts = array();		/**	* @var string Field index: Keeps track of which field is currently being processed	*/	var $current_field;		/**	* @var boolean Mark table for destruction	* @access private	*/	var $drop_table;		/**	* @var boolean Mark field for destruction (not yet implemented)	* @access private	*/	var $drop_field = array();		/**	* Iniitializes a new table object.	*	* @param string $prefix DB Object prefix	* @param array $attributes Array of table attributes.	*/	function dbTable( &$parent, $attributes = NULL ) {		$this->parent =& $parent;		$this->name = $this->prefix($attributes['NAME']);	}		/**	* XML Callback to process start elements. Elements currently 	* processed are: INDEX, DROP, FIELD, KEY, NOTNULL, AUTOINCREMENT & DEFAULT. 	*	* @access private	*/	function _tag_open( &$parser, $tag, $attributes ) {		$this->currentElement = strtoupper( $tag );				switch( $this->currentElement ) {			case 'INDEX':				if( !isset( $attributes['PLATFORM'] ) OR $this->supportedPlatform( $attributes['PLATFORM'] ) ) {					xml_set_object( $parser, $this->addIndex( $attributes ) );				}				break;			case 'DATA':				if( !isset( $attributes['PLATFORM'] ) OR $this->supportedPlatform( $attributes['PLATFORM'] ) ) {					xml_set_object( $parser, $this->addData( $attributes ) );				}				break;			case 'DROP':				$this->drop();				break;			case 'FIELD':				// Add a field				$fieldName = $attributes['NAME'];				$fieldType = $attributes['TYPE'];				$fieldSize = isset( $attributes['SIZE'] ) ? $attributes['SIZE'] : NULL;				$fieldOpts = isset( $attributes['OPTS'] ) ? $attributes['OPTS'] : NULL;								$this->addField( $fieldName, $fieldType, $fieldSize, $fieldOpts );				break;			case 'KEY':			case 'NOTNULL':			case 'AUTOINCREMENT':				// Add a field option				$this->addFieldOpt( $this->current_field, $this->currentElement );				break;			case 'DEFAULT':				// Add a field option to the table object								// Work around ADOdb datadict issue that misinterprets empty strings.				if( $attributes['VALUE'] == '' ) {					$attributes['VALUE'] = " '' ";				}								$this->addFieldOpt( $this->current_field, $this->currentElement, $attributes['VALUE'] );				break;			case 'DEFDATE':			case 'DEFTIMESTAMP':				// Add a field option to the table object				$this->addFieldOpt( $this->current_field, $this->currentElement );				break;			default:				// print_r( array( $tag, $attributes ) );		}	}		/**	* XML Callback to process CDATA elements	*	* @access private	*/	function _tag_cdata( &$parser, $cdata ) {		switch( $this->currentElement ) {			// Table constraint			case 'CONSTRAINT':				if( isset( $this->current_field ) ) {					$this->addFieldOpt( $this->current_field, $this->currentElement, $cdata );				} else {					$this->addTableOpt( $cdata );				}				break;			// Table option			case 'OPT':				$this->addTableOpt( $cdata );				break;			default:						}	}		/**	* XML Callback to process end elements	*	* @access private	*/	function _tag_close( &$parser, $tag ) {		$this->currentElement = '';				switch( strtoupper( $tag ) ) {			case 'TABLE':				$this->parent->addSQL( $this->create( $this->parent ) );				xml_set_object( $parser, $this->parent );				$this->destroy();				break;			case 'FIELD':				unset($this->current_field);				break;		}	}		/**	* Adds an index to a table object	*	* @param array $attributes Index attributes	* @return object dbIndex object	*/	function &addIndex( $attributes ) {		$name = strtoupper( $attributes['NAME'] );		$this->indexes[$name] =& new dbIndex( $this, $attributes );		return $this->indexes[$name];	}		/**	* Adds data to a table object	*	* @param array $attributes Data attributes	* @return object dbData object	*/	function &addData( $attributes ) {		if( !isset( $this->data ) ) {			$this->data =& new dbData( $this, $attributes );		}		return $this->data;	}		/**	* Adds a field to a table object	*	* $name is the name of the table to which the field should be added. 	* $type is an ADODB datadict field type. The following field types	* are supported as of ADODB 3.40:	* 	- C:  varchar	*	- X:  CLOB (character large object) or largest varchar size	*	   if CLOB is not supported	*	- C2: Multibyte varchar	*	- X2: Multibyte CLOB	*	- B:  BLOB (binary large object)	*	- D:  Date (some databases do not support this, and we return a datetime type)	*	- T:  Datetime or Timestamp	*	- L:  Integer field suitable for storing booleans (0 or 1)	*	- I:  Integer (mapped to I4)	*	- I1: 1-byte integer	*	- I2: 2-byte integer	*	- I4: 4-byte integer	*	- I8: 8-byte integer	*	- F:  Floating point number	*	- N:  Numeric or decimal number	*	* @param string $name Name of the table to which the field will be added.	* @param string $type	ADODB datadict field type.	* @param string $size	Field size	* @param array $opts	Field options array	* @return array Field specifier array	*/	function addField( $name, $type, $size = NULL, $opts = NULL ) {		$field_id = $this->FieldID( $name );				// Set the field index so we know where we are		$this->current_field = $field_id;				// Set the field name (required)		$this->fields[$field_id]['NAME'] = $name;				// Set the field type (required)		$this->fields[$field_id]['TYPE'] = $type;				// Set the field size (optional)		if( isset( $size ) ) {			$this->fields[$field_id]['SIZE'] = $size;		}				// Set the field options		if( isset( $opts ) ) {			$this->fields[$field_id]['OPTS'][] = $opts;		}	}		/**	* Adds a field option to the current field specifier	*	* This method adds a field option allowed by the ADOdb datadict 	* and appends it to the given field.	*	* @param string $field	Field name	* @param string $opt ADOdb field option	* @param mixed $value Field option value	* @return array Field specifier array	*/	function addFieldOpt( $field, $opt, $value = NULL ) {		if( !isset( $value ) ) {			$this->fields[$this->FieldID( $field )]['OPTS'][] = $opt;		// Add the option and value		} else {			$this->fields[$this->FieldID( $field )]['OPTS'][] = array( $opt => $value );		}	}		/**	* Adds an option to the table	*	* This method takes a comma-separated list of table-level options	* and appends them to the table object.	*	* @param string $opt Table option	* @return array Options	*/	function addTableOpt( $opt ) {		$this->opts[] = $opt;				return $this->opts;	}		/**	* Generates the SQL that will create the table in the database	*	* @param object $xmls adoSchema object	* @return array Array containing table creation SQL	*/	function create( &$xmls ) {		$sql = array();				// drop any existing indexes		if( is_array( $legacy_indexes = $xmls->dict->MetaIndexes( $this->name ) ) ) {			foreach( $legacy_indexes as $index => $index_details ) {				$sql[] = $xmls->dict->DropIndexSQL( $index, $this->name );			}		}				// remove fields to be dropped from table object		foreach( $this->drop_field as $field ) {			unset( $this->fields[$field] );		}				// if table exists		if( is_array( $legacy_fields = $xmls->dict->MetaColumns( $this->name ) ) ) {			// drop table			if( $this->drop_table ) {				$sql[] = $xmls->dict->DropTableSQL( $this->name );								return $sql;			}						// drop any existing fields not in schema			foreach( $legacy_fields as $field_id => $field ) {				if( !isset( $this->fields[$field_id] ) ) {					$sql[] = $xmls->dict->DropColumnSQL( $this->name, '`'.$field->name.'`' );				}			}		// if table doesn't exist		} else {			if( $this->drop_table ) {				return $sql;			}						$legacy_fields = array();		}				// Loop through the field specifier array, building the associative array for the field options		$fldarray = array();				foreach( $this->fields as $field_id => $finfo ) {			// Set an empty size if it isn't supplied			if( !isset( $finfo['SIZE'] ) ) {				$finfo['SIZE'] = '';			}						// Initialize the field array with the type and size			$fldarray[$field_id] = array(				'NAME' => $finfo['NAME'],				'TYPE' => $finfo['TYPE'],				'SIZE' => $finfo['SIZE']			);						// Loop through the options array and add the field options. 			if( isset( $finfo['OPTS'] ) ) {				foreach( $finfo['OPTS'] as $opt ) {					// Option has an argument.					if( is_array( $opt ) ) {						$key = key( $opt );						$value = $opt[key( $opt )];						@$fldarray[$field_id][$key] .= $value;					// Option doesn't have arguments					} else {						$fldarray[$field_id][$opt] = $opt;					}				}			}		}				if( empty( $legacy_fields ) ) {			// Create the new table			$sql[] = $xmls->dict->CreateTableSQL( $this->name, $fldarray, $this->opts );			logMsg( end( $sql ), 'Generated CreateTableSQL' );		} else {			// Upgrade an existing table			logMsg( "Upgrading {$this->name} using '{$xmls->upgrade}'" );			switch( $xmls->upgrade ) {				// Use ChangeTableSQL

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久色视频免费观看| 午夜久久电影网| 日韩专区在线视频| 成人开心网精品视频| 91精品婷婷国产综合久久竹菊| 欧美激情一区二区| 久久国产精品99精品国产 | 91精品国产综合久久精品麻豆| 国产三级欧美三级日产三级99| 亚洲最新视频在线观看| 成人在线视频一区二区| 日韩亚洲欧美在线| 午夜视频一区二区三区| 在线这里只有精品| 国产丝袜欧美中文另类| 久久精品国产免费| 在线成人小视频| 亚洲在线中文字幕| 97se亚洲国产综合在线| 日本一区免费视频| 国产乱码字幕精品高清av| 欧美一区二区三区白人| 国产在线一区二区综合免费视频| 91高清视频在线| 国产精品久久久久aaaa| 成人午夜免费av| 国产精品三级av在线播放| 狠狠色丁香婷婷综合久久片| 日韩免费性生活视频播放| 偷窥国产亚洲免费视频| 91精品婷婷国产综合久久性色| 午夜一区二区三区视频| 欧美日韩亚州综合| 亚洲午夜电影在线| 欧美日韩日日骚| 日本强好片久久久久久aaa| 91精品国产91久久久久久一区二区| 亚洲图片有声小说| 91精品国产色综合久久不卡电影| 午夜久久久久久| 欧美一区二区成人| 精品一区二区三区欧美| 久久综合999| 成人丝袜18视频在线观看| 国产精品青草综合久久久久99| 波多野结衣在线一区| 亚洲色图一区二区三区| 欧美日韩一区二区欧美激情| 天使萌一区二区三区免费观看| 日韩欧美国产不卡| 成人网在线播放| 亚洲精品菠萝久久久久久久| 欧美久久久一区| 国产剧情av麻豆香蕉精品| 国产精品理论在线观看| 欧美天天综合网| 国产综合久久久久影院| 国产精品久久久久久久午夜片 | 17c精品麻豆一区二区免费| 日本道免费精品一区二区三区| 亚洲第一电影网| 久久综合国产精品| 在线观看中文字幕不卡| 久久精品国产亚洲aⅴ| 国产精品视频看| 欧美一区日韩一区| 大桥未久av一区二区三区中文| 亚洲伦理在线精品| 日韩欧美国产成人一区二区| 成人av电影在线网| 日本午夜精品一区二区三区电影| 国产欧美精品国产国产专区 | 99精品视频在线观看| 偷窥国产亚洲免费视频| 亚洲国产精品成人久久综合一区| 欧美亚洲一区二区在线| 成人综合日日夜夜| 五月婷婷色综合| 国产精品护士白丝一区av| 欧美一卡2卡三卡4卡5免费| av不卡在线播放| 国产综合色精品一区二区三区| 亚洲自拍偷拍网站| 国产精品私人影院| 日韩欧美国产系列| 欧美婷婷六月丁香综合色| 成人午夜电影久久影院| 久久机这里只有精品| 一区二区三区久久| 国产精品黄色在线观看| 欧美精品一区二区三区蜜桃| 欧美亚洲国产bt| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 91精品国产91久久综合桃花 | 夜色激情一区二区| 中文字幕乱码亚洲精品一区| 精品久久久久久久久久久久久久久 | 亚洲欧美日韩久久| 久久品道一品道久久精品| 欧美挠脚心视频网站| 91电影在线观看| 99九九99九九九视频精品| 成人一二三区视频| 国模冰冰炮一区二区| 久久国产精品无码网站| 日本成人在线网站| 亚洲成人免费在线观看| 亚洲国产精品久久艾草纯爱| 亚洲黄色免费电影| 亚洲制服丝袜一区| 亚洲综合成人在线视频| 亚洲夂夂婷婷色拍ww47| 亚洲一区二区三区四区中文字幕| 亚洲三级在线免费| 一区二区在线免费观看| 一区二区三区精品视频在线| 一区二区三区在线免费观看| 亚洲一区免费视频| 午夜欧美大尺度福利影院在线看| 亚欧色一区w666天堂| 免费精品99久久国产综合精品| 麻豆精品国产传媒mv男同| 精品一区二区三区的国产在线播放| 日本vs亚洲vs韩国一区三区| 美女一区二区视频| 国产一区二区三区观看| 成人丝袜高跟foot| 91麻豆精品秘密| 欧美亚洲综合久久| 欧美mv日韩mv国产网站app| 国产欧美日韩在线视频| 1000精品久久久久久久久| 一区二区高清在线| 奇米精品一区二区三区四区| 久99久精品视频免费观看| 懂色av一区二区三区蜜臀| 色网综合在线观看| 日韩一二三区不卡| 国产精品久久三区| 亚洲成人免费av| 国产乱人伦偷精品视频免下载| 不卡区在线中文字幕| 在线成人高清不卡| 久久久久国产精品人| 亚洲激情av在线| 国内精品久久久久影院一蜜桃| 93久久精品日日躁夜夜躁欧美| 欧美日韩激情一区二区| 国产免费成人在线视频| 亚洲国产乱码最新视频| 国产精品一区二区久激情瑜伽| 色国产综合视频| 精品伦理精品一区| 亚洲一区免费在线观看| 国产激情一区二区三区四区| 在线欧美一区二区| 久久久.com| 天涯成人国产亚洲精品一区av| 国产精品一级片在线观看| 欧美色图激情小说| 国产精品免费av| 极品销魂美女一区二区三区| 日本道精品一区二区三区| 精品av综合导航| 一片黄亚洲嫩模| 成人动漫av在线| 欧美mv日韩mv亚洲| 一区二区三区免费看视频| 久久99国产乱子伦精品免费| 欧美性色综合网| 国产精品高清亚洲| 国产一区二区日韩精品| 欧美精品123区| 自拍偷拍国产精品| 国产一区二区三区日韩| 91精品国产综合久久精品| 亚洲精品国产成人久久av盗摄| 国产精品一区二区你懂的| 91麻豆精品91久久久久久清纯| 亚洲欧洲三级电影| 国产精品一卡二| 精品国产91九色蝌蚪| 日韩精彩视频在线观看| 欧美在线观看你懂的| 亚洲卡通欧美制服中文| 成人免费毛片app| 久久久久久久久久看片| 久久国产精品第一页| 日韩视频一区二区三区| 午夜精品福利久久久| 在线视频亚洲一区| 亚洲私人影院在线观看| 不卡的av在线播放| 国产精品毛片久久久久久| 国产91精品在线观看| 国产欧美精品一区二区色综合朱莉| 狠狠v欧美v日韩v亚洲ⅴ| 欧美不卡123| 国产尤物一区二区| 国产日产欧美一区二区三区|