appkan-ec for ecshop v1.0

  • h0_825296
    了解作者
  • 132.8KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-14 09:10
    上传日期
appkan-ec for ecshop v1.0,appkan-ec是由Appkan平台开发完成,主要功能作用于ecshop手机客户端数据交互插件。本插件免费使用,方便于基于ecshop手机客户端的开发者使用。本插件返回数据为json数据,适用于多平台开发,如ios开发,安卓开发等。 详细说明:http://php.662p.com/thread-186-1-1.html
appkan-ec_for_ecshop_v1.0.zip
  • 源码说明.htm
    3.1KB
  • 帮助文档.url
    127B
  • appkan
  • languages
  • zh_cn
  • common_gbk.php
    8KB
  • common.php
    9.5KB
  • 说明文档.pdf
    58KB
  • styles
  • general.css
    838B
  • main.css
    14.5KB
  • style.css
    12.5KB
  • includes
  • ucenter.php
    19KB
  • lib_passport.php
    12.8KB
  • inc_menu.php
    308B
  • shopex_json.php
    34.9KB
  • init.php
    3.5KB
  • lib_main.php
    2.9KB
  • cls_exchange.php
    3.3KB
  • images
  • th_bg.gif
    46B
  • btn_bg3.png
    829B
  • install.php
    3.3KB
  • apilist.php
    5.9KB
  • js
  • farbtastic.js
    9.7KB
  • jquery.js
    70.5KB
  • sso.js
    1.9KB
  • ad.js
    4.7KB
  • check.php
    711B
  • plugin_version.ini
    3B
  • templates
  • apilist.html
    3.4KB
  • header.html
    1.3KB
  • tooltip.html
    2KB
  • check.html
    2.5KB
  • footer.html
    116B
  • color.ini
    0B
  • uninstall.php
    2.1KB
  • 更多海量源码下载.url
    127B
