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

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

?? mysql.php

?? This is the script which used on 10minutemail.com for temporary email.
?? PHP
?? 第 1 頁 / 共 3 頁
字號:
<?php
// +----------------------------------------------------------------------+
// | PHP versions 4 and 5                                                 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1998-2007 Manuel Lemos, Tomas V.V.Cox,                 |
// | Stig. S. Bakken, Lukas Smith                                         |
// | All rights reserved.                                                 |
// +----------------------------------------------------------------------+
// | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB  |
// | API as well as database abstraction for PHP applications.            |
// | This LICENSE is in the BSD license style.                            |
// |                                                                      |
// | Redistribution and use in source and binary forms, with or without   |
// | modification, are permitted provided that the following conditions   |
// | are met:                                                             |
// |                                                                      |
// | Redistributions of source code must retain the above copyright       |
// | notice, this list of conditions and the following disclaimer.        |
// |                                                                      |
// | Redistributions in binary form must reproduce the above copyright    |
// | notice, this list of conditions and the following disclaimer in the  |
// | documentation and/or other materials provided with the distribution. |
// |                                                                      |
// | Neither the name of Manuel Lemos, Tomas V.V.Cox, Stig. S. Bakken,    |
// | Lukas Smith nor the names of his contributors may be used to endorse |
// | or promote products derived from this software without specific prior|
// | written permission.                                                  |
// |                                                                      |
// | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS  |
// | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT    |
// | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS    |
// | FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE      |
// | REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,          |
// | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
// | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS|
// |  OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED  |
// | AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT          |
// | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY|
// | WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE          |
// | POSSIBILITY OF SUCH DAMAGE.                                          |
// +----------------------------------------------------------------------+
// | Author: Lukas Smith <smith@pooteeweet.org>                           |
// +----------------------------------------------------------------------+
//
// $Id: mysql.php,v 1.100 2007/12/03 20:59:15 quipo Exp $
//

require_once 'MDB2/Driver/Manager/Common.php';

/**
 * MDB2 MySQL driver for the management modules
 *
 * @package MDB2
 * @category Database
 * @author  Lukas Smith <smith@pooteeweet.org>
 */
class MDB2_Driver_Manager_mysql extends MDB2_Driver_Manager_Common
{

    // }}}
    // {{{ createDatabase()

    /**
     * create a new database
     *
     * @param string $name    name of the database that should be created
     * @param array  $options array with charset, collation info
     *
     * @return mixed MDB2_OK on success, a MDB2 error on failure
     * @access public
     */
    function createDatabase($name, $options = array())
    {
        $db =& $this->getDBInstance();
        if (PEAR::isError($db)) {
            return $db;
        }

        $name  = $db->quoteIdentifier($name, true);
        $query = 'CREATE DATABASE ' . $name;
        if (!empty($options['charset'])) {
            $query .= ' DEFAULT CHARACTER SET ' . $options['charset'];
        }
        if (!empty($options['collation'])) {
            $query .= ' COLLATE ' . $options['collation'];
        }
        $result = $db->exec($query);
        if (PEAR::isError($result)) {
            return $result;
        }
        return MDB2_OK;
    }

    // }}}
    // {{{ dropDatabase()

    /**
     * drop an existing database
     *
     * @param string $name name of the database that should be dropped
     * @return mixed MDB2_OK on success, a MDB2 error on failure
     * @access public
     */
    function dropDatabase($name)
    {
        $db =& $this->getDBInstance();
        if (PEAR::isError($db)) {
            return $db;
        }

        $name = $db->quoteIdentifier($name, true);
        $query = "DROP DATABASE $name";
        $result = $db->exec($query);
        if (PEAR::isError($result)) {
            return $result;
        }
        return MDB2_OK;
    }

    // }}}
    // {{{ _getAdvancedFKOptions()

    /**
     * Return the FOREIGN KEY query section dealing with non-standard options
     * as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
     *
     * @param array $definition
     * @return string
     * @access protected
     */
    function _getAdvancedFKOptions($definition)
    {
        $query = '';
        if (!empty($definition['match'])) {
            $query .= ' MATCH '.$definition['match'];
        }
        if (!empty($definition['onupdate'])) {
            $query .= ' ON UPDATE '.$definition['onupdate'];
        }
        if (!empty($definition['ondelete'])) {
            $query .= ' ON DELETE '.$definition['ondelete'];
        }
        return $query;
    }

