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/Configure.php

    r72 r121  
    11<?php 
    22 
    3 // [COPY 
     3// [NOSTRIP 
    44// ----------------------------------------------------------------- 
    55// Copyright (C) DTLink, LLC.  
     
    1717// OR NON-INFRINGEMENT.  
    1818// ------------------------------------------------------------------ 
    19 // COPY] 
     19// NOSTRIP] 
    2020 
    2121/** 
     
    3535// . ported from formVista. 
    3636// . this version relicensed under HTMLArea license. 
     37// 
     38// 2005-05-01 YmL: 
     39//      .       now generates a backend config file containing install root. 
    3740// --------------------------------------------------------------- 
    3841 
     
    100103        } 
    101104 
     105// path to perl (used by makedocs.pl script) 
     106 
    102107while ( true ) 
    103108        { 
     
    129134                } 
    130135        } 
     136 
     137// URL to Xinha install 
     138 
     139while ( true ) 
     140        { 
     141 
     142        print "\n"; 
     143        print "---------------------------------------------------------\n"; 
     144        print "Xinha needs to know what URL it's installed under.\n"; 
     145        print "(e.g. /xinha or maybe http://some_site.com/somedir/xinha)\n"; 
     146        print "\nURL of Xinha install:\n"; 
     147        print "[" . @$dataExport["XINHA_INSTALL_URL"] . "]:"; 
     148 
     149        $response = fgets( $stdin, 256 ); 
     150                                                                                   
     151   if ( preg_match( "/\S/", $response ) ) 
     152                { 
     153                $response = trim($response); 
     154 
     155        $dataExport[ "XINHA_INSTALL_URL" ] = $response; 
     156 
     157                break; 
     158                } 
     159        else 
     160                { 
     161 
     162                // it's possible we've already looped through this  
     163 
     164                if ( preg_match( "/\S/", @$dataExport[ "XINHA_INSTALL_URL" ] )) 
     165                        break; 
     166 
     167                print( "\nPlease enter the url of your Xinha install.\n" ); 
     168                } 
     169        } 
     170 
     171// We assume the current directory is the root of the Xinha install. 
     172 
     173$dataExport[ "XINHA_INSTALL_ROOT"] = getcwd(); 
    131174 
    132175// --------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.