Changeset 1020
- Timestamp:
- 04/24/06 14:42:01 (7 years ago)
- Location:
- trunk/wifidog-auth
- Files:
-
- 18 modified
-
CHANGELOG (modified) (1 diff)
-
wifidog/classes/NodeLists/NodeListRSS.php (modified) (1 diff)
-
wifidog/classes/SmartyWifidog.php (modified) (1 diff)
-
wifidog/config.php (modified) (1 diff)
-
wifidog/help.php (modified) (1 diff)
-
wifidog/include/path_defines_url_content.php (modified) (3 diffs)
-
wifidog/include/schema_validate.php (modified) (1 diff)
-
wifidog/local_content/default/stylesheet.css (modified) (3 diffs)
-
wifidog/login/index.php (modified) (1 diff)
-
wifidog/templates/classes/MainUI_Display.tpl (modified) (1 diff)
-
wifidog/templates/classes/MainUI_ToolContent.tpl (modified) (1 diff)
-
wifidog/templates/classes/MainUI_ToolSection.tpl (modified) (4 diffs)
-
wifidog/templates/sites/index.tpl (modified) (2 diffs)
-
wifidog/templates/sites/login.tpl (modified) (1 diff)
-
wifidog/templates/sites/lost_password.tpl (modified) (1 diff)
-
wifidog/templates/sites/lost_username.tpl (modified) (1 diff)
-
wifidog/templates/sites/resend_validation.tpl (modified) (1 diff)
-
wifidog/templates/sites/signup.tpl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/CHANGELOG
r1018 r1020 1 2006-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 1 12 2006-04-17 Rob Janes <janes.rob@gmail.com> 2 13 * javascript for validating and navigating forms. -
trunk/wifidog-auth/wifidog/classes/NodeLists/NodeListRSS.php
r1018 r1020 320 320 if ($_node->getDeploymentStatus() != 'NON_WIFIDOG_NODE') { 321 321 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='' />"; 323 323 } else { 324 $_descriptionText .= "<img src='" . SYSTEM_PATH . "images/HotspotStatus/down.gif' alt='' />";324 $_descriptionText .= "<img src='" . BASE_URL_PATH . "images/HotspotStatus/down.gif' alt='' />"; 325 325 } 326 326 } -
trunk/wifidog-auth/wifidog/classes/SmartyWifidog.php
r1018 r1020 121 121 /* Useful stuff from config.php */ 122 122 123 $this->assign('system_path', SYSTEM_PATH);124 123 $this->assign('base_url_path', BASE_URL_PATH); 125 124 $this->assign('base_ssl_path', BASE_SSL_PATH); -
trunk/wifidog-auth/wifidog/config.php
r1017 r1020 183 183 184 184 /** 185 * Other linux distributions use locales like this:185 * Other linux distributions (Ubuntu, Mandriva 10.1) use locales like this: 186 186 */ 187 187 $AVAIL_LOCALE_ARRAY = array('fr_CA.UTF8' => 'Français', -
trunk/wifidog-auth/wifidog/help.php
r1018 r1020 55 55 Network::assignSmartyValues($smarty); 56 56 $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)); 58 58 59 59 $ui = new MainUI(); -
trunk/wifidog-auth/wifidog/include/path_defines_url_content.php
r1018 r1020 43 43 */ 44 44 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 * */ 46 52 47 53 /** … … 81 87 } 82 88 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 { 92 97 /** 93 98 * Define base web address to use … … 96 101 */ 97 102 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 99 111 100 112 /** -
trunk/wifidog-auth/wifidog/include/schema_validate.php
r1010 r1020 73 73 echo "<html><body>"; 74 74 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"; 76 76 echo "</html></body>"; 77 77 exit (); -
trunk/wifidog-auth/wifidog/local_content/default/stylesheet.css
r1018 r1020 11 11 .bodyBackColor { 12 12 {/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; 14 14 {literal} 15 15 } … … 17 17 div.navigation { 18 18 {/literal} 19 background-image: url({$ system_path}images/01_nav.gif);19 background-image: url({$base_url_path}images/01_nav.gif); 20 20 {literal} 21 21 } … … 23 23 div.avis{ 24 24 {/literal} 25 background-image: url({$ system_path}images/03_avis.gif);25 background-image: url({$base_url_path}images/03_avis.gif); 26 26 {literal} 27 27 } -
trunk/wifidog-auth/wifidog/login/index.php
r1018 r1020 124 124 125 125 if (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"); 127 127 exit; 128 128 } -
trunk/wifidog-auth/wifidog/templates/classes/MainUI_Display.tpl
r1018 r1020 60 60 61 61 <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> 63 63 64 64 <style type="text/css"> -
trunk/wifidog-auth/wifidog/templates/classes/MainUI_ToolContent.tpl
r1018 r1020 55 55 {if $isValidUser} 56 56 <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> 59 59 {else} 60 60 {if !$shrinkLeftArea} 61 61 <p> 62 62 {"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> 64 64 </p> 65 65 {/if} 66 66 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> 69 69 {/if} 70 70 </span> -
trunk/wifidog-auth/wifidog/templates/classes/MainUI_ToolSection.tpl
r1018 r1020 57 57 <div class="admin_section_data"> 58 58 <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> 63 63 </ul> 64 64 </div> … … 87 87 <div class="admin_section_data"> 88 88 <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> 91 91 </ul> 92 92 </div> … … 100 100 <div class="admin_section_data"> 101 101 <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> 103 103 </ul> 104 104 </div> … … 110 110 <div class="admin_section_data"> 111 111 <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> 114 114 </ul> 115 115 </div> -
trunk/wifidog-auth/wifidog/templates/sites/index.tpl
r1018 r1020 54 54 <ul> 55 55 {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> 57 57 {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> 59 59 {/if} 60 60 </ul> … … 102 102 <ul> 103 103 {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> 105 105 {/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> 109 109 </ul> 110 110 {* -
trunk/wifidog-auth/wifidog/templates/sites/login.tpl
r1018 r1020 90 90 91 91 <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> 96 96 </ul> 97 97 </div> -
trunk/wifidog-auth/wifidog/templates/sites/lost_password.tpl
r1018 r1020 59 59 60 60 <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> 65 65 </ul> 66 66 </div> -
trunk/wifidog-auth/wifidog/templates/sites/lost_username.tpl
r1018 r1020 59 59 60 60 <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> 65 65 </ul> 66 66 </div> -
trunk/wifidog-auth/wifidog/templates/sites/resend_validation.tpl
r1018 r1020 59 59 60 60 <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> 65 65 </ul> 66 66 </div> -
trunk/wifidog-auth/wifidog/templates/sites/signup.tpl
r1018 r1020 59 59 60 60 <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> 65 65 </ul> 66 66 </div> … … 128 128 <b>{"You can also use the following links if you need help"|_}:</b> 129 129 <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> 132 132 </ul> 133 133 </p>
