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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? ajax.php

?? 很棒的在線教學系統(tǒng)
?? PHP
?? 第 1 頁 / 共 3 頁
字號:
<?php/** * OO AJAX Implementation for PHP * * SVN Rev: $Id: AJAX.php,v 1.1.2.1 2008/10/03 07:09:50 nicolasconnault Exp $ * * @category  HTML * @package   AJAX * @author    Joshua Eichorn <josh@bluga.net> * @author    Arpad Ray <arpad@php.net> * @author    David Coallier <davidc@php.net> * @author    Elizabeth Smith <auroraeosrose@gmail.com> * @copyright 2005-2008 Joshua Eichorn, Arpad Ray, David Coallier, Elizabeth Smith * @license   http://www.opensource.org/licenses/lgpl-license.php   LGPL * @version   Release: 0.5.6 * @link      http://pear.php.net/package/HTML_AJAX *//** * This is a quick hack, loading serializers as needed doesn't work in php5 */require_once "HTML/AJAX/Serializer/JSON.php";require_once "HTML/AJAX/Serializer/Null.php";require_once "HTML/AJAX/Serializer/Error.php";require_once "HTML/AJAX/Serializer/XML.php";require_once "HTML/AJAX/Serializer/PHP.php";require_once 'HTML/AJAX/Debug.php';    /** * OO AJAX Implementation for PHP * * @category  HTML * @package   AJAX * @author    Joshua Eichorn <josh@bluga.net> * @author    Arpad Ray <arpad@php.net> * @author    David Coallier <davidc@php.net> * @author    Elizabeth Smith <auroraeosrose@gmail.com> * @copyright 2005-2008 Joshua Eichorn, Arpad Ray, David Coallier, Elizabeth Smith * @license   http://www.opensource.org/licenses/lgpl-license.php   LGPL * @version   Release: 0.5.6 * @link      http://pear.php.net/package/HTML_AJAX */class HTML_AJAX{    /**     * An array holding the instances were exporting     *     * key is the exported name     *     * row format is      * <code>     * array('className'=>'','exportedName'=>'','instance'=>'','exportedMethods=>'')     * </code>     *     * @var object     * @access private     */        var $_exportedInstances = array();    /**     * Set the server url in the generated stubs to this value     * If set to false, serverUrl will not be set     * @var false|string     */    var $serverUrl = false;    /**     * What encoding your going to use for serializing data      * from php being sent to javascript.     *     * @var string  JSON|PHP|Null     */    var $serializer = 'JSON';    /**     * What encoding your going to use for unserializing data sent from javascript     * @var string  JSON|PHP|Null     */    var $unserializer = 'JSON';    /**     * Option to use loose typing for JSON encoding     * @var bool     * @access public     */    var $jsonLooseType = true;    /**     * Content-type map     *     * Used in to automatically choose serializers as needed     */    var $contentTypeMap = array(            'JSON'  => 'application/json',            'XML'   => 'application/xml',            'Null'  => 'text/plain',            'Error' => 'application/error',            'PHP'   => 'application/php-serialized',            'Urlencoded' => 'application/x-www-form-urlencoded'        );        /**     * This is the debug variable that we will be passing the     * HTML_AJAX_Debug instance to.     *     * @param object HTML_AJAX_Debug     */    var $debug;    /**     * This is to tell if debug is enabled or not. If so, then     * debug is called, instantiated then saves the file and such.     */    var $debugEnabled = false;        /**     * This puts the error into a session variable is set to true.     * set to false by default.     *     * @access public     */    var $debugSession = false;    /**     * Boolean telling if the Content-Length header should be sent.      *     * If your using a gzip handler on an output buffer, or run into      * any compatability problems, try disabling this.     *     * @access public     * @var boolean     */    var $sendContentLength = true;    /**     * Make Generated code compatible with php4 by lowercasing all      * class/method names before exporting to JavaScript.     *     * If you have code that works on php4 but not on php5 then setting      * this flag can fix the problem. The recommended solution is too      * specify the class and method names when registering the class      * letting you have function case in php4 as well     *     * @access public     * @var boolean     */    var $php4CompatCase = false;    /**     * Automatically pack all generated JavaScript making it smaller     *     * If your using output compression this might not make sense     */    var $packJavaScript = false;    /**     * Holds current payload info     *     * @access private     * @var string     */    var $_payload;    /**     * Holds iframe id IF this is an iframe xmlhttprequest     *     * @access private     * @var string     */    var $_iframe;    /**     * Holds the list of classes permitted to be unserialized     *     * @access private     * @var array     */    var $_allowedClasses = array();        /**     * Holds serializer instances     */    var $_serializers = array();        /**     * PHP callbacks we're exporting     */    var $_validCallbacks = array();    /**     * Interceptor instance     */    var $_interceptor = false;    /**     * Set a class to handle requests     *     * @param object &$instance       An instance to export     * @param mixed  $exportedName    Name used for the javascript class,      *                                if false the name of the php class is used     * @param mixed  $exportedMethods If false all functions without a _ prefix      *                                are exported, if an array only the methods      *                                listed in the array are exported     *     * @return void     */    function registerClass(&$instance, $exportedName = false,         $exportedMethods = false)    {        $className = strtolower(get_class($instance));        if ($exportedName === false) {            $exportedName = get_class($instance);            if ($this->php4CompatCase) {                $exportedName = strtolower($exportedName);            }        }        if ($exportedMethods === false) {            $exportedMethods = $this->_getMethodsToExport($className);        }        $index                                               = strtolower($exportedName);        $this->_exportedInstances[$index]                    = array();        $this->_exportedInstances[$index]['className']       = $className;        $this->_exportedInstances[$index]['exportedName']    = $exportedName;        $this->_exportedInstances[$index]['instance']        =& $instance;        $this->_exportedInstances[$index]['exportedMethods'] = $exportedMethods;    }    /**     * Get a list of methods in a class to export     *     * This function uses get_class_methods to get a list of callable methods,      * so if you're on PHP5 extending this class with a class you want to export      * should export its protected methods, while normally only its public methods      * would be exported. All methods starting with _ are removed from the export list.     * This covers PHP4 style private by naming as well as magic methods in either PHP4 or PHP5     *     * @param string $className Name of the class     *     * @return array all methods of the class that are public     * @access private     */        function _getMethodsToExport($className)    {        $funcs = get_class_methods($className);        foreach ($funcs as $key => $func) {            if (strtolower($func) === $className || substr($func, 0, 1) === '_') {                unset($funcs[$key]);            } else if ($this->php4CompatCase) {                $funcs[$key] = strtolower($func);            }        }        return $funcs;    }    /**     * Generate the client Javascript code     *     * @return   string   generated javascript client code     */    function generateJavaScriptClient()    {        $client = '';        $names = array_keys($this->_exportedInstances);        foreach ($names as $name) {            $client .= $this->generateClassStub($name);        }        return $client;    }    /**     * Return the stub for a class     *     * @param string $name name of the class to generated the stub for,      * note that this is the exported name not the php class name     *     * @return string javascript proxy stub code for a single class     */    function generateClassStub($name)    {        if (!isset($this->_exportedInstances[$name])) {            return '';        }        $client  = "// Client stub for the {$this->_exportedInstances[$name]['exportedName']} PHP Class\n";        $client .= "function {$this->_exportedInstances[$name]['exportedName']}(callback) {\n";        $client .= "\tmode = 'sync';\n";        $client .= "\tif (callback) { mode = 'async'; }\n";        $client .= "\tthis.className = '{$this->_exportedInstances[$name]['exportedName']}';\n";        if ($this->serverUrl) {            $client .= "\tthis.dispatcher = new HTML_AJAX_Dispatcher(this.className,mode,callback,'{$this->serverUrl}','{$this->unserializer}');\n}\n";        } else {            $client .= "\tthis.dispatcher = new HTML_AJAX_Dispatcher(this.className,mode,callback,false,'{$this->unserializer}');\n}\n";        }        $client .= "{$this->_exportedInstances[$name]['exportedName']}.prototype  = {\n";        $client .= "\tSync: function() { this.dispatcher.Sync(); }, \n";        $client .= "\tAsync: function(callback) { this.dispatcher.Async(callback); },\n";        foreach ($this->_exportedInstances[$name]['exportedMethods'] as $method) {            $client .= $this->_generateMethodStub($method);        }        $client  = substr($client, 0, (strlen($client)-2))."\n";        $client .= "}\n\n";        if ($this->packJavaScript) {                $client = $this->packJavaScript($client);        }        return $client;    }    /**     * Returns a methods stub     *     * @param string $method the method name     *     * @return string the js code     * @access private     */        function _generateMethodStub($method)    {        $stub = "\t{$method}: function() { return ".            "this.dispatcher.doCall('{$method}',arguments); },\n";        return $stub;    }    /**     * Populates the current payload     *     * @return string the js code     * @access private     */        function populatePayload()    {        if (isset($_REQUEST['Iframe_XHR'])) {            $this->_iframe = $_REQUEST['Iframe_XHR_id'];            if (isset($_REQUEST['Iframe_XHR_headers']) &&                 is_array($_REQUEST['Iframe_XHR_headers'])) {                foreach ($_REQUEST['Iframe_XHR_headers'] as $header) {                    $array    = explode(':', $header);                    $array[0] = strip_tags(strtoupper(str_replace('-', '_', $array[0])));                    //only content-length and content-type can go in without an                     //http_ prefix - security                    if (strpos($array[0], 'HTTP_') !== 0                          && strcmp('CONTENT_TYPE', $array[0])                          && strcmp('CONTENT_LENGTH', $array[0])) {                        $array[0] = 'HTTP_' . $array[0];                    }                    $_SERVER[$array[0]] = strip_tags($array[1]);                }            }            $this->_payload = (isset($_REQUEST['Iframe_XHR_data'])                 ? $_REQUEST['Iframe_XHR_data'] : '');            if (isset($_REQUEST['Iframe_XHR_method'])) {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线不卡一区二区| 欧美日韩不卡一区| 国产黄色精品网站| 奇米精品一区二区三区在线观看 | 一区二区成人在线| 国产精品夫妻自拍| 国产精品二三区| 亚洲欧美国产三级| 一区2区3区在线看| 亚洲国产精品精华液网站| 亚洲成人自拍一区| 亚洲mv在线观看| 爽好久久久欧美精品| 日本伊人午夜精品| 麻豆一区二区三| 国产一区二区不卡| 国产91对白在线观看九色| 成人免费精品视频| 色婷婷综合久色| 在线看日本不卡| 欧美精品亚洲一区二区在线播放| 在线综合视频播放| 日韩一区二区三区在线观看| 精品欧美一区二区久久 | 国内精品伊人久久久久av一坑| 麻豆免费精品视频| 国产福利一区在线| 99久久夜色精品国产网站| 日本道色综合久久| 91麻豆精品国产| 精品免费一区二区三区| 中文字幕第一区二区| 亚洲免费电影在线| 五月激情综合网| 精品一区二区三区免费播放| 国产69精品一区二区亚洲孕妇| av电影天堂一区二区在线观看| 色悠悠久久综合| 日韩一区二区在线观看| 中文字幕精品一区二区三区精品| 亚洲精选视频在线| 蜜臀国产一区二区三区在线播放| 国产精品系列在线播放| 一本一道久久a久久精品综合蜜臀 一本一道综合狠狠老 | 久久66热re国产| 波多野结衣亚洲| 欧美日韩国产首页| 国产亚洲一区二区三区四区| 亚洲欧美另类小说视频| 美女视频黄频大全不卡视频在线播放| 国产成人午夜电影网| 欧美私人免费视频| 精品久久久久久久久久久久包黑料| 中文字幕欧美一| 日本欧美肥老太交大片| 99久久er热在这里只有精品15 | 亚洲永久免费av| 国产在线播放一区| 欧美色倩网站大全免费| 国产午夜一区二区三区| 亚洲国产aⅴ天堂久久| 国产aⅴ综合色| 5566中文字幕一区二区电影| 国产精品久久久久三级| 奇米精品一区二区三区四区 | 一本大道av一区二区在线播放| 日韩午夜中文字幕| 亚洲男帅同性gay1069| 国产一区二区三区在线观看免费| 在线欧美一区二区| 国产日韩精品一区| 午夜精品福利在线| jizz一区二区| 欧美精品一区二区久久婷婷| 午夜影院久久久| 不卡一区在线观看| 精品不卡在线视频| 婷婷综合五月天| 色8久久精品久久久久久蜜 | 奇米影视7777精品一区二区| 在线亚洲一区二区| 国产精品成人在线观看| 国产一区久久久| 欧美一区二区三区日韩视频| 亚洲精品第一国产综合野| 成人免费视频视频在线观看免费 | 精品国产91洋老外米糕| 午夜伦欧美伦电影理论片| 91日韩在线专区| 中文av字幕一区| 国产一区在线精品| 精品美女在线播放| 奇米影视一区二区三区小说| 5月丁香婷婷综合| 日韩电影在线观看一区| 欧美日韩精品电影| 亚洲国产一区二区三区| 色婷婷综合久久久中文一区二区 | 国产成人精品综合在线观看| 欧美不卡一区二区三区| 美国一区二区三区在线播放| 欧美一区午夜精品| 免费在线看一区| 欧美一卡二卡在线| 日韩av中文在线观看| 337p亚洲精品色噜噜狠狠| 天堂av在线一区| 欧美三级一区二区| 亚洲一区在线播放| 在线观看一区二区精品视频| 亚洲国产精品视频| 在线成人午夜影院| 亚洲成人资源网| 8x8x8国产精品| 欧美aaa在线| 精品久久一二三区| 国产成人啪免费观看软件| 中文字幕av免费专区久久| 成人高清在线视频| 亚洲女与黑人做爰| 欧美日韩一区在线观看| 日韩av一区二区三区四区| 欧美不卡在线视频| 国产二区国产一区在线观看| 国产精品久久久久aaaa樱花| 91麻豆精东视频| 亚洲国产日产av| 日韩三级中文字幕| 国产精品夜夜爽| 亚洲免费观看在线观看| 在线成人小视频| 国产成人综合亚洲91猫咪| 中文字幕一区二区三区四区不卡 | 在线一区二区视频| 日日嗨av一区二区三区四区| 日韩欧美区一区二| 国产另类ts人妖一区二区| 国产精品私人自拍| 欧美性大战久久久久久久蜜臀| 美腿丝袜在线亚洲一区| 欧美激情一二三区| 99热国产精品| 亚洲午夜视频在线观看| 日韩情涩欧美日韩视频| 粉嫩av亚洲一区二区图片| 国产精品久久久久影院亚瑟| 欧美三级电影网站| 久久99精品国产.久久久久| 中文av字幕一区| 91麻豆6部合集magnet| 天堂精品中文字幕在线| 久久久精品黄色| 91视频观看视频| 久久电影国产免费久久电影| 中文字幕一区二区三区精华液| 欧美另类z0zxhd电影| 国产二区国产一区在线观看| 亚洲成人福利片| 国产日韩欧美激情| 欧美三级三级三级爽爽爽| 国产成人午夜高潮毛片| 日本午夜精品视频在线观看| 国产欧美日韩综合精品一区二区| 97久久精品人人做人人爽50路| 看电影不卡的网站| 亚洲天堂2016| 久久免费国产精品| 欧美日韩另类一区| 成人精品一区二区三区中文字幕| 首页国产欧美久久| 亚洲欧美在线视频| 精品国产乱码久久久久久老虎 | 中文av一区二区| 日韩免费福利电影在线观看| 欧美在线一区二区三区| 国产aⅴ综合色| 精彩视频一区二区| 亚洲自拍偷拍网站| 国产精品美女www爽爽爽| 日韩三级中文字幕| 欧美日韩不卡在线| 在线观看欧美黄色| av在线播放成人| 国产成人在线观看| 理论电影国产精品| 午夜欧美视频在线观看| 亚洲一区二区在线免费看| 欧美激情一区在线| 久久精品视频免费| 91精品福利在线一区二区三区| 欧洲另类一二三四区| 成人开心网精品视频| 福利一区福利二区| 国内欧美视频一区二区| 久久不见久久见免费视频1| 日本午夜精品视频在线观看 | 91在线观看高清| 成人黄色在线视频| 国产麻豆日韩欧美久久| 美女爽到高潮91|