登陆后管理员查看会员列表会发现邮箱验证这块必须客户验证才有效果,不过大多数客户不愿意去验证,就改为管理员可操作吧 因为邮箱验证时判断客户验证状态0或1来选择显示图片对和错的,也刚好想到,在商品列表里有上架、下架,是否新品……刚好可以吧代码复制过来作参考 从商品列表里获知是js验证传输数据的,直接找到js文件,从中打印一下看看路径。根据路径在会员文件里更改数据 商品列表代码
最新文章
After logging in, when the administrator looks at the member list they’ll find that the email verification part only works if the customer verifies it themselves, but most customers are unwilling to go and verify, so let’s change it so the administrator can do it. During email verification the customer’s verification status of 0 or 1 is used to decide whether to show the correct or the incorrect image, and it also occurred to me that in the product list there is put on sale, take off sale, whether it’s a new item… so I can just copy that code over as a reference. From the product list I learned that it’s js that validates and transmits the data, so I went straight to the js file and printed something out of it to see the path. Then, following the path, change the data in the member file. Product list code

1.以.a为扩展名的文件: #tar xv file.a
2.以.z为扩展名的文件: #uncompress file.Z
3.以.gz为扩展名的文件: #gunzip file.gz
4.以.bz2为扩展名的文件: #bunzip2 file.bz2
5.以.tar.Z为扩展名的文件: #tar xvZf file.tar.Z 或 #compress -dc file.tar.Z | tar xvf
6.以.tar.gz/.tgz为扩展名的文件: #tar xvzf file.tar.gz 或 gzip -dc file.tar.gz | tar xvf -
7.以.tar.bz2为扩展名的文件: #tar xvIf file.tar.bz2 或 bzip2 -dc file.tar.bz2 | xvf –
8.以.cpio.gz/.cgz为扩展名的文件: #gzip -dc file.cgz | cpio -div
9.以.cpio/cpio为扩展名的文件: #cpio -div file.cpio 或cpio -divc file.cpio
10.以.rpm为扩展名的文件安装: #rpm -i file.rpm
11.以.rpm为扩展名的文件解压缩: #rpm2cpio file.rpm | cpio -div
12.以.deb为扩展名的文件安装: #dpkg -i file.deb
13.以.deb为扩展名的文件解压缩: #dpkg-deb —fsys-tarfile file.deb | tar xvf - ar p file.deb data.tar.gz | tar xvzf –
14.以.zip为扩展名的文件: #unzip file.zip
15.在linux下解压Winzip格式的文件: 要是装了jdk的话,可以用jar命令;还可以使用unzip命令。
16.直接解压.tar.gz文件: xxxx.tar.gz文件使用tar带zxvf参数,可以一次解压开。XXXX为文件名。 例如:$tar zxvf xxxx.tar.gz 各种压缩文件的解压(安装方法)
17.文件扩展名解压(安装方法): .a ar xv file.a .Z uncompress file.Z .gz gunzip file.gz .bz2 bunzip2 file.bz2 .tar.Z tar xvZf file.tar.Z compress -dc file.tar.Z | tar xvf - .tar.gz/.tgz tar xvzf file.tar.gz gzip -dc file.tar.gz | tar xvf - .tar.bz2 tar xvIf file.tar.bz2 bzip2 -dc file.tar.bz2 | xvf - .cpio.gz/.cgz gzip -dc file.cgz | cpio -div .cpio/cpio cpio -div file.cpio cpio -divc file.cpio .rpm/install rpm -i file.rpm .rpm/extract rpm2cpio file.rpm | cpio -div .deb/install dpkg -i file.deb .deb/exrtact dpkg-deb —fsys-tarfile file.deb | tar xvf - ar p file.deb data.tar.gz | tar xvzf - .zip unzip file.zip bzip2 -d myfile.tar.bz2 | tar xvf
18.tar xvfz myfile.tar.bz2 x 是解压 v 是复杂输出 f 是指定文件 z gz格式
19.gzip gzip[选项]要压缩(或解压缩)的文件名 -c将输出写到标准输出上,并保留原有文件。 -d将压缩文件压缩。 -l对每个压缩文件,显示下列字段:压缩文件的大小,未压缩文件的大小、压缩比、未压缩文件的名字 -r递归式地查找指定目录并压缩或压缩其中的所有文件。 -t测试压缩文件是正完整。 -v对每一个压缩和解压缩的文件,显示其文件名和压缩比。 -num-用指定的数字调整压缩的速度。
20.举例: 把/usr目录并包括它的子目录在内的全部文件做一备份,备份文件名为usr.tar tar cvf usr.tar /home 把/usr 目录并包括它的子目录在内的全部文件做一备份并进行压缩,备份文件名是usr.tar.gz tar czvf usr.tar.gz /usr 压缩一组文件,文件的后缀为tar.gz #tar cvf back.tar /back/ #gzip -q back.tar or #tar cvfz back.tar.gz /back/ 释放一个后缀为tar.gz的文件。 #tar zxvf back.tar.gz #gzip back.tar.gz #tar xvf back.tar

