jiachi兄發表的[轉貼]在CPG中登入及登出依然在CPG中...v1.3補充
中提到要在phpbb資料夾裡建立一個檔案 cpg_redir.php :
<?php
if (!$_SERVER['HTTP_HOST']) {
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>
很奇怪,雖然有英文說明,看起來也有點懂
但改了一百次還是不能\r
說明是:Important - before you save the file, you must ensure that:
$cpg_path - contains the the path in which Coppermine is installed
$cpg_host - contains the domain pointer to Coppermine. If Coppermine and phpBB are installed on the same server and domain (the "normal" case), you should leave the default value. Otherwise you should provide a string constant which contains the domain where Coppermine is installed (for example: 'www.my-other-domain.com').
If you change both variables make sure that either $cpg_host contains a trailing slash or $cpg_path contains a leading slash. In other words, the concatenation of the two variables must result in a correct path such as http://www.my-other-domain.com/my_gallery_dir
我的相本網址是http://140.112.89.212/cycloneye/gallery/index.php
而網站是http://140.112.89.212/cycloneye/index.php
很明顯是我把相本放到phpbb的目錄裡面去了
但要配合那段英文來改,怎麼改都不對
如:
<?php
if (!$_SERVER['HTTP_HOST']) {
$cpg_host='140.112.89.212'['HTTP_HOST'];
} else {
$cpg_host='140.112.89.212'['HTTP_HOST'];
}
$cpg_path='/cycloneye/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>
------------------------------
<?php
if (!$_SERVER['HTTP_HOST']) {
$cpg_host='140.112.89.212/cycloneye'['HTTP_HOST'];
} else {
$cpg_host='140.112.89.212/cycloneye'['HTTP_HOST'];
}
$cpg_path='/cycloneye/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>
--------------------------------------------------
<?php
if (!$_SERVER['HTTP_HOST']) {
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/cycloneye/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>
所以想問有裝成功的人,能不能po一下您是怎麼修改這段的
我看看照做,看是否能解決
感謝~
[問題]請問cpg中的cpg_redir.php怎麼改才對?
CPG Running Discuss
關於 CPG 架設使用操作討論,非本程式相關問題一律砍文!
關於 CPG 架設使用操作討論,非本程式相關問題一律砍文!
版主: 版主管理群
前往
- Announcement
- ↳ 系統公告區
- Support
- ↳ [3.3.x] 安裝與使用
- ↳ [3.3.x] 中文
- ↳ [3.3.x] 轉換
- ↳ [3.2.x] 安裝與使用
- ↳ [3.2.x] 中文
- ↳ [3.2.x] 轉換
- Extensions
- ↳ 官方認證擴充功能
- ↳ [3.2.x] 官方認證擴充功能
- ↳ [3.3.x] 官方認證擴充功能
- ↳ 非官方認證擴充功能
- ↳ 擴充功能問題討論
- Style
- ↳ 官方認證風格
- ↳ [3.2.x] 官方認證風格
- ↳ [3.3.x] 官方認證風格
- ↳ 風格問題討論
- Knowledge
- ↳ 教學文件庫
- ↳ 2.0
- ↳ 3.0
- ↳ 3.1
- ↳ 3.2
- ↳ 3.3
- ↳ phpBB 技術文件與知識庫
- ↳ 2.0
- ↳ 3.0
- ↳ 3.1
- ↳ 3.2
- Non-phpBB specific
- ↳ 塔羅占卜
- ↳ 塔羅精華
- ↳ 每週運勢
- ↳ 我想發問
- ↳ 站長交流
- ↳ 自由軟體或免費軟體
- ↳ 架站
- ↳ AppServ
- ↳ WampServer
- ↳ XAMPP
- ↳ phpMyAdmin
- ↳ ExoBUD MP
- ↳ 4images
- ↳ Coppermine Photo Gallery
- ↳ 網路
- ↳ 文書
- ↳ 檔案
- ↳ 美工
- ↳ 系統
- ↳ 安全
- ↳ 多媒體
- ↳ 遊戲
- ↳ 光碟
- ↳ 休閒哈拉與心情小品
- ↳ 意見反應或無法分類
- Link
- ↳ 竹貓星球數位(股)
- ↳ FaceBook_phpBB3-官方中文支援
- ↳ SSD 不限流量-網站空間( .tw or .com.tw域名免費送)
- ↳ 推薦網站
- ↳ phpBB.com
- ↳ phpBBHacks.com
- Archives
- ↳ phpBB 3.1.x Forum Archive
- ↳ [3.1.x] 安裝與使用
- ↳ [3.1.x] 中文
- ↳ [3.1.x] 轉換
- ↳ [3.1.x] 官方認證風格
- ↳ phpBB 3.0.x Forum Archive
- ↳ [3.0.x] Support
- ↳ [3.0.x] 安裝與使用
- ↳ [3.0.x] 中文
- ↳ [3.0.x] 轉換
- ↳ [3.0.x] Mod
- ↳ [3.0.x] 官方認證外掛
- ↳ [3.0.x] 非官方認證外掛
- ↳ [3.0.x] 外掛問題討論
- ↳ [3.0.x] Style
- ↳ [3.0.x] 官方認證風格
- ↳ [3.0.x] 非官方認證風格
- ↳ [3.0.x] 風格問題討論
- ↳ phpBB2 Forum Archive
- ↳ Support
- ↳ phpBB 2 安裝與使用
- ↳ phpBB 2 plus 綜合討論
- ↳ MOD
- ↳ 官方認證外掛
- ↳ 非官方認證外掛
- ↳ 外掛問題討論
- ↳ Style
- ↳ 官方認證風格
- ↳ 非官方認證風格
- ↳ 風格問題討論