PEAK XOOPS - Compatible bulletin2 with Cube2.1 beta in englishin japanese

Archive | RSS |
XOOPS
XOOPS : Compatible bulletin2 with Cube2.1 beta
Poster : GIJOE on 2006-10-22 17:28:03 (7771 reads)

in englishin japanese
If you want to install bulletin2 into Cube 2.1 beta, follow this procedure.

- install bulletin2
- patch the minahito's one
http://homepage.mac.com/minahito/.Public/BulletinToA4.zip
- patch again
http://www.peak.ne.jp/support/xoops/bulletin-2.04patch4cube2.1beta.tar.gz

But, a bug of Cube 2.1 beta1 harms groupperm.
Though it will be fixed by minahito, try this core patch if you want to use it soon.

modules/legacy/kernel/Legacy_Controller.class.php line139


		if(count($urlInfo)>=3) {
			if(strtolower($urlInfo[0])=="modules" && strtolower($urlInfo[2])=="admin"){
				$adminStateFlag=true;
			}
			
			elseif($urlInfo[0] == "modules" && $urlInfo[1] == "legacy" && 	$urlInfo[2] == "include") {
				$adminStateFlag=true;
			}
			
			elseif($urlInfo[0] == "modules" && $urlInfo[1] == "system" && substr($urlInfo[2], 0, 9) == "admin.php") {
				$adminStateFlag=true;
			}
		}
		elseif(substr($urlInfo[0], 0, 9) == "admin.php") {
			$adminStateFlag=true;
		}


Related articles
Printer friendly page Send this story to a friend

Comments list

GIJOE  Posted on 2006/10/28 5:12
In Cube 2.1beta2, this problem was fixed.
minahito  Posted on 2006/10/23 18:20
ひとまずそのように legacy 側を修正しました。
これはもうこのままでもいいのかもしれません…… orz

cp_header() で途中できちんと切り替えができていないのは問題ですよね……
これはβからαにおけるルールの厳格化というより単なるミスの可能性な気がしてきました。

(もちろん admin/ 下にも index.php コントローラを置いていただければ助かります ^-^/)

あと、 XUGJ で話に上がっていた isAdmin(&$flag, $urlInfo) デリゲートも追加しました。
Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!