编程笔记

编程笔记

在线灵签测算安装说明
2025-01-08

环境要求:宝塔nginx,php5.6+mysql5.6 (其他环境出问题自行研究)

首先上传源码到根目录,解压!

导入数据库

修改数据库链接  config 里的inc_config  

第22行 ,更改为自己的域名

第65行开始的数据库账号密码更改为自己的数据库!

后台地址为/acs

账号密码为  admin  qwe123456

-------------------------------------------

nginx伪静态:

location ~ ^/guanyin/?$ {

        rewrite ^ /index.php?ct=chouqian&ac=guanyin last;

    }

location ~ ^/lvzu/?$ {

        rewrite ^ /index.php?ct=chouqian&ac=lvzu last;

    }

location ~ ^/huangdaxian/?$ {

        rewrite ^ /index.php?ct=chouqian&ac=huangdaxian last;

    }

location ~ ^/guandi/?$ {

        rewrite ^ /index.php?ct=chouqian&ac=guandi last;

    }

location ~ ^/tianhou/?$ {

        rewrite ^ /index.php?ct=chouqian&ac=tianhou last;

    }

location ~ ^/yuelao/?$ {

        rewrite ^ /index.php?ct=chouqian&ac=yuelao last;

    }

location ~ ^/chegong/?$ {

        rewrite ^ /index.php?ct=chouqian&ac=chegong last;

    }

location ~ ^/wanggong/?$ {

        rewrite ^ /index.php?ct=chouqian&ac=wanggong last;

    }

location ~ ^/zhuge/?$ {

        rewrite ^ /index.php?ct=chouqian&ac=zhugeliang last;

    }


location /guanyin/ {

        rewrite ^/guanyin/([0-9]+)\.html$ /index.php?ct=chouqian&ac=guanyin&act=jq&qid=$1 last;

    }

location /lvzu/ {

        rewrite ^/lvzu/([0-9]+)\.html$ /index.php?ct=chouqian&ac=lvzu&act=jq&qid=$1 last;

    }

location /huangdaxian/ {

        rewrite ^/huangdaxian/([0-9]+)\.html$ /index.php?ct=chouqian&ac=huangdaxian&act=jq&qid=$1 last;

    }

location /guandi/ {

        rewrite ^/guandi/([0-9]+)\.html$ /index.php?ct=chouqian&ac=guandi&act=jq&qid=$1 last;

    }

location /tianhou/ {

        rewrite ^/tianhou/([0-9]+)\.html$ /index.php?ct=chouqian&ac=tianhou&act=jq&qid=$1 last;

    }

location /yuelao/ {

        rewrite ^/yuelao/([0-9]+)\.html$ /index.php?ct=chouqian&ac=yuelao&act=jq&qid=$1 last;

    }

location /chegong/ {

        rewrite ^/chegong/([0-9]+)\.html$ /index.php?ct=chouqian&ac=chegong&act=jq&qid=$1 last;

    }

location /wanggong/ {

        rewrite ^/wanggong/([0-9]+)\.html$ /index.php?ct=chouqian&ac=wanggong&act=jq&qid=$1 last;

    }

location /zhuge/ {

        rewrite ^/zhuge/([0-9]+)\.html$ /index.php?ct=chouqian&ac=zhugeliang&act=jq&qid=$1 last;


        rewrite ^/zhuge/([^/]*)\.html$ /index.php?ct=chouqian&ac=zhugeliang&act=zidian&name=$1 last;

    }

--------------------------------------------------------------------------------------------------------------------

使用说明:

网站下方广告更改地址

/templates/template/index 

这个文件里的所有文件

<script type="text/javascript">

seajs.config({

'base':'/static/www/script/dist',

'paths': {

'scriptUrl':'/static/www/script/dist'

},

'alias':{

'jquery':'scriptUrl/lib/jquery',

'common':'scriptUrl/public/common'

},

'map': [

[ /^(.*?\/script\/(?:src|dist)\/.*?\/.*?\.js$)(?:.*)$/i, '$1?v=202002191800']

],

'charset': 'utf-8'

});

seajs.use(['common'],function(){

});

</script>

这段是广告代码,你也可以更改为自己的广告代码,不需要则删除即可!


友情链接:

/templates/template/index  里的index.tpl 

底部链接以及统计代码:

/templates/template/index  里的footer.tpl

LOGO替换:

/static/www/image/public/logo.png 直接替换为你的即可。

忘记密码怎么办?

进入数据库users表

把密码那一栏更改为 2569d419bfea999ff13fd1f7f4498b89  即替换为 qwe123456

其他没什么好改的,扔在那等收录就行了!

%3J8BOR5HG[{5Y19`A)IWBE.png