Changeset 9200 for extensions/ContestResults/admin/get_tn.php
- Timestamp:
- Feb 13, 2011, 11:12:58 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ContestResults/admin/get_tn.php
r6782 r9200 4 4 include_once(PHPWG_ROOT_PATH.'include/common.inc.php'); 5 5 6 $ query ="SELECT id, name, file, path, tn_ext6 $image = pwg_query("SELECT id, name, file, path, tn_ext 7 7 FROM " . IMAGES_TABLE . " 8 WHERE id = " . pwg_db_real_escape_string($_GET['image_id']) . ";"; 9 $image = pwg_query($query); 8 WHERE id = " . pwg_db_real_escape_string($_GET['image_id']) . ";"); 10 9 11 if (!pwg_db_num_rows($image)){10 if (!pwg_db_num_rows($image)) { 12 11 $themeconf = $template->get_template_vars('themeconf'); 13 12 $data['TN_SRC'] = $themeconf['admin_icon_dir'] . '/errors.png'; 14 13 $data['IMAGE_NAME'] = 'N/A'; 15 }else{ 14 15 } else { 16 16 $image = pwg_db_fetch_assoc($image); 17 17 $data['TN_SRC'] = get_thumbnail_url($image); … … 20 20 21 21 echo "<img src='" . str_replace('../../.', '', $data['TN_SRC']) . "'/><br>" . $data['IMAGE_NAME']; 22 23 22 ?>
Note: See TracChangeset
for help on using the changeset viewer.