".$lang_lpf_modtitle2_mod." / ".$lang_lpf_modtitle3_del." )"; } elseif($_POST['mode'] == "newpost") { $mode = "newpost"; $html_title = $lang_lpf_title; } else { echo "back mode error !"; exit(); } if(isset($_POST['add_lcateg'])) { $add_lcateg = " checked"; } else { $add_lcateg = ""; } $newlcateg = htmlspecialchars(stripslashes($_POST['newlcateg']), ENT_QUOTES); $target_id = $_POST['target_id']; $val_od_num = $_POST['val_od_num']; $val_lcateg = $_POST['val_lcateg']; $val_name = htmlspecialchars(stripslashes($_POST['val_name']), ENT_QUOTES); $val_url = htmlspecialchars(stripslashes($_POST['val_url']), ENT_QUOTES); $val_comm = htmlspecialchars(stripslashes($_POST['val_comm']), ENT_QUOTES); $val_poster = htmlspecialchars(stripslashes($_POST['val_poster']), ENT_QUOTES); } elseif($_GET['mode'] == "modify") { $mode = "modify"; $target_id = $_GET['id']; $html_title = $lang_lpf_modtitle1." ( ".$lang_lpf_modtitle2_mod." / ".$lang_lpf_modtitle3_del." )"; $select_query = "select * from $LINK_TABLE where ID='$target_id'"; $result = mysqli_query($mysqli_db,$select_query); $row = mysqli_fetch_array($result, MYSQLI_ASSOC); $val_od_num = $row['OD_NUM']; $add_lcateg = ""; $newlcateg = ""; $val_lcateg = $row['LCATEG']; $val_name = $row['NAME']; $val_url = $row['URL']; if($val_url == "") { $val_url = "https://"; } $val_comm = $row['COMM']; $val_poster = $row['POSTER']; } elseif($_GET['mode'] == "newpost") { $mode = "newpost"; $html_title = $lang_lpf_title; if(isset($_GET['lcateg']) && $_GET['lcateg'] != 1) { $val_lcateg = $_GET['lcateg']; } else { $val_lcateg = 2; } $val_od_num = 0; $add_lcateg = ""; $newlcateg = ""; $val_name = ""; $val_url = "https://"; $val_comm = ""; $val_poster = $_SERVER['PHP_AUTH_USER']; } else { echo "ERROR !!"; exit(); } if($mode == "modify") { if($admin_level != "super" && $val_poster != $_SERVER['PHP_AUTH_USER']) { header("WWW-authenticate: basic realm=\"ADMIN ONLY\""); header("HTTP/1.1 401 Unauthorized"); exit(); } } ?>

 or