mirror of
https://github.com/jimeh/dlist.git
synced 2026-02-18 23:46:39 +00:00
modified thumbnail url pattern to make it shorter, and save some bandwidth when displaying very long file lists (and it also looks prettier :D)
git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@37 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
@@ -30,7 +30,7 @@ require_once('libs/imagethumb.lib.php');
|
||||
$src = ( !empty($_GET['src']) ) ? $_GET['src'] : false ;
|
||||
$w = ( !empty($_GET['w']) && preg_match("/[0-9]{1,4}/", $_GET['w']) ) ? $_GET['w'] : null ;
|
||||
$h = ( !empty($_GET['h']) && preg_match("/[0-9]{1,4}/", $_GET['w']) ) ? $_GET['h'] : null ;
|
||||
$q = ( !empty($_GET['q']) ) ? $_GET['q'] : false ;
|
||||
$q = ( !empty($_GET['q']) && $_GET['q'] >= 0 && $_GET['q'] <= 100) ? $_GET['q'] : false ;
|
||||
|
||||
//TODO load sizes from config instead of from $_GET vars for security reasons...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user