2.3 の修正&設定
●いきなりメニューが文字化けした。??? で表示された。2.2.*系では発生しなかった事象。バグ
●また、2.3から data/page.data も decode するようになりました。フラットなDBなので、エンコード/デコードが必要なのも一理あるのでバグというより当然の仕様なのかもしれません。
ただ、いままでデコードしてなかった「各ページの概要」の文字は、100%文字化けしちゃいます。~2.2.2の利用者は全て打ち込みなおしとなります。( ̄▽ ̄;)!!ガーン 。 変換スクリプトを誰かが作ってくれるかも知れません・・・需要ある?
更に、バグがあるので、打ち込みなおす前に必ず下記の修正を行ってください
###############################
#
# FIX. メニューの文字化け&
# garbage characters(unreadable characters) Ex.???
#
# Ver.1.0
#
##############################
#
# LightNeasy flat Ver3.3
#
##--[OPEN]-----------------
#
LightNEasy/admin.php
#
#---[FIND]-----------------
# About Line47
case "Save":
$fp=fopen("data/".$_POST['pagenum'].".html","w");
fwrite($fp,$_POST['mycontent']);
fclose($fp);
@chmod("data/".$_POST['pagenum'].".html", 0777);
$pages=readdata("pages");
$count=0;
while($pages[$count][0] != "") {
if($pages[$count][0] == $pagenum) {
if($_POST['description'] != "")
$pages[$count][1] = $_POST['description'];
else
$pages[$count][1] = "-";
if($_POST['template'] != "")
$pages[$count][2] = $_POST['template'];
else
$pages[$count][2] = "-";
break;
}
$count++;
}
$fp=fopen("data/pages.dat","w");
$count=0;
while($pages[$count][0] != "") {
fwrite($fp,encode($pages[$count][0]."|".$pages[$count][1]."|".$pages[$count][2]."||\n"));
$count++;
}
#
#---[CHANGE or REPLACE WITH]-----------------
#
case "Save":
$fp=fopen("data/".$_POST['pagenum'].".html","w");
fwrite($fp,$_POST['mycontent']);
fclose($fp);
@chmod("data/".$_POST['pagenum'].".html", 0777);
$pages=readdata("pages");
$count=0;
while($pages[$count][0] != "") {
if($pages[$count][0] == $pagenum) {
if($_POST['description'] != "")
// $pages[$count][1] = $_POST['description'];
$pages[$count][1] = encode($_POST['description']);
else
$pages[$count][1] = "-";
if($_POST['template'] != "")
$pages[$count][2] = $_POST['template'];
else
$pages[$count][2] = "-";
break;
}
$count++;
}
$fp=fopen("data/pages.dat","w");
$count=0;
while($pages[$count][0] != "") {
// fwrite($fp,encode($pages[$count][0]."|".$pages[$count][1]."|".$pages[$count][2]."||\n"));
fwrite($fp,$pages[$count][0]."|".$pages[$count][1]."|".$pages[$count][2]."||\n");
$count++;
}
# AND..
##--[OPEN]-----------------
# same fix.
# http://www.lightneasy.org/punbb/viewtopic.php?id=889
#
LightNEasy/common.php
#
#---[FIND]-----------------
#
function readmenu() {
//Read menu
global $menu, $pagenum,$selected;
$aaa=decode(trim(file_get_contents("data/menu.dat")));
#
#---[CHANGE / REPLACE WITH]-----------------
#
function readmenu() {
//Read menu
global $menu, $pagenum,$selected;
// $aaa=decode(trim(file_get_contents("data/menu.dat")));
$aaa=trim(file_get_contents("data/menu.dat"));
#
#-----[ SAVE AS UTF-8 Code/CLOSE ALL FILES ]-----
#本家に連絡済み http://www.lightneasy.org/punbb/viewtopic.php?id=909
●thumbs フォルダが無い場合、ギャラリーモジュール(画像)で
Warning: imagejpeg() [function.imagejpeg]: Unable to open 'thumbs/**' for writingと出ますので
thumbs フォルダを作って アクセス権を755(777)としてください
●Fatal error: Call to undefined function: clean() on line 351
line 351をみると
$pluginame="./plugins/".clean(substr($pagearray1[0],6));





