Changeset 17487 for extensions/lightbox/get_content.php
- Timestamp:
- Aug 9, 2012, 2:12:07 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/lightbox/get_content.php
r3609 r17487 1 1 <?php 2 // Embedded Videos 2 3 3 4 define('PHPWG_ROOT_PATH','../../'); … … 9 10 if (!isset($_GET['imgid']) or !is_numeric($_GET['imgid'])) 10 11 { 11 die; 12 exit; 13 } 14 15 if (empty($pwg_loaded_plugins['gvideo']) or !function_exists('gvideo_element_content')) 16 { 17 exit; 12 18 } 13 19 … … 16 22 $query = ' 17 23 SELECT * 18 FROM '.IMAGES_TABLE.' INNER JOIN '.IMAGE_CATEGORY_TABLE.' ON id=image_id 24 FROM '.IMAGES_TABLE.' 25 INNER JOIN '.IMAGE_CATEGORY_TABLE.' 26 ON id=image_id 19 27 WHERE id='.$image_id 20 28 . get_sql_condition_FandF( … … 24 32 LIMIT 1'; 25 33 26 $picture ['current']= mysql_fetch_assoc( pwg_query($query) );34 $picture = mysql_fetch_assoc( pwg_query($query) ); 27 35 28 if (empty($picture ['current']))36 if (empty($picture) or !$picture['is_gvideo']) 29 37 { 30 die;38 exit; 31 39 } 32 40 33 // PY Gvideo 34 if (!empty($py_addext) and in_array(get_extension($picture['current']['path']), $py_addext)) 35 { 36 $extension = strtolower(get_extension($picture['current']['path'])); 37 $picture['current']['path'] = get_element_url($picture['current']); 38 include(GVIDEO_PATH.'gvideo.php'); 39 echo $content; 40 } 41 echo gvideo_element_content(null, $picture); 41 42 42 43 ?>
Note: See TracChangeset
for help on using the changeset viewer.