Update of /cvsroot/phpslash/phpslash-ft/public_html
In directory usw-pr-cvs1:/tmp/cvs-serv5669/phpslash-ft/public_html
Modified Files:
submission.php3 config.php3
Added Files:
profile.php3
Log Message:
user profile
--- NEW FILE: profile.php3 ---
<?php
/* $Id: profile.php3,v 1.1 2002/05/20 19:52:48 joestewart Exp $ */
$pagetitle = "User Profile"; // header title
$xsiteobject = "Profile"; // Defines The META TAG Page Type
require("config.php3");
page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm"));
/*****************************
START OF PAGE
*****************************/
if ( $HTTP_GET_VARS['confirm']) {
$confirm = $HTTP_GET_VARS['confirm'];
$confirm_hash = base64_decode($confirm);
$confirm_hash = unserialize($confirm_hash);
// $confirm_hash = unserialize($HTTP_GET_VARS['confirm']);
if($confirm_hash[2] == date("Ymd")) {
$confirm_hash[2] = md5($auth->magic .":". $_PSL['basedir']);
$HTTP_COOKIE_VARS['user_info'] = base64_encode(serialize($confirm_hash));
}
}
$auth->login_if(!$perm->have_perm('user'));
slashhead($pagetitle,$xsiteobject);
/* DEBUG */
/*
debug("HTTP_POST_VARS", $HTTP_POST_VARS);
debug("HTTP_GET_VARS", $HTTP_GET_VARS);
debug("author_id_ary", $author_id_ary);
debug("author_name_ary", $author_name_ary);
debug("real_name_ary", $author_name_ary);
debug("email", $email);
debug("quote", $quote);
debug("password", $password);
debug("permission", $permission);
*/
/* DEBUG */
$author = new Author;
if ($perm->have_perm("user")) {
switch ($submit) {
case "update":
if($author->saveProfile($HTTP_POST_VARS)) {
message("Profile Updated");
} else {
error("Profile not updated");
}
case "edit":
default:
$author->editAuthor($auth->auth['uid'], 'authorProfile');
}
} else {
titlebar("100%","Error! Invalid Privileges");
echo "Sorry. You do not have the necessary privilege to view this page.";
}
slashfoot();
page_close();
?>
Index: submission.php3
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/public_html/submission.php3,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** submission.php3 6 Mar 2002 04:29:54 -0000 1.6
--- submission.php3 20 May 2002 19:52:48 -0000 1.7
***************
*** 2,7 ****
// $id: submission.php3,v 1.0 2000/04/25 12:08:03 ajay Exp $
! $pagetitle = "Administration"; # The name to be displayed in the header
! $xsiteobject = "Administration";#Defines The META TAG Page Type
require("config.php3");
--- 2,7 ----
// $id: submission.php3,v 1.0 2000/04/25 12:08:03 ajay Exp $
! $pagetitle = "Submission"; # The name to be displayed in the header
! $xsiteobject = "Submission";#Defines The META TAG Page Type
require("config.php3");
Index: config.php3
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/public_html/config.php3,v
retrieving revision 1.138
retrieving revision 1.139
diff -C2 -d -r1.138 -r1.139
*** config.php3 20 May 2002 15:38:29 -0000 1.138
--- config.php3 20 May 2002 19:52:48 -0000 1.139
***************
*** 292,297 ****
);
$menuitem[] = array(
! 'name' => "User",
'link' => $_PSL['rooturl'] . "/login.php3",
'perm' => "user",
'module' => ""
--- 292,304 ----
);
$menuitem[] = array(
! 'name' => "Admin",
'link' => $_PSL['rooturl'] . "/login.php3",
+ 'perm' => "user",
+ 'module' => ""
+
+ );
+ $menuitem[] = array(
+ 'name' => "User Profile",
+ 'link' => $_PSL['rooturl'] . "/profile.php3",
'perm' => "user",
'module' => ""
|