Ignore:
Timestamp:
03/21/05 17:46:51 (15 years ago)
Author:
yermol
Message:

now uses PHP_SELF to figure out installation directory URL.
changed plugin to plugin and f to function everywhere.
updated README.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/ImageManager/backend.php

    r43 r48  
    2020* entry point. backend.php expects at least two URL variable parameters:  
    2121* 
    22 * plugin=ImageManager   for future expansion; identify the plugin being requested. 
    23 * f=thumbs|images|editorFrame|editor|manager  function being called. 
     22* __plugin=ImageManager   for future expansion; identify the plugin being requested. 
     23* __function=thumbs|images|editorFrame|editor|manager  function being called. 
    2424* 
    2525* Having a single entry point that strictly adheres to a defined interface will  
     
    5656// used by ImageManager is in the same files as the PHP code ...) 
    5757 
    58 if ( @$formVars[ "plugin" ] != "ImageManager" ) 
     58if ( @$formVars[ "__plugin" ] != "ImageManager" ) 
    5959        { 
    6060        // not for us. 
     
    6969// function request. 
    7070 
    71 _ddt( __FILE__, __LINE__, "backend.php(): handling function '" . $formVars[ "f" ] . "' base_dir is '" . $IMConfig["base_dir"] . "'" ); 
     71_ddt( __FILE__, __LINE__, "backend.php(): handling function '" . $formVars[ "__function" ] . "' base_dir is '" . $IMConfig["base_dir"] . "'" ); 
    7272 
    73 switch ( @$formVars[ "f" ] ) 
     73switch ( @$formVars[ "__function" ] ) 
    7474        { 
    7575 
Note: See TracChangeset for help on using the changeset viewer.