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

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

?? encoding.php.svn-base

?? PHP 知識管理系統(基于樹結構的知識管理系統), 英文原版的PHP源碼。
?? SVN-BASE
字號:
<?php/** *  base include file for SimpleTest *  @package    SimpleTest *  @subpackage WebTester *  @version    $Id: encoding.php 1723 2008-04-08 00:34:10Z lastcraft $ */    /**#@+ *  include other SimpleTest class files */require_once(dirname(__FILE__) . '/socket.php');/**#@-*//** *    Single post parameter. *    @package SimpleTest *    @subpackage WebTester */class SimpleEncodedPair {    var $_key;    var $_value;        /**     *    Stashes the data for rendering later.     *    @param string $key       Form element name.     *    @param string $value     Data to send.     */    function SimpleEncodedPair($key, $value) {        $this->_key = $key;        $this->_value = $value;    }        /**     *    The pair as a single string.     *    @return string        Encoded pair.     *    @access public     */    function asRequest() {        return urlencode($this->_key) . '=' . urlencode($this->_value);    }        /**     *    The MIME part as a string.     *    @return string        MIME part encoding.     *    @access public     */    function asMime() {        $part = 'Content-Disposition: form-data; ';        $part .= "name=\"" . $this->_key . "\"\r\n";        $part .= "\r\n" . $this->_value;        return $part;    }        /**     *    Is this the value we are looking for?     *    @param string $key    Identifier.     *    @return boolean       True if matched.     *    @access public     */    function isKey($key) {        return $key == $this->_key;    }        /**     *    Is this the value we are looking for?     *    @return string       Identifier.     *    @access public     */    function getKey() {        return $this->_key;    }        /**     *    Is this the value we are looking for?     *    @return string       Content.     *    @access public     */    function getValue() {        return $this->_value;    }}/** *    Single post parameter. *    @package SimpleTest *    @subpackage WebTester */class SimpleAttachment {    var $_key;    var $_content;    var $_filename;        /**     *    Stashes the data for rendering later.     *    @param string $key          Key to add value to.     *    @param string $content      Raw data.     *    @param hash $filename       Original filename.     */    function SimpleAttachment($key, $content, $filename) {        $this->_key = $key;        $this->_content = $content;        $this->_filename = $filename;    }        /**     *    The pair as a single string.     *    @return string        Encoded pair.     *    @access public     */    function asRequest() {        return '';    }        /**     *    The MIME part as a string.     *    @return string        MIME part encoding.     *    @access public     */    function asMime() {        $part = 'Content-Disposition: form-data; ';        $part .= 'name="' . $this->_key . '"; ';        $part .= 'filename="' . $this->_filename . '"';        $part .= "\r\nContent-Type: " . $this->_deduceMimeType();        $part .= "\r\n\r\n" . $this->_content;        return $part;    }        /**     *    Attempts to figure out the MIME type from the     *    file extension and the content.     *    @return string        MIME type.     *    @access private     */    function _deduceMimeType() {        if ($this->_isOnlyAscii($this->_content)) {            return 'text/plain';        }        return 'application/octet-stream';    }        /**     *    Tests each character is in the range 0-127.     *    @param string $ascii    String to test.     *    @access private     */    function _isOnlyAscii($ascii) {        for ($i = 0, $length = strlen($ascii); $i < $length; $i++) {            if (ord($ascii[$i]) > 127) {                return false;            }        }        return true;    }        /**     *    Is this the value we are looking for?     *    @param string $key    Identifier.     *    @return boolean       True if matched.     *    @access public     */    function isKey($key) {        return $key == $this->_key;    }        /**     *    Is this the value we are looking for?     *    @return string       Identifier.     *    @access public     */    function getKey() {        return $this->_key;    }        /**     *    Is this the value we are looking for?     *    @return string       Content.     *    @access public     */    function getValue() {        return $this->_filename;    }}/** *    Bundle of GET/POST parameters. Can include *    repeated parameters. *    @package SimpleTest *    @subpackage WebTester */class SimpleEncoding {    var $_request;        /**     *    Starts empty.     *    @param array $query       Hash of parameters.     *                              Multiple values are     *                              as lists on a single key.     *    @access public     */    function SimpleEncoding($query = false) {        if (! $query) {            $query = array();        }        $this->clear();        $this->merge($query);    }        /**     *    Empties the request of parameters.     *    @access public     */    function clear() {        $this->_request = array();    }        /**     *    Adds a parameter to the query.     *    @param string $key            Key to add value to.     *    @param string/array $value    New data.     *    @access public     */    function add($key, $value) {        if ($value === false) {            return;        }        if (is_array($value)) {            foreach ($value as $item) {                $this->_addPair($key, $item);            }        } else {            $this->_addPair($key, $value);        }    }        /**     *    Adds a new value into the request.     *    @param string $key            Key to add value to.     *    @param string/array $value    New data.     *    @access private     */    function _addPair($key, $value) {        $this->_request[] = new SimpleEncodedPair($key, $value);    }        /**     *    Adds a MIME part to the query. Does nothing for a     *    form encoded packet.     *    @param string $key          Key to add value to.     *    @param string $content      Raw data.     *    @param hash $filename       Original filename.     *    @access public     */    function attach($key, $content, $filename) {        $this->_request[] = new SimpleAttachment($key, $content, $filename);    }        /**     *    Adds a set of parameters to this query.     *    @param array/SimpleQueryString $query  Multiple values are     *                                           as lists on a single key.     *    @access public     */    function merge($query) {        if (is_object($query)) {            $this->_request = array_merge($this->_request, $query->getAll());        } elseif (is_array($query)) {            foreach ($query as $key => $value) {                $this->add($key, $value);            }        }    }        /**     *    Accessor for single value.     *    @return string/array    False if missing, string     *                            if present and array if     *                            multiple entries.     *    @access public     */    function getValue($key) {        $values = array();        foreach ($this->_request as $pair) {            if ($pair->isKey($key)) {                $values[] = $pair->getValue();            }        }        if (count($values) == 0) {            return false;        } elseif (count($values) == 1) {            return $values[0];        } else {            return $values;        }    }        /**     *    Accessor for listing of pairs.     *    @return array        All pair objects.     *    @access public     */    function getAll() {        return $this->_request;    }        /**     *    Renders the query string as a URL encoded     *    request part.     *    @return string        Part of URL.     *    @access protected     */    function _encode() {        $statements = array();        foreach ($this->_request as $pair) {            if ($statement = $pair->asRequest()) {                $statements[] = $statement;            }        }        return implode('&', $statements);    }}/** *    Bundle of GET parameters. Can include *    repeated parameters. *    @package SimpleTest *    @subpackage WebTester */class SimpleGetEncoding extends SimpleEncoding {        /**     *    Starts empty.     *    @param array $query       Hash of parameters.     *                              Multiple values are     *                              as lists on a single key.     *    @access public     */    function SimpleGetEncoding($query = false) {        $this->SimpleEncoding($query);    }        /**     *    HTTP request method.     *    @return string        Always GET.     *    @access public     */    function getMethod() {        return 'GET';    }        /**     *    Writes no extra headers.     *    @param SimpleSocket $socket        Socket to write to.     *    @access public     */    function writeHeadersTo(&$socket) {    }        /**     *    No data is sent to the socket as the data is encoded into     *    the URL.     *    @param SimpleSocket $socket        Socket to write to.     *    @access public     */    function writeTo(&$socket) {    }        /**     *    Renders the query string as a URL encoded     *    request part for attaching to a URL.     *    @return string        Part of URL.     *    @access public     */    function asUrlRequest() {        return $this->_encode();    }}/** *    Bundle of URL parameters for a HEAD request. *    @package SimpleTest *    @subpackage WebTester */class SimpleHeadEncoding extends SimpleGetEncoding {        /**     *    Starts empty.     *    @param array $query       Hash of parameters.     *                              Multiple values are     *                              as lists on a single key.     *    @access public     */    function SimpleHeadEncoding($query = false) {        $this->SimpleGetEncoding($query);    }        /**     *    HTTP request method.     *    @return string        Always HEAD.     *    @access public     */    function getMethod() {        return 'HEAD';    }}/** *    Bundle of POST parameters. Can include *    repeated parameters. *    @package SimpleTest *    @subpackage WebTester */class SimplePostEncoding extends SimpleEncoding {        /**     *    Starts empty.     *    @param array $query       Hash of parameters.     *                              Multiple values are     *                              as lists on a single key.     *    @access public     */    function SimplePostEncoding($query = false) {        if (is_array($query) and $this->hasMoreThanOneLevel($query)) {            $query = $this->rewriteArrayWithMultipleLevels($query);        }        $this->SimpleEncoding($query);    }        function hasMoreThanOneLevel($query) {        foreach ($query as $key => $value) {            if (is_array($value)) {                return true;            }        }        return false;    }    function rewriteArrayWithMultipleLevels($query) {        $query_ = array();        foreach ($query as $key => $value) {            if (is_array($value)) {                foreach ($value as $sub_key => $sub_value) {                    $query_[$key."[".$sub_key."]"] = $sub_value;                }            } else {                $query_[$key] = $value;            }        }        if ($this->hasMoreThanOneLevel($query_)) {            $query_ = $this->rewriteArrayWithMultipleLevels($query_);        }                return $query_;    }            /**     *    HTTP request method.     *    @return string        Always POST.     *    @access public     */    function getMethod() {        return 'POST';    }        /**     *    Dispatches the form headers down the socket.     *    @param SimpleSocket $socket        Socket to write to.     *    @access public     */    function writeHeadersTo(&$socket) {        $socket->write("Content-Length: " . (integer)strlen($this->_encode()) . "\r\n");        $socket->write("Content-Type: application/x-www-form-urlencoded\r\n");    }        /**     *    Dispatches the form data down the socket.     *    @param SimpleSocket $socket        Socket to write to.     *    @access public     */    function writeTo(&$socket) {        $socket->write($this->_encode());    }        /**     *    Renders the query string as a URL encoded     *    request part for attaching to a URL.     *    @return string        Part of URL.     *    @access public     */    function asUrlRequest() {        return '';    }}/** *    Bundle of POST parameters in the multipart *    format. Can include file uploads. *    @package SimpleTest *    @subpackage WebTester */class SimpleMultipartEncoding extends SimplePostEncoding {    var $_boundary;        /**     *    Starts empty.     *    @param array $query       Hash of parameters.     *                              Multiple values are     *                              as lists on a single key.     *    @access public     */    function SimpleMultipartEncoding($query = false, $boundary = false) {        $this->SimplePostEncoding($query);        $this->_boundary = ($boundary === false ? uniqid('st') : $boundary);    }        /**     *    Dispatches the form headers down the socket.     *    @param SimpleSocket $socket        Socket to write to.     *    @access public     */    function writeHeadersTo(&$socket) {        $socket->write("Content-Length: " . (integer)strlen($this->_encode()) . "\r\n");        $socket->write("Content-Type: multipart/form-data, boundary=" . $this->_boundary . "\r\n");    }        /**     *    Dispatches the form data down the socket.     *    @param SimpleSocket $socket        Socket to write to.     *    @access public     */    function writeTo(&$socket) {        $socket->write($this->_encode());    }        /**     *    Renders the query string as a URL encoded     *    request part.     *    @return string        Part of URL.     *    @access public     */    function _encode() {        $stream = '';        foreach ($this->_request as $pair) {            $stream .= "--" . $this->_boundary . "\r\n";            $stream .= $pair->asMime() . "\r\n";        }        $stream .= "--" . $this->_boundary . "--\r\n";        return $stream;    }}?>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
51精品久久久久久久蜜臀| 成人欧美一区二区三区小说| 日本一区二区三区高清不卡| 洋洋av久久久久久久一区| 精品一区二区在线观看| 日本韩国欧美三级| 国产日韩v精品一区二区| 日韩精品每日更新| 色综合一区二区| 国产日产欧美一区| 蜜臀av一区二区在线观看| 色琪琪一区二区三区亚洲区| 久久综合九色综合欧美98| 亚洲国产精品久久一线不卡| 成人高清视频在线观看| 久久久蜜桃精品| 久久成人av少妇免费| 91精品国产一区二区三区香蕉| 亚洲视频一区在线观看| 成人性生交大合| 欧美韩国日本不卡| 黄色精品一二区| 日韩欧美区一区二| 天堂成人国产精品一区| 欧美无砖专区一中文字| 亚洲欧洲综合另类| 色综合久久88色综合天天 | 久久99国产乱子伦精品免费| 欧美在线免费观看视频| 夜夜揉揉日日人人青青一国产精品| a在线播放不卡| 中文字幕亚洲成人| 96av麻豆蜜桃一区二区| 一区二区三区在线看| 91福利社在线观看| 亚洲午夜电影在线观看| 欧美日韩日日夜夜| 青青草成人在线观看| 欧美大片日本大片免费观看| 久久99精品视频| 国产天堂亚洲国产碰碰| 99视频超级精品| 亚洲一区二区美女| 欧美精品九九99久久| 美女一区二区久久| 久久精品夜夜夜夜久久| 99在线热播精品免费| 亚洲自拍偷拍九九九| 欧美精品v国产精品v日韩精品 | 国产精品福利在线播放| 91美女片黄在线观看91美女| 亚洲大片精品永久免费| 日韩一区二区三区三四区视频在线观看 | 夜夜精品浪潮av一区二区三区| 色狠狠桃花综合| 日韩电影在线一区| 久久久精品免费免费| 色综合色综合色综合色综合色综合 | 日韩欧美美女一区二区三区| 久久99精品国产麻豆不卡| 国产精品丝袜久久久久久app| 91麻豆精品视频| 日本不卡免费在线视频| 中文字幕第一区综合| 欧美亚洲禁片免费| 国产成人在线色| 亚洲成va人在线观看| 国产亚洲一二三区| 欧美精品少妇一区二区三区| 国产成人在线观看| 午夜久久久久久| 中文字幕一区视频| 日韩欧美高清一区| 3751色影院一区二区三区| 麻豆国产精品一区二区三区| 国产精品美女久久久久久久| 欧美一区二区三区成人| 成人激情免费视频| 精品在线你懂的| 亚洲国产毛片aaaaa无费看| 国产蜜臀av在线一区二区三区| 欧美日韩一卡二卡| 大尺度一区二区| 久久99精品网久久| 无码av中文一区二区三区桃花岛| 国产日本欧洲亚洲| 日韩欧美精品在线视频| 欧美中文字幕久久| caoporn国产精品| 韩国v欧美v日本v亚洲v| 亚州成人在线电影| 一区二区三区精品| 国产精品乱码一区二区三区软件| 欧美一区二区高清| 欧美日韩日本视频| 91久久线看在观草草青青| 成人免费黄色大片| 国产精品一线二线三线| 久久成人av少妇免费| 人人精品人人爱| 亚洲午夜精品网| 亚洲一区二区五区| 一区二区三区在线视频播放 | va亚洲va日韩不卡在线观看| 麻豆精品视频在线观看免费| 午夜精品影院在线观看| 亚洲一区二区三区四区五区中文| 国产精品第13页| 国产精品私房写真福利视频| 国产欧美精品一区| 亚洲国产成人自拍| 国产精品人成在线观看免费| 国产欧美视频在线观看| 国产欧美日韩在线看| 中文字幕免费不卡| 亚洲天堂福利av| 亚洲免费av网站| 亚洲另类在线制服丝袜| 亚洲与欧洲av电影| 成人高清免费在线播放| 成人av资源网站| 99re8在线精品视频免费播放| 99麻豆久久久国产精品免费 | 久久综合视频网| 久久久久久久久伊人| 久久久www成人免费无遮挡大片| 久久综合国产精品| 中文欧美字幕免费| 亚洲精品免费播放| 亚洲图片欧美综合| 麻豆久久久久久久| 福利91精品一区二区三区| av在线不卡免费看| 欧洲国内综合视频| 欧美成人一区二区三区片免费 | 欧美性一级生活| 欧美日韩国产综合久久| 日韩三级视频在线观看| 国产亚洲制服色| 亚洲国产一区二区视频| 久久国产精品72免费观看| 丁香亚洲综合激情啪啪综合| 色网综合在线观看| 日韩欧美国产wwwww| 亚洲视频你懂的| 日日噜噜夜夜狠狠视频欧美人 | 韩国女主播一区| jlzzjlzz国产精品久久| 欧美视频日韩视频在线观看| 日韩欧美不卡在线观看视频| 国产精品成人午夜| 免费在线观看一区| www.久久精品| 日韩免费在线观看| 亚洲欧洲美洲综合色网| 日本vs亚洲vs韩国一区三区| www.亚洲精品| 欧美成人一区二区三区片免费| 亚洲视频一二三| 国产精品一区二区三区网站| 在线观看视频91| 欧美激情综合网| 精品在线亚洲视频| 欧美午夜理伦三级在线观看| 久久久久久久国产精品影院| 亚洲成人av福利| 一本大道av一区二区在线播放 | 日韩美女视频在线| 亚洲一区二区综合| 暴力调教一区二区三区| 欧美一区二区在线免费播放| 亚洲欧美另类小说视频| 国产91在线看| 日韩免费高清视频| 亚洲一区成人在线| 91影院在线观看| 久久久久久97三级| 麻豆91精品视频| 欧美精品tushy高清| 亚洲男人天堂一区| 国产成都精品91一区二区三| 日韩美女一区二区三区四区| 日韩精品欧美精品| 欧美日韩三级视频| 一区二区三区自拍| 97久久精品人人做人人爽| 国产色爱av资源综合区| 久久成人免费电影| 欧美刺激午夜性久久久久久久 | 亚洲风情在线资源站| 91丨porny丨户外露出| 最新热久久免费视频| 成人精品视频一区二区三区尤物| 精品久久久久99| 国产伦精品一区二区三区在线观看| 日韩精品中文字幕在线不卡尤物| 日韩电影免费在线看| 日韩小视频在线观看专区| 日韩av电影天堂| 亚洲精品一区二区三区蜜桃下载|