Show
Ignore:
Timestamp:
07/07/08 17:22:49 (5 months ago)
Author:
kimparsell
Message:

+ 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)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plog-admin/index.php

    r550 r555  
    33require_once(dirname(dirname(__FILE__))."/plog-load-config.php"); 
    44 
    5  
    65$output = ''; 
    76 
    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">'; 
     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; 
    3032                } 
    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>&nbsp;</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>&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>'; 
    5355 
    5456echo $output;