- Timestamp:
- 09/05/08 18:49:51 (3 months ago)
- Location:
- trunk
- Files:
-
- 12 added
- 2 removed
- 32 modified
-
plog-admin/_upgrade.php (modified) (4 diffs)
-
plog-admin/css/admin.css (modified) (11 diffs)
-
plog-admin/css/login.css (added)
-
plog-admin/css/tabs.css (modified) (1 diff)
-
plog-admin/images/login-logo.gif (added)
-
plog-admin/images/login.gif (deleted)
-
plog-admin/images/plogger.gif (modified) (previous)
-
plog-admin/index.php (modified) (1 diff)
-
plog-admin/js/plogger.js (modified) (3 diffs)
-
plog-admin/plog-admin-functions.php (modified) (2 diffs)
-
plog-admin/plog-admin.php (modified) (4 diffs)
-
plog-admin/plog-feedback.php (modified) (1 diff)
-
plog-admin/plog-import.php (modified) (6 diffs)
-
plog-admin/plog-manage.php (modified) (2 diffs)
-
plog-admin/plog-themes.php (modified) (1 diff)
-
plog-admin/plog-thumbpopup.php (modified) (3 diffs)
-
plog-content/themes/air/dynamics.js (modified) (1 diff)
-
plog-content/themes/air/slideshow.php (modified) (1 diff)
-
plog-content/themes/default/gallery.css (modified) (1 diff)
-
plog-content/themes/default/slideshow.php (modified) (1 diff)
-
plog-content/themes/lucid/slideshow.php (modified) (1 diff)
-
plog-includes/js/plog-slideshow.js (modified) (4 diffs)
-
plog-includes/lib/exifer1_5 (deleted)
-
plog-includes/lib/exifer1_7 (added)
-
plog-includes/lib/exifer1_7/exif.php (added)
-
plog-includes/lib/exifer1_7/makers (added)
-
plog-includes/lib/exifer1_7/makers/canon.php (added)
-
plog-includes/lib/exifer1_7/makers/fujifilm.php (added)
-
plog-includes/lib/exifer1_7/makers/gps.php (added)
-
plog-includes/lib/exifer1_7/makers/nikon.php (added)
-
plog-includes/lib/exifer1_7/makers/olympus.php (added)
-
plog-includes/lib/exifer1_7/makers/panasonic.php (added)
-
plog-includes/lib/exifer1_7/makers/sanyo.php (added)
-
plog-includes/lib/gettext/gettext.php (modified) (5 diffs)
-
plog-includes/lib/gettext/streams.php (modified) (3 diffs)
-
plog-includes/lib/pclzip-2-4/pclzip.lib.php (modified) (3 diffs)
-
plog-includes/lib/phpthumb/phpThumb.config.php (modified) (9 diffs)
-
plog-includes/lib/phpthumb/phpThumb.config.php.default (modified) (10 diffs)
-
plog-includes/lib/phpthumb/phpThumb.demo.showpic.php (modified) (1 diff)
-
plog-includes/lib/phpthumb/phpthumb.class.php (modified) (19 diffs)
-
plog-includes/lib/phpthumb/phpthumb.filters.php (modified) (33 diffs)
-
plog-includes/plog-functions.php (modified) (2 diffs)
-
plog-load-config.php (modified) (2 diffs)
-
plog-remote.php (modified) (2 diffs)
-
plog-rss.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plog-admin/_upgrade.php
r555 r585 1 <?php 2 error_reporting(E_ERROR); 3 echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 1 <?php error_reporting(E_ERROR); ?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 4 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 5 4 <html xmlns="http://www.w3.org/1999/xhtml"> … … 13 12 <div><img src="images/plogger.gif" alt="Plogger" /></div> 14 13 15 <h1>Performing Upgrade...</h1>'; 16 14 <h1>Performing Upgrade...</h1> 15 16 <?php 17 17 // This is the upgrade file for upgrading your Plogger gallery from Beta 1 18 18 $workdir = dirname(dirname(__FILE__)); 19 if (file_exists($workdir.'/plog-connect.php')) 20 { 19 if (file_exists($workdir.'/plog-connect.php')) { 21 20 print "Rewriting configuration files...<br />"; 22 21 // this check will also make sure that we can delete plog-connect when done, since deleting … … 353 352 // convert charsets 354 353 // since 4.1 MySQL has support for specifying character encoding for tables 355 // and I really want to use it if avaiable. So we need figure out what version354 // and I really want to use it if available. So we need figure out what version 356 355 // we are running on and to the right hting 357 356 $mysql_version = mysql_get_server_info(); … … 376 375 } 377 376 378 echo "<p>Upgrade has completed!</p> 377 echo "<p>Upgrade has completed!</p>" 378 ?> 379 379 380 380 </body> 381 </html>" 382 ?> 381 </html> -
trunk/plog-admin/css/admin.css
r571 r585 10 10 11 11 html, body, p, form, table, td, tr { 12 font-family: "Lucida Sans Unicode", "Lucida Sans", "Georgia", "Trebuchet MS", verdana, arial, sans-serif;13 font-size: 1 3px;12 font-family: tahoma, verdana, arial, sans-serif; 13 font-size: 14px; 14 14 } 15 15 … … 30 30 31 31 h1 { 32 font-family: "Verdana", "Lucida Sans", "Lucida Grande", "Trebuchet MS", arial, sans-serif;32 font-family: verdana, arial, sans-serif; 33 33 font-size: 1.4em; 34 34 margin-top: 25px; … … 39 39 40 40 h2 { 41 font-family: "Verdana", "Lucida Sans", "Lucida Grande", "Trebuchet MS", arial, sans-serif;41 font-family: verdana, arial, sans-serif; 42 42 font-size: 1.2em; 43 43 margin-top: 20px; … … 47 47 48 48 h3 { 49 font-family: "Verdana", "Lucida Sans", "Lucida Grande", "Trebuchet MS", arial, sans-serif;49 font-family: verdana, arial, sans-serif; 50 50 font-size: 1.0em; 51 51 margin-top: 15px; … … 63 63 font-family: verdana, arial, sans-serif; 64 64 font-size: 13px; 65 letter-spacing: normal; 65 66 } 66 67 … … 95 96 96 97 #plogger-version { 98 font-family: verdana, arial, sans-serif; 97 99 float: right; 98 color: #369; 99 font-weight: 300; 100 color: #54a154; 101 font-weight: 500; 102 font-variant: small-caps; 100 103 letter-spacing: 1px; 101 }102 103 /* Login page structure/elements */104 105 #login {106 background-image: url("../images/login.gif");107 background-repeat: no-repeat;108 width: 382px;109 height: 327px;110 padding: 187px 15px 10px 15px;111 margin: auto;112 }113 114 #login-page {115 background: #369;116 text-align: center;117 margin-top: 100px;118 }119 120 .login-error {121 text-align: center;122 font-size: 1.1em;123 font-weight: bold;124 color: #c00;125 104 } 126 105 … … 161 140 162 141 #contentList .pagination { 163 font-size: 1.0em;142 font-size: 0.9em; 164 143 margin-right: 5px; 165 144 padding: 3px; … … 184 163 display: block inline; 185 164 margin-bottom: auto; 165 font-family: verdana, arial, sans-serif; 166 font-size: 13px; 167 letter-spacing: normal; 186 168 } 187 169 … … 372 354 background-repeat: no-repeat; 373 355 background-position: 5px 8px; 356 margin-right: 5px; 374 357 margin-bottom: 15px; 375 margin-right: 15px;376 358 border-top: 2px solid #bb0; 377 359 border-bottom: 2px solid #bb0; 378 padding: 8px ;360 padding: 8px 8px 8px 28px; 379 361 background-color: #ffffe0; 380 padding-left: 28px;381 362 clear: both; 382 363 } … … 386 367 background-repeat: no-repeat; 387 368 background-position: 5px 8px; 369 margin-right: 5px; 388 370 margin-bottom: 15px; 389 margin-right: 15px;390 371 border: 1px solid maroon; 391 padding: 8px;372 padding: 8px 8px 8px 28px; 392 373 background-color: #fcc; 393 padding-left: 28px;394 374 clear: both; 395 375 } … … 471 451 } 472 452 453 .invert-selection a, .invert-selection a:link, .invert-selection a:visited, .invert-selection a:active, .invert-selection a:hover { 454 font-size: 0.9em; 455 } 456 473 457 .table-header-middle { 474 458 background: url("../images/table-middle.gif") repeat-x top left; -
trunk/plog-admin/css/tabs.css
r550 r585 3 3 width: 100%; 4 4 background: transparent url("../images/bg.gif") repeat-x bottom; 5 font-family: "Lucida Sans Unicode", verdana, arial, sans-serif; 5 6 font-size: 13px; 7 letter-spacing: normal; 6 8 line-height: normal; 7 9 margin-bottom: 18px; -
trunk/plog-admin/index.php
r573 r585 9 9 } 10 10 11 $output = ''; 12 13 $output .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 11 ?> 12 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 14 13 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 15 14 <html xmlns="http://www.w3.org/1999/xhtml"> 16 15 <head> 17 <title> ' . plog_tr('Plogger Administrative Login') . '</title>16 <title><?php echo plog_tr('Plogger Administrative Login') ?></title> 18 17 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 19 <link rel="stylesheet" href=" '.$config['gallery_url'].'plog-admin/css/admin.css" type="text/css" media="all" />20 <script type="text/javascript" src=" '.$config['gallery_url'].'plog-admin/js/plogger.js"></script>18 <link rel="stylesheet" href="<?php echo $config['gallery_url'] ?>plog-admin/css/login.css" type="text/css" media="all" /> 19 <script type="text/javascript" src="<?php echo $config['gallery_url'] ?>plog-admin/js/plogger.js"></script> 21 20 </head> 22 21 23 22 <body id="login-page" onload="focus_first_input()"> 24 23 25 <div id="login"> 24 <div id="login-logo"> 25 <img src="<?php echo $config['gallery_url'] ?>plog-admin/images/login-logo.gif" width="334" height="89" alt="Plogger" /> 26 </div><!-- /login-logo --> 27 <?php 28 // Login error and action messages 29 $output = ''; 26 30 27 <form action="plog-upload.php" method="post"> 31 if (isset($_REQUEST["loggedout"])) { 32 $output .= "\n\t" . '<div id="login-action">' . plog_tr('You have been successfully logged out') . '</div>' . "\n"; 33 echo $output; 34 } 28 35 29 <div style="text-align: center;"> 30 <table width="350">'; 31 if (isset($_REQUEST["errorcode"])){ 32 switch($_REQUEST["errorcode"]){ 33 case 1: 34 $output .= "\n\t\t" . '<tr> 35 <td colspan="2" class="login-error">' . plog_tr('Invalid login') . '</td> 36 </tr>' . "\n"; 37 break; 36 if (isset($_REQUEST["loginerror"])) { 37 // Invalid login info, either username or password didn't match 38 $output .= "\n\t" . '<div id="login-error">' . plog_tr('Invalid username or password') . '</div>' . "\n"; 39 echo $output; 38 40 } 39 }40 $output .= "\n\t\t" . '<tr>41 <td><label for="plog-username"><strong>' . plog_tr('Username') . ':</strong></label></td>42 <td><input type="text" name="plog-username" id="plog-username" /></td>43 </tr>44 <tr>45 <td><label for="plog-password"><strong>' . plog_tr('Password') . ':</strong></label></td>46 <td><input type="password" name="plog-password" id="plog-password" /></td>47 </tr>48 <tr>49 <td> </td>50 <td><input type="hidden" name="action" value="log_in" />51 <input class="submit" type="submit" value="' . plog_tr('Log In') . '" /></td>52 </tr>53 </table>54 </div>55 41 56 </form> 57 </div><!-- /content --> 42 // End login messages 43 ?> 44 45 <div id="login-box"> 46 <form action="plog-upload.php" method="post"> 47 <p><label for="plog-username"><?php echo plog_tr('Username') ?>:</label> <input type="text" name="plog-username" id="plog-username" tabindex="10" /></p> 48 <p><label for="plog-password"> <?php echo plog_tr('Password') ?>:</label> <input type="password" name="plog-password" id="plog-password" tabindex="20" /></p> 49 <p><input type="hidden" name="action" value="log_in" /><input class="submit" type="submit" value="<?php echo plog_tr('Log In') ?>" tabindex="50" /></p> 50 </form> 51 </div><!-- /login-box --> 52 53 <div id="login-nav"> 54 <a title="<?php echo plog_tr('View gallery') ?>" href="<?php echo $config['gallery_url'] ?>"><?php echo plog_tr('View gallery') ?></a> 55 </div><!-- /login-nav --> 58 56 59 57 </body> 60 </html>'; 61 62 echo $output; 63 64 ?> 58 </html> -
trunk/plog-admin/js/plogger.js
r555 r585 25 25 settings +='resizable=yes'; 26 26 OpenWin = this.open(page, "Preview", settings); 27 } 27 } 28 28 29 29 function focus_first_input() { … … 72 72 document.getElementById('description').disabled = true; 73 73 document.getElementById('caption').style.background = "#fafafa"; 74 document.getElementById('description').style.background = "#fafafa"; 74 document.getElementById('description').style.background = "#fafafa"; 75 75 } 76 76 else { … … 78 78 document.getElementById('description').disabled = false; 79 79 document.getElementById('caption').style.background = "#ffffff"; 80 document.getElementById('description').style.background = "#ffffff"; 80 document.getElementById('description').style.background = "#ffffff"; 81 81 } 82 82 -
trunk/plog-admin/plog-admin-functions.php
r574 r585 138 138 139 139 // Get the EXIF data. 140 require_once(PLOGGER_DIR . "plog-includes/lib/exifer1_ 5/exif.php");140 require_once(PLOGGER_DIR . "plog-includes/lib/exifer1_7/exif.php"); 141 141 $exif_raw = read_exif_data_raw($final_fqfn,false); 142 142 $exif = array(); … … 1378 1378 1379 1379 $imgtag = '<img src="'.$thumbpath.'" title="'.plogger_get_picture_caption().'" alt="'.plogger_get_picture_caption().'" />'; 1380 //$target = 'plog-thumbpopup.php?src='.$id;1381 //$java = "javascript:this.ThumbPreviewPopup('$target')";1382 1380 $output .= "\n\t\t\t\t" . '<td><div class="img-shadow"><a href="'.plogger_get_picture_thumb(THUMB_LARGE).'" rel="lightbox" title="'.plogger_get_picture_caption().'">'.$imgtag.'</a></div></td>'; 1383 1381 $output .= "\n\t\t\t\t".'<td><strong><a class="folder" href="'.$_SERVER['PHP_SELF'].'?level=comments&id=' . $id . '">' . basename(plogger_get_source_picture_path()) . '</a></strong><br /><span style="margin-left: 20px;">' . sprintf(plog_tr('Comments: %d'), plogger_picture_comment_count()) . '</span></td>'; -
trunk/plog-admin/plog-admin.php
r577 r585 1 1 <?php 2 header("Content-Type: text/html; charset= UTF-8");2 header("Content-Type: text/html; charset=utf-8"); 3 3 global $inHead; 4 4 … … 8 8 require_once(dirname(dirname(__FILE__))."/plog-load-config.php"); 9 9 10 // Login/logout/reset password functions 10 11 if (isset($_REQUEST['action']) && $_REQUEST["action"] == "log_in"){ 11 // TODO: leiuta generic login funktsioon12 12 13 13 if ( (isset($_REQUEST["plog-username"]) && $_REQUEST["plog-username"] == $config["admin_username"]) && (isset($_REQUEST["plog-password"]) && md5($_REQUEST["plog-password"]) == $config["admin_password"]) ){ 14 14 $_SESSION["plogger_logged_in"] = true; 15 } else {16 header("Location: index.php? errorcode=1");15 } else { 16 header("Location: index.php?loginerror"); 17 17 exit; 18 18 } 19 19 20 } elseif(isset($_REQUEST['action']) && $_REQUEST["action"] == "log_out") { 20 21 $_SESSION = array(); … … 22 23 } 23 24 24 if (!isset($_SESSION['plogger_logged_in']) || $_SESSION['plogger_logged_in'] !== true){ 25 header("Location: index.php ");25 if (!isset($_SESSION['plogger_logged_in']) || $_SESSION['plogger_logged_in'] !== true){ 26 header("Location: index.php?loggedout"); 26 27 exit; 27 28 } 28 29 30 // Display admin tabs 29 31 function display($string, $current){ 30 32 … … 68 70 69 71 <div id="header"> 70 <img src="'.$config['gallery_url'].'plog-admin/images/plogger.gif" alt="Plogger" />72 <img src="'.$config['gallery_url'].'plog-admin/images/plogger.gif" width="393" height="90" alt="Plogger" /> 71 73 <span id="plogger-version">'.$config['version'].'</span> 72 74 -
trunk/plog-admin/plog-feedback.php
r574 r585 260 260 261 261 if (!$empty) { 262 $output .= "\n\n\t\t" . '<div ><a href="#" onclick="checkAll(document.getElementById(\'contentList\')); return false;">' . plog_tr('Invert Checkbox Selection') . '</a></div>262 $output .= "\n\n\t\t" . '<div class="invert-selection"><a href="#" onclick="checkAll(document.getElementById(\'contentList\')); return false;">' . plog_tr('Invert Checkbox Selection') . '</a></div> 263 263 '.$pagination_menu; 264 264 } -
trunk/plog-admin/plog-import.php
r572 r585 2 2 3 3 // Code by Mike Johnson -- mike@solanosystems.com October 23rd, 2004. 4 // This is the main administrative interface code. To change the look of the interface, change /plog-admin/css/admin.css.4 // This is the main administrative interface code. To change the look of the interface, change /plog-admin/css/admin.css. 5 5 6 6 // The initial tab is UPLOAD function. … … 57 57 $descriptions = $_POST['descriptions']; 58 58 $files = isset($_POST['files']) ? $_POST['files'] : ''; 59 $selected = $_POST[' Selected'];59 $selected = $_POST['selected']; 60 60 61 61 global $config; … … 235 235 if (count($files) > 0) { 236 236 $percent = (isset($_GET['nojs'])) ? '100%': '0%'; 237 $output .= "\n\n\t\t" . '<p class="actions">' . sprintf(plog_tr('You are currently looking at <strong>%d</strong> image(s) within the <strong>%s</strong> directory.<br /> ' . "\n\t\t" . 'Creating thumbnails: %s done.'), count($files), $show_directory, '<span id="progress">'.$percent.'</span>') . '</p>' . "\n";237 $output .= "\n\n\t\t" . '<p class="actions">' . sprintf(plog_tr('You are currently looking at <strong>%d</strong> image(s) within the <strong>%s</strong> directory.<br /><br />' . "\n\t\t" . 'Creating thumbnails: %s done.'), count($files), $show_directory, '<span id="progress">'.$percent.'</span>') . '</p>' . "\n"; 238 238 } 239 239 … … 252 252 if ($i == 0) 253 253 $output.= "\n\t\t\t" . '<form id="uploadForm" action="'.$_SERVER["PHP_SELF"].$query.'" method="post" enctype="multipart/form-data"> 254 <table >254 <table style="width: 100%;" cellpadding="4"> 255 255 <tr class="header"> 256 <th></th> 257 <th>' . plog_tr('Thumbnail') . '</th> 258 <th>' . plog_tr('Filename') . '</th> 259 <th>' . plog_tr('Caption & Description (optional)') . '</th> 256 <th class="table-header-left"> </th> 257 <th class="table-header-middle" style="text-align: left;">' . plog_tr('Thumbnail') . '</th> 258 <th class="table-header-middle" style="text-align: left;">' . plog_tr('Filename') . '</th> 259 <th class="table-header-middle" style="text-align: left;">' . plog_tr('Caption & Description (optional)') . '</th> 260 <th class="table-header-right"> </th> 260 261 </tr>'; 261 262 … … 271 272 // start a new table row (alternating colors) and generate XHTML with thumbnail and link to picture view. 272 273 $output .= "\n\t\t\t\t" . '<tr class="'.$table_row_color.'"> 273 <td><input type="checkbox" name=" Selected[]" value="'.$file_key.'" checked="checked" /></td>274 <td><input type="checkbox" name="selected[]" value="'.$file_key.'" checked="checked" /></td> 274 275 <td><div class="img-shadow" id="pic_'.$file_key . '"><img src="'.$thumbpath.'" alt="thumbnail" /></div></td> 275 276 <td>'.basename($files[$i]).'</td> 276 277 <td> 277 <input type="text" size="6 7" name="captions[' . $file_key . ']" /><br />278 <textarea name="descriptions[' . $file_key . ']" rows=" 3" cols="64"></textarea>278 <input type="text" size="66" name="captions[' . $file_key . ']" /><br /> 279 <textarea name="descriptions[' . $file_key . ']" rows="4" cols="64"></textarea> 279 280 </td> 281 <td> </td> 280 282 </tr>'; 281 283 $counter++; … … 284 286 285 287 if (count($files) != 0) { 288 $output .= "\n\t\t\t\t" . '<tr class="footer"> 289 <td colspan="5"></td> 290 </tr>' . "\n"; 286 291 $output .= "\n\t\t\t" . '</table>' . "\n"; 287 $output .= "\n\t\t\t" . '<div ><a href="#" onclick="checkAll(document.getElementById(\'uploadForm\')); return false; ">' . plog_tr('Invert Checkbox Selection') . '</a></div>' . "\n";292 $output .= "\n\t\t\t" . '<div class="invert-selection"><a href="#" onclick="checkAll(document.getElementById(\'uploadForm\')); return false; ">' . plog_tr('Invert Checkbox Selection') . '</a></div>' . "\n"; 288 293 289 294 // here we can preselect some default options based on the structure of the import directory -
trunk/plog-admin/plog-manage.php
r571 r585 102 102 103 103 /*if ($level == "collections") { // display some high level statistics on the main page. 104 $output .= "\n\t" . '<p class="highlight">You have a total of <strong>'. count_pictures().'</strong> images within <strong>'.count_albums() .'</strong> album(s). Users have posted <strong>'. count_comments().'</strong> comment(s) to your gallery</p>' . "\n"; } */104 $output .= "\n\t" . '<p class="highlight">You have a total of <strong>'. count_pictures().'</strong> images within <strong>'.count_albums() .'</strong> album(s). Users have posted <strong>'. count_comments().'</strong> comment(s) to your gallery</p>' . "\n"; } */ 105 105 106 106 global $config; … … 337 337 } 338 338 339 $output .= "\n\t\t" . '<div ><a href="#" onclick="checkAll(document.getElementById(\'contentList\')); return false; ">' . plog_tr('Invert Checkbox Selection') . '</a></div>339 $output .= "\n\t\t" . '<div class="invert-selection"><a href="#" onclick="checkAll(document.getElementById(\'contentList\')); return false; ">' . plog_tr('Invert Checkbox Selection') . '</a></div> 340 340 <div class="pagination">'.generate_pagination("admin", "manage", $plog_page, $totalRows, $_SESSION['entries_per_page'], array("level" => $level, "id" => $id, "entries_per_page" => $_SESSION['entries_per_page'])).'</div> 341 341 <div class="move-del-manage"> -
trunk/plog-admin/plog-themes.php
r572 r585 58 58 $output .= "\n\n\t\t" . '<table id="theme-table" cellpadding="1" width="100%"> 59 59 <tr class="header"> 60 <th class="table-header-left"> </th>61 <th class="table-header-middle"> Theme</th>62 <th class="table-header-middle"> Description</th>63 <th class="table-header-middle"> Author</th>64 <th class="table-header-right"> </th>60  
