メニューモジュールの文字化け

2.2.2になっても、修正されてませんでした。大丈夫かなー

というわけで、2.2.2ベースでの修正法

########################################
#
# LightNeasy 2.2.2
#
# LightNEasy.php?do=editmenu
#
########################################
#
#
##---[OPEN]-----------------------------
#
 LightNEasy/admin.php

#
##---[FIND]-----------------------------
# About Line70

  case "Save Menu":
   $fp=fopen("data/menu.dat","w");
   fwrite($fp,$_POST['content']);
#
#---[REPLACE WITH]----------------------
#

  case "Save Menu":
   $fp=fopen("data/menu.dat","w");
   fwrite($fp,encode($_POST['content']));

#
##---[FIND]-----------------------------
# About Line82

  case "Delete Page":
   $count=0;
   $fp=fopen("data/menu.dat","w");
   while($menu[$count][0] != "") {
    if($menu[$count][3] != $pagenum)
     fwrite($fp,$menu[$count][0]."|".$menu[$count][1]."|".$menu[$count][2]."|".$menu[$count][3]."|".$menu[$count][4]."||\n");
    $count++;
   }
#
#---[REPLACE WITH]----------------------
#
  case "Delete Page":
   $count=0;
   $fp=fopen("data/menu.dat","w");
   while($menu[$count][0] != "") {
    if($menu[$count][3] != $pagenum)
     fwrite($fp,$menu[$count][0]."|".$menu[$count][1]."|".$menu[$count][2]."|".$menu[$count][3]."|".encode($menu[$count][4])."||\n");
    $count++;
   }

#
##---[FIND]-----------------------------
# About Line255

  case "Create Page":
   $aaa=file_get_contents("./data/menu.dat");
   unset($mmenu);
#
#---[REPLACE WITH]----------------------
#
  case "Create Page":
   $aaa=decode(file_get_contents("./data/menu.dat"));

#
##---[FIND]-----------------------------
# About Line705

 $out.="<textarea id=\"content\" name=\"content\" rows=\"15\" cols=\"50\">\n";
 $out.=file_get_contents("data/menu.dat")."</textarea>\n";

#
#---[REPLACE WITH]----------------------
#

 $out.="<textarea id=\"content\" name=\"content\" rows=\"15\" cols=\"50\">\n";
 $out.=decode(file_get_contents("data/menu.dat"))."</textarea>\n";
#
##-----[SAVE AS UTF-8 CODE/ UP]---------