session_start(); $path = "/home/content/s/e/a/seangarrett/html"; require $path."/cgi/profile.php"; /* loginOk=0: user is not logged in. loginOk=2: login failed. loginOk=1: user is logged in. */ $loginOk = 0; $user = ""; $fname =""; include "$path/include/login_include.php"; ?>
|
| Submit News Terms of Use Legal Notices |
| include "menu.include"; ?> | - |
if($loginOk == 0 || $loginOk == 2){ // user is logged in, can submit article.
if($loginOk == 2){
?>
Login failed.} else{ ?> You are not logged in.You should log in to view the blog. } include "./../login.include"; } else{ // get the user name, from user name you can get the user id. $user = $_SESSION['user5237Id']; $array = getSettings($user); // get the user information, including user's privacy. // privacy=2 can be viewed by every one, privacy=1 can be viewed by friends only $blog_privacy=$array["blog_privacy"]; $profile_privacy=$array["profile_privacy"]; $subscribe_notification=$array["subscribe_notification"]; $email_notification=$array["email_notification"]; ?> [ Edit my profile ] [ Edit my pictures ] [ Account Settings ] My Account SettingsEdit your account settings here. You can set the privacy level of your profile and blog here. Also you can set the email notfication settings here as well.Blog Privacy: Can be viewed by every one Can be viewed only by my friends. Profile Privacy: Can be viewed by every one Can be viewed only by my friends. Subscription notification: Send me email when my subscribed blogs are updated. Do not send me any email. Email notification: Send me email when I get a message or email from others.. Do not send me any email. } ?>
|
. | |||