Heim > php教程 > php手册 > Hauptteil

Wemall-Software-Handelsplattform WeChat-Grafikeditor-Teilecode-Sharing

WBOY
Freigeben: 2016-10-22 00:00:29
Original
1599 Leute haben es durchsucht

Ein Teil des Codes des WeChat-Grafikeditors für die Softwarehandelsplattform kann heruntergeladen werden
Ein Teil des Codes des WeChat-Grafikeditors für die Softwarehandelsplattform kann heruntergeladen werden
Wemall-Software-Handelsplattform WeChat-Grafikeditor-Teilecode-Sharing
controller.php<?php<br /> date_default_timezone_set("Asia/chongqing");<br /> error_reporting(E_ERROR);<br /> header("Content-Type: text/html; charset=gbk");<br /> <br /> $CONFIG = json_decode(preg_replace("//*[sS] ?*//", "", file_get_contents("config.json")), true);<br /> $action = $_GET[&#039;action&#039;];<br /> <br /> switch ($action) {<br /> case &#039;config&#039;:<br /> $result = json_encode($CONFIG);<br /> break;<br /> <br /> /* 上传图片 */<br /> case &#039;uploadimage&#039;:<br /> /* 上传涂鸦 */<br /> case &#039;uploadscrawl&#039;:<br /> /* 上传视频 */<br /> case &#039;uploadvideo&#039;:<br /> /* 上传文件 */<br /> case &#039;uploadfile&#039;:<br /> $result = include("action_upload.php");<br /> break;<br /> <br /> /* 列出图片 */<br /> case &#039;listimage&#039;:<br /> $result = include("action_list.php");<br /> break;<br /> /* 列出文件 */<br /> case &#039;listfile&#039;:<br /> $result = include("action_list.php");<br /> break;<br /> <br /> /* 抓取远程文件 */<br /> case &#039;catchimage&#039;:<br /> $result = include("action_crawler.php");<br /> break;<br /> <br /> default:<br /> $result = json_encode(array(<br /> &#039;state&#039;=> '请求地址出错'<br>         ));<br>         break;<br> }<br> <br> /* 输出结果 */<br> if (isset($_GET["callback"])) {<br>     if (preg_match("/^[w_] $/", $_GET["callback"])) {<br>         echo htmlspecialchars($_GET["callback"]) . '(' . $result . ')';<br>     } else {<br>         echo json_encode(array(<br>             'state'=> 'callback参数不合法'<br>         ));<br>     }<br> } else {<br>     echo $result;<br> } date_default_timezone_set("Asien/chongqing"); error_reporting(E_ERROR); header("Content-Type: text/html; charset=gbk"); <br /> $CONFIG = json_decode(preg_replace("//*[sS] ?*//", "", file_get_contents("config.json")), true);<br /> $action = $_GET['action'];<br /> <br /> switch ($action) {<br /> case 'config':<br />         $result = json_encode($CONFIG);<br />          Pause;<br /> <br /> /* Bilder hochladen */<br /> case 'uploadimage':<br /> /* Graffiti hochladen */<br /> Fall 'uploadscrawl':<br /> /* Video hochladen */<br /> Fall 'uploadvideo':<br /> /* Dateien hochladen */<br /> case 'uploadfile':<br />          $result = include("action_upload.php");<br />          Pause;<br /> <br /> /* Bilder auflisten */<br /> case 'listimage':<br />          $result = include("action_list.php");<br />          Pause;<🎜> /* Dateien auflisten */<🎜> Fall „listfile“:<🎜>          $result = include("action_list.php");<🎜>          Pause;<🎜> <🎜> /* Remote-Dateien abrufen */<🎜> case 'catchimage':<🎜>         $result = include("action_crawler.php");<🎜>          Pause;<🎜> <🎜> Standard:<🎜>          $result = json_encode(array(<🎜>             'state'=> 'Fehler beim Anfordern der Adresse' ));          Pause; } /* Ergebnisse ausgeben */ if (isset($_GET["callback"])) { if (preg_match("/^[w_] $/", $_GET["callback"])) { echo htmlspecialchars($_GET["callback"]) '(' . $result . ')'; } sonst { echo json_encode(array(             'state'=> 'Der Callback-Parameter ist illegal' )); } } sonst { echo $result; } action_crawler.php<?php<🎜> <🎜> set_time_limit(0);<🎜> include("Uploader.class.php");<🎜> <🎜> /* Konfiguration hochladen */<🎜> $config = array(<🎜> "pathFormat" => $CONFIG['catcherPathFormat'], "maxSize" => $CONFIG['catcherMaxSize'], "allowFiles" => $CONFIG['catcherAllowFiles'], „oriName“ => „remote.png“ ); $fieldName = $CONFIG['catcherFieldName']; /* Remote-Bilder abrufen */ $list = array(); if (isset($_POST[$fieldName])) { $source = $_POST[$fieldName]; } sonst { $source = $_GET[$fieldName]; } foreach ($source as $imgUrl) { $item = neuer Uploader($imgUrl, $config, "remote");    $info = $item->getFileInfo();<br>     array_push($list, array(<br>         "state" => $info["state"],<br>         "url" => $info["url"],<br>         "Größe" => $info["Größe"],<br>         "Titel" => htmlspecialchars($info["title"]),<br>         "original" => htmlspecialchars($info["original"]),<br>         "Quelle" => htmlspecialchars($imgUrl)<br>     ));<br> }<br> <br> /* 返回抓取数据 */<br> return json_encode(array(<br>     'state'=> count($list) ? 'ERFOLGREICH':'FEHLER',<br>     'list'=> $list<br> )); <br> <b>2wm.html</b><code class="prettyprint linenums lang-php"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/ xhtml1-transitional.dtd"><br> <html xmlns="http://www.w3.org/1999/xhtml"><br> <Kopf><br>     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><br>     <meta http-equiv="X-UA-Compatible" content="IE=edge" /><br> <TITLE>我们宅二维码在线生成工具—二维码图片生成器—嗨皮网二维码</TITLE><br> <META content="text/html; charset=utf-8" http-equiv=Content-Type><br> <META name=description content=在线二维码生成器提供免费的在线二维码生成服务, 可以把电子名片、文本、wifi网络、电子邮件, 短信, 电话号码, 网址等信息生成对应的二维码图片.二维码手机扫描软件下载.><br> <META name=keywords content=二维码,二维码生成器,二维码图片,二维码是什么,手机二维码,二维码生成,二维码扫描软件, 二维码识别软件<br /> <LINK rel=stylesheet type=text/css href="images/index.css"><br> <SCRIPT type=text/javascript src="images/jquery-1.8.2.min.js"></SCRIPT><br> <SCRIPT type=text/javascript src="images/iColorPicker.js"></SCRIPT><br> <SCRIPT type=text/javascript src="images/ZeroClipboard.js"></SCRIPT><br> <META name=GENERATOR content="MSHTML 8.00.6001.19393"><br> </head><br> <body style="padding:0;margin:0;background:#ddd;font-size:14px"><br>     <div id="main" style="width:960px;background:#fff; border:1px solid #eee;margin:20px auto;padding:20px 40px;"><br>     <div style="height:18px; line-height:18px; width:888px; margin:10px 30px;"><br> <script><br> var marqueeContent=new Array();   //滚动新闻<br> marqueeContent[0]='<font color="#ff0000">我们宅温馨提示: </font><a href="http://v.unihi.cn" target=_blank>二维码又称二维条码,是在一维条码的基础上扩展出的一种具有可读性的条码.</a><br>';<br> marqueeContent[1]='<font color="#ff0000">我们宅温馨提示: </font><a href="http://v.unihi.cn" target=_blank>设备通过扫描二维码,识别条码的二进制数据并可获取其中所包含的信息.</a><br>';<br> marqueeContent[2]='<font color="#ff0000">我们宅温馨提示: </font><a href="http://v.unihi.cn" target=_blank>手机二维码可以印刷在报纸、杂志、图书及个人名片等多种载体上,用户通过手机摄像头扫描二维码</a& gt;<br>';<br> marqueeContent[3]='<font color="#ff0000">我们宅温馨提示: </font><a href="http://v.unihi.cn" target=_blank>手机二维码扫描软件:比较知名的应用有条码扫描器、快拍、酷拍、我查查等。彩色二维码生成器,二维码生成器。</a><br>';<br> var marqueeInterval=new Array();  //定义一些常用而且要经常用到的变量<br> var marqueeId=0;<br> var marqueeDelay=5000;<br> var marqueeHeight=18;<br> //接下来的是定义一些要使用到的函数<br> function initMarquee() {<br>     var str=marqueeContent[0];<br>     document.write('<div id=marqueeBox style="overflow:hidden;height:&#039;+marqueeHeight+&#039;px" onmouseover="clearInterval(marqueeInterval[0])" onmouseout="marqueeInterval[0]=setInterval(\&#039;startMarquee()\&#039;,marqueeDelay)"><div>'+str+'</div></div>');<br>     marqueeId++;<br>     marqueeInterval[0]=setInterval("startMarquee()",marqueeDelay);<br>     }<br> function startMarquee() {<br>     var str=marqueeContent[marqueeId];<br>         marqueeId++;<br>     if(marqueeId>=marqueeContent.length) marqueeId=0;<br>     if(marqueeBox.childNodes.length==1) {<br>         var nextLine=document.createElement('DIV');<br>         nextLine.innerHTML=str;<br>         marqueeBox.appendChild(nextLine);<br>         }<br>     else {<br>         marqueeBox.childNodes[0].innerHTML=str;<br>         marqueeBox.appendChild(marqueeBox.childNodes[0]);<br>         marqueeBox.scrollTop=0;<br>         }<br>     clearInterval(marqueeInterval[1]);<br>     marqueeInterval[1]=setInterval("scrollMarquee()",18);<br>     }<br> function scrollMarquee() {<br>     marqueeBox.scrollTop++;<br>     if(marqueeBox.scrollTop%marqueeHeight==(marqueeHeight-1)){<br>         clearInterval(marqueeInterval[1]);<br>         }<br>     }<br> initMarquee();<br> </script><br> </div><br> <br>         <DIV class=main><br> <DIV class=ibox><br> <DIV class=il><br> <DIV class=inav><br> <UL id=datatype class=class><br>   <LI class=hover><SPAN class=s1><A href="javascript:" name=nav_text>通用文本</A></SPAN> <br>   <LI><SPAN class=s2><A href="javascript:" name=nav_telephone>电话号码</A></SPAN> <br>   <LI><SPAN class=s3><A href="javascript:" name=nav_sms>短信</A></SPAN> <br>   <LI><SPAN class=s4><A href="javascript:" name=nav_card>电子名片</A></SPAN> <br>   <LI><SPAN class=s5><A href="javascript:" name=nav_mail>电子邮件</A></SPAN> <br>   <LI><SPAN class=s6><A href="javascript:" name=nav_url>网址</A></SPAN> <br>   <LI><SPAN class=s7><A href="javascript:" name=nav_wifi>WiFi网络</A></SPAN> <br> </LI></UL><br> </DIV><br> <DIV class=middle><br> <FORM id=qrcodeform action=#><br> <DIV id=text class=imbox><br> <DIV class=imtit>推荐150字以内,支持普通文本/网址/EMAIL地址</DIV><br> <DIV class=imtext><TEXTAREA id=text_text rows=5 cols=30></TEXTAREA> <!-- <div class="size"><span id="text_size">0</span>/150</div>--></DIV></DIV><br> <DIV id=telephone class=imbox><br> <DIV class=imtit>请输入你的电话号码</DIV><br> <DIV class=imtext><br> <DIV class=input><INPUT id=telephone_tel class=sms></DIV></DIV></DIV><br> <DIV id=sms class=imbox><br> <DIV class=imtit>短信生成二维码,短信内容推荐140个字以内</DIV><br> <DIV class=imtext><br> <DIV class=subtit>电话号码</DIV><br> <DIV class=input><INPUT id=sms_tel class=sms></DIV><br> <DIV class=subtit>短信内容</DIV><TEXTAREA id=sms_sms rows=5 cols=30></TEXTAREA> <br> <DIV class=size><SPAN id=sms_size>0</SPAN>/140</DIV></DIV></DIV><br> <DIV id=card class=imbox><br> <DIV class=imtit>电话和姓名为必填项</DIV><br> <DIV class=imtext><br> <DIV class=subtit><SPAN>*</SPAN>姓名</DIV><br> <DIV class=input><INPUT id=card_n class=sms></DIV><br> <DIV class=subtit><SPAN>*</SPAN>电话</DIV><br> <DIV class=input><INPUT id=card_tel class=sms></DIV><br> <DIV class=subtit>公司/单位</DIV><br> <DIV class=input><INPUT id=card_org class=sms></DIV><br> <DIV class=subtit>职位</DIV><br> <DIV class=input><INPUT id=card_til class=sms></DIV><br> <DIV class=subtit>网址</DIV><br> <DIV class=input><INPUT id=card_url class=sms></DIV><br> <DIV class=subtit>电子邮箱</DIV><br> <DIV class=input><INPUT id=card_mail class=sms></DIV><br> <DIV class=subtit>地址</DIV><br> <DIV class=input><INPUT id=card_adr class=sms></DIV><!-- <div class="subtit">备注</div><br> <textarea rows="3" cols="20"></textarea>--></DIV></DIV><br> <DIV id=mail class=imbox><br> <DIV class=imtit>电子邮件生成二维码</DIV><br> <DIV class=imtext><br> <DIV class=input><INPUT id=mail_mail class=sms></DIV></DIV></DIV><br> <DIV id=url class=imbox><br> <DIV class=imtit>网址请以http://或https://开头</DIV><br> <DIV class=imtext><br> <DIV class=input><INPUT id=url_url class=sms></DIV></DIV></DIV><br> <DIV id=wifi class=imbox><br> <DIV class=imtit>适用于安卓系统</DIV><br> <DIV class=imtext><br> <DIV class=subtit>SSID/无线账号</DIV><br> <DIV class=input><INPUT id=wifi_ssid class=sms></DIV><br> <DIV class=subtit>密码</DIV><br> <DIV class=input><INPUT id=wifi_p class=sms></DIV><br> <DIV class=subtit>密码类型</DIV><br> <DIV class=input><SELECT id=wifi_t class=select> <OPTION selected <br /> value=WPA/WPA2>WPA/WPA2</OPTION> <OPTION value=WEP>WEP</OPTION> <br>   <OPTION>无加密</OPTION></SELECT> </DIV></DIV></DIV><br> <DIV class=selectcolor>背景颜色 <INPUT id=bg class=iColorPicker onClick="iColorShow(&#039;bg&#039;,&#039;icp_bg&#039;)" value=#ffffff maxLength=7 name=mycolor> 图片颜色 <br> <INPUT id=fg class=iColorPicker onClick="iColorShow(&#039;fg&#039;,&#039;icp_fg&#039;)" value=#000000 maxLength=7 name=mycolor> </DIV><br> <DIV class=generate><INPUT class=submit type=submit value=""></DIV><br> </FORM><br> <br> <SCRIPT type=text/javascript><br> (function($){<br> $('#telephone,#sms,#card,#mail,#url,#wifi').hide();<br> })(jQuery)<br> </SCRIPT><br> </DIV><br> </DIV><br> <DIV class=ir><br> <DIV class=irtit>您可以用手机扫描这张二维码图片 </DIV><br> <TABLE class=table><br>   <TBODY><br>   <TR><br>     <TD vAlign=center align=middle><br>       <DIV id=bigcode class=bigcode><A href="images/code.png" target=_blank><IMG id=qrcodeimg src="images/code.png"></A> </DIV><br>     </TD><br>   </TR><br> </TBODY><br> </TABLE><br> <br>     <DIV class=save><br> <br>     </DIV><br> </DIV><br> </DIV><br> <div style=" text-align:left; line-height:210%; font-size:14px;"><br>     <strong>二维码</strong>又称二维条码,是在一维条码的基础上扩展出的一种具有可读性的条码。<br><br>     设备通过扫描二维码,识别条码的二进制数据并可获取其中所包含的信息。<br><br>     手机二维码可以印刷在报纸、杂志、图书及个人名片等多种载体上,用户通过手机摄像头扫描二维码,即可实现快速手机上网,下载图文、音乐、视频、参与抽奖、了解企业产品信息等,还可以方便地用手机识别和存储名片、自动输入短信、获取公共服务(如天气预报)、查询电子地图、手机阅读等多种功能。手机二维码是3G时代网络浏览、应用下载、网上购物、网上支付等服务的重要入口。<br><br>     手机二维码扫描软件:比较知名的应用有条码扫描器、快拍、酷拍、我查查等。彩色二维码生成器,二维码生成器。<br><br> <div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a><a href="#" class="bds_wealink" data-cmd="wealink" title="分享到若邻网"></a><a href="#" class="bds_sqq" data-cmd="sqq" title="分享到QQ好友"></a><a href="#" class="bds_douban" data-cmd="douban" title="分享到豆瓣网"></a><a href="#" class="bds_tsohu" data-cmd="tsohu" title="分享到搜狐微博"></a><a href="#" class="bds_thx" data-cmd="thx" title="分享到和讯微博"></a><a href="#" class="bds_mogujie" data-cmd="mogujie" title="分享到蘑菇街"></a><a href="#" class="bds_huaban" data-cmd="huaban" title="分享到花瓣"></a><a href="#" class="bds_meilishuo" data-cmd="meilishuo" title="分享到美丽说"></a><a href="#" class="bds_kaixin001" data-cmd="kaixin001" title="分享到开心网"></a><a href="#" class="bds_tqf" data-cmd="tqf" title="分享到腾讯朋友"></a><a href="#" class="bds_duitang" data-cmd="duitang" title="分享到堆糖"></a><a href="#" class="bds_diandian" data-cmd="diandian" title="分享到点点网"></a><a href="#" class="bds_iguba" data-cmd="iguba" title="分享到股吧"></a><a href="#" class="bds_fbook" data-cmd="fbook" title="分享到Facebook"></a><a href="#" class="bds_mshare" data-cmd="mshare" title="分享到一键分享"></a></div><br> <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":""," bdStyle":"1","bdSize":"32"},"share":{},"image":{"viewList":["qzone","tsina","tqq","renren"," Weixin, Wealink, Sqq, Douban, Tsohu, Thx, Mogujie, Huaban, Meilishuo, Kaixin001, TQF, Duitang, Diandian ,"iguba","fbook", "mshare"],"viewText": "Teilen an:", "viewSize": "16"}};with(document)0[(getElementsByTagName('head')[0] ||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' ~ (-new Date()/36e5)];</script><br> </div><br> </div><br> </DIV><br> <SCRIPT type=text/javascript src="images/index.js"></SCRIPT><br> <SCRIPT type=text/javascript src="images/public.js"></SCRIPT><br>                                                                                   </div><br> <br> </body><br> </html><br> wemall Open-Source-Mikro-Einkaufszentrum, WeChat-Einkaufszentrum, Mall-Quellcode, dreistufiger Vertrieb, Mikro-Frischelebensmittel, Mikro-Obst, Mikro-Imbiss, Mikro-Bestellung --- professionelles O2O-System Wemall-Adresse: http://www.wemallshop.com
Code-Download-Adresse: http://www.koahub.com/home/product/40

Quelle:php.cn
Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Beliebte Empfehlungen
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage