clockwerk-www – Diff between revs 61 and 64

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 61 Rev 64
Line 9... Line 9...
9 ?> 9 ?>
10 <!DOCTYPE html> 10 <!DOCTYPE html>
11 <html> 11 <html>
12 <head> 12 <head>
13 <title>Clockwerk</title> 13 <title>Clockwerk</title>
14 <link rel="stylesheet" href="css/green.css" type="text/css" /> 14 <link rel="stylesheet" href="css/gray.css" type="text/css" />
15 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 15 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
16 </head> 16 </head>
17 <body class="dark-grey"> 17 <body class="dark-grey">
18 <div> 18 <div>
19 <img src="img/clockwerk-logo.png" alt="logo"> 19 <img src="img/clockwerk-logo.png" alt="logo">
Line 45... Line 45...
45 $ret = $req->admin_update_user($first, $last, $newpassword, '128', '128'); 45 $ret = $req->admin_update_user($first, $last, $newpassword, '128', '128');
46 $rep = new SimpleXMLElement($ret); 46 $rep = new SimpleXMLElement($ret);
47 foreach($rep->params->param->value->struct->member as $member) { 47 foreach($rep->params->param->value->struct->member as $member) {
48 switch($member->name) { 48 switch($member->name) {
49 case "success": 49 case "success":
50 switch(boolval($member->value->boolean)) { 50 switch((bool)$member->value->boolean) {
51 case TRUE: 51 case TRUE:
52 echo '<p>Account updated successfully.</p>'; 52 echo '<p>Account updated successfully.</p>';
53 goto last; 53 goto last;
54 default: 54 default:
55 echo '<p>Sorry, the account could not be updated at this time.</p>'; 55 echo '<p>Sorry, the account could not be updated at this time.</p>';