随笔 - 137  文章 - 1  评论 - 3  阅读 - 14万 
03 2013 档案
ucenter忘记创始人密码简单解决方法
摘要:找到ucenter下的data/config.inc.php找到UC_FOUNDERPW,UC_FOUNDERSALT分别改成一下的字符串define('UC_FOUNDERPW', '047099adb883dc19616dae0ef2adc5b6');define('UC_FOUNDERSALT', '311254');修改完后,创始人密码变为:123456789然后登录系统修改密码就可以了,非常简单。 阅读全文
posted @ 2013-03-27 14:20 ヽ坚强的蘑菇 阅读(364) 评论(0) 推荐(0) 编辑
nginx phpcms rewrite规则
摘要:location / { rewrite ^/content-([0-9]+)-([0-9]+)-([0-9]+).html /index.php?m=content&c=index&a=show&catid=$1&id=$2&page=$3 last ; rewrite ^/show-([0-9]+)-([0-9]+)-([0-9]+).html /index.php?m=content&c=index&a=show&catid=$1&id=$2&page=$3 last ; rewrite ^/list-([0 阅读全文
posted @ 2013-03-27 13:48 ヽ坚强的蘑菇 阅读(310) 评论(0) 推荐(0) 编辑
nginx启动,重启,关闭命令
摘要:停止操作 停止操作是通过向nginx进程发送信号(什么是信号请参阅linux文 章)来进行的 步骤1:查询nginx主进程号 ps -ef | grep nginx 在进程列表里 面找master进程,它的编号就是主进程号了。 步骤2:发送信号 从容停止Nginx: kill -QUIT 主进程号 快速停止Nginx: kill -TERM 主进程号 强制停止Nginx: pkill -9 nginx 另外, 若在nginx.conf配置了pid文件存放路径则该文件存放的就是Nginx主进程号,如果没指定则放在nginx的logs目录下。有了pid文 件,我们就不用先查询Nginx的主进程号. 阅读全文
posted @ 2013-03-27 13:35 ヽ坚强的蘑菇 阅读(182) 评论(0) 推荐(0) 编辑
Linux下zip unzip的用户示例 解压到指定目录
摘要:1.unzip解压到制单目录[root@localhost cactiplugins]# mkdir monitor[root@localhost cactiplugins]# unzip monitor-0.8.2.zip -d monitorArchive: monitor-0.8.2.zip inflating: monitor/wz_tooltip.js inflating: monitor/index.php inflating: monitor/LICENSE inflating: monitor/sounds/index.php inflating: ... 阅读全文
posted @ 2013-03-27 10:57 ヽ坚强的蘑菇 阅读(2477) 评论(0) 推荐(0) 编辑
javascript 里面嵌套方法
摘要:var cancel = istype=="cancel" ? " after" : ""; var tipStr = istype=="cancel" ? "已关注 | <a>取消</a>" : "关注"; var div="<div class=\"user_photo_info\" id='"+id+"'>" +"<div class=\&qu 阅读全文
posted @ 2013-03-25 14:11 ヽ坚强的蘑菇 阅读(610) 评论(0) 推荐(0) 编辑
PHP 汉字 转换成 拼音
摘要:这个程序是从 织梦里面 弄出来的 需要 拷贝 织梦里面的2个文件include/data/gb2312-utf8.datinclude/data/pinyin.datPHP 的 代码如下<?php/*** UTF-8 转GB编码** @access public* @param string $utfstr 需要转换的字符串* @return string*/function utf82gb($utfstr) { if(function_exists('iconv')) { return iconv('utf-8','gbk//ignore' 阅读全文
posted @ 2013-03-22 21:18 ヽ坚强的蘑菇 阅读(329) 评论(0) 推荐(0) 编辑
sns 批量清除脚本
摘要:内容如下for /D /R %%i in (*.*) do (cd %%iif exist .svn (rd .svn /s /q)if exist CVS (rd CVS /s /q)cd ..) 然后把内容复制到文件里面 存成 1.bat 脚本 放入到 需要清除SNS的目录 执行该脚本 就可以了 阅读全文
posted @ 2013-03-19 11:23 ヽ坚强的蘑菇 阅读(147) 评论(0) 推荐(0) 编辑
PHPCMS V9 和其他应用同步
摘要:1 在 ucenter的后台 添加phpcms这个应用2 进入PHPCMS的后台 -》PHPSSO-》系统设置-》UCENTER配置 按照提示填写参数 最后 更新缓存3 更新完以后 发现同步登陆 或者注册到其他应用一直失败 经过调试发现 原来是 PHPCMSV9官网留下的 一个 同步的BUG修改文件的路径为 项目/phpsso_server/api/uc_client/model/base.php 第74行$this->db->connect(UC_DBHOST, UC_DBUSER, UC_DBPW, '', UC_DBCHARSET, UC_DBCONNECT, 阅读全文
posted @ 2013-03-19 10:25 ヽ坚强的蘑菇 阅读(166) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示