Changeset 1020

Show
Ignore:
Timestamp:
04/24/06 14:42:01 (7 years ago)
Author:
benoitg
Message:
  • Revert Rob's SYSTEM_PATH change. Sorry about that. The devs spent hours to finally get the PATH stuff consistent and fixing the countless bugs that this process introduced. Maybe some links still need to use BASE_URL_PATH instead of BASE_SSL_PATH, (or vice-versa) but it was on purpose that SYSTEM_PATH was not made available to Smarty. We already have 3 defines to be used for links and html refs, that's enough BASE_SSL_PATH should be used to enter SSL mode (if available) BASE_NON_SSL_PATH should be used to break out of SSL mode of when we explicitely do not want someting to be referenced over http BASE_URL_PATH should be used in all other cases to avoid needless SSL warning
Location:
trunk/wifidog-auth
Files:
18 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/CHANGELOG

    r1018 r1020  
     12006-04-24 Benoit Grégoire  <bock@step.polymtl.ca> 
     2        * Revert Rob's SYSTEM_PATH change.  Sorry about that.  The devs spent hours to finally get the PATH 
     3         stuff consistent and fixing the countless bugs that this process introduced.  
     4         Maybe some links still need to use BASE_URL_PATH instead of BASE_SSL_PATH, 
     5        (or vice-versa) but it was on purpose that SYSTEM_PATH was not made available to Smarty.   
     6        We already have 3 defines to be used for links and html refs, that's enough 
     7         BASE_SSL_PATH should be used to enter SSL mode (if available) 
     8         BASE_NON_SSL_PATH should be used to break out of SSL mode of when we 
     9         explicitely do not want someting to be referenced over http 
     10         BASE_URL_PATH should be used in all other cases to avoid needless SSL warning 
     11         
    1122006-04-17 Rob Janes <janes.rob@gmail.com> 
    213        * javascript for validating and navigating forms. 
  • trunk/wifidog-auth/wifidog/classes/NodeLists/NodeListRSS.php

    r1018 r1020  
    320320                if ($_node->getDeploymentStatus() != 'NON_WIFIDOG_NODE') { 
    321321                    if ($_nodeData['is_up'] == 't') { 
    322                         $_descriptionText .= "<img src='" . SYSTEM_PATH . "images/HotspotStatus/up.gif' alt='' />"; 
     322                        $_descriptionText .= "<img src='" . BASE_URL_PATH . "images/HotspotStatus/up.gif' alt='' />"; 
    323323                    } else { 
    324                         $_descriptionText .= "<img src='" . SYSTEM_PATH . "images/HotspotStatus/down.gif' alt='' />"; 
     324                        $_descriptionText .= "<img src='" . BASE_URL_PATH . "images/HotspotStatus/down.gif' alt='' />"; 
    325325                    } 
    326326                } 
  • trunk/wifidog-auth/wifidog/classes/SmartyWifidog.php

    r1018 r1020  
    121121/* Useful stuff from config.php */ 
    122122 
    123         $this->assign('system_path', SYSTEM_PATH); 
    124123        $this->assign('base_url_path', BASE_URL_PATH); 
    125124        $this->assign('base_ssl_path', BASE_SSL_PATH); 
  • trunk/wifidog-auth/wifidog/config.php

    r1017 r1020  
    183183 
    184184/** 
    185  * Other linux distributions use locales like this: 
     185 * Other linux distributions (Ubuntu, Mandriva 10.1) use locales like this: 
    186186 */ 
    187187$AVAIL_LOCALE_ARRAY = array('fr_CA.UTF8' => 'Français', 
  • trunk/wifidog-auth/wifidog/help.php

    r1018 r1020  
    5555Network::assignSmartyValues($smarty); 
    5656$smarty->assign('read_the_faq', 
    57         sprintf('Read the <a href="%sfaq.php">faq</a> document for more information.', SYSTEM_PATH)); 
     57        sprintf('Read the <a href="%sfaq.php">faq</a> document for more information.', BASE_URL_PATH)); 
    5858 
    5959$ui = new MainUI(); 
  • trunk/wifidog-auth/wifidog/include/path_defines_url_content.php

    r1018 r1020  
    4343 */ 
    4444 
    45 /* This section deals with PATHs used in URLs and local content */ 
     45/* This section deals with PATHs used in URLs and local content 
     46 * BASE_SSL_PATH should be used to enter SSL mode (if available) 
     47 * BASE_NON_SSL_PATH should be used to break out of SSL mode of when we 
     48 * explicitely do not want someting to be referenced over http 
     49 * BASE_URL_PATH should be used in all other cases to avoid needless SSL warning 
     50 *  
     51 *   */ 
    4652 
    4753/** 
     
    8187} 
    8288 
    83 /* If we actually ARE in SSL mode, make all URLS http:// to avoid security warnings. */ 
    84 // no no no just use the SYSTEM_PATH ... use /login/index.php rather than http://auth.wirelesstoronto.ca/login/index.php 
    85 // if (isset ($_SERVER['HTTPS'])) { 
    86 //    /** 
    87 //     * Define base web address to use (this time using SLL) 
    88 //     */ 
    89 //    define('BASE_URL_PATH', BASE_SSL_PATH); 
    90 // } 
    91 // else { 
     89/* If we actually ARE in SSL mode, make all URLS https:// to avoid security warnings. */ 
     90 if (isset ($_SERVER['HTTPS'])) { 
     91    /** 
     92     * Define base web address to use (this time using SLL) 
     93     */ 
     94    define('BASE_URL_PATH', BASE_SSL_PATH); 
     95 } 
     96 else { 
    9297    /** 
    9398     * Define base web address to use 
     
    96101     */ 
    97102    define('BASE_URL_PATH', BASE_NON_SSL_PATH); 
    98 // } 
     103 } 
     104 
     105 
     106/*************************************************************************************************** 
     107 *  NOTE:  This stuff has to go elsewhere or be removed as part of the layout system refactoring.    
     108 * benoitg, 24/04/2006  
     109 * ***************************************************************************************/ 
     110 
    99111 
    100112/** 
  • trunk/wifidog-auth/wifidog/include/schema_validate.php

    r1010 r1020  
    7373        echo "<html><body>"; 
    7474        echo "<h1>"._("Unable to retrieve schema version. The database schema is too old to be updated.")."</h1>"; 
    75         echo "<h2>"._("Try running the")." <a href='" . SYSTEM_PATH . "install.php'>"._("installation script")."</a>.</h2>\n"; 
     75        echo "<h2>"._("Try running the")." <a href='" . BASE_URL_PATH . "install.php'>"._("installation script")."</a>.</h2>\n"; 
    7676        echo "</html></body>"; 
    7777        exit (); 
  • trunk/wifidog-auth/wifidog/local_content/default/stylesheet.css

    r1018 r1020  
    1111.bodyBackColor { 
    1212{/literal} 
    13         background : #dbffa8 url({$system_path}images/bg_body.gif) repeat-x fixed 0px 0px; 
     13        background : #dbffa8 url({$base_url_path}images/bg_body.gif) repeat-x fixed 0px 0px; 
    1414{literal} 
    1515} 
     
    1717div.navigation { 
    1818{/literal} 
    19         background-image: url({$system_path}images/01_nav.gif); 
     19        background-image: url({$base_url_path}images/01_nav.gif); 
    2020{literal} 
    2121} 
     
    2323div.avis{ 
    2424{/literal} 
    25         background-image: url({$system_path}images/03_avis.gif); 
     25        background-image: url({$base_url_path}images/03_avis.gif); 
    2626{literal} 
    2727} 
  • trunk/wifidog-auth/wifidog/login/index.php

    r1018 r1020  
    124124 
    125125if (isset($_REQUEST["form_signup"]) && $_REQUEST["form_signup"] == $create_a_free_account) { 
    126         MainUI::redirect(SYSTEM_PATH . "signup.php"); 
     126        MainUI::redirect(BASE_URL_PATH . "signup.php"); 
    127127        exit; 
    128128} 
  • trunk/wifidog-auth/wifidog/templates/classes/MainUI_Display.tpl

    r1018 r1020  
    6060 
    6161                <link rel="stylesheet" type="text/css" href="{$stylesheetURL}"> 
    62                 <script src="{$system_path}js/formutils.js"></script> 
     62                <script src="{$base_url_path}js/formutils.js"></script> 
    6363 
    6464        <style type="text/css"> 
  • trunk/wifidog-auth/wifidog/templates/classes/MainUI_ToolContent.tpl

    r1018 r1020  
    5555                {if $isValidUser} 
    5656                    <p>{"Logged in as"|_}: {$username}</p> 
    57                     <a class="administration" href="{$system_path}user_profile.php"><img class="administration" src="{$system_path}images/profile.gif">{"My Profile"|_}</a> 
    58                     <a class="administration" href="{$system_path}login/?logout=true{$logoutParameters}"><img class="administration" src="{$system_path}images/logout.gif">{"Logout"|_}</a> 
     57                    <a class="administration" href="{$base_ssl_path}user_profile.php"><img class="administration" src="{$base_url_path}images/profile.gif">{"My Profile"|_}</a> 
     58                    <a class="administration" href="{$base_ssl_path}login/?logout=true{$logoutParameters}"><img class="administration" src="{$base_url_path}images/logout.gif">{"Logout"|_}</a> 
    5959                {else} 
    6060                                        {if !$shrinkLeftArea} 
    6161                    <p> 
    6262                        {"I am not logged in."|_}<br> 
    63                         <a href="{$system_path}login/{$loginParameters}">{"Login"|_}</a> 
     63                        <a href="{$base_ssl_path}login/{$loginParameters}">{"Login"|_}</a> 
    6464                    </p> 
    6565                                        {/if} 
    6666 
    67                     <a class="administration" href="{$networkHomepageURL}"><img class="administration" src="{$system_path}images/lien_ext.gif">{$networkName}</a> 
    68                     <a class="administration" href="{$system_path}faq.php"><img class="administration" src="{$system_path}images/where.gif">{"Where am I?"|_}</a> 
     67                    <a class="administration" href="{$networkHomepageURL}"><img class="administration" src="{$base_url_path}images/lien_ext.gif">{$networkName}</a> 
     68                    <a class="administration" href="{$base_url_path}faq.php"><img class="administration" src="{$base_url_path}images/where.gif">{"Where am I?"|_}</a> 
    6969                {/if} 
    7070            </span> 
  • trunk/wifidog-auth/wifidog/templates/classes/MainUI_ToolSection.tpl

    r1018 r1020  
    5757                <div class="admin_section_data"> 
    5858                    <ul> 
    59                         <li><a href="{$system_path}admin/user_log.php">{"User logs"|_}</a></li> 
    60                         <li><a href="{$system_path}admin/online_users.php">{"Online Users"|_}</a></li> 
    61                         <li><a href="{$system_path}admin/stats.php">{"Statistics"|_}</a></li> 
    62                         <li><a href="{$system_path}admin/import_user_database.php">{"Import NoCat user database"|_}</a></li> 
     59                        <li><a href="{$base_url_path}admin/user_log.php">{"User logs"|_}</a></li> 
     60                        <li><a href="{$base_url_path}admin/online_users.php">{"Online Users"|_}</a></li> 
     61                        <li><a href="{$base_url_path}admin/stats.php">{"Statistics"|_}</a></li> 
     62                        <li><a href="{$base_url_path}admin/import_user_database.php">{"Import NoCat user database"|_}</a></li> 
    6363                    </ul> 
    6464                </div> 
     
    8787                <div class="admin_section_data"> 
    8888                    <ul> 
    89                         <li><a href="{$system_path}admin/generic_object_admin.php?object_class=Node&action=list">{"Nodes"|_}</a></li> 
    90                         <li><a href="{$system_path}admin/generic_object_admin.php?object_class=Node&action=new_ui">{"Add new Node"|_}</a></li> 
     89                        <li><a href="{$base_url_path}admin/generic_object_admin.php?object_class=Node&action=list">{"Nodes"|_}</a></li> 
     90                        <li><a href="{$base_url_path}admin/generic_object_admin.php?object_class=Node&action=new_ui">{"Add new Node"|_}</a></li> 
    9191                    </ul> 
    9292                </div> 
     
    100100                <div class="admin_section_data"> 
    101101                    <ul> 
    102                         <li><a href="{$system_path}admin/generic_object_admin.php?object_class=Network&action=list">{"Networks"|_}</a></li> 
     102                        <li><a href="{$base_url_path}admin/generic_object_admin.php?object_class=Network&action=list">{"Networks"|_}</a></li> 
    103103                    </ul> 
    104104                </div> 
     
    110110                <div class="admin_section_data"> 
    111111                    <ul> 
    112                         <li><a href="{$system_path}admin/generic_object_admin.php?object_class=Server&action=list">{"Servers"|_}</a></li> 
    113                         <li><a href="{$system_path}admin/generic_object_admin.php?object_class=Content&action=list">{"Content"|_}</a></li> 
     112                        <li><a href="{$base_url_path}admin/generic_object_admin.php?object_class=Server&action=list">{"Servers"|_}</a></li> 
     113                        <li><a href="{$base_url_path}admin/generic_object_admin.php?object_class=Content&action=list">{"Content"|_}</a></li> 
    114114                    </ul> 
    115115                </div> 
  • trunk/wifidog-auth/wifidog/templates/sites/index.tpl

    r1018 r1020  
    5454        <ul> 
    5555                        {if $isValidUser} 
    56             <li><a href="{$system_path}change_password.php">{"Change password"|_}</a></li> 
     56            <li><a href="{$base_ssl_path}change_password.php">{"Change password"|_}</a></li> 
    5757                        {else} 
    58             <li><a href="{$system_path}faq.php">{"I have trouble connecting and I would like some help"|_}</a></li> 
     58            <li><a href="{$base_url_path}faq.php">{"I have trouble connecting and I would like some help"|_}</a></li> 
    5959                        {/if} 
    6060        </ul> 
     
    102102    <ul> 
    103103        {if $googleMapsEnabled && !$userIsAtHotspot} 
    104             <li><a href="{$system_path}hotspots_map.php">{"Deployed HotSpots map"|_}</a></li> 
     104            <li><a href="{$base_url_path}hotspots_map.php">{"Deployed HotSpots map"|_}</a></li> 
    105105        {/if} 
    106         <li><a href="{$system_path}hotspot_status.php">{"Deployed HotSpots status with coordinates"|_}</a></li> 
    107         <li><a href="{$system_path}node_list.php">{"Full node technical status (includes non-deployed nodes)"|_}</a></li> 
    108         <li><a href="{$system_path}admin/index.php">{"Administration"|_}</a></li> 
     106        <li><a href="{$base_url_path}hotspot_status.php">{"Deployed HotSpots status with coordinates"|_}</a></li> 
     107        <li><a href="{$base_url_path}node_list.php">{"Full node technical status (includes non-deployed nodes)"|_}</a></li> 
     108        <li><a href="{$base_url_path}admin/index.php">{"Administration"|_}</a></li> 
    109109    </ul> 
    110110{* 
  • trunk/wifidog-auth/wifidog/templates/sites/login.tpl

    r1018 r1020  
    9090 
    9191        <ul> 
    92             <li><a href="{$system_path}lost_username.php">{"I Forgot my username"|_}</a></li> 
    93             <li><a href="{$system_path}lost_password.php">{"I Forgot my password"|_}</a></li> 
    94             <li><a href="{$system_path}resend_validation.php">{"Re-send the validation email"|_}</a></li> 
    95             <li><a href="{$system_path}faq.php">{"Frequently asked questions"|_}</a></li> 
     92            <li><a href="{$base_url_path}lost_username.php">{"I Forgot my username"|_}</a></li> 
     93            <li><a href="{$base_url_path}lost_password.php">{"I Forgot my password"|_}</a></li> 
     94            <li><a href="{$base_url_path}resend_validation.php">{"Re-send the validation email"|_}</a></li> 
     95            <li><a href="{$base_url_path}faq.php">{"Frequently asked questions"|_}</a></li> 
    9696        </ul> 
    9797    </div> 
  • trunk/wifidog-auth/wifidog/templates/sites/lost_password.tpl

    r1018 r1020  
    5959 
    6060        <ul> 
    61             <li><a href="{$system_path}lost_username.php">{"I Forgot my username"|_}</a></li> 
    62             <li><a href="{$system_path}lost_password.php">{"I Forgot my password"|_}</a></li> 
    63             <li><a href="{$system_path}resend_validation.php">{"Re-send the validation email"|_}</a></li> 
    64             <li><a href="{$system_path}faq.php">{"Frequently asked questions"|_}</a></li> 
     61            <li><a href="{$base_url_path}lost_username.php">{"I Forgot my username"|_}</a></li> 
     62            <li><a href="{$base_url_path}lost_password.php">{"I Forgot my password"|_}</a></li> 
     63            <li><a href="{$base_url_path}resend_validation.php">{"Re-send the validation email"|_}</a></li> 
     64            <li><a href="{$base_url_path}faq.php">{"Frequently asked questions"|_}</a></li> 
    6565        </ul> 
    6666    </div> 
  • trunk/wifidog-auth/wifidog/templates/sites/lost_username.tpl

    r1018 r1020  
    5959 
    6060        <ul> 
    61             <li><a href="{$system_path}lost_username.php">{"I Forgot my username"|_}</a></li> 
    62             <li><a href="{$system_path}lost_password.php">{"I Forgot my password"|_}</a></li> 
    63             <li><a href="{$system_path}resend_validation.php">{"Re-send the validation email"|_}</a></li> 
    64             <li><a href="{$system_path}faq.php">{"Frequently asked questions"|_}</a></li> 
     61            <li><a href="{$base_url_path}lost_username.php">{"I Forgot my username"|_}</a></li> 
     62            <li><a href="{$base_url_path}lost_password.php">{"I Forgot my password"|_}</a></li> 
     63            <li><a href="{$base_url_path}resend_validation.php">{"Re-send the validation email"|_}</a></li> 
     64            <li><a href="{$base_url_path}faq.php">{"Frequently asked questions"|_}</a></li> 
    6565        </ul> 
    6666    </div> 
  • trunk/wifidog-auth/wifidog/templates/sites/resend_validation.tpl

    r1018 r1020  
    5959 
    6060        <ul> 
    61             <li><a href="{$system_path}lost_username.php">{"I Forgot my username"|_}</a></li> 
    62             <li><a href="{$system_path}lost_password.php">{"I Forgot my password"|_}</a></li> 
    63             <li><a href="{$system_path}resend_validation.php">{"Re-send the validation email"|_}</a></li> 
    64             <li><a href="{$system_path}faq.php">{"Frequently asked questions"|_}</a></li> 
     61            <li><a href="{$base_url_path}lost_username.php">{"I Forgot my username"|_}</a></li> 
     62            <li><a href="{$base_url_path}lost_password.php">{"I Forgot my password"|_}</a></li> 
     63            <li><a href="{$base_url_path}resend_validation.php">{"Re-send the validation email"|_}</a></li> 
     64            <li><a href="{$base_url_path}faq.php">{"Frequently asked questions"|_}</a></li> 
    6565        </ul> 
    6666    </div> 
  • trunk/wifidog-auth/wifidog/templates/sites/signup.tpl

    r1018 r1020  
    5959 
    6060        <ul> 
    61                 <li><a href="{$system_path}lost_username.php">{"I Forgot my username"|_}</a></li> 
    62                 <li><a href="{$system_path}lost_password.php">{"I Forgot my password"|_}</a></li> 
    63                 <li><a href="{$system_path}resend_validation.php">{"Re-send the validation email"|_}</a></li> 
    64                 <li><a href="{$system_path}faq.php">{"Frequently asked questions"|_}</a></li> 
     61                <li><a href="{$base_url_path}lost_username.php">{"I Forgot my username"|_}</a></li> 
     62                <li><a href="{$base_url_path}lost_password.php">{"I Forgot my password"|_}</a></li> 
     63                <li><a href="{$base_url_path}resend_validation.php">{"Re-send the validation email"|_}</a></li> 
     64                <li><a href="{$base_url_path}faq.php">{"Frequently asked questions"|_}</a></li> 
    6565        </ul> 
    6666</div> 
     
    128128        <b>{"You can also use the following links if you need help"|_}:</b> 
    129129        <ul> 
    130             <li><a href="{$system_path}lost_username.php">{"I Forgot my username"|_}</a></li> 
    131             <li><a href="{$system_path}lost_password.php">{"I Forgot my password"|_}</a></li> 
     130            <li><a href="{$base_url_path}lost_username.php">{"I Forgot my username"|_}</a></li> 
     131            <li><a href="{$base_url_path}lost_password.php">{"I Forgot my password"|_}</a></li> 
    132132        </ul> 
    133133    </p>