Ignore:
Timestamp:
02/16/10 23:32:20 (10 years ago)
Author:
plg
Message:

feature 1409 added: new tab "Settings".

Note: I would have like to use jQuery UI sliders for resize dimensions and
image quality BUT I can't even find the documentation of the very old version
of jQuery UI we use. I'll implement theses widget when integrating UploadForm
into trunk (with jQuery + jQuery UI updated).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/upload_form/upload.php

    r4895 r4897  
    2020// +-----------------------------------------------------------------------+ 
    2121 
    22 if( !defined("PHPWG_ROOT_PATH") ) 
     22if (!defined('UPLOAD_FORM_BASE_URL')) 
    2323{ 
    2424  die ("Hacking attempt!"); 
    2525} 
    26  
    27 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); 
    28 include_once(UPLOAD_FORM_PATH.'include/functions_upload.inc.php'); 
    29 load_language('plugin.lang', UPLOAD_FORM_PATH); 
    30  
    31 $admin_base_url = get_root_url().'admin.php?page=plugin&section=upload_form%2Fupload.php'; 
    32  
    33 // +-----------------------------------------------------------------------+ 
    34 // | Check Access and exit when user status is not ok                      | 
    35 // +-----------------------------------------------------------------------+ 
    36 check_status(ACCESS_ADMINISTRATOR); 
    3726 
    3827// +-----------------------------------------------------------------------+ 
     
    323312    } 
    324313 
    325     $page['batch_link'] = $admin_base_url.'&batch='.implode(',', $image_ids); 
     314    $page['batch_link'] = UPLOAD_FORM_BASE_URL.'&batch='.implode(',', $image_ids); 
    326315  } 
    327316} 
     
    330319// |                             template init                             | 
    331320// +-----------------------------------------------------------------------+ 
    332  
    333 $template->set_filenames( 
    334   array( 
    335     'plugin_admin_content' => dirname(__FILE__).'/upload.tpl' 
    336     ) 
    337   ); 
    338321 
    339322$template->assign( 
    340323    array( 
    341       'F_ADD_ACTION'=> $admin_base_url, 
     324      'F_ADD_ACTION'=> UPLOAD_FORM_BASE_URL, 
    342325      'plugin_path' => UPLOAD_FORM_PATH, 
    343326    ) 
     
    360343    array( 
    361344      'upload_mode' => $upload_mode, 
    362       'switch_url' => $admin_base_url.'&upload_mode='.$upload_switch, 
     345      'switch_url' => UPLOAD_FORM_BASE_URL.'&upload_mode='.$upload_switch, 
    363346      'upload_id' => md5(rand()), 
    364347      'session_id' => session_id(), 
Note: See TracChangeset for help on using the changeset viewer.