source: trunk/plog-admin/index.php @ 555

Revision 555, 1.7 KB checked in by kimparsell, 2 years ago (diff)

+ Major cleanup of markup in plog-admin section files - markup now structured properly and validates as XHTML Strict
+ Added plog-admin/images/diag-bg.gif - left out of original restructuring
+ plog-admin/plog-options.php - reworked date formats/added 2 new formats
+ plog-admin/includes/install-functions.php - change install email layout
+ plog-admin/js/plogger.js - changed line endings to unix
+ plog-admin/js/ajax_editing.js - minor markup correction
+ plog-includes/js/plog-slideshow.js - corrected markup, changed loop to false
+ plog-includes/plog-functions.php - minor change to comment notification email, minor markup tweaks
+ index.php - markup tweaks in prep for front-end/theme cleanup
+ gallery.php - minor cleanup (remove extra blank line at end of file)
+ plogger.php - minor cleanup (remove extra blank line at end of file)

Line 
1<?php
2// load configuration variables from database, plog-globals, & plog-includes/plog-functions
3require_once(dirname(dirname(__FILE__))."/plog-load-config.php");
4
5$output = '';
6
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">';
25if (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;
32                }
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>&nbsp;</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>';
55
56echo $output;
57
58?>
Note: See TracBrowser for help on using the repository browser.