Ignore:
Timestamp:
Feb 13, 2011, 11:12:58 AM (13 years ago)
Author:
mistic100
Message:

ContestResults :

  • Code revision
  • Add Letton (lv_LV) language, thanks to Aivars Baldone
  • Delete display options
  • Fix languages bugs
  • Improve public appearence
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContestResults/admin/get_tn.php

    r6782 r9200  
    44include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
    55
    6 $query = "SELECT id, name, file, path, tn_ext
     6$image = pwg_query("SELECT id, name, file, path, tn_ext
    77        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']) . ";");
    109
    11 if(!pwg_db_num_rows($image)){
     10if (!pwg_db_num_rows($image)) {
    1211        $themeconf = $template->get_template_vars('themeconf');
    1312        $data['TN_SRC'] = $themeconf['admin_icon_dir'] . '/errors.png';
    1413        $data['IMAGE_NAME'] = 'N/A';
    15 }else{
     14       
     15} else {
    1616        $image = pwg_db_fetch_assoc($image);
    1717        $data['TN_SRC'] = get_thumbnail_url($image);
     
    2020
    2121echo "<img src='" . str_replace('../../.', '', $data['TN_SRC']) . "'/><br>" . $data['IMAGE_NAME'];
    22 
    2322?>
Note: See TracChangeset for help on using the changeset viewer.