| 8 | | $output .= ' |
| 9 | | <html> |
| 10 | | <head> |
| 11 | | <title>' . plog_tr('Plogger Administrative Login') . '</title> |
| 12 | | <link href="'.$config['gallery_url'].'plog-admin/css/admin.css" type="text/css" rel="stylesheet" /> |
| 13 | | <script type="text/javascript" src="'.$config['gallery_url'].'plog-admin/js/plogger.js"></script> |
| 14 | | </head> |
| 15 | | <body id="login-page" onload="focus_first_input()"> |
| 16 | | |
| 17 | | <div id="login"> |
| 18 | | <form action="plog-upload.php" method="post"> |
| 19 | | |
| 20 | | <div align="center"> |
| 21 | | <table width="380"> |
| 22 | | <tr>'; |
| 23 | | |
| 24 | | if (isset($_REQUEST["errorcode"])){ |
| 25 | | switch($_REQUEST["errorcode"]){ |
| 26 | | case 1: |
| 27 | | $output .= '<td colspan="2" align="center"><em>' . plog_tr('Invalid login') . '.</em></td>'; |
| 28 | | break; |
| 29 | | } |
| | 7 | $output .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
| | 8 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| | 9 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | 10 | <head> |
| | 11 | <title>' . plog_tr('Plogger Administrative Login') . '</title> |
| | 12 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | 13 | <link href="'.$config['gallery_url'].'plog-admin/css/admin.css" type="text/css" rel="stylesheet" /> |
| | 14 | <script type="text/javascript" src="'.$config['gallery_url'].'plog-admin/js/plogger.js"></script> |
| | 15 | </head> |
| | 16 | |
| | 17 | <body id="login-page" onload="focus_first_input()"> |
| | 18 | |
| | 19 | <div id="login"> |
| | 20 | |
| | 21 | <form action="plog-upload.php" method="post"> |
| | 22 | |
| | 23 | <div style="text-align: center;"> |
| | 24 | <table width="350">'; |
| | 25 | if (isset($_REQUEST["errorcode"])){ |
| | 26 | switch($_REQUEST["errorcode"]){ |
| | 27 | case 1: |
| | 28 | $output .= "\n\t\t" . '<tr> |
| | 29 | <td colspan="2" class="login-error">' . plog_tr('Invalid login') . '</td> |
| | 30 | </tr>' . "\n"; |
| | 31 | break; |
| 31 | | |
| 32 | | $output .= ' |
| 33 | | </tr> |
| 34 | | <tr> |
| 35 | | <td><label for="plog-username"><strong>' . plog_tr('Username') . ':</strong></label></td> |
| 36 | | <td><input type="text" name="plog-username" id="plog-username" /></td> |
| 37 | | </tr> |
| 38 | | <tr> |
| 39 | | <td><label for="plog-password"><strong>' . plog_tr('Password') . ':</strong></label></td> |
| 40 | | <td><input type="password" name="plog-password" id="plog-password" /></td> |
| 41 | | </tr> |
| 42 | | <tr> |
| 43 | | <td> </td> |
| 44 | | <td><input class="submit" type="submit" value="' . plog_tr('Log In') . '" /></td> |
| 45 | | </tr> |
| 46 | | </table> |
| 47 | | </div> |
| 48 | | <input type="hidden" name="action" value="log_in" /> |
| 49 | | </form> |
| 50 | | </div> |
| 51 | | </body> |
| 52 | | </html>'; |
| | 33 | } |
| | 34 | $output .= "\n\t\t" . '<tr> |
| | 35 | <td><label for="plog-username"><strong>' . plog_tr('Username') . ':</strong></label></td> |
| | 36 | <td><input type="text" name="plog-username" id="plog-username" /></td> |
| | 37 | </tr> |
| | 38 | <tr> |
| | 39 | <td><label for="plog-password"><strong>' . plog_tr('Password') . ':</strong></label></td> |
| | 40 | <td><input type="password" name="plog-password" id="plog-password" /></td> |
| | 41 | </tr> |
| | 42 | <tr> |
| | 43 | <td> </td> |
| | 44 | <td><input type="hidden" name="action" value="log_in" /> |
| | 45 | <input class="submit" type="submit" value="' . plog_tr('Log In') . '" /></td> |
| | 46 | </tr> |
| | 47 | </table> |
| | 48 | </div> |
| | 49 | |
| | 50 | </form> |
| | 51 | </div><!-- /content --> |
| | 52 | |
| | 53 | </body> |
| | 54 | </html>'; |