//POST FORM $lang_text_encording = "EUC-JP"; $lang_pf_pagetitle = "トピックの操作"; $lang_pf_title = "新規記事の掲載"; $lang_pf_modtitle1 = "この記事を"; $lang_pf_modtitle2_mod = "編集"; $lang_pf_modtitle3_del = "削除"; $lang_postform_cancel = "キャンセル"; $lang_postform_categ = "カテゴリ"; $lang_postform_newcateg = "新規カテゴリ"; $lang_postform_posttitle = "タイトル"; $lang_postform_postsumm = "見出し"; $lang_postform_postlink = "参考リンク"; $lang_postform_postlinkview = "表示"; $lang_postform_posturl = "URL"; $lang_postform_postbody = "本文"; $lang_postform_writemethod = "記述方法"; $lang_postform_htmlallow = "HTMLソース (※チェックしないでおくと改行の前に<br />タグが挿入されます)"; $lang_postform_filealign = "位置"; $lang_postform_addfile = "FILE "; $lang_postform_alignnon = "なし"; $lang_postform_alignleft = "左"; $lang_postform_alignright = "右"; $lang_postform_aligncenter = "中央"; $lang_postform_alignurl = "URL"; $lang_postform_allowlink = "link"; $lang_postform_existfile = "FILE"; $lang_postform_filedel = "del"; $lang_postform_tagnotice = "※FILE の配置タグ書式 <file1>,<file2>......"; $lang_postform_ping = "PING"; $lang_postform_trackback = "TrackBack"; $lang_postform_trackback_to = "TrackBack to"; $lang_postform_trackback_encode = "encode"; $lang_postform_sendbutton = "送信"; ?> $admin_level = "admins"; if(!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW'])) { $admin_check = 0; } else { $admin_query = "select ID, PASS, SUPER, $check_col from $ADMIN_TABLE where ID='".$_SERVER['PHP_AUTH_USER']."'"; $admin_result = mysql_query($admin_query); if(!mysql_num_rows($admin_result)) { $admin_check = 0; } else { $admin_row = mysql_fetch_array($admin_result,MYSQL_ASSOC); if($admin_row['PASS'] == crypt($_SERVER['PHP_AUTH_PW'],"Gs") && ($admin_row[$check_col] == 1 || $admin_row['SUPER'] == 1)) { $admin_level = "admin"; $admin_check = 1; if($admin_row['SUPER'] == 1) { $admin_level = "super"; } } else { $admin_check = 0; } } } if(!$admin_check) { header("WWW-authenticate: basic realm=\"ADMINONLY\""); header("HTTP/1.0 401 Unauthorized"); exit(); } ?>