clockwerk-www – Diff between revs 57 and 58

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 57 Rev 58
Line 40... Line 40...
40 $ret = $req->admin_authenticate_user($first, $last, MD5($password), '1'); 40 $ret = $req->admin_authenticate_user($first, $last, MD5($password), '1');
41 $rep = new SimpleXMLElement($ret); 41 $rep = new SimpleXMLElement($ret);
42 foreach($rep->params->param->value->struct->member as $member) { 42 foreach($rep->params->param->value->struct->member as $member) {
43 if($member->name == "success" && $member->value->boolean == "0") { 43 if($member->name == "success" && $member->value->boolean == "0") {
44 echo 'Sorry, wrong password.'; 44 echo 'Sorry, wrong password.';
45 exit; 45 goto last;
46 } 46 }
47 } 47 }
48 $iar_path = '/var/lib/iar/'.$first.'_'.$last.'/'.$first.'_'.$last.'.iar'; 48 $iar_path = '/var/lib/iar/'.$first.'_'.$last.'/'.$first.'_'.$last.'.iar';
49 if (file_exists($iar_path)) { 49 if (file_exists($iar_path)) {
50 header('Content-Description: File Transfer'); 50 header('Content-Description: File Transfer');
Line 54... Line 54...
54 header('Expires: 0'); 54 header('Expires: 0');
55 header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); 55 header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
56 header('Pragma: public'); 56 header('Pragma: public');
57 header('Content-Length: '.filesize($iar_path)); 57 header('Content-Length: '.filesize($iar_path));
58 readfile($iar_path); 58 readfile($iar_path);
59 exit; 59 goto last;
60 } 60 }
-   61 echo '<p>Sorry, your IAR file is not available yet.</p>';
-   62 goto last;
61 } 63 }
Line 62... Line 64...
62 64
Line -... Line 65...
-   65 echo '<p>Sorry, incorrect CAPTCHA. Please try again.</p>';
-   66  
63 echo '<p>Sorry, incorrect CAPTCHA. Please try again.</p>'; 67 last;
Line 64... Line 68...
64   68  
65 ?> 69 ?>
66   70