    // }}}
    // {{{ createTable()

    /**
     * create a new table
     *
     * @param string $name   Name of the database that should be created
     * @param array $fields  Associative array that contains the definition of each field of the new table
     *                       The indexes of the array entries are the names of the fields of the table an
     *                       the array entry values are associative arrays like those that are meant to be
     *                       passed with the field definitions to get[Type]Declaration() functions.
     *                          array(
     *                              'id' => array(
     *                                  'type' => 'integer',
     *                                  'unsigned' => 1
     *                                  'notnull' => 1
     *                                  'default' => 0
     *                              ),
     *                              'name' => array(
     *                                  'type' => 'text',
     *                                  'length' => 12
     *                              ),
     *                              'password' => array(
     *                                  'type' => 'text',
     *                                  'length' => 12
     *                              )
     *                          );
     * @param array $options  An associative array of table options:
     *                          array(
     *                              'comment' => 'Foo',
     *                              'charset' => 'utf8',
     *                              'collate' => 'utf8_unicode_ci',
     *                              'type'    => 'innodb',
     *                          );
     *
     * @return mixed MDB2_OK on success, a MDB2 error on failure
     * @access public
     */
    function createTable($name, $fields, $options = array())
    {
        $db =& $this->getDBInstance();
        if (PEAR::isError($db)) {
            return $db;
        }

        $query = $this->_getCreateTableQuery($name, $fields, $options);
        if (PEAR::isError($query)) {
            return $query;
        }

        $options_strings = array();

        if (!empty($options['comment'])) {
            $options_strings['comment'] = 'COMMENT = '.$db->quote($options['comment'], 'text');
        }

        if (!empty($options['charset'])) {
            $options_strings['charset'] = 'DEFAULT CHARACTER SET '.$options['charset'];
            if (!empty($options['collate'])) {
                $options_strings['charset'].= ' COLLATE '.$options['collate'];
            }
        }

        $type = false;
        if (!empty($options['type'])) {
            $type = $options['type'];
        } elseif ($db->options['default_table_type']) {
            $type = $db->options['default_table_type'];
        }
        if ($type) {
            $options_strings[] = "ENGINE = $type";
        }

        if (!empty($options_strings)) {
            $query .= ' '.implode(' ', $options_strings);
        }
        $result = $db->exec($query);
        if (PEAR::isError($result)) {
            return $result;
        }
        return MDB2_OK;
    }

    // }}}
    // {{{ alterTable()

