網(wǎng)址書簽
========
## 安裝步驟
* 部署代碼并配置好web服務(wù)器;
* 創(chuàng)建并導(dǎo)入`db/bookmark.sql`到數(shù)據(jù)庫;
* 修改`root/config/base.php`配置數(shù)據(jù)庫連接參數(shù)及其他選項;
* 申請第三方應(yīng)用并配置`root/config/oauth.php`;
* 修改`root/data/*`目錄為可寫權(quán)限;
## url重寫配置參考
配置文件`root/config/base.php`修改:
```
switch (App::getName()) {
case "public":
$config["rewriteRules"] = array(
"User_Index" => "/[uid]"
);
break;
case "mobile":
$config["rewriteRules"] = array(
"User_Index" => "/m/[uid]"
);
break;
}
```
nginx配置url重寫規(guī)則:
```
rewrite ^/([0-9]+)$ /?do=User_Index&uid=$1&$args last;
rewrite ^/m/([0-9]+)$ /m/?do=User_Index&uid=$1&$args last;
```
apache配置`.htaccess`url重寫規(guī)則:
```
RewriteEngine On
RewriteRule ^([0-9]+)$ /?do=User_Index&uid=$1&%{QUERY_STRING} [L]
RewriteRule ^m/([0-9]+)$ /m/?do=User_Index&uid=$1&%{QUERY_STRING} [L]
```
## 第三方應(yīng)用申請地址
* 微博:
* QQ:
* 百度:
## 新浪SAE配置說明
* 數(shù)據(jù)庫表請使用SAE提供的`PHPMyAdmin`導(dǎo)入;
* 數(shù)據(jù)庫連接配置請直接填寫`SAE_MYSQL_*`開頭的常量;
* 鑒于SAE目錄不能直接寫入文件,所以模板編譯路徑需要配置到臨時目錄`SAE_TMP_PATH`,示例如下:
配置文件`root/config/base.php`添加如下代碼:
```
// 模板編譯路徑
$config["templateCompilePath"] = SAE_TMP_PATH;
return $config; // 添加在此行之前
```
## 阿里云ACE配置說明
* 創(chuàng)建應(yīng)用,并開通數(shù)據(jù)庫擴展服務(wù),使用mysql客戶端工具導(dǎo)入數(shù)據(jù)庫表;
* 數(shù)據(jù)庫連接配置參考如上云數(shù)據(jù)庫配置;
* URL重寫參考阿里云ACE文檔,如下給出一個示例配置:
```
// app.yaml添加如下代碼:
rewrite:
- url: ^/([0-9]+)$
script: /index.php?do=User_Index&uid=$1&$args last
- url: ^/m/([0-9]+)$
script: /m/index.php?do=User_Index&uid=$1&$args last
```
## API接口文檔
* [API.md](API.md)
## 官方主頁
*
## 授權(quán)協(xié)議
* MIT
演示地址:http://yun.qq1000.net/
網(wǎng)盤下載:https://pan.lanzou.com/1348780
本地下載:http://go.qq1000.net/yunshuqian
載
面
板
文件名稱:網(wǎng)址書簽云收藏
更新時間:2018-1-12 13:23:03
下載聲明:本站默認解壓密碼(www.zoe725.cn)網(wǎng)絡(luò)資源來自網(wǎng)絡(luò)收集或本人原創(chuàng),轉(zhuǎn)載請註明出處!若資源侵犯了你的版權(quán),請聯(lián)繫博主,我們會在24H內(nèi)刪除侵權(quán)資源!
轉(zhuǎn)載請注明出處 AE博客|墨淵 ? 網(wǎng)址書簽云收藏/私人書簽收藏網(wǎng)站源碼
發(fā)表評論