$top_menu = "sell"; $grey_box = "List > Listing"; $green_box_img = "bar_icon02.gif"; $green_box = "List an item"; include "../include/header.php"; //�ο� if(!$_SESSION[p_id]){ include "../member/login_page.php"; }else{ if($_REQUEST[inum]){/* no *//*edit xxx */ $mode = "edit"; $sub_inum = substr($_REQUEST[inum],0,2); if($sub_inum == 'FE') { $table = "f_recipe"; } else if($sub_inum == 'FG') { $table = "f_grocery"; } else if($sub_inum == 'FR') { $table = "f_resturant"; } else { $message = "You might have typed a wrong url."; include("../help/error_page.php"); include("../include/footer.php"); exit; } $query = "select * from $table where inum='$_REQUEST[inum]'"; $result = mysqli_query($query); $row = mysqli_fetch_array($result); if($row[seq_num] != $_SESSION[p_seq_no]) { $message = "Sorry, only the member who posted this list has permission to access this page."; include("../help/error_page.php"); include("../include/footer.php"); exit; } if(substr($row[catenum],-6,6) != "000000") { $c1 = substr($row[catenum],0,-6)."000000"; if(substr($row[catenum],-4,4) != "0000") { $c2 = substr($row[catenum],0,-4)."0000"; if(substr($row[catenum],-2,2) != "00") { $c3 = substr($row[catenum],0,-2)."00"; $c4 = $row[catenum]; } else { $c3 = $row[catenum]; $c4 = ""; } } else { $c2 = $row[catenum]; $c3 = ""; $c4 = ""; } } else { $c1 = $row[catenum]; $c2 = ""; $c3 = ""; $c4 = ""; } if($sc2){ $scategory=$sc2; }elseif(($sc1)&&(!$sc2)){ $scategory=$sc1; } } else { $mode = "reg"; if($sc2){ $scategory=$sc2; }elseif(($sc1)&&(!$sc2)){ $scategory=$sc1; } } ?>
} include "../include/footer.php"; //�ο� ?>