Changeset 607
- Timestamp:
- 11/12/09 18:41:57 (10 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
plog-admin/plog-admin-functions.php (modified) (1 diff)
-
plog-content/plugins/latest-comments/latest-comments.php (modified) (1 diff)
-
plog-load-config.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plog-admin/plog-admin-functions.php
r602 r607 806 806 $query = "INSERT INTO ".PLOGGER_TABLE_PREFIX."albums (`name`,`description`,`parent_id`,`path`) VALUES ('$sql_name', '$description', '$pid', '$album_folder')"; 807 807 $result = run_query($query); 808 $id = mysql_insert_id( );808 $id = mysql_insert_id($GLOBALS['PLOGGER_DBH']); 809 809 810 810 $output .= sprintf(plog_tr('You have successfully created the album %s.'), '<strong>'.$album_name.'</strong>'); -
trunk/plog-content/plugins/latest-comments/latest-comments.php
r601 r607 67 67 $comment_length = intval($plog_lc_comment_trim); 68 68 $comment = ($comment_length !== 0 && $comment_length < strlen($row['comment'])) ? substr($row['comment'], 0, intval($plog_lc_comment_trim)).' ...' : $row['comment']; 69 $number = strrpos($path, '/');70 $number = $number+1;71 $url = substr($path, $number);72 69 $plog_lc_picture = get_picture_by_id($parent_id); 73 70 $cap_or_name = (!empty($plog_lc_picture['caption'])) ? stripslashes($plog_lc_picture['caption']) : ucfirst(substr(basename($plog_lc_picture['path']), 0, strrpos(basename($plog_lc_picture['path']), '.'))); -
trunk/plog-load-config.php
r602 r607 94 94 // if mod_rewrite is on and we're not embedded, remove the file basename 95 95 if ($config['use_mod_rewrite'] == 1 && $config['embedded'] == 0) { 96 $config['baseurl'] = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/'; 96 $config['baseurl'] = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']); 97 // Verify URL for a trailing slash. If not, add one. 98 if ($config['baseurl']{strlen($config['baseurl'])-1} != '/') { 99 $config['baseurl'] = $config['baseurl'].'/'; 100 } 97 101 // otherwise just use our cleaned up version of $_SERVER['PHP_SELF'] from plog-globals.php 98 102 } else {
Note: See TracChangeset
for help on using the changeset viewer.