    /**
     * alter an existing table
     *
     * @param string $name         name of the table that is intended to be changed.
     * @param array $changes     associative array that contains the details of each type
     *                             of change that is intended to be performed. The types of
     *                             changes that are currently supported are defined as follows:
     *
     *                             name
     *
     *                                New name for the table.
     *
     *                            add
     *
     *                                Associative array with the names of fields to be added as
     *                                 indexes of the array. The value of each entry of the array
     *                                 should be set to another associative array with the properties
     *                                 of the fields to be added. The properties of the fields should
     *                                 be the same as defined by the MDB2 parser.
     *
     *
     *                            remove
     *
     *                                Associative array with the names of fields to be removed as indexes
     *                                 of the array. Currently the values assigned to each entry are ignored.
     *                                 An empty array should be used for future compatibility.
     *
     *                            rename
     *
     *                                Associative array with the names of fields to be renamed as indexes
     *                                 of the array. The value of each entry of the array should be set to
     *                                 another associative array with the entry named name with the new
     *                                 field name and the entry named Declaration that is expected to contain
     *                                 the portion of the field declaration already in DBMS specific SQL code
     *                                 as it is used in the CREATE TABLE statement.
     *
     *                            change
     *
     *                                Associative array with the names of the fields to be changed as indexes
     *                                 of the array. Keep in mind that if it is intended to change either the
     *                                 name of a field and any other properties, the change array entries
     *                                 should have the new names of the fields as array indexes.
     *
     *                                The value of each entry of the array should be set to another associative
     *                                 array with the properties of the fields to that are meant to be changed as
     *                                 array entries. These entries should be assigned to the new values of the
     *                                 respective properties. The properties of the fields should be the same
     *                                 as defined by the MDB2 parser.
     *
     *                            Example
     *                                array(
     *                                    'name' => 'userlist',
     *                                    'add' => array(
     *                                        'quota' => array(
     *                                            'type' => 'integer',
     *                                            'unsigned' => 1
     *                                        )
     *                                    ),
     *                                    'remove' => array(
     *                                        'file_limit' => array(),
     *                                        'time_limit' => array()
     *                                    ),
     *                                    'change' => array(
     *                                        'name' => array(
     *                                            'length' => '20',
     *                                            'definition' => array(
     *                                                'type' => 'text',
     *                                                'length' => 20,
     *                                            ),
     *                                        )
     *                                    ),
     *                                    'rename' => array(
     *                                        'sex' => array(
     *                                            'name' => 'gender',
     *                                            'definition' => array(
     *                                                'type' => 'text',
     *                                                'length' => 1,
     *                                                'default' => 'M',
     *                                            ),
     *                                        )
     *                                    )
     *                                )
     *
     * @param boolean $check     indicates whether the function should just check if the DBMS driver
     *                             can perform the requested table alterations if the value is true or
     *                             actually perform them otherwise.
     * @access public
     *
      * @return mixed MDB2_OK on success, a MDB2 error on failure
     */
    function alterTable($name, $changes, $check)
    {
        $db =& $this->getDBInstance();
        if (PEAR::isError($db)) {
            return $db;
        }

        foreach ($changes as $change_name => $change) {
            switch ($change_name) {
            case 'add':
            case 'remove':
            case 'change':
            case 'rename':
            case 'name':
                break;
            default:
                return $db->raiseError(MDB2_ERROR_CANNOT_ALTER, null, null,
                    'change type "'.$change_name.'" not yet supported', __FUNCTION__);
            }
        }

        if ($check) {
            return MDB2_OK;
        }

        $query = '';
        if (!empty($changes['name'])) {
            $change_name = $db->quoteIdentifier($changes['name'], true);
            $query .= 'RENAME TO ' . $change_name;
        }

        if (!empty($changes['add']) && is_array($changes['add'])) {
            foreach ($changes['add'] as $field_name => $field) {
                if ($query) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
天堂蜜桃91精品| 在线观看91精品国产入口| 色综合天天综合| 欧美成人精品1314www| 亚洲精品中文字幕在线观看| 久久99久久久久| 欧美影院午夜播放| 国产精品久久夜| 色综合色综合色综合色综合色综合| 欧美群妇大交群中文字幕| 国产精品成人免费| 国内精品久久久久影院色| 欧美色中文字幕| 亚洲精选免费视频| 99久免费精品视频在线观看| 久久人人爽人人爽| 美女被吸乳得到大胸91| 欧美体内she精高潮| 一区二区三区在线播| 99久久久久久99| 国产精品久久久久久久久久免费看| 精品一区二区三区免费观看| 欧美一激情一区二区三区| 午夜视频一区二区| 欧美日韩成人综合| 五月天亚洲婷婷| 777欧美精品| 亚洲成人午夜影院| 精品视频1区2区3区| 午夜精品福利在线| 欧美精品粉嫩高潮一区二区| 亚洲成人免费看| 欧美美女一区二区在线观看| 亚洲成a人v欧美综合天堂下载| 在线欧美小视频| 午夜一区二区三区在线观看| 欧美日韩中文字幕一区二区| 亚洲国产精品综合小说图片区| 色婷婷精品大在线视频| 亚洲一区在线观看视频| 欧美视频一二三区| 日产国产高清一区二区三区| 欧美一区二区黄色| 国产一区二区三区四区五区美女 | 制服丝袜中文字幕亚洲| 亚洲无线码一区二区三区| 欧美日韩黄色影视| 麻豆精品一区二区| 久久精品视频免费| 色噜噜狠狠色综合欧洲selulu| 亚洲在线观看免费视频| 91精品国产一区二区三区香蕉 | 欧美精品色综合| 蜜臀久久久久久久| 精品久久久久av影院 | 中文字幕亚洲不卡| 欧美在线小视频| 美国欧美日韩国产在线播放| 国产人妖乱国产精品人妖| 色素色在线综合| 日本成人在线网站| 中文字幕巨乱亚洲| 欧美午夜不卡视频| 国产麻豆精品久久一二三| 国产精品白丝在线| 日韩免费高清av| 91小视频免费看| 免费观看日韩电影| 美女视频网站久久| 国产精品午夜在线观看| 欧洲亚洲精品在线| 成人美女在线视频| 日本麻豆一区二区三区视频| 日韩一区欧美小说| 日韩女优电影在线观看| 色视频一区二区| 国产99久久久国产精品潘金 | 最新久久zyz资源站| 制服丝袜国产精品| 99re这里只有精品视频首页| 蜜桃一区二区三区在线观看| 亚洲欧美日韩在线| 国产午夜精品久久久久久免费视| 欧美三级中文字| 99vv1com这只有精品| 国产一区激情在线| 日韩激情视频在线观看| 1区2区3区精品视频| 久久久亚洲综合| 欧美一二三四区在线| 欧美亚洲国产怡红院影院| 国产成人亚洲综合a∨猫咪 | 亚洲国产精品久久久久婷婷884 | 97精品电影院| 国产乱一区二区| 看片网站欧美日韩| 天天av天天翘天天综合网| 亚洲精品国产a久久久久久| 国产精品美女一区二区三区| 久久九九国产精品| 日韩精品一区二区在线观看| 欧美肥妇bbw| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 国产91清纯白嫩初高中在线观看| 美女任你摸久久| 美腿丝袜在线亚洲一区| 日韩电影在线观看一区| 日韩av一二三| 青青国产91久久久久久| 麻豆精品久久精品色综合| 日韩精品欧美精品| 亚洲一二三四在线| 亚洲国产另类av| 日韩和欧美一区二区三区| 亚洲成人免费av| 日本中文字幕一区二区视频| 午夜电影久久久| 丝袜美腿一区二区三区| 日本不卡的三区四区五区| 日韩激情av在线| 美国三级日本三级久久99| 蜜桃视频在线观看一区| 韩国v欧美v亚洲v日本v| 国产成a人亚洲| eeuss影院一区二区三区| 色综合天天做天天爱| 色婷婷精品大视频在线蜜桃视频| 91精品1区2区| 欧美福利视频一区| xfplay精品久久| 国产精品天美传媒沈樵| 亚洲欧美成人一区二区三区| 亚洲午夜久久久久中文字幕久| 亚洲国产精品久久久男人的天堂 | 亚洲影院理伦片| 亚洲高清免费在线| 日韩电影一区二区三区四区| 另类小说一区二区三区| 国产一区二区在线观看免费| 成人一区二区三区视频在线观看| 91无套直看片红桃| 5月丁香婷婷综合| 久久亚洲精华国产精华液| 国产精品视频在线看| 亚洲成av人片观看| 国产精品亚洲专一区二区三区| av中文字幕在线不卡| 欧美男人的天堂一二区| 欧美大片在线观看一区二区| 国产日韩欧美麻豆| 一二三四社区欧美黄| 日本sm残虐另类| 成人黄色在线视频| 制服丝袜激情欧洲亚洲| 国产精品进线69影院| 日本在线观看不卡视频| 99久久久免费精品国产一区二区| 555www色欧美视频| 最新中文字幕一区二区三区| 免费不卡在线视频| 色综合久久88色综合天天6| 日韩精品在线一区二区| 亚洲精品中文在线观看| 久久不见久久见免费视频7| 色综合天天性综合| 日本一区二区在线不卡| 日本va欧美va精品发布| 一本到三区不卡视频| 久久婷婷国产综合精品青草| 亚洲资源在线观看| 99久久免费视频.com| 日韩欧美在线不卡| 亚洲成人av电影| 91视频国产资源| 国产亚洲自拍一区| 九九九久久久精品| 欧美欧美欧美欧美| 亚洲一区二区三区美女| av不卡在线观看| 欧美国产欧美亚州国产日韩mv天天看完整| 日韩国产一二三区| 欧美日韩亚洲高清一区二区| 亚洲美女在线一区| 成人精品高清在线| 国产亚洲一区二区三区四区 | 久久亚洲精品国产精品紫薇| 日韩av一级电影| 91麻豆精品91久久久久久清纯 | 91精品国产综合久久久久久久 | 欧美猛男男办公室激情| 亚洲精品乱码久久久久久黑人| 大尺度一区二区| 26uuu国产日韩综合| 麻豆freexxxx性91精品| 91精品国产手机| 奇米四色…亚洲| 日韩三级视频中文字幕| 蜜桃av一区二区在线观看| 91精品国产综合久久久久久漫画 | 欧美老女人第四色|