3){ msg("error", "Access Denied", "You don't have permission to add news"); }
$orig_cat_lines = file("./data/category.db.php");
//only show allowed categories
$allowed_cats = array();
$cat_lines = array();
foreach($orig_cat_lines as $single_line){
$ocat_arr = explode("|", $single_line);
if($member_db[1] <= $ocat_arr[3] or ($ocat_arr[3] == '0' || $ocat_arr[3] == '')){
$cat_lines[] = $single_line;
$allowed_cats[] = $ocat_arr[0];
}
}
if ($action == "addnews"){
echoheader("addnews", "Add News");
$short_story_id = 'short_story';
$full_story_id = 'full_story';
//
// Are we using the WYSIWYG ?
//
if($config_use_wysiwyg == "yes"){
$use_wysiwyg = true;
$article_format_options = "
";
}else{
$use_wysiwyg = false;
$article_format_options = "
";
}
echo "