Changeset 15958


Ignore:
Timestamp:
06/23/12 01:52:33 (7 years ago)
Author:
mistic100
Message:

generate a uniq name for upload banners, instead of keeping original name

Location:
extensions/header_manager/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/header_manager/admin/add.php

    r15922 r15958  
    8888  if (count($page['errors']) == 0) 
    8989  { 
    90     $file['filename'] = str2url(get_filename_wo_extension($file['name'])).'.'.get_extension($file['name']); 
     90    $file['filename'] = date('Ymd').'-'.uniqid().'.'.get_extension($file['name']); 
    9191    move_uploaded_file($file['tmp_name'], HEADER_MANAGER_DIR . $file['filename']); 
    9292     
  • extensions/header_manager/admin/template/add.tpl

    r15922 r15958  
    11{combine_css path=$HEADER_MANAGER_PATH|@cat:"admin/template/style.css"} 
    22 
    3 <div class="titrePage" style="float:right;margin-top:-2em;"> 
     3<div class="titrePage"> 
    44        <h2>Header Manager</h2> 
    55</div> 
  • extensions/header_manager/admin/template/config.tpl

    r15854 r15958  
    88{/literal}{/footer_script} 
    99 
    10 <div class="titrePage" style="float:right;margin-top:-2em;"> 
     10<div class="titrePage"> 
    1111        <h2>Header Manager</h2> 
    1212</div> 
Note: See TracChangeset for help on using the changeset viewer.