Changeset 531
- Timestamp:
- 04/22/08 15:35:58 (8 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
admin/plog-admin-functions.php (modified) (2 diffs)
-
plog-functions.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/plog-admin-functions.php
r530 r531 133 133 VALUES 134 134 ('".$albumdata['collection_id']."', 135 '".$albumdata['album_id']."','".mysql_real_escape_string($picture_path)."', 135 '".$albumdata['album_id']."', 136 '".mysql_real_escape_string($picture_path)."', 136 137 NOW(), 137 138 NOW(), … … 410 411 $album_path = $row['album_path']; 411 412 412 $new_path = mysql_real_escape_string( $target_name."/".$album_path."/".$filename);413 $new_path = mysql_real_escape_string(SmartStripSlashes($target_name."/".$album_path."/".$filename)); 413 414 414 415 // update database -
trunk/plog-functions.php
r530 r531 1071 1071 $result = run_query($query); 1072 1072 $row = mysql_fetch_assoc($result); 1073 $rv = $config["baseurl"].rawurlencode( $row["path"]);1073 $rv = $config["baseurl"].rawurlencode(SmartStripSlashes($row["path"])); 1074 1074 } else if ($level == "album") { 1075 1075 $query = "SELECT … … 1082 1082 $row = mysql_fetch_assoc($result); 1083 1083 1084 $rv = $config["baseurl"].rawurlencode( $row["collection_path"]) . '/' . rawurlencode($row["album_path"]);1084 $rv = $config["baseurl"].rawurlencode(SmartStripSlashes($row["collection_path"])) . '/' . rawurlencode(SmartStripSlashes($row["album_path"])); 1085 1085 1086 1086 // I need to give additional arguments to the url-s … … 1093 1093 $pic = get_picture_by_id($id); 1094 1094 $album = $pic["parent_album"]; 1095 $rv = $config["baseurl"].substr( $pic['path'], 0, -4);1095 $rv = $config["baseurl"].substr(SmartStripSlashes($pic['path']), 0, -4); 1096 1096 } 1097 1097 } else { … … 2117 2117 2118 2118 function plogger_thumb_nav_item($link, $title, $img_path, $class = '') { 2119 return "\t\t<li class= '$class'><a href='$link' title='$title'><img src='$img_path'/></a></li>\n";2119 return "\t\t<li class=\"".$class."\"><a href=\"".$link."\" title=\"".$title."\"><img src=\"".$img_path."\" /></a></li>\n"; 2120 2120 } 2121 2121
