Changeset 561
- Timestamp:
- 07/17/08 19:26:13 (2 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
-
plog-admin/includes/install-functions.php (modified) (2 diffs)
-
plog-admin/plog-admin-functions.php (modified) (1 diff)
-
plog-admin/plog-manage.php (modified) (2 diffs)
-
plog-content/themes/air/slideshow.php (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) (2 diffs)
-
plog-includes/plog-functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plog-admin/includes/install-functions.php
r560 r561 493 493 $select = @mysql_select_db($database); 494 494 if (!$select) { 495 $errors[] = "Couldn't find the database $database. MySQL error: " . mysql_error();495 $errors[] = "Couldn't find the database `$database`. MySQL error: " . mysql_error(); 496 496 497 497 } … … 504 504 $connection = @ftp_connect($host); 505 505 if (!$connection) { 506 $errors[] = "Couldn't connect to FTP host \"$host\". Please check your FTP Host:";506 $errors[] = "Couldn't connect to FTP host `$host`. Please check your FTP Host:"; 507 507 } else { 508 508 $login = @ftp_login($connection, $user, $pass); 509 509 if (!$login) { 510 $errors[] = "Couldn't login to FTP host \"$host\" with username \"$user\" and password \"$pass\". Please check your FTP Username: and FTP Password:";510 $errors[] = "Couldn't login to FTP host `$host` with username `$user` and password `$pass`. Please check your FTP Username: and FTP Password:"; 511 511 } else { 512 512 $checkdir = @ftp_chdir($connection, $path."plog-content/images/"); // check to see if the plog-content/images/ folder is accessible 513 513 if (!$checkdir) { 514 $errors[] = "Couldn't find the Plogger 'plog-content/images/' folder along the path \"$path\". Please check your FTP Path to Plogger Base Folder (from FTP login):";514 $errors[] = "Couldn't find the Plogger 'plog-content/images/' folder along the path `$path`. Please check your FTP Path to Plogger Base Folder (from FTP login):"; 515 515 } 516 516 } -
trunk/plog-admin/plog-admin-functions.php
r558 r561 100 100 @unlink($tmpname); 101 101 } 102 $res = @chmod($final_fqfn, 07 55);102 $res = @chmod($final_fqfn, 0777); 103 103 104 104 // Get the EXIF data. -
trunk/plog-admin/plog-manage.php
r558 r561 58 58 } 59 59 60 $output .= "\n\t\t\t\t<option value=\"".$album_id."\" $selected>".SmartStripSlashes($album['collection_name']).": ".SmartStripSlashes($album['album_name'])."" ;60 $output .= "\n\t\t\t\t<option value=\"".$album_id."\"".$selected.">".SmartStripSlashes($album['collection_name']).": ".SmartStripSlashes($album['album_name'])."" ; 61 61 $output .= "</option>"; 62 62 } … … 75 75 $collection = get_collection_by_id($id); 76 76 $collection_name = SmartStripSlashes($collection["name"]); 77 $breadcrumbs = '<a href="'.$_SERVER["PHP_SELF"].'">' . plog_tr('Collections') . '</a> » ' . "<strong> $collection_name</strong>";77 $breadcrumbs = '<a href="'.$_SERVER["PHP_SELF"].'">' . plog_tr('Collections') . '</a> » ' . "<strong>".$collection_name."</strong>"; 78 78 79 79 break; -
trunk/plog-content/themes/air/slideshow.php
r557 r561 9 9 slides.prefetch = 2; 10 10 slides.timeout = 4000; 11 // slides.repeat = true; 12 slides.redirect = "<?php echo generate_url("album", $GLOBALS['plogger_id'], NULL, true) ?>"; 11 13 <?php while(plogger_has_pictures()) : ?> 12 14 <?php $pic = plogger_load_picture(); ?> -
trunk/plog-content/themes/default/slideshow.php
r557 r561 13 13 slides.prefetch = 2; 14 14 slides.timeout = 4000; 15 // slides.repeat = true; 16 slides.redirect = "<?php echo generate_url("album", $GLOBALS['plogger_id'], NULL, true) ?>"; 15 17 <?php while(plogger_has_pictures()) : ?> 16 18 <?php $pic = plogger_load_picture(); ?> -
trunk/plog-content/themes/lucid/slideshow.php
r557 r561 13 13 slides.prefetch = 2; 14 14 slides.timeout = 4000; 15 // slides.repeat = true; 16 slides.redirect = "<?php echo generate_url("album", $GLOBALS['plogger_id'], NULL, true) ?>"; 15 17 <?php while(plogger_has_pictures()) : ?> 16 18 <?php $pic = plogger_load_picture(); ?> -
trunk/plog-includes/js/plog-slideshow.js
r555 r561 166 166 // Individual slides can override this. 167 167 this.timeout = 3000; 168 169 // Redirect URL called at the end of the slideshow 170 this.redirect = false; 168 171 169 172 // Hook functions to be called before and after updating the slide … … 374 377 } else if (this.repeat) { 375 378 this.current = 0; 379 } else if (this.redirect) { 380 window.location = this.redirect; 376 381 } 377 382 -
trunk/plog-includes/plog-functions.php
r560 r561 425 425 // function for generating the slideshow interface 426 426 function generate_slideshow_interface() { 427 global $config ;427 global $config, $thumbnail_config; 428 428 429 429 $picture_caption = plogger_get_picture_caption(); … … 435 435 $next_url = '<a accesskey="." title="' . plog_tr('Next Image') . '" href="javascript:slides.next();"><img src="'.THEME_URL.'images/fforward.gif" width="16" height="16" alt="' . plog_tr('Next Image') . '" /></a>'; 436 436 437 $output = "\t\t\t" . '<div class="large-thumb-toolbar" style="width: '.$ config["max_display_size"].'px;">'.$large_link.$prev_url.$stop_url.$play_url.$next_url.'</div><!-- /large-thumb-toolbar -->';437 $output = "\t\t\t" . '<div class="large-thumb-toolbar" style="width: '.$thumbnail_config[THUMB_LARGE].'px;">'.$large_link.$prev_url.$stop_url.$play_url.$next_url.'</div><!-- /large-thumb-toolbar -->'; 438 438 439 439 $imgtag = '<img id="slideshow_image" class="photos-large" src="about:blank" title="'.$picture_caption.'" alt="'.$picture_caption.'" />';
Note: See TracChangeset
for help on using the changeset viewer.
