Changeset 600
- Timestamp:
- 06/22/09 19:11:40 (15 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
plog-includes/plog-functions.php (modified) (2 diffs)
-
plog-xml.php (modified) (2 diffs)
-
plogger.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plog-includes/plog-functions.php
r598 r600 387 387 <input class="submit" type="submit" value="'.plog_tr('Search').'" /> 388 388 </div>'; 389 if (!$config['use_mod_rewrite'] && !empty($config['query_args'])) { 390 $query = array(); 391 $query_args = explode('&', $config['query_args']); 392 foreach ($query_args as $value) { 393 $query = explode('=', $value); 394 $output .= "\n\t\t\t\t\t\t".'<input type="hidden" name="'.$query[0].'" value="'.$query[1].'" />'; 389 if (!$config['use_mod_rewrite']) { 390 $output .= "\n\t\t\t\t\t".'<input type="hidden" name="level" value="search" />'; 391 if (!empty($config['query_args'])) { 392 $query = array(); 393 $query_args = explode('&', $config['query_args']); 394 foreach ($query_args as $value) { 395 $query = explode('=', $value); 396 $output .= "\n\t\t\t\t\t".'<input type="hidden" name="'.$query[0].'" value="'.$query[1].'" />'; 397 } 395 398 } 396 399 } … … 640 643 if ($orig_width <= $thumb_config['size'] && $orig_height <= $thumb_config['size']) { 641 644 // if fullsize image access is disabled, copy the file to the thumbs folder 642 if ( !$config['allow_fullpic']) {645 if ($config['allow_fullpic'] == 0) { 643 646 copy($source_file_name,$thumbpath); 644 647 return $thumburl; -
trunk/plog-xml.php
r591 r600 175 175 // Put together the tag attributes 176 176 foreach ($collection as $var => $val) { 177 $xml .= ' '.$var.'="'.htmlspecialchars($val).'"';177 $xml .= ' '.$var.'="'.htmlspecialchars($val).'"'; 178 178 } 179 179 … … 200 200 } 201 201 202 $album['album_path'] = sanitize_filename($album['collection_name']).'/'.sanitize_filename($album['album_name']).'/'; 202 203 $album['thumb_path'] = 'plog-thumb.php?id='.$album['thumbnail_id']; 203 204 204 205 $xml .= '<album'; 205 206 foreach ($album as $var => $val) { 206 $xml .= ' '.$var.'="'.htmlspecialchars($val).'"';207 $xml .= ' '.$var.'="'.htmlspecialchars($val).'"'; 207 208 } 208 209 $xml .= '>'; -
trunk/plogger.php
r597 r600 15 15 // The following line calculates the path in the album and excludes any subdirectories if 16 16 // Plogger is installed in one 17 $path = join('/', array_diff(explode('/', $_ REQUEST['path']), explode('/', $_SERVER['PHP_SELF'])));17 $path = join('/', array_diff(explode('/', $_SERVER['REQUEST_URI']), explode('/', $_SERVER['PHP_SELF']))); 18 18 $resolved_path = resolve_path($path); 19 19 if (is_array($resolved_path)) {
Note: See TracChangeset
for help on using the changeset viewer.
