- Timestamp:
- 04/22/08 12:48:00 (7 months ago)
- Files:
-
- 1 modified
-
trunk/plog-functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plog-functions.php
r527 r528 991 991 $sql = "SELECT * 992 992 FROM `".TABLE_PREFIX."pictures` 993 WHERE `path` ='" . mysql_real_escape_string($filepath)."'993 WHERE `path` RLIKE '^" . mysql_real_escape_string($filepath)."\..{3}$' 994 994 AND `parent_album`=".intval($album["id"]); 995 995 $result = run_query($sql); … … 1090 1090 $pic = get_picture_by_id($id); 1091 1091 $album = $pic["parent_album"]; 1092 $rv = $config["baseurl"]. $pic["path"];1092 $rv = $config["baseurl"].substr($pic['path'], 0, -4); 1093 1093 } 1094 1094 } else { … … 2046 2046 function plogger_get_source_picture_url() { 2047 2047 global $config; 2048 return (!empty($config['allow_fullpic'])) ? $config['gallery url'].'images/'.SmartStripSlashes($GLOBALS["current_picture"]["path"]) : "#";2048 return (!empty($config['allow_fullpic'])) ? $config['gallery_url'].'images/'.SmartStripSlashes($GLOBALS["current_picture"]["path"]) : "#"; 2049 2049 } 2050 2050
