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

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

?? ajax.php

?? 很棒的在線教學系統
?? 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'])) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99精品国产91久久久久久| 日韩免费看的电影| 国产精品一二三| 寂寞少妇一区二区三区| 一区二区三区小说| av不卡一区二区三区| 亚洲国产婷婷综合在线精品| 老司机一区二区| 欧美日韩大陆一区二区| 国产一区二区三区日韩| 久久亚洲综合av| 97se亚洲国产综合自在线观| 大桥未久av一区二区三区中文| 国产91精品露脸国语对白| 91在线你懂得| 欧美日韩综合在线免费观看| 色综合久久88色综合天天免费| 99re视频精品| 精品国产伦一区二区三区免费| 中文字幕av不卡| 97久久久精品综合88久久| 亚洲欧美激情一区二区| 丝袜美腿亚洲一区| 国精品**一区二区三区在线蜜桃| 国产精品一区二区久久不卡| 成人短视频下载| 91麻豆精品国产91| 中文成人av在线| 久久国内精品自在自线400部| 国模娜娜一区二区三区| 91麻豆精品国产综合久久久久久| 欧美国产禁国产网站cc| 久久99国产精品麻豆| a美女胸又www黄视频久久| 欧美日韩日日夜夜| 中文字幕一区二区不卡| 国产成人综合亚洲91猫咪| 欧美一区二区三级| 男女男精品视频| 日韩一级黄色片| 免费观看成人av| 日韩午夜av电影| 狠狠色丁香九九婷婷综合五月| 欧美肥妇毛茸茸| 狠狠色狠狠色综合日日91app| 欧美电影免费观看高清完整版在线| 性感美女极品91精品| 欧美精品乱码久久久久久| 午夜欧美大尺度福利影院在线看 | 精品国产sm最大网站| 欧美a级理论片| 久久蜜桃av一区精品变态类天堂| 国产麻豆视频一区| 伊人色综合久久天天| 91精品国产综合久久婷婷香蕉 | 岛国精品一区二区| 亚洲青青青在线视频| 欧美精品 国产精品| 国产一区二区日韩精品| 亚洲精品伦理在线| 日韩一区二区三区在线| 成人免费视频一区| 天天综合色天天综合色h| 国产校园另类小说区| 欧美视频在线一区| 97久久超碰国产精品| 久久99精品一区二区三区| 一区二区三区在线播放| 国产精品久久久久久久久免费樱桃| 欧美亚洲国产一区在线观看网站| 国产激情视频一区二区三区欧美| 午夜伊人狠狠久久| 视频在线观看一区| 爽爽淫人综合网网站| 青娱乐精品在线视频| 亚洲妇熟xx妇色黄| 日韩av一二三| 韩国午夜理伦三级不卡影院| 精品亚洲国内自在自线福利| 久久电影国产免费久久电影| 蜜臀av一区二区在线免费观看| 日韩福利电影在线观看| 另类成人小视频在线| 精一区二区三区| 国产精品一二三四区| 国产精品亚洲第一区在线暖暖韩国| 精品一区二区三区在线观看国产| 奇米精品一区二区三区在线观看一| 日本aⅴ精品一区二区三区| 日韩av不卡在线观看| 免费观看在线综合| 成人午夜视频免费看| 在线国产电影不卡| 欧美日韩精品一区二区天天拍小说 | 欧美艳星brazzers| 91精品国产综合久久精品麻豆| 日韩一区二区视频| 欧美激情在线看| 亚洲最新视频在线观看| 亚洲精品欧美二区三区中文字幕| 亚洲成人中文在线| 丁香六月综合激情| 欧美一区二区在线视频| 中文天堂在线一区| 久久国产精品第一页| 免费在线观看不卡| 亚洲国产精品影院| 成人午夜视频免费看| 欧美日韩精品免费| 亚洲精品在线电影| 亚洲国产精品自拍| 不卡一卡二卡三乱码免费网站| 日本精品一区二区三区四区的功能| 欧美日韩视频在线一区二区| 久久精品视频一区二区| 日本不卡在线视频| 欧美日韩中文字幕一区二区| 一区二区国产视频| 成人午夜在线播放| 欧美国产在线观看| 国产成人在线观看免费网站| 久久久91精品国产一区二区精品| 捆绑调教美女网站视频一区| 日韩美女视频一区二区在线观看| 日本不卡一二三| 国产精品福利电影一区二区三区四区| 亚洲宅男天堂在线观看无病毒| 久久老女人爱爱| 亚洲男人的天堂一区二区| 成人一区二区在线观看| 亚洲欧美日韩在线| 日韩视频在线你懂得| 麻豆精品视频在线观看视频| 久久综合久久久久88| 色婷婷综合久久久| 麻豆91在线观看| 亚洲一区视频在线| 欧美激情一区二区三区四区| 欧美日本一区二区三区四区| 成人黄色国产精品网站大全在线免费观看| 一区二区三区在线免费| 国产蜜臀97一区二区三区| 69久久99精品久久久久婷婷 | 欧美日韩久久不卡| 色综合视频一区二区三区高清| 国产99久久久久久免费看农村| 美国av一区二区| 成人激情文学综合网| 久久精品国内一区二区三区| 亚洲精品欧美二区三区中文字幕| 色系网站成人免费| 五月婷婷另类国产| 欧美一区二区在线免费观看| 国精产品一区一区三区mba视频| 欧美xxxx老人做受| 99国产精品99久久久久久| 一区二区在线观看视频在线观看| 波多野结衣在线一区| 蜜桃av一区二区三区电影| 亚洲一级二级三级| 奇米色一区二区三区四区| 免费成人av资源网| 精品一区二区久久| 97久久人人超碰| 欧美日韩三级一区二区| 亚洲国产成人在线| 一区二区三区日韩在线观看| 亚洲高清一区二区三区| 日本亚洲视频在线| 成人免费av网站| 欧美精品在线视频| 日本一二三四高清不卡| 一区二区三区中文免费| 蜜桃视频在线观看一区二区| 麻豆视频一区二区| 色综合中文字幕国产 | 精品日韩一区二区| 亚洲一级不卡视频| 99精品视频中文字幕| 在线观看亚洲一区| 国产精品久久久久久久久免费樱桃| 一区二区三区四区蜜桃 | 久久久精品免费网站| 麻豆精品在线看| 欧美日精品一区视频| 综合色天天鬼久久鬼色| 国产**成人网毛片九色| 国产偷国产偷精品高清尤物| 蜜芽一区二区三区| 欧美日韩一区国产| 日韩av午夜在线观看| 欧美视频中文一区二区三区在线观看| 久久一日本道色综合| 国产高清在线观看免费不卡| 久久久av毛片精品| 国产成人在线视频网站| 日韩一区二区三| 国产成人福利片| 一区二区三区高清在线| 4hu四虎永久在线影院成人|