摘要: Mage_Sales_Model_Quote::setCustomer方法,有这么一行代码Mage::helper('core')->copyFieldset('customer_account', 'to_quote', $customer, $this);看下实现Mage_Core_Helper... 阅读全文
posted @ 2015-06-19 16:01 szphper 阅读(168) 评论(0) 推荐(0)
摘要: 进入System——Configuration,选择相应的站点,点击"General",有个"Loca Option",有个Local,可以选择相应的语言 阅读全文
posted @ 2015-06-19 15:43 szphper 阅读(103) 评论(0) 推荐(0)
摘要: 写日志函数为ngx_log_error_core,位于src/core/ngx_log.c:89行核心代码如下:while (log) { if (log->log_level file->fd, errstr, p - errstr); if (log->file->fd == ngx_stder... 阅读全文
posted @ 2015-06-19 15:36 szphper 阅读(3265) 评论(0) 推荐(0)
摘要: 1、先安装lua-jit,网上说也可以下载lua,不过lua-jit效率比较高,地址:http://luajit.org/download.html我下的是2.0.3版本的下载解压后,直接make && make install就可以了,默认安装在/usr/local目录2、下载ngx devel包... 阅读全文
posted @ 2015-06-19 15:33 szphper 阅读(597) 评论(0) 推荐(0)
摘要: 使用文档:http://www.kyne.com.au/~mark/software/lua-cjson-manual.html下载地址:http://www.kyne.com.au/%7Emark/software/download/lua-cjson-2.1.0.tar.gz编译时可能会报错,要... 阅读全文
posted @ 2015-06-19 15:30 szphper 阅读(1547) 评论(0) 推荐(0)
摘要: nginx中有一个模块有这个功能,(以前的文章中扩展,这里叫模块,以后统一叫模块,模块可能准确点,因为扩展是单独的文件,而模块是嵌入到主文件中的),这个模块叫drizzle-nginx-module,下载地址为:https://github.com/openresty/drizzle-nginx-m... 阅读全文
posted @ 2015-06-19 15:28 szphper 阅读(926) 评论(0) 推荐(0)
摘要: 先配置nginx location ~ .*\.(php|php5)?$ { if ($request_uri ~ "one/test") { access_by_lua_file /opt/nginxrw/lua/limiturl.lua; } fastcgi_pass 127.0.0.1:900... 阅读全文
posted @ 2015-06-19 15:27 szphper 阅读(2368) 评论(0) 推荐(0)
摘要: valid_referers 520hzj.duapp.com www.ddayh.com qiqi188.duapp.com glxhxx.cn hsss99.com ww.99876.net xhxx.500yun.com seo17.net www.glxhxx.cn; if ($invali... 阅读全文
posted @ 2015-06-19 15:24 szphper 阅读(3661) 评论(0) 推荐(0)
摘要: static ngx_http_variable_t ngx_http_core_variables[] = { { ngx_string("http_host"), NULL, ngx_http_variable_header, offsetof(ngx_http_request_t, heade... 阅读全文
posted @ 2015-06-19 15:22 szphper 阅读(740) 评论(0) 推荐(0)
摘要: 在某个server或location块配置如下 auth_basic "Restricted";auth_basic_user_file /data/phpmyadmin.password;然后用下面的perl脚本来生成密码#!/usr/bin/perluse strict;my $pw=$ARGV... 阅读全文
posted @ 2015-06-19 15:20 szphper 阅读(290) 评论(0) 推荐(0)
摘要: ssl_certificate /data/oneplus.net/123.crt; ssl_certificate_key /data/oneplus.net/123.key; ssl_ciphers "EBCDH+ECDSA+ACSGCM EECDH+aRSA+AESGCM EECDH+ECDS... 阅读全文
posted @ 2015-06-19 15:19 szphper 阅读(166) 评论(0) 推荐(0)