Changeset 2089 in ExiteCMS for trunk/administration/downloads.php


Ignore:
Timestamp:
12/03/08 17:29:31 (3 years ago)
Author:
WanWizard
Message:

added bbcode editor and bbcode parsing for download and download category descriptions
fixed a few relative link issues in the news main module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/administration/downloads.php

    r2033 r2089  
    133133if (isset($_POST['save_download'])) { 
    134134    $download_title = stripinput($_POST['download_title']); 
    135     $download_description = addslash($_POST['download_description']); 
     135    $download_description = trim(stripinput($_POST['download_description'])); 
    136136    $download_url = stripinput($_POST['download_url']); 
    137137    $download_external = (isset($_POST['download_external']) && isNum($_POST['download_external'])) ? $_POST['download_external'] : 0; 
     
    153153    $data = dbarray($result); 
    154154    $download_title = $data['download_title']; 
    155     $download_description = stripslashes($data['download_description']); 
     155    $download_description = $data['download_description']; 
    156156    $download_url = $data['download_url']; 
    157157    $download_license = $data['download_license']; 
     
    260260$variables['download_external'] = $download_external; 
    261261 
     262// load the hoteditor if needed 
     263if ($settings['hoteditor_enabled'] && (!iMEMBER || $userdata['user_hoteditor'])) { 
     264    define('LOAD_HOTEDITOR', true); 
     265} 
     266 
    262267// panel definitions 
    263268$template_panels[] = array('type' => 'body', 'name' => 'admin.downloads', 'title' => $title, 'template' => 'admin.downloads.tpl', 'locale' => "admin.downloads"); 
Note: See TracChangeset for help on using the changeset viewer.