Changeset 1181

Show
Ignore:
Timestamp:
02/24/07 06:06:13 (6 years ago)
Author:
max-horvath
Message:

2007-02-24 Max Horvath <max.horvath@…>

  • Fix ticket #300: SYSTEM_PATH not being respected in config.php.
Location:
trunk/wifidog-auth
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/CHANGELOG

    r1180 r1181  
     12007-02-24 Max Horvath <max.horvath@freenet.de> 
     2        * Fix ticket #300: SYSTEM_PATH not being respected in config.php. 
     3 
    142007-02-07 Damien Raude-Morvan <drazzib@drazzib.com> 
    2         * Fix ticket #298 : php-ldap module is lowercase in Dependencies array, update Dependencies::check() calls. 
     5        * Fix ticket #298 : php-ldap module is lowercase in Dependencies array, 
     6          update Dependencies::check() calls. 
    37 
    482007-02-05 Damien Raude-Morvan <drazzib@drazzib.com> 
    5         * Try to fix ticket #295 and #297 by including parent class (Content.php) in File.php. 
    6         * ... and remove unnecessary include of Avatar content type in User.php : All contents types are included by Content.php getAvailableContentTypes() call. 
     9        * Try to fix ticket #295 and #297 by including parent class (Content.php) in 
     10          File.php. 
     11        * ... and remove unnecessary include of Avatar content type in User.php: All 
     12          contents types are included by Content.php getAvailableContentTypes() call. 
    713 
    8142007-01-28 François Proulx <francois.proulx@gmail.com> 
    915        * First iteration of user profiles completed. 
    1016        * Need to improve Avatar admin UI 
    11          
     17 
    12182007-01-19 Benoit Grégoire  <bock@step.polymtl.ca> 
    1319        * dump_initial_data_postgres.sh:  Initial node wasn't setup correctly. 
    1420        * INSTALL:  Fix some obsolete instructions for database backup and restore 
    15          
     21 
    16222007-01-18 Benoit Grégoire  <bock@step.polymtl.ca> 
    1723        * Updated french translation curtesy of http://zapquebec.org 
    18          
     24 
    19252007-01-16 François Proulx <francois.proulx@gmail.com> 
    2026        * ContentTypeFilter : Now supports filters stored in the DB, backward compatible 
     
    3036        * It is now possible for an administrator to manually validate or lock-out a user 
    3137        * Add new SimpleString content type 
    32         * SmartyWifidog.php:  Fix #282 with a slightly dirty workround to the chicken and the egg smarty variables assignment problem.   
     38        * SmartyWifidog.php:  Fix #282 with a slightly dirty workround to the chicken and the egg smarty variables assignment problem. 
    3339                We now extend the fetch method and do our assignment there instead of in the constructor. 
    34                          
     40 
    35412007-01-15 Benoit Grégoire  <bock@step.polymtl.ca> 
    3642        * Sync initial schema and translations 
     
    4046        * Dependencies.php, AuthenticatorRadius.php:  Fix bug #287 (Dependencies not being detected properly) 
    4147        * Content.php: Make hasDisplayableMetadata() consider Authors, and make it a bit faster. 
    42          
     48 
    43492007-01-13 Benoit Grégoire  <bock@step.polymtl.ca> 
    4450        * Content.php:  Add setUserUIMainDisplayContent() and setUserUIMainInteractionArea() 
    4551        to simplify writing subclasses and port all content subclasses to the new API. 
    46         * Content.php:  Add a new callcack method, isTextualContent(), to be used by  
     52        * Content.php:  Add a new callcack method, isTextualContent(), to be used by 
    4753        ContentFilters.  Indicates that the content is suitable to store plain text. 
    48         * ContentGroup.php:  No longer warn about empty ContentGroup in getUserUI(),  
     54        * ContentGroup.php:  No longer warn about empty ContentGroup in getUserUI(), 
    4955        as this may now be perfectly normal if all content has expired. 
    5056        * Rework the classes and css for user_ui_main_outer, isSimpleContent has been 
    5157        eliminated and hasDisplayableMetadata is now defined is metadata is available. 
    52         This should allow better HTML consistency and simpler CSS, and be closer to what  
     58        This should allow better HTML consistency and simpler CSS, and be closer to what 
    5359        people expect by default.  Content without metadata will display without 
    5460        borders or background, and without margins when inside another content. 
    55         * smarty.resource.string.php:  Add a setter function,  
     61        * smarty.resource.string.php:  Add a setter function, 
    5662        smarty_resource_string_add_string() that must be used before calling the smarty 
    5763         function.  Using the name as the the template was far to brittle.  This makes 
    5864         the SmartyTemplate content much more reliable, and quite possibly faster. 
    59         * ShoutBox: A very basic but already extensible implementation of the  
    60         shoutbox use case.  Shows the last five shouts.  Can connect to another web  
     65        * ShoutBox: A very basic but already extensible implementation of the 
     66        shoutbox use case.  Shows the last five shouts.  Can connect to another web 
    6167        site through a javascript extension. 
    62         * SimpleSmartyTemplate:  Add a simple version of the SmartyTemplate content  
     68        * SimpleSmartyTemplate:  Add a simple version of the SmartyTemplate content 
    6369        type 
    64          
     70 
    65712007-01-03 Benoit Grégoire  <bock@step.polymtl.ca> 
    6672        * FormSelectGenerator.php: Fix incorrect $this reference in isPresent().  The bug would only manifest 
     
    7379        * Cache.php:  Performance optimization when caching is disabled. 
    7480        * Fix bug where num online users in the portal was broken. 
    75          
     81 
    76822007-01-02 François Proulx <francois.proulx@gmail.com> 
    7783        * Updated the SQL schema initial schema 
    78          
     84 
    79852006-12-31 Benoit Grégoire  <bock@step.polymtl.ca> 
    8086        * More Smarty cleanup 
    81         * Content.php:  Bugfix:  metadata wasn't deleted along with the rest of the  
     87        * Content.php:  Bugfix:  metadata wasn't deleted along with the rest of the 
    8288        content upon deletion. 
    83          
     89 
    84902006-12-30 Benoit Grégoire  <bock@step.polymtl.ca> 
    8591        * install.php:  Move path verification to the first page, and make it clearer.  Fix PHP warnings. 
    8692        * wifidog/include/smarty.resource.string.php:  A smarty resource plugin to parse a smarty template from a string 
    87         * SmartyTemplate:  Very basic but functionnal commit of the new Smarty content type.   
     93        * SmartyTemplate:  Very basic but functionnal commit of the new Smarty content type. 
    8894        IMPORTANT NOTE:  This will eventually obsolete IFrameRest, which will be removed. 
    8995        * Continue cleaning-up/standardizing Smarty variable usage. 
    90          
     96 
    91972006-12-12 Benoit Grégoire  <bock@step.polymtl.ca> 
    9298        * Fix all PHP 5.2 compatibility issues I could find.  This needs further testing 
     
    96102 
    971032006-12-12 Benoit Grégoire  <bock@step.polymtl.ca> 
    98         * install.php, Dependencies.php:  Centralize Dependency detection (next is to centralize  
     104        * install.php, Dependencies.php:  Centralize Dependency detection (next is to centralize 
    99105        dependency installation code). 
    100106        * config.php: Remove more obsolete config directives. 
     
    103109        * install.php:  Fix a few problems caused by obsolete magpierss detection code. 
    104110        * install.php, config.php:  Remove the obsolete PHLICKR_SUPPORT option. 
    105          
     111 
    1061122006-11-30 Benoit Grégoire  <bock@step.polymtl.ca> 
    107113        * schema_validate.php:  Mute annoying ob_flush() notices. 
    108114        * Node.php:  Add missing default parameter to getSelectNodeUI() 
    109         * get_stylesheet:  Fix date calculations that broke download.  
    110          
     115        * get_stylesheet:  Fix date calculations that broke download. 
     116 
    1111172006-11-29 Benoit Grégoire  <bock@step.polymtl.ca> 
    112118        Sync with my main developpement environement: 
    113119        * Performance optimization pass:  Collect a few low hagning fruits 
    114         by implementing basic instance caching for classes Server, Network, Nodes, Content and User.  
    115          It's no replacement for a real ORM, but is cuts way down on duplicate SQL queries and  
     120        by implementing basic instance caching for classes Server, Network, Nodes, Content and User. 
     121         It's no replacement for a real ORM, but is cuts way down on duplicate SQL queries and 
    116122         object instanciation for a single request. 
    117123        * Langstring.php:  Slight performance optimization for admin interface, support for proper modification date. 
     
    122128        * Node.php, Utils.php:  Sort by case insensitive name, and show gateway id in node selectors 
    123129        * BannerAdGroup.php:  Support group constraint of image size for all images in the group. 
    124         * ContentReport.php:  Finish basic content reporting.   
    125         Note that for content that displayed before the logging fixes commited 2006-11-14, the display count will be underestimated:   
     130        * ContentReport.php:  Finish basic content reporting. 
     131        Note that for content that displayed before the logging fixes commited 2006-11-14, the display count will be underestimated: 
    126132        Display before then was only counted once per user per node.  Also File clickthrough wasn't logged (includes hyperlinked pictures). 
    127133        * Content.php:  Implement a Key-Value Pair infrastructure.  In the future, this will often allow adding new content types without 
    128134        having to modify the schema.  See the Content class documentation. 
    129135        * Fix various small UI issues. 
    130          
     136 
    1311372006-11-29 Benoit Grégoire  <bock@step.polymtl.ca> 
    132138        * common.php:  Fix the value of SESS_NODE_ID_VAR, it got overwritten by SESS_GW_ID_VAR. 
    133139        Caused problems with logout. 
    134          
     140 
    1351412006-11-27 Benoit Grégoire  <bock@step.polymtl.ca> 
    136         * Try to fix #270:  
     142        * Try to fix #270: 
    137143        * DateTime.php:  Rename class to DateTimeWD because of the stunt they pulled in PHP 5.2 
    138144        * Content and derived classes:  Make all constructors protected. 
     
    1401462006-11-26 Benoit Grégoire  <bock@step.polymtl.ca> 
    141147        * lost_username.tpl, lost_password.tpl, resend_validation.tpl:  Fix #259 by commenting out 
    142         all Javascript. I hate removing outside contributions, but the lost_username,  
    143         lost password and re-send validation email have been broken for months and no one  
     148        all Javascript. I hate removing outside contributions, but the lost_username, 
     149        lost password and re-send validation email have been broken for months and no one 
    144150        stepped-in to fix it. 
    145           
     151 
    1461522006-11-23 Benoit Grégoire  <bock@step.polymtl.ca> 
    147153        * Fix bug in node creation 
     
    149155        * Clarify error messages and description for the geocoder. 
    150156        * Make the google-map locator for nodes use the network center coordinates. 
    151           This change makes it usable when you didn't use the geocoder first.  
     157          This change makes it usable when you didn't use the geocoder first. 
    152158        * Show the gateway id in the technical nodelist. 
    153          
     159 
    1541602006-11-22 Benoit Grégoire  <bock@step.polymtl.ca> 
    155161        * Fix minor problems with template using obsolete constants 
    156162        * Delete a bunch of unused templates 
    157          
     163 
    1581642006-11-22 Benoit Grégoire  <bock@step.polymtl.ca> 
    159165        * Fix broken auth 
    160166        * Fix broken portal when called from gateway 
    161          
     167 
    1621682006-11-22 Benoit Grégoire  <bock@step.polymtl.ca> 
    163169        * Major schema update (this one is going to make your database grind for a while, sorry 
    164170        about that...) 
    165         Fix a long standing design problem with the node table, where the ID could be changed.   
     171        Fix a long standing design problem with the node table, where the ID could be changed. 
    166172        This caused performance problems when replacing gateways, and caused problems when 
    167173        exporting data to other systems.  Among other things, it will allow us to finally 
    168174         finish the JiWire output. 
    169175        * Stylesheet.php:  New content type.  Takes advantage of two pass content display to create stylesheets to be used only at a specific node, or with a specific content. 
    170          
     176 
    1711772006-11-21 Benoit Grégoire  <bock@step.polymtl.ca> 
    172178        * Change schema update method.  Will now do one transaction 
     
    175181          starting over when there is a problem. 
    176182          Fixes schema update problems with the last commit 
    177          
     183 
    1781842006-11-21 Benoit Grégoire  <bock@step.polymtl.ca> 
    179185        * RssAggregator.php:  At long last, sync with FeedPressReview 2.0 
    180186         http://projects.coeus.ca/feedpressreview/ (formerly rsspressreview)  and 
    181187          make most of it's features directly available from the web interface. 
    182         This gives us:           
     188        This gives us: 
    183189        -Now based on SimplePie http://simplepie.org/ (magpie was no longuer maintained) 
    184190        -Now unobtrusively displays almost all item and feed metadata 
     
    189195        -More real-estate efficient, and improved UI 
    190196        The admin interface is now also more real-estate efficient (uses the hover help code commited by François that no one used yet). 
    191          
     197 
    192198        Warning: This changes the dependencies of the auth server.  Your RSS feeds will be disabled untill you re-run the install script. 
    193199        * gw_message.php:  Fix validation period not being displayed. 
     
    202208        * File.php:  Clickthrough weren't logged, DOH! 
    203209        * User.php:  Error message on validation expired didn't properly output the validation grace time. 
    204         * Statistics.php:  Fix #271: Getting statistics for a single MAC address was broken.   
     210        * Statistics.php:  Fix #271: Getting statistics for a single MAC address was broken. 
    205211        * NodeListXML.php:  Small patch by Josephus to add the number of online users 
    206212        * Improve CPU usage of the content manager 
    207213        * AbstractDb:  Fix query time not being displayed in debug mode if profiling was turned off. 
    208214                                        Add total execution time statistics. 
    209         * Fix logging of content clickthrough and display.  Unique users and node data is reliable for existing data.   
     215        * Fix logging of content clickthrough and display.  Unique users and node data is reliable for existing data. 
    210216                Number of prints is underestimated (repeat prints for the same user, same content at same node didn't get counted) 
    211                  for data before this patch.   
     217                 for data before this patch. 
    212218                Same with number of clickthrough for File content types and derivatives (picture, etc.). 
    213219        * ContentReport.php:  Add content report (does not support most options yet, but still very usefull). 
    214          
     220 
    2152212006-11-13 Benoit Grégoire  <bock@step.polymtl.ca> 
    216222        * Make the MainUI, SmartyWifidog and Session and AbstractDb classes singletons 
    217         * Implement two pass content display.  All Content can now implement a prepareGetUserUI(), allowing them to interact with MainUI and other Content before display.   
    218           Allow creating content such as stylesheets, feed accumulators, etc.  
     223        * Implement two pass content display.  All Content can now implement a prepareGetUserUI(), allowing them to interact with MainUI and other Content before display. 
     224          Allow creating content such as stylesheets, feed accumulators, etc. 
    219225        * SmartyWifidog.php Turn on security, begin preparing for standardisation of Smarty variables 
    220226        * New Content type:  Stylesheet.  Allows specific nodes, or even specific content groups to have custom stylesheets. 
     
    2232292006-11-11 Benoit Grégoire  <bock@step.polymtl.ca> 
    224230        * Authenticator.php:  Critical: Fix SQL query syntax in acctStart() 
    225          
     231 
    2262322006-11-07 Benoit Grégoire  <bock@step.polymtl.ca> 
    227233        * install.php:  Fix password generation I inadvertently broke.  Remove misleading info about SSL 
    228234 
    2292352006-11-07 Benoit Grégoire  <bock@step.polymtl.ca> 
    230         * install.php:  Put an end of line after the password, make it easier to read.   
     236        * install.php:  Put an end of line after the password, make it easier to read. 
    231237        Make the install script check the permissions of lib/smarty/plugins directory to avoid smarty errors 
    232238        * Statistics.php:  A little gift for France wireless:  Make aggregate statistics available across networks 
    233          
     239 
    2342402006-11-07 Benoit Grégoire  <bock@step.polymtl.ca> 
    235241        * Fix # 268, #269 as well as greg's problems by moving all token and registration date arithmetics 
    236          to the database, and standardize on SQL-standard CURRENT_TIMESTAMP.   
    237         Fixes operational problems when PHP and PostGres don't have the same timezone  
    238         (which appears to be the case on Fedora by default).  
     242         to the database, and standardize on SQL-standard CURRENT_TIMESTAMP. 
     243        Fixes operational problems when PHP and PostGres don't have the same timezone 
     244        (which appears to be the case on Fedora by default). 
    239245        Note that the page.php script still has PHP date arithmetics, but at least should be self-consistent. 
    240246 
     
    251257        * Some documentation updates for content filters 
    252258        * Content.php:  Add isNotContentType() method. 
    253          
     259 
    2542602006-09-07 Benoit Grégoire  <bock@step.polymtl.ca> 
    255261        * Access to the Content manager was broken for normal users, again. 
     
    319325        * Sync schemas 
    320326 
    321 2006-09-03 Max Horváth <max.horvath@maxspot.de> 
     3272006-09-03 Max Horváth <max.horvath@freenet.de> 
    322328        * The term SPLASH_ONLY_USER displayed to people visiting the portal has been 
    323329          replaced by the more meaningful term "anonymous user" (fixes #106) 
     
    333339        * Show descriptive status of node (fixes #241) 
    334340 
    335 2006-09-02 Max Horváth <max.horvath@maxspot.de> 
     3412006-09-02 Max Horváth <max.horvath@freenet.de> 
    336342        * Installation script checks for PHP session extension (fixes #139) 
    337343        * Removed "Call-time pass-by-reference has been deprecated" warnings 
     
    369375          content) 
    370376 
    371 2006-08-29 Max Horváth <max.horvath@maxspot.de> 
     3772006-08-29 Max Horváth <max.horvath@freenet.de> 
    372378        * Cleaned up PHPdoc tags 
    373379        * Updated german translation 
     
    379385        * Fix #225 (For both nodes and networks) 
    380386 
    381 2006-08-28 Max Horváth <max.horvath@maxspot.de> 
     3872006-08-28 Max Horváth <max.horvath@freenet.de> 
    382388        * Integrated KML node list export 
    383389        * Integrated PDF node list export 
     
    694700        * Cleaned up a bunch of stale TODOs 
    695701 
    696 2006-03-16 Max Horváth <max.horvath@maxspot.de> 
     7022006-03-16 Max Horváth <max.horvath@freenet.de> 
    697703        * updated language files (new german strings have already been translated) 
    698704        * added LDAP authentication 
     
    716722        * incoming_outgoing_swap.php:  Delete file, closes #85 
    717723 
    718 2006-03-09 Max Horváth <max.horvath@maxspot.de> 
     7242006-03-09 Max Horváth <max.horvath@freenet.de> 
    719725        * fixed small bug in the InterfaceElements class 
    720726        * fixed PHP notices in portal/index.php and Locale class 
     
    724730      template if a user calls the portal from a hotspot or not 
    725731 
    726 2006-03-08 Max Horváth <max.horvath@maxspot.de> 
     7322006-03-08 Max Horváth <max.horvath@freenet.de> 
    727733        * fixed small bug where clicking on the start button at the portal page 
    728734          didn't open the wifidog portal, but the requested page 
     
    730736        * updated PHPdoc generating script 
    731737 
    732 2006-03-07 Max Horváth <max.horvath@maxspot.de> 
     7382006-03-07 Max Horváth <max.horvath@freenet.de> 
    733739        * init_php.php now does a 100% strict check for variable types of 
    734740          elements to be processed when magic_quotes are turned on 
     
    754760        * on node administration page owners have less rights than admins 
    755761 
    756 2006-03-02 Max Horváth <max.horvath@maxspot.de> 
     7622006-03-02 Max Horváth <max.horvath@freenet.de> 
    757763        * converted PNGs to GIFs because Internet Explorer cannot handle alpha 
    758764          transparency of PNGs 
    759765 
    760 2006-02-28 Max Horváth <max.horvath@maxspot.de> 
     7662006-02-28 Max Horváth <max.horvath@freenet.de> 
    761767        * the content selector for an owner could produce notices 
    762768        * the button add existing content in the content manager will only be shown 
     
    793799        * class MainUI now also delivers $isOwner variable for Smarty 
    794800 
    795 2006-02-26 Max Horváth <max.horvath@maxspot.de> 
     8012006-02-26 Max Horváth <max.horvath@freenet.de> 
    796802        * Hotspots map page now uses a direct Javascript call for the link 
    797803          "Show me on the map" (resulting in the browser not jumping to the top of 
     
    807813        * RSS feed of hotspot status page now gets announced in browser 
    808814 
    809 2006-02-25 Max Horváth <max.horvath@maxspot.de> 
     8152006-02-25 Max Horváth <max.horvath@freenet.de> 
    810816        * fixed undefined variable bugs in statistic classes (use of date_from and 
    811817          date_to), variables were processed directly from request, without any 
     
    867873        * Hotspots map page now uses a Smarty template to render HTML page 
    868874 
    869 2006-02-21 Max Horváth <max.horvath@maxspot.de> 
     8752006-02-21 Max Horváth <max.horvath@freenet.de> 
    870876        * fixed access restriction for HTMLeditor in templates folder 
    871877        * fixed XML error in HTMLeditors CSS and HTML templates 
     
    877883          deployed/operational nodes for 5 minutes) 
    878884 
    879 2006-02-17 Max Horváth <max.horvath@maxspot.de> 
     8852006-02-17 Max Horváth <max.horvath@freenet.de> 
    880886        * refactored lost username site - now it also includes the help toolbox 
    881887        * lost username page now focuses input field automaticly (like on login or 
     
    889895          automaticly (like on login or signup page) 
    890896 
    891 2006-02-16 Max Horváth <max.horvath@maxspot.de> 
     8972006-02-16 Max Horváth <max.horvath@freenet.de> 
    892898    * added full PHPdoc documentation to Mail class 
    893899    * added more temporary-email-address-providers to the black-list 
     
    899905          translation file generation 
    900906 
    901 2006-02-15 Max Horváth <max.horvath@maxspot.de> 
     9072006-02-15 Max Horváth <max.horvath@freenet.de> 
    902908        * Login site now uses a Smarty template to render HTML page 
    903909 
    904 2006-02-14 Max Horváth <max.horvath@maxspot.de> 
     9102006-02-14 Max Horváth <max.horvath@freenet.de> 
    905911        * converted Session class to PHP5 style 
    906912        * moved code used used to init PHP into wifidog/include/init_php.php 
     
    932938          file 
    933939 
    934 2006-02-04 Max Horváth <max.horvath@maxspot.de> 
     9402006-02-04 Max Horváth <max.horvath@freenet.de> 
    935941        * MainUI class now uses Smarty templates to render HTML pages 
    936942        * display of debug messages by using $_REQUEST['debug_request'] on any 
     
    963969          more meaningfull output 
    964970 
    965 2006-01-29 Max Horváth <max.horvath@maxspot.de> 
     9712006-01-29 Max Horváth <max.horvath@freenet.de> 
    966972        * WiFiDog now detects APC PHP cache and eAccelerator PHP cache and disables 
    967973          both PHP caches, because WiFiDog currently doesn't run with either of 
     
    978984        * fixed error messages not displaying technical support e-mail address 
    979985 
    980 2006-01-25 Max Horváth <max.horvath@maxspot.de> 
     9862006-01-25 Max Horváth <max.horvath@freenet.de> 
    981987        * a notice message regarding timezones was being displayed when running PHP 
    982988          5.1.0+ due to rewritten date functions of PHP. There is a new config flag 
     
    992998      cannot be found for some reason. 
    993999 
    994 2006-01-23 Max Horváth <max.horvath@maxspot.de> 
     10002006-01-23 Max Horváth <max.horvath@freenet.de> 
    9951001        * Removed compiled PHPdoc documentation 
    9961002        * moved createDoc.sh to "doc" directory, documentation can be generated on 
     
    10191025      refresh() subr, tweaked language 
    10201026 
    1021 2006-01-09 Max Horváth <max.horvath@maxspot.de> 
     10272006-01-09 Max Horváth <max.horvath@freenet.de> 
    10221028        * createDoc.sh: added description of how to install requirements 
    10231029 
     
    10691075        * Tested the new Phlickr package, which fixes URL on Flickr 
    10701076 
    1071 2005-12-28 Max Horváth <max.horvath@maxspot.de> 
     10772005-12-28 Max Horváth <max.horvath@freenet.de> 
    10721078        * Removed BASEPATH define from source - resulting in a better 
    10731079          require-overview 
     
    10901096        * Synched SQL for CVS schema 29 --> 33 
    10911097 
    1092 2005-12-26 Max Horváth <max.horvath@maxspot.de> 
     10982005-12-26 Max Horváth <max.horvath@freenet.de> 
    10931099        * added new headers to every source file 
    10941100        * converted file to represent a tab as four (4) spaces 
     
    10991105        * added caching support to content classes Langstring and TrivialLangstring 
    11001106 
    1101 2005-12-15 Max Horváth <max.horvath@maxspot.de> 
     11072005-12-15 Max Horváth <max.horvath@freenet.de> 
    11021108        * fixed bug in dependencies class when gettext support for PHP is not 
    11031109          available 
    11041110 
    1105 2005-12-14 Max Horváth <max.horvath@maxspot.de> 
     11112005-12-14 Max Horváth <max.horvath@freenet.de> 
    11061112        * fixed bug in config.php:59 ... was unable to select DB server 
    11071113 
    1108 2005-12-08 Max Horváth <max.horvath@maxspot.de> 
     11142005-12-08 Max Horváth <max.horvath@freenet.de> 
    11091115        * added FCKeditor to the supported libraries 
    11101116        * added new content type: HTMLeditor 
     
    11161122          caching class 
    11171123 
    1118 2005-12-06 Max Horváth <max.horvath@maxspot.de> 
     11242005-12-06 Max Horváth <max.horvath@freenet.de> 
    11191125        * fixed SQL bug when calling the "report configuration" page as a node owner 
    11201126 
     
    11221128        * Crunched the Google Maps Div block for better display on small screens 
    11231129 
    1124 2005-12-05 Max Horváth <max.horvath@maxspot.de> 
     11302005-12-05 Max Horváth <max.horvath@freenet.de> 
    11251131        * fixed bug when calling the preview version of a login page 
    11261132 
     
    11381144        * EventLogging class initial checkin 
    11391145 
    1140 2005-11-14 Max Horváth <max.horvath@maxspot.de> 
     11462005-11-14 Max Horváth <max.horvath@freenet.de> 
    11411147        * fixed path to included classes 
    11421148          Guys, please check the paths to included files twice next time you're 
     
    11661172        * Fixed online users link to statistics 
    11671173 
    1168 2005-11-01 Max Horváth <max.horvath@maxspot.de> 
     11742005-11-01 Max Horváth <max.horvath@freenet.de> 
    11691175        * added german translation 
    11701176        * modified gen.sh to include geocoder and statistics classes for the 
  • trunk/wifidog-auth/wifidog/include/common.php

    r1175 r1181  
    11<?php 
    2  
    32 
    43/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 
     
    4746 */ 
    4847require_once ('init_php.php'); 
     48 
     49/** 
     50 * Include configuration file 
     51 */ 
     52 
     53function cmnSearchParentDirectories($dirname, $searchfor) 
     54{ 
     55        $pieces = explode(DIRECTORY_SEPARATOR, $dirname); 
     56        $is_absolute = substr($dirname, 0, 1) === DIRECTORY_SEPARATOR ? 1 : 0; 
     57 
     58        for ($i = count($pieces); $i > $is_absolute; $i--) { 
     59                $filename = implode(DIRECTORY_SEPARATOR, array_merge(array_slice($pieces, 0, $i), array ($searchfor))); 
     60 
     61                if (file_exists($filename)) { 
     62                        return $filename; 
     63                } 
     64        } 
     65 
     66        return false; 
     67} 
     68 
     69function cmnRequireConfig($config_file = 'config.php') 
     70{ 
     71        global $AVAIL_LOCALE_ARRAY; // so that nobody has to change their custom config.php 
     72 
     73        $config_path = cmnSearchParentDirectories(dirname(__FILE__), $config_file); 
     74 
     75        if (!empty ($config_path)) { 
     76                require_once ($config_path); 
     77        } 
     78} 
     79 
     80cmnRequireConfig(); 
     81 
    4982/** 
    5083 * Include path detection code 
     
    5285require_once ('path_defines_base.php'); 
    5386 
    54 /** 
    55  * Include configuration file 
    56  */ 
    57 /** search parent directory hierarchy for a file */ 
    58 function cmnSearchParentDirectories($dirname, $searchfor) { 
    59     $pieces = explode(DIRECTORY_SEPARATOR, $dirname); 
    60     $is_absolute = substr($dirname, 0, 1) === DIRECTORY_SEPARATOR ? 1 : 0; 
    61  
    62     for ($i = count($pieces); $i > $is_absolute; $i--) { 
    63         $filename = implode(DIRECTORY_SEPARATOR, array_merge(array_slice($pieces, 0, $i), array ( 
    64             $searchfor 
    65         ))); 
    66         if (file_exists($filename)) 
    67             return $filename; 
    68     } 
    69  
    70     return false; 
    71 } 
    72 function cmnRequireConfig($config_file = 'config.php') { 
    73     global $AVAIL_LOCALE_ARRAY; // so that nobody has to change their custom config.php 
    74     $config_path = cmnSearchParentDirectories(dirname(__FILE__), $config_file); 
    75     if (!empty ($config_path)) 
    76         require_once ($config_path); 
    77 } 
    78 cmnRequireConfig(); 
    7987/** 
    8088 * Load required classes 
     
    8290require_once ('classes/AbstractDb.php'); 
    8391AbstractDb::getObject();//This is here so we get reliable SQL vs PHP profiling 
    84   
     92 
    8593require_once ('classes/Locale.php'); 
    8694require_once ('classes/Dependencies.php'); 
     
    92100    'print' => new PrintChannel(new HTMLFormatter(), 'warning,notice', null, true), 'debug' => new PrintChannel(new HTMLCommentsFormatter(), '=debug', null, false))); 
    93101} 
     102 
    94103/** 
    95104 * Filter super globals