内容介绍
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * Converts to and from JSON format. * * JSON (JavaScript Object Notation) is a lightweight data-interchange * format. It is easy for humans to read and write. It is easy for machines * to parse and generate. It is based on a subset of the JavaScript * Programming Language, Standard ECMA-262 3rd Edition - December 1999. * This feature can also be found in Python. JSON is a text format that is * completely language independent but uses conventions that are familiar * to programmers of the C-family of languages, including C, C++, C#, Java, * JavaScript, Perl, TCL, and many others. These properties make JSON an * ideal data-interchange language. * * This package provides a simple encoder and decoder for JSON notation. It * is intended for use with client-side Javascript applications that make * use of HTTPRequest to perform server communication functions - data can * be encoded into JSON notation for use in a client-side javascript, or * decoded from incoming Javascript requests. JSON format is native to * Javascript, and can be directly eval()'ed with no further parsing * overhead * * All strings should be in ASCII or UTF-8 format! * * LICENSE: 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. * * THIS SOFTWARE IS PROVIDED ``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 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. * * @category * @package Services_JSON * @author Michal Migurski <mike-json@teczno.com> * @author Matt Knapp <mdknapp[at]gmail[dot]com> * @author Brett Stimmerman <brettstimmerman[at]gmail[dot]com> * @copyright 2005 Michal Migurski * @version CVS: $Id: json.php 2997 2007-06-04 07:31:16Z flaboy $ * @license http://www.opensource.org/licenses/bsd-license.php * @link http://pear.php.net/pepr/pepr-proposal-show.php?id=198 */ if(!function_exists('json_encode')){ function json_encode($value){ $json = new Services_JSON(); return $json->encode($value); } } if(!function_exists('json_decode')){ function json_decode($json_value,$bool = false){ $json = new Services_JSON(); return $json->decode($json_value,$bool); } } /** * Marker constant for Services_JSON::decode(), used to flag stack state */ define('SERVICES_JSON_SLICE', 1); /** * Marker constant for Services_JSON::decode(), used to flag stack state */ define('SERVICES_JSON_IN_STR', 2); /** * Marker constant for Services_JSON::decode(), used to flag stack state */ define('SERVICES_JSON_IN_ARR', 3); /** * Marker constant for Services_JSON::decode(), used to flag stack state */ define('SERVICES_JSON_IN_OBJ', 4); /** * Marker constant for Services_JSON::decode(), used to flag stack state */ define('SERVICES_JSON_IN_CMT', 5); /** * Behavior switch for Services_JSON::decode() */ define('SERVICES_JSON_LOOSE_TYPE', 16); /** * Behavior switch for Services_JSON::decode() */ define('SERVICES_JSON_SUPPRESS_ERRORS', 32); /** * Converts to and from JSON format. * * Brief example of use: * * <code> * // create a new instance of Services_JSON * $json = new Services_JSON(); * * // convert a complexe value to JSON notation, and send it to the browser * $value = array('foo', 'bar', array(1, 2, 'baz'), array(3, array(4))); * $output = $json->encode($value); * * print($output); * // prints: ["foo","bar",[1,2,"baz"],[3,[4]]] * * // accept incoming POST data, assumed to be in JSON notation * $input = file_get_contents('php://input', 1000000); * $value = $json->decode($input); * </code> */ class Services_JSON { /** * constructs a new JSON instance * * @param int $use object behavior flags; combine with boolean-OR * * possible values: * - SERVICES_JSON_LOOSE_TYPE: loose typing. * "{...}" syntax creates associative arrays * instead of objects in decode(). * - SERVICES_JSON_SUPPRESS_ERRORS: error suppression. * Values which can't be encoded (e.g. resources) * appear as NULL instead of throwing errors. * By default, a deeply-nested resource will * bubble up with an error, so all return values * from encode() should be checked with isError() */ function Services_JSON($use = 0) { $this->use = $use; } /** * convert a string from one UTF-16 char to one UTF-8 char * * Normally should be handled by mb_convert_encoding, but * provides a slower PHP-only method for installations * that lack the multibye string extension. * * @param string $utf16 UTF-16 character * @return string UTF-8 character * @access private */ function utf162utf8($utf16) { // oh please oh please oh please oh please oh please if(function_exists('mb_convert_encoding')) { return mb_convert_encoding($utf16, 'UTF-8', 'UTF-16'); } $bytes = (ord($utf16{0}) << 8) | ord($utf16{1}); switch(true) { case ((0x7F & $bytes) == $bytes): // this case should never be reached, because we are in ASCII range // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 return chr(0x7F & $bytes); case (0x07FF & $bytes) == $bytes: // return a 2-byte UTF-8 character // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 return chr(0xC0 | (($bytes >> 6) & 0x1F)) . chr(0x80 | ($bytes & 0x3F)); case (0xFFFF & $bytes) == $bytes: // return a 3-byte UTF-8 character // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 return chr(0xE0 | (($bytes >> 12) & 0x0F)) . chr(0x80 | (($bytes >> 6) & 0x3F)) . chr(0x80 | ($bytes & 0x3F)); } // ignoring UTF-32 for now, sorry return ''; } /** * convert a string from one UTF-8 char to one UTF-16 char * * Normally should be handled by mb_convert_encoding, but * provides a slower PHP-only method for installations * that lack the multibye string extension. * * @param string $utf8 UTF-8 character * @return string UTF-16 character * @access private */ function utf82utf16($utf8) { // oh please oh please oh please oh please oh please if(function_exists('mb_convert_encoding')) { return mb_convert_encoding($utf8, 'UTF-16', 'UTF-8'); } switch(strlen($utf8)) { case 1: // this case shou
评论
    相关推荐
    • swim.html:http
      swim.html 来源
    • Html2Xaml:http的分叉
      Html2Xaml 这不是将 html 转换为 xaml 的好方法,我认为最好将其转换为列表,并通过 ListView 显示内容
    • html-redirect:生成 HTML 重定向页面
      htmlRedirect ( 'http://example.com' ) . pipe ( fs . createWriteStream ( 'example1.html' ) ) ; 示例1.html: <!DOCTYPE html > < html > < head > < title > (redirect) </ ...
    • Lingulo-Responsive-Tutorial:httpHTML5自适应网站教程
      语言响应式教程 HTML5自适应网站教程, 此HTML5网站是Christoph Anastasiades创建HTML5 / CSS3教程的一部分( )随意使用用于您的个人或商业项目...为了最大程度地减少HTTP请求的数量,请将所有CSS文件合并为一个文件
    • Cryptoquips:这个简单的应用程序从http解析html
      密码学 这个简单的应用程序解析html,并在卡视图中显示列出的Cryptoquip图像。
    • Lightweight C-HTTP & HTML Wrapper:轻量级的C-HTTPHTML包装器-开源
      它是一个C-HTTPHTML包装器,用于自动处理Web数据。 一些示例是:-接收网站以检查其是否正常运行-从例如下载您的个人数据。 网上银行,帐单...-处理网站中包含的数据,例如天气数据-接收大量数据,尤其是对网站...
    • slackify-html
      slackify-htmlhtml转换为 用法示例: var slackify = require('slackify-html'); var text = slackify('this <a>link</a> is <b>important</b>');...// text variable contains 'this <http> is *important*'
    • HTML5-Examples:httpHTML 5示例-html source website
      HTML5-示例 HTML 5示例。 版权所有2012:SKJ Technologies Private Ltd 这些示例已根据“知识共享署名-相同的ShareAlike 3.0未移植”(CC BY-SA 3.0)许可证进行共享。 有关CC BY-SA 3.0许可证的更多详细信息,请...
    • html定时抓取程序
      利用http协议,定时抓取指定网页内容,保存为.htm文件的程序;利用http协议,定时抓取指定网页内容,保存为.htm文件的程序;
    • html日期控件
      http://hiyu2218.bokele.com/?CH=6441