运行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
lnmp环境如何便捷安装?找找看,还真找到来。
- 首先运行 yum install wget //下载wget工具
- 再运行 wget http://www.atomicorp.com/installers/atomic //下载atomic源
- sh ./atomic //安装
- yum check-update //更新
How do you install an LNMP environment conveniently? I did some looking around, and I really did find a way.
- First run yum install wget // download the wget tool
- Then run wget http://www.atomicorp.com/installers/atomic // download the atomic repo
- sh ./atomic // install
- yum check-update // update
1.product viewpic XSS漏洞 原因: viewpic处未正确转义,形成漏洞,可以跨站脚本攻击 修复方法: 在core\shop\controller\ctl.product.php,找到function viewpic($goodsid, $selected=’def’),在其下面一行添加 $goodsid = intval($goodsid); 保存,问题解决 2.绕过验证码问题 原因: shopex后台登录的验证码在第一次检验未通过后,并没有清除第一次存在session中验证码,所以可以通过特定的程序来暴力重试破解。 修复方法: 在core/admin/controller/ctl.passport.php中找到
1 | $_SESSION``[``'loginmsg'``] = __(“验证码输入错误!”); |
在下面添加
1 | $_SESSION``[``'RANDOM_CODE'``] = ”; |
保存,修复成功
- product viewpic XSS vulnerability Cause: viewpic does not escape correctly, creating a vulnerability that allows cross-site scripting attacks. Fix: In core\shop\controller\ctl.product.php, find function viewpic($goodsid, $selected=’def’), and on the line below it add $goodsid = intval($goodsid); Save, and the problem is solved. 2. CAPTCHA bypass issue Cause: after the first verification of the CAPTCHA for the shopex admin login fails, the CAPTCHA stored in the session the first time is not cleared, so it can be brute-forced by retrying with a specific program. Fix: In core/admin/controller/ctl.passport.php find
1 | $_SESSION``[``'loginmsg'``] = __(“验证码输入错误!”); |
and add below it
1 | $_SESSION``[``'RANDOM_CODE'``] = ”; |
Save, and the fix is complete
