Ignore:
Timestamp:
05/07/05 21:19:31 (14 years ago)
Author:
yermol
Message:

htmlarea.js

. more debugging messages added.
. added HTMLArea.Config.linkReplacementMode which can be either

fullyqualified (the old default behavior) or absolute.


When set to fullyqualified all absolute links (e.g. /somepath) will be changed to fullyqualified URLS (e.g. http://yoursite/somepth).


When set to absolute, all fullyqualified urls back to the current site
will be changed to absolute (e.g. httpyoursite/somepath to /somepath)
making the Xinha generated content portable between sites.


( see HTMLArea.prototype.outwardHtml() )


. bugfix - if plugin .js file has a parse error htmlarea will only try to load

it a configurable number of times before popping up an error message.


backends/backend.php

. initial unified backend created. Requests to this backend are routed

to the corresponding plugin specific backend.php file.


backends/backend_conf.php

. a central server side configuration file has been created for the use

of plugin serverside code.

. all backends hooked into this scheme must include the central config file.

ImageManager?

. modified the config to allow overriding default values.
. default image directory is now xinha/examples/images
. added debugging trace messages which are tagged with the ImageManager? name.
. now uses unified backend.

Linker

. includes central config.
. default directory is now the xinha/examples directory (to avoid scan.php security

problem)

. added debugging trace messages which are tagged with the Linker name.
. links selected from the tree are now displayed in absolute instead of fully qualified

fashion.

. on edit the link that was previously selected is highlighted.
. on edit the selected link is scrolled to if it's outside the viewable area.
. if scan.php returns some kind of error or invalid javascript Linker now pops up

a nice descriptive error message.


. bugfix - same pattern as in loading plugins. If there is some error in loading the directory listing Linker will only attempt it a few times before giving up and

displaying a nice error.


dTree.js

. added clear_s() method to clear the selection
. added getNodeElement() method to return the <a ..> element for a given node.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/unified_backend/plugins/ImageManager/backend.php

    r48 r121  
    1 <? 
     1<?php 
    22 
    33/** 
     
    88* 
    99* Unified backend sponsored by DTLink Software, http://www.dtlink.com 
    10 * Implementation by Yermo Lamers, http://www.formvista.com 
     10* Implementation by Yermo Lamers, http://www.formvista.com/contact.html 
    1111* 
    1212* (c) DTLink, LLC 2005. 
     
    4141*/ 
    4242 
    43 include_once( "ddt.php" ); 
     43include_once( "../ddt/ddt.php" ); 
    4444 
    4545// uncomment to turn on debugging 
    4646// _ddtOn(); 
    4747 
     48// --------------------------------------------------------------- 
     49 
     50/** 
     51* ImageManager backend callback 
     52* 
     53* After including this file, the unified backend.php script 
     54* will call this function 
     55*/ 
     56 
     57function imagemanager_callback( $formVars ) 
     58{ 
     59 
     60global $IMConfig; 
     61 
    4862_ddt( __FILE__, __LINE__, "backend.php: top with query '" . $_SERVER["PHP_SELF"] . "' string '" . $_SERVER["QUERY_STRING"] . "'" ); 
    49  
    50 $formVars = empty($_POST) ? $_GET : $_POST; 
    5163 
    5264// make sure the request is for us (this gives us the ability to eventually organize 
     
    122134return false ; 
    123135 
     136}       // end of ImageManager_plugin 
     137 
    124138// END 
    125139 
Note: See TracChangeset for help on using the changeset viewer.