<?
include("connect.php");
$sql = "Select * From onepiece_news Order by n_update DESC";
$resulter = mysql_query($sql) or die(mysql_error());
$rower = mysql_fetch_array($resulter);
?>
<? IF(!isset($admin)) {
include "mainadmin.php";
} ELSE {
SWITCH ($admin) {
case mainadmin : include "mainadmin.php";
break;
case books : include "book_edit.php";
break;
case animation : include "ani_view.php";
break;
case edituser : include "user_edit.php";
break;
case changepassword : include "user_changepass.php";
break;
case updatefirstpage : include "update_add.php";
break;
case animationheadedit : include "ani_edithead.php";
break;
case animationedit : include "ani_edit.php";
break;
case "editupdate?id=$rower[n_update]" : include "update_edit.php?id=$rower[n_update]";
}
}
?>