├── 说明.txt
├── .gitattributes
├── dede
├── images
│ └── ping.gif
├── content_list.php
├── templets
│ └── content_list.htm
└── js
│ └── jquery.min.js
├── README.md
└── ping.php
/说明.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NNBBXX/dedecms-ping/master/说明.txt
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/dede/images/ping.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NNBBXX/dedecms-ping/master/dede/images/ping.gif
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # dedecms-ping
2 |
3 | ping.php中数据库连接和RSS地址需要修改
4 |
5 | 修改方法:
6 |
7 | 1. 找到ping.php中的倒数第2行:
8 |
9 | $arc = new Ping('你的网站title',get_arcurl($id),get_domain(),'http://www.abc.com/rss.php');
10 |
11 | 这行的意思是:
12 |
13 | $arc = new Ping('网站名称',get_arcurl($id),get_domain(),'网站RSS地址');
14 |
15 | 修改为自己的就可以了
16 |
17 |
18 | 2. 搜索一下:$conn = mysql_connect
19 |
20 | $name = '数据库名';
21 |
22 | $conn = mysql_connect('数据库连接','数据库帐号','数据库密码');
23 |
24 | 数据库连接这里一般为:localhost
25 |
26 | 将上面4个修改为自己的(注意有2处地方需要修改的)
27 |
28 |
29 | 3. 修改完之后上传覆盖,然后到文档列表,文章列表最后面会多了一个图标。发完文章之后点击那个图标就ping出去了,然后会提示成功或者失败。
--------------------------------------------------------------------------------
/ping.php:
--------------------------------------------------------------------------------
1 | title=$title;
16 | $this->hosturl=$hosturl;
17 | $this->rssurl=$rssurl;
18 | $this->arturl=$arturl;
19 | $this->baiduRPC='http://ping.baidu.com/ping/RPC2';
20 |
21 | $this->baiduXML = '';
22 | $this->baiduXML .='
20 |
|
38 |
| t |