user_info["user_level_id"]!=2&&$user->user_info["user_level_id"]!=7){ header("Location: /premium.php"); exit; } if($task=="dosave"){ if(trim($name)!=""&&$type!=""&&$privacy!=""){ $database->database_query("INSERT into batelist SET userid='".$user->user_info["user_id"]."', name='".$database->database_real_escape_string($name)."', type='".$database->database_real_escape_string($type)."', privacy='".$database->database_real_escape_string($privacy)."'"); header("Location: /user_lists.php"); exit; } else{$error=2;} } function general() { global $error, $name, $user, $privacy, $type; if($error==2){echo "Please fill in all fields";} ?>
Name:

Type:

Who can see this list?
checked="checked">
checked="checked">
checked="checked">

assign('privacy_options', $privacy_options); $smarty->assign('comment_options', $comment_options); $smarty->assign('poll_title', $poll_title); $smarty->assign('poll_desc', $poll_desc); $smarty->assign('poll_options', $poll_options); $smarty->assign('poll_comments', $poll_comments); $smarty->assign('poll_privacy', $poll_privacy); $smarty->assign('poll_search', $poll_search); $smarty->assign('is_error', $is_error); $smarty->assign('is_error_sprintf_1', $is_error); include "footer.php"; ?>