changefullname.php

来自「这是国外的resip协议栈」· PHP 代码 · 共 72 行

PHP
72
字号
<?phprequire('reprofunctions.php');dbgSquirt("============= Change Fullname ===============");$result = checkCookies($forceLogin,$error,FALSE);if (!($result) || $forceLogin) {  // we got an error back that occurred while checkCookies was being run,   // or authentication failed.  Either way, bounce them back to the login screen  header("Location: http://" . $_SERVER['HTTP_HOST'] . 	 dirname($_SERVER['PHP_SELF']) . 	 "/index.php?error=$error");  exit; }$username = $_COOKIE['user'];?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--System:  ReproFile:    changefullname.phpPurpose: Allow an authenticated user to change the fullname stored for themAuthor:  S. Chanin--><html><head><link rel="stylesheet" type="text/css" href="repro_style.css" />  <title>Change Fullname</title></head><body><h1 class="title">Repro</h1><h1>Change Fullname</h1><hr /><?php// if we've looped back due to an error, show the messageif (isset($_GET["error"])) {    echo '<p class="error">' . $_GET["error"] . "</p>\n";}if (lookupUserInformation($username,$id,$fullname,$domain,$email)) {  // lookup successful  echo "<p>Current Fullname is: <em>$fullname</em></p>\n";?><form method="POST" action="updatefullname.php"><table><tr><td>New Fullname</td><td><input type="text" name="newfullname" id="newfullname" value=""/></td></tr><tr><td>&nbsp</td><td><input type="submit" name="submit" id="submit" value="Save" /><input type="submit" name="submit" id="submit" value="Cancel" /></td></tr></table></form><?php   } else {  echo "<p>Internal Error while accessing user information.</p>\n";  echo "<p>Please contact an administrator.</p>\n"; }?><br /><hr /><a href="userhome.php">Return to User Home</a><br /><a href="logout.php">Logout</a><br /></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?