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

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

?? adodb-xmlschema03.inc.php

?? asterisk用 的voip記費軟件
?? PHP
?? 第 1 頁 / 共 5 頁
字號:
<?php// Copyright (c) 2004-2005 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.62 $ * * @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.3' );}/*** Default Schema Version.  Used for Schemas without an explicit version set.*/if( !defined( 'XMLS_DEFAULT_SCHEMA_VERSION' ) ) {	define( 'XMLS_DEFAULT_SCHEMA_VERSION', '0.1' );}/*** How to handle data rows that already exist in a database during and upgrade.* Options are INSERT (attempts to insert duplicate rows), UPDATE (updates existing* rows) and IGNORE (ignores existing rows).*/if( !defined( 'XMLS_MODE_INSERT' ) ) {	define( 'XMLS_MODE_INSERT', 0 );}if( !defined( 'XMLS_MODE_UPDATE' ) ) {	define( 'XMLS_MODE_UPDATE', 1 );}if( !defined( 'XMLS_MODE_IGNORE' ) ) {	define( 'XMLS_MODE_IGNORE', 2 );}if( !defined( 'XMLS_EXISTING_DATA' ) ) {	define( 'XMLS_EXISTING_DATA', XMLS_MODE_INSERT );}/*** 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();		/**	* @var array Platform-specific options	* @access private	*/	var $currentPlatform = true;			/**	* 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 = !empty( $attributes['OPTS'] ) ? $attributes['OPTS'] : NULL;								$this->addField( $fieldName, $fieldType, $fieldSize, $fieldOpts );				break;			case 'KEY':			case 'NOTNULL':			case 'AUTOINCREMENT':			case 'DEFDATE':			case 'DEFTIMESTAMP':			case 'UNSIGNED':				// 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 'OPT':			case 'CONSTRAINT':				// Accept platform-specific options				$this->currentPlatform = ( !isset( $attributes['PLATFORM'] ) OR $this->supportedPlatform( $attributes['PLATFORM'] ) );				break;			default:				// print_r( array( $tag, $attributes ) );		}	}		/**	* XML Callback to process CDATA elements	*	* @access private	*/	function _tag_cdata( &$parser, $cdata ) {		switch( $this->currentElement ) {			// Table/field constraint			case 'CONSTRAINT':				if( isset( $this->current_field ) ) {					$this->addFieldOpt( $this->current_field, $this->currentElement, $cdata );				} else {					$this->addTableOpt( $cdata );				}				break;			// Table/field option			case 'OPT':				if( isset( $this->current_field ) ) {					$this->addFieldOpt( $this->current_field, $cdata );				} else {				$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;			case 'OPT':			case 'CONSTRAINT':				$this->currentPlatform = true;				break;			default:		}	}		/**	* 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'] = array($opts);		} else {			$this->fields[$field_id]['OPTS'] = array();		}	}		/**	* 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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人黄色大片在线观看| 《视频一区视频二区| 亚洲色图.com| 老司机一区二区| 欧美调教femdomvk| 国产精品免费看片| 久草精品在线观看| 51久久夜色精品国产麻豆| 亚洲欧洲日韩一区二区三区| 久久99国产精品麻豆| 欧美色图第一页| 亚洲欧美一区二区三区久本道91 | 欧美mv日韩mv国产| 亚洲一区二区偷拍精品| av电影在线观看完整版一区二区| 欧美高清视频不卡网| 亚洲综合一区二区精品导航| 成年人网站91| 国产精品美女久久久久久久久久久 | 色999日韩国产欧美一区二区| 国产精品丝袜一区| 国产精品1区2区3区在线观看| 日韩网站在线看片你懂的| 亚洲午夜免费电影| 在线一区二区三区| 亚洲理论在线观看| 日本道免费精品一区二区三区| 国产精品女主播av| 成人高清视频在线| 国产精品毛片大码女人| 成年人国产精品| 中文字幕日韩av资源站| 91视频精品在这里| 亚洲综合一区在线| 欧美日韩精品一区二区三区 | 精品写真视频在线观看| 日韩精品一区二区三区中文不卡| 日本系列欧美系列| 日韩精品最新网址| 国产老肥熟一区二区三区| 欧美激情一区二区三区不卡 | 欧美精品第1页| 蜜臀91精品一区二区三区| 欧美v日韩v国产v| 国产电影一区在线| 亚洲三级电影全部在线观看高清| 色哟哟在线观看一区二区三区| 一区二区三区高清| 4438x亚洲最大成人网| 蜜桃av一区二区| 久久久久久免费| kk眼镜猥琐国模调教系列一区二区| 国产精品免费av| 色猫猫国产区一区二在线视频| 亚洲风情在线资源站| 日韩欧美国产一区二区在线播放| 久久av老司机精品网站导航| 国产亚洲一区字幕| 色成人在线视频| 看国产成人h片视频| 国产精品毛片久久久久久久| 欧美在线视频全部完| 久久99精品久久久| 亚洲精品乱码久久久久久久久 | 欧美在线啊v一区| 人妖欧美一区二区| 国产精品拍天天在线| 欧美日韩国产一区| 国产乱码精品1区2区3区| 一区二区久久久久久| 精品久久久久av影院| 丁香五精品蜜臀久久久久99网站| 亚洲成人午夜电影| 国产色爱av资源综合区| 欧美高清dvd| 成人ar影院免费观看视频| 日韩国产欧美三级| 亚洲美女在线国产| 久久尤物电影视频在线观看| 在线亚洲一区二区| 国产成人夜色高潮福利影视| 图片区日韩欧美亚洲| 国产精品色婷婷| 日韩精品在线看片z| 欧美中文字幕不卡| 成人黄色免费短视频| 国内精品不卡在线| 天堂蜜桃91精品| 亚洲欧洲中文日韩久久av乱码| 久久一区二区视频| 日韩欧美三级在线| 欧美精品777| 91黄视频在线| www.欧美色图| 国产精品自产自拍| 看国产成人h片视频| 三级亚洲高清视频| 亚洲综合视频在线观看| 日韩美女视频一区二区| 国产精品三级av| 久久精品亚洲麻豆av一区二区| 欧美成人bangbros| 欧美一区二区三区不卡| 欧美色老头old∨ideo| 91精品福利视频| av中文字幕一区| 99精品黄色片免费大全| 成人免费观看av| 成人性生交大合| 国产91精品露脸国语对白| 国产精品1区2区3区| 国产精品99久| 成a人片国产精品| 成人avav在线| 色婷婷综合五月| 在线中文字幕不卡| 欧美少妇bbb| 欧美欧美欧美欧美| 91麻豆精品91久久久久同性| 欧美一区二区三区白人| 精品久久久三级丝袜| 久久亚洲综合色| 国产精品久久久久久久久晋中| 中文av字幕一区| 自拍偷拍欧美激情| 性做久久久久久| 老司机午夜精品| 国产成人在线看| 91丨porny丨最新| 欧美日韩国产三级| 日韩欧美高清dvd碟片| 久久久亚洲高清| 中文字幕一区二区三区视频| 一区二区理论电影在线观看| 天堂va蜜桃一区二区三区漫画版| 日本欧美加勒比视频| 国产一区二区在线观看视频| 成人av影院在线| 欧美午夜精品一区二区蜜桃| 日韩视频一区二区在线观看| 久久久精品日韩欧美| 亚洲欧美日韩一区二区三区在线观看| 亚洲一区二区中文在线| 狠狠久久亚洲欧美| www.久久精品| 欧美男生操女生| 欧美激情一区二区三区在线| 亚洲一二三四区不卡| 国产一区二区福利视频| 99久久99久久精品国产片果冻| 欧美女孩性生活视频| 欧美激情中文不卡| 亚洲va天堂va国产va久| 国产一区二区按摩在线观看| 一本色道久久综合亚洲精品按摩| 91精品国产品国语在线不卡 | 精品国产三级a在线观看| 国产精品久线在线观看| 奇米精品一区二区三区四区| 不卡一二三区首页| 日韩三级中文字幕| 日韩一区中文字幕| 狠狠色狠狠色合久久伊人| 色久综合一二码| 国产视频不卡一区| 奇米一区二区三区| 91麻豆免费视频| 国产视频一区在线观看| 日韩电影在线观看一区| 日本精品免费观看高清观看| 久久在线观看免费| 日本va欧美va欧美va精品| 色婷婷国产精品久久包臀| 久久久午夜精品理论片中文字幕| 亚洲成人激情av| 91在线你懂得| 国产日韩av一区二区| 另类的小说在线视频另类成人小视频在线| 色综合久久久久网| 中文字幕五月欧美| 国产高清亚洲一区| 日韩精品中午字幕| 免费观看成人av| 91精品视频网| 亚洲国产视频一区| 91精品福利视频| 亚洲精品欧美在线| 91丨porny丨中文| 亚洲欧洲三级电影| 不卡的电影网站| 国产精品久久久久一区| 懂色av中文一区二区三区| 国产亚洲美州欧州综合国| 久草在线在线精品观看| 精品少妇一区二区三区日产乱码| 日本成人在线看| 日韩女优av电影在线观看| 美女一区二区久久| 精品国产精品一区二区夜夜嗨| 毛片不卡一区二区|