亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
亚洲一二三专区| 国产成人亚洲综合a∨婷婷图片| 亚洲高清在线精品| 高清免费成人av| 欧美精品乱人伦久久久久久| 国产精品国产三级国产aⅴ入口| 性久久久久久久久| 不卡的av在线播放| 精品国产免费人成在线观看| 亚洲综合在线免费观看| 粉嫩高潮美女一区二区三区| 欧美一区二区三区免费视频 | 成人午夜电影网站| 91精品麻豆日日躁夜夜躁| 日韩伦理免费电影| 国产成人精品www牛牛影视| 欧美一级在线观看| 性做久久久久久久免费看| 日本精品视频一区二区三区| 国产精品的网站| 国产不卡免费视频| 久久亚洲综合av| 蜜桃av噜噜一区二区三区小说| 91网站最新网址| 国产精品网站一区| 国产91对白在线观看九色| 久久久综合视频| 国内精品国产成人国产三级粉色| 91麻豆精品国产自产在线 | 风流少妇一区二区| 精品久久久久久久人人人人传媒 | 高清不卡一区二区在线| 久久综合国产精品| 经典三级在线一区| 精品免费日韩av| 精品综合久久久久久8888| 91麻豆精品国产无毒不卡在线观看 | 丝袜诱惑亚洲看片| 欧美另类高清zo欧美| 午夜精品福利在线| 欧美日韩成人激情| 日本 国产 欧美色综合| 欧美一区二区黄| 另类调教123区| 久久久久久久综合狠狠综合| 国产高清久久久| 国产精品久久久久影视| 91视频精品在这里| 亚洲成av人片一区二区三区| 欧美日韩激情一区二区三区| 免费人成精品欧美精品| 精品免费99久久| eeuss鲁片一区二区三区在线看| 国产精品毛片大码女人| 欧美私人免费视频| 日本va欧美va欧美va精品| 337p日本欧洲亚洲大胆精品| 不卡在线视频中文字幕| 亚洲综合免费观看高清完整版| 欧美精选一区二区| 国产精品综合在线视频| 亚洲柠檬福利资源导航| 欧美一区二区黄| av不卡免费电影| 另类小说色综合网站| 中文字幕日本乱码精品影院| 欧美三级日韩三级| 国产成人av电影在线播放| 亚洲一区二区高清| 国产欧美日韩在线看| 欧美性受xxxx| 国产老女人精品毛片久久| 一区二区三区不卡在线观看| 日韩欧美国产wwwww| 不卡的av在线| 久久国产精品99久久久久久老狼 | 99久久精品国产导航| 日韩av电影天堂| 亚洲色图在线播放| wwwwww.欧美系列| 色一区在线观看| 国产在线看一区| 天堂久久久久va久久久久| 国产精品你懂的| 日韩女优毛片在线| 欧美三级日韩三级国产三级| 国产成人福利片| 麻豆91小视频| 五月综合激情日本mⅴ| 国产精品久久久久久久久搜平片 | 色婷婷激情一区二区三区| 韩国成人福利片在线播放| 亚洲黄色性网站| 欧美极品xxx| 精品国产三级a在线观看| 欧美日本韩国一区二区三区视频| 成人黄色大片在线观看| 国产美女一区二区三区| 日产国产高清一区二区三区| 亚洲精品免费一二三区| 国产精品女上位| 久久天堂av综合合色蜜桃网| 91精品国产综合久久久久久久| 色综合久久六月婷婷中文字幕| 国产激情一区二区三区| 国产在线精品国自产拍免费| 免费精品99久久国产综合精品| 亚洲一卡二卡三卡四卡| 亚洲精品少妇30p| 亚洲三级小视频| 亚洲欧洲在线观看av| 亚洲国产精品av| 国产精品网站在线播放| 欧美国产精品中文字幕| 国产三级欧美三级| 久久老女人爱爱| 欧美激情在线免费观看| 国产嫩草影院久久久久| 久久人人爽爽爽人久久久| 亚洲精品在线三区| 久久精品一区四区| 国产日韩欧美在线一区| 国产欧美1区2区3区| 国产精品私人影院| 亚洲人成网站影音先锋播放| 樱花影视一区二区| 艳妇臀荡乳欲伦亚洲一区| 亚洲成av人影院在线观看网| 日韩综合在线视频| 久久99国产精品久久| 国内精品伊人久久久久av一坑 | 欧美日韩在线一区二区| 欧美图片一区二区三区| 日韩视频国产视频| 精品1区2区在线观看| 国产精品国产三级国产三级人妇| 亚洲男女毛片无遮挡| 亚洲一区二区欧美日韩| 日本在线观看不卡视频| 国产在线播精品第三| 国产成人一区在线| 91免费看`日韩一区二区| 色欧美乱欧美15图片| 欧美精品tushy高清| 久久久午夜精品| 亚洲精品成人少妇| 美国毛片一区二区| 国产69精品久久久久毛片| 欧美熟乱第一页| 精品欧美黑人一区二区三区| 国产精品国产三级国产专播品爱网| 亚洲最新视频在线播放| 国产毛片精品视频| 色综合久久久久综合体| 精品欧美一区二区久久| 亚洲欧洲制服丝袜| 精品亚洲成av人在线观看| av动漫一区二区| 日韩西西人体444www| 中文字幕在线免费不卡| 青青草伊人久久| 波多野结衣精品在线| 欧美一级黄色录像| 亚洲人成网站色在线观看| 精品中文字幕一区二区| 欧美系列一区二区| 久久精品视频一区二区| 无码av中文一区二区三区桃花岛| 国产精品一级片| 88在线观看91蜜桃国自产| 欧美激情在线一区二区| 麻豆专区一区二区三区四区五区| 9人人澡人人爽人人精品| 精品免费日韩av| 亚洲妇女屁股眼交7| 一本大道综合伊人精品热热 | 91精品欧美一区二区三区综合在 | 亚洲成人av中文| 91亚洲资源网| 欧美国产精品一区| 狠狠狠色丁香婷婷综合激情| 欧美日本韩国一区二区三区视频| 亚洲男人的天堂网| jlzzjlzz欧美大全| 国产日韩高清在线| 极品少妇xxxx偷拍精品少妇| 欧美日韩亚洲高清一区二区| 亚洲丝袜精品丝袜在线| 不卡一区中文字幕| 中文字幕不卡在线播放| 国产精品一区二区在线看| 精品国产伦一区二区三区观看体验| 日韩精品国产欧美| 欧美日韩综合在线免费观看| 夜色激情一区二区| 欧美伊人精品成人久久综合97| 国产精品不卡在线观看| 91在线你懂得| 国产精品初高中害羞小美女文| 成人动漫av在线|