1. Files with the .a extension: #tar xv file.a
2. Files with the .z extension: #uncompress file.Z
3. Files with the .gz extension: #gunzip file.gz
4. Files with the .bz2 extension: #bunzip2 file.bz2
5. Files with the .tar.Z extension: #tar xvZf file.tar.Z or #compress -dc file.tar.Z | tar xvf
6. Files with the .tar.gz/.tgz extension: #tar xvzf file.tar.gz or gzip -dc file.tar.gz | tar xvf -
7. Files with the .tar.bz2 extension: #tar xvIf file.tar.bz2 or bzip2 -dc file.tar.bz2 | xvf –
8. Files with the .cpio.gz/.cgz extension: #gzip -dc file.cgz | cpio -div
9. Files with the .cpio/cpio extension: #cpio -div file.cpio or cpio -divc file.cpio
10. Installing files with the .rpm extension: #rpm -i file.rpm
11. Extracting files with the .rpm extension: #rpm2cpio file.rpm | cpio -div
12. Installing files with the .deb extension: #dpkg -i file.deb
13. Extracting files with the .deb extension: #dpkg-deb —fsys-tarfile file.deb | tar xvf - ar p file.deb data.tar.gz | tar xvzf –
14. Files with the .zip extension: #unzip file.zip
15. Extracting Winzip-format files under Linux: if you have the JDK installed you can use the jar command; the unzip command works too.
16. Extracting a .tar.gz file directly: for an xxxx.tar.gz file, use tar with the zxvf options and it will unpack in one go. XXXX is the file name. For example: $tar zxvf xxxx.tar.gz Extraction (and install methods) for all kinds of compressed files
17. Extraction by file extension (install methods): .a ar xv file.a .Z uncompress file.Z .gz gunzip file.gz .bz2 bunzip2 file.bz2 .tar.Z tar xvZf file.tar.Z compress -dc file.tar.Z | tar xvf - .tar.gz/.tgz tar xvzf file.tar.gz gzip -dc file.tar.gz | tar xvf - .tar.bz2 tar xvIf file.tar.bz2 bzip2 -dc file.tar.bz2 | xvf - .cpio.gz/.cgz gzip -dc file.cgz | cpio -div .cpio/cpio cpio -div file.cpio cpio -divc file.cpio .rpm/install rpm -i file.rpm .rpm/extract rpm2cpio file.rpm | cpio -div .deb/install dpkg -i file.deb .deb/exrtact dpkg-deb —fsys-tarfile file.deb | tar xvf - ar p file.deb data.tar.gz | tar xvzf - .zip unzip file.zip bzip2 -d myfile.tar.bz2 | tar xvf
18.tar xvfz myfile.tar.bz2 x is for extract, v is verbose output, f specifies the file, z is the gz format
19.gzip gzip[options]the name of the file to compress (or decompress) -c writes the output to standard output and keeps the original file. -d decompresses the compressed file. -l for each compressed file, displays the following fields: the size of the compressed file, the size of the uncompressed file, the compression ratio, and the name of the uncompressed file -r recursively searches the specified directory and compresses or decompresses all the files in it. -t tests whether the compressed file is intact. -v for each file compressed or decompressed, displays its filename and compression ratio. -num- adjusts the compression speed with the specified number.
20. Examples: back up every file in the /usr directory, including its subdirectories, with the backup file named usr.tar tar cvf usr.tar /home back up every file in the /usr directory, including its subdirectories, and compress it, with the backup file named usr.tar.gz tar czvf usr.tar.gz /usr compress a group of files, with the suffix tar.gz #tar cvf back.tar /back/ #gzip -q back.tar or #tar cvfz back.tar.gz /back/ unpack a file with the tar.gz suffix. #tar zxvf back.tar.gz #gzip back.tar.gz #tar xvf back.tar
运行filezilla时,出现如下错误的提示信息: ./filezilla: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15’ not found (required by ./filezilla) 如果是64位系统报错信息如下: ./filezilla: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15’ not found (required by ./filezilla) 原因是没有GLIBCXX_3.4.15版本,或是更高的版本。
输入命令查询一下结果:
[root@localhost ~]# strings /usr/lib/libstdc++.so.6 | grep GLIBCXX GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 GLIBCXX_3.4.4 GLIBCXX_3.4.5 GLIBCXX_3.4.6 GLIBCXX_3.4.7 GLIBCXX_3.4.8 GLIBCXX_3.4.9 GLIBCXX_3.4.10 GLIBCXX_3.4.11 GLIBCXX_3.4.12 GLIBCXX_3.4.13 GLIBCXX_FORCE_NEW GLIBCXX_DEBUG_MESSAGE_LENGTH 我们看到当前GCC版本中的确没有GLIBCXX_3.4.15。
When running filezilla, the following error message appears: ./filezilla: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15’ not found (required by ./filezilla) On a 64-bit system the error message is as follows: ./filezilla: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15’ not found (required by ./filezilla) The cause is that the GLIBCXX_3.4.15 version, or a higher version, is missing.
Enter a command to check the result:
[root@localhost ~]# strings /usr/lib/libstdc++.so.6 | grep GLIBCXX GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 GLIBCXX_3.4.4 GLIBCXX_3.4.5 GLIBCXX_3.4.6 GLIBCXX_3.4.7 GLIBCXX_3.4.8 GLIBCXX_3.4.9 GLIBCXX_3.4.10 GLIBCXX_3.4.11 GLIBCXX_3.4.12 GLIBCXX_3.4.13 GLIBCXX_FORCE_NEW GLIBCXX_DEBUG_MESSAGE_LENGTH As we can see, the current GCC version indeed has no GLIBCXX_3.4.15.
最近因为百度bat封了(要收费),新浪sea数据库上传有限制。干脆找一下免费资源,这还真找到了。 http://free.5944.net 这个网站只要已注册就有1000MB的免费空间 http://www.freehao123.com/freedns-afraid-org/ 这篇文章介绍了怎么申请永久性域名(二级)不用备案,可以申请多个,而且还可以有DNS解析。 http://www.pdxx.net 说说这个网站吧,卖服务器的,可以提供免费空间(300mb)、数据库空间(10mb但是免费空间不备案就用不了,这是我遇到的问题。 http://www.ywxa.com 充值1元可以申请1GB免费mysql 空间,10GB的空间。我只能说碉堡了,这估计是最大的免费,只有一年的年限,后续收费。 下面这两个都是提供免费10G空间,但是巨网的要收费一年1元,另外一个不收费 http://www.id666.com http://www.jwkp.com
Lately Baidu bat got blocked (they want payment), and Sina sea database has upload limits. So I just went and looked for free resources, and I actually found some. http://free.5944.net On this site, simply registering gets you 1000MB of free hosting http://www.freehao123.com/freedns-afraid-org/ This article explains how to apply for a permanent (second-level) domain without ICP filing; you can apply for several, and you even get DNS resolution. http://www.pdxx.net Let me talk about this site: it sells servers and can offer free hosting (300mb) and database space (10mb, but the free hosting is unusable without ICP filing — that’s the problem I ran into. http://www.ywxa.com Top up 1 yuan and you can apply for 1GB of free mysql space and 10GB of hosting. I can only say it’s badass; this is probably the biggest free offering, but it only lasts one year, with fees afterwards. These next two both offer 10G of free space, but the Juwang one charges 1 yuan per year, and the other one is free http://www.id666.com http://www.jwkp.com
安装来centos6.5很郁闷的是自带的播放器好多视频不支持(你懂的哦)。怎么办呢?? 老规矩先度娘,后谷歌。。。 度娘的伙伴们大部分都是mplayer那我也随众人吧 首先下载文件MPlayer-1.1.tar.gz和yasm-1.2.0.tar.gz mplayer http://download.csdn.net/detail/w15875510692/7708613 yasm http://download.csdn.net/detail/w15875510692/7708623 解压先安装yasm 再安装mplayer ./configure —enable-gui 之后 make && make install 漫长的等待吧 安装完成后 cd /usar/share/mplayer/skins cp Blue /usr/local/share/mplayer/skins/ -r cd /usr/local/share/mplayer/skins/ mv Blue/ default modprobe snd_pcm_oss 输入gmplayer打开播放器
The frustrating thing about installing CentOS 6.5 is that the built-in player doesn’t support a lot of videos (you know what I mean). So what to do?? The old routine: Baidu first, then Google… Most of the folks on Baidu use mplayer, so I’ll just follow the crowd. First download MPlayer-1.1.tar.gz and yasm-1.2.0.tar.gz. mplayer http://download.csdn.net/detail/w15875510692/7708613 yasm http://download.csdn.net/detail/w15875510692/7708623 Unzip and install yasm first, then install mplayer with ./configure —enable-gui, then make && make install. Now the long wait. Once installed: cd /usar/share/mplayer/skins cp Blue /usr/local/share/mplayer/skins/ -r cd /usr/local/share/mplayer/skins/ mv Blue/ default modprobe snd_pcm_oss Type gmplayer to open the player.
//1.用php打印前一天的时间格式是2006-5-10 22:21:22
//方法11
2date\_default\_timezone\_set('Asia/Shanghai');
$times=time()-86400; echo date('Y-m-d H:i:s',$times)."<br />"; //方法2 echo date('Y-m-d H:i:s', strtotime('-1 days'));
//1. Print the previous day’s time in PHP in the format 2006-5-10 22:21:22
//Method 11
2date\_default\_timezone\_set('Asia/Shanghai');
$times=time()-86400; echo date('Y-m-d H:i:s',$times)."<br />"; //Method 2 echo date('Y-m-d H:i:s', strtotime('-1 days'));
在/includes/lib_transaction.php找到1
2
3
4
5
6$arr\[\] = array(
'order\_id' => $row\['order\_id'\],
'order\_sn' => $row\['order\_sn'\],
'order\_time' => local\_date($GLOBALS\['\_CFG'\]\['time\_format'\], $row\['add\_time'\]), 'order\_status' => $row\['order\_status'\],
'total\_fee' => price\_format($row\['total\_fee'\], false),
'handler' => $row\['handler'\]);
In /includes/lib_transaction.php find1
2
3
4
5
6$arr\[\] = array(
'order\_id' => $row\['order\_id'\],
'order\_sn' => $row\['order\_sn'\],
'order\_time' => local\_date($GLOBALS\['\_CFG'\]\['time\_format'\], $row\['add\_time'\]), 'order\_status' => $row\['order\_status'\],
'total\_fee' => price\_format($row\['total\_fee'\], false),
'handler' => $row\['handler'\]);
ecshop不提供商品缩略图展示功能, 找到include/lib_order.php库文件中的cart_goods()函数 在其中添加红色部分1
2
3
4
5
6
7
8
9
10
11
12foreach ($arr as $key => $value) { /\* LONGHTML 增加是否在购物车里显示商品图 */
if (($GLOBALS\['\_CFG'\]\['show\_goods\_in\_cart'\] == "2" || $GLOBALS\['\_CFG'\]\['show\_goods\_in\_cart'\] == "3") && $row\['extension\_code'\] != 'package\_buy') {
$goods\_thumb = $GLOBALS\['db'\]->getOne("SELECT \`goods\_thumb\` FROM " . $GLOBALS\['ecs'\]->table('goods') . " WHERE \`goods\_id\`=".$arr\[$key\]\['goods\_id'\]);
$arr\[$key\]\['goods\_thumb'\] = get\_image\_path($arr\[$key\]\['goods\_id'\], $goods_thumb, true);
} // END
$arr\[$key\]\['formated\_market\_price'\] = price\_format($value\['market\_price'\], false);
$arr\[$key\]\['formated\_goods\_price'\] = price\_format($value\['goods\_price'\], false);
$arr\[$key\]\['formated\_subtotal'\] = price\_format($value\['subtotal'\], false);
if ($value\['extension\_code'\] == 'package\_buy') {
$arr\[$key\]\['package\_goods\_list'\] = get\_package\_goods($value\['goods\_id'\]);
}
}
ecshop does not provide the ability to display product thumbnails. Find the cart_goods() function in the include/lib_order.php library file and add the red part to it1
2
3
4
5
6
7
8
9
10
11
12foreach ($arr as $key => $value) { /\* LONGHTML add whether to show the product image in the cart */
if (($GLOBALS\['\_CFG'\]\['show\_goods\_in\_cart'\] == "2" || $GLOBALS\['\_CFG'\]\['show\_goods\_in\_cart'\] == "3") && $row\['extension\_code'\] != 'package\_buy') {
$goods\_thumb = $GLOBALS\['db'\]->getOne("SELECT \`goods\_thumb\` FROM " . $GLOBALS\['ecs'\]->table('goods') . " WHERE \`goods\_id\`=".$arr\[$key\]\['goods\_id'\]);
$arr\[$key\]\['goods\_thumb'\] = get\_image\_path($arr\[$key\]\['goods\_id'\], $goods_thumb, true);
} // END
$arr\[$key\]\['formated\_market\_price'\] = price\_format($value\['market\_price'\], false);
$arr\[$key\]\['formated\_goods\_price'\] = price\_format($value\['goods\_price'\], false);
$arr\[$key\]\['formated\_subtotal'\] = price\_format($value\['subtotal'\], false);
if ($value\['extension\_code'\] == 'package\_buy') {
$arr\[$key\]\['package\_goods\_list'\] = get\_package\_goods($value\['goods\_id'\]);
}
}
最近被excel 导出困扰了,终于解决了大部分为题,在这里分享一下 方法1 首先下载PHPexcel插件包 http://download.csdn.net/detail/w15875510692/7747765 以下是ecshop订单详细页的导出代码 目前没找到直接能到处网站空间的图片(超链接地址的图片),只能到处本地网站的图片。。 htm页面代码
I’ve been struggling with Excel export lately, and I finally solved most of the problems. Let me share them here. Method 1: first download the PHPExcel plugin package http://download.csdn.net/detail/w15875510692/7747765 Below is the export code for the ECShop order detail page. So far I haven’t found a way to export images directly from the website’s storage (images given as hyperlink addresses) — I can only export images from the local site.. htm page code
