Changeset 21240
- Timestamp:
- Mar 6, 2013, 2:40:39 PM (11 years ago)
- Location:
- extensions/lightbox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/lightbox/functions.inc.php
r20207 r21240 44 44 return htmlspecialchars('<a href="'.$url.'">'.$name.'</a>'); 45 45 } 46 elseif ($name_link == 'high' and $picture['has_high'] and $user['enabled_high']=='true')46 elseif ($name_link == 'high') 47 47 { 48 include_once(PHPWG_ROOT_PATH . 'include/functions_picture.inc.php'); 49 return htmlspecialchars('<a href="javascript:phpWGOpenWindow(\''.get_high_url($picture).'\',\'\',\'scrollbars=yes,toolbar=no,status=no,resizable=yes\')">'.$name.'</a>'); 48 $src_image = new SrcImage($picture); 49 50 if ($src_image->is_original() and 'true' == $user['enabled_high']) 51 { 52 $name.= ' ('.l10n('Display').' '.l10n('Original').')'; 53 return htmlspecialchars('<a href="javascript:phpWGOpenWindow(\''.$src_image->get_url().'\',\'\',\'scrollbars=yes,toolbar=no,status=no,resizable=yes\')" rel="nofollow">'.$name.'</a>'); 54 } 50 55 } 51 56 return $name; -
extensions/lightbox/get_content.php
r20207 r21240 32 32 LIMIT 1'; 33 33 34 $picture = mysql_fetch_assoc( pwg_query($query) );34 $picture = pwg_db_fetch_assoc( pwg_query($query) ); 35 35 36 36 if (empty($picture) or !$picture['is_gvideo']) -
extensions/lightbox/save_history.php
r20207 r21240 14 14 } 15 15 16 $image_id = mysql_real_escape_string($imgid[1]);16 $image_id = pwg_db_real_escape_string($imgid[1]); 17 17 18 18 $query = 'UPDATE '.IMAGES_TABLE.' SET hit=hit+1 WHERE id = '.$image_id.';';
Note: See TracChangeset
for help on using the changeset viewer.