[Phpslash-commit] CVS: phpslash-ft/public_html/admin authorAdmin.php3,1.4,1.5
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2002-04-11 21:05:14
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/admin In directory usw-pr-cvs1:/tmp/cvs-serv17227/phpslash-ft/public_html/admin Modified Files: authorAdmin.php3 Log Message: saveAuthor check Index: authorAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/authorAdmin.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** authorAdmin.php3 1 Feb 2002 04:23:52 -0000 1.4 --- authorAdmin.php3 11 Apr 2002 21:05:06 -0000 1.5 *************** *** 13,16 **** --- 13,18 ---- *****************************/ + $auth->login_if(!$perm->have_perm('author')); + slashhead($pagetitle,$xsiteobject); *************** *** 35,39 **** case "delete": ! $author->deleteAuthor($id, $auth->auth["uid"]); $author->newAuthor(); $author->listAuthor(); --- 37,46 ---- case "delete": ! $success = $author->deleteAuthor($id, $auth->auth["uid"]); ! if($success) { ! echo message( pslgetText($author->message)); ! } else { ! error( pslgetText($author->message)); ! } $author->newAuthor(); $author->listAuthor(); *************** *** 45,49 **** case "update": case "new": ! $author->saveAuthor($HTTP_POST_VARS); default: $author->newAuthor(); --- 52,61 ---- case "update": case "new": ! $success = $author->saveAuthor($HTTP_POST_VARS); ! if(isset($success)) { ! echo message( pslgetText($author->message)); ! } else { ! error( pslgetText($author->message)); ! } default: $author->newAuthor(); |