Changeset 1033
- Timestamp:
- 05/10/06 16:51:44 (7 years ago)
- Location:
- trunk/wifidog-auth
- Files:
-
- 2 added
- 6 modified
-
CHANGELOG (modified) (11 diffs)
-
wifidog/classes/MainUI.php (modified) (2 diffs)
-
wifidog/config.php (modified) (2 diffs)
-
wifidog/install.php (modified) (7 diffs)
-
wifidog/js/addEvent.js (added)
-
wifidog/js/sweetTitles.js (added)
-
wifidog/media/base_theme/stylesheet.css (modified) (2 diffs)
-
wifidog/templates/classes/MainUI_Display.tpl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/CHANGELOG
r1032 r1033 1 2006-05-10 François Proulx <francois.proulx@gmail.com> 2 * Added sweetTitles tooltips script, now if you need to add tooltips simply add the 'title' attribute to you html <a>, <attr>, <accroym> tags 3 * Fixed usort bug in MainUI 4 * Fixed download (wget) in install.php 5 1 6 2006-05-09 Benoit Grégoire <bock@step.polymtl.ca> 2 7 * Working (if slightly basic) theme manager. You can pick the theme in the network configuration. … … 6 11 * Completely rip out the old local_content system, and a bunch of obsolete defines and config variables. 7 12 * Get rid of PHP generated stylesheets 8 13 9 14 2006-05-09 Benoit Grégoire <bock@step.polymtl.ca> 10 15 * Finish content assignation system … … 13 18 * Change MainUI::apendContent to MainUI::addContent 14 19 15 2006-04-28 François Proulx <francois.proulx@gmail.com> 20 2006-04-28 François Proulx <francois.proulx@gmail.com> 16 21 * Fixed error in initial data script 17 22 18 23 2006-04-28 Benoit Grégoire <bock@step.polymtl.ca> 19 24 * wifidog/login/index.php: Correctly use DEFAULT_NODE_ID from config.php instead of hardcoded 'default' … … 21 26 2006-04-28 François Proulx <francois.proulx@gmail.com> 22 27 * Fixed initial_data schema script so that it adds a dummy server. 23 28 24 29 2006-04-25 François Proulx <francois.proulx@gmail.com> 25 30 * Updated JavaScript code to work with Google Maps v2 API 26 31 * v2 will now provide full maps of European countries and is a bit faster 27 32 * Updated the schema accordingly with new GMaps values 28 33 29 34 2006-04-24 Benoit Grégoire <bock@step.polymtl.ca> 30 35 * Dependencies.php: Small fix in case gettext isn't installed … … 34 39 35 40 2006-04-24 Benoit Grégoire <bock@step.polymtl.ca> 36 * Major system locale handling overhaull. Hopefully abstract out the UTF8 problems once and for all, 37 allowing everyone to define them the same way. Fix a few bugs along the way. 41 * Major system locale handling overhaull. Hopefully abstract out the UTF8 problems once and for all, 42 allowing everyone to define them the same way. Fix a few bugs along the way. 38 43 Should also be a little faster. 39 44 40 45 2006-04-24 Benoit Grégoire <bock@step.polymtl.ca> 41 46 * Revert Rob's SYSTEM_PATH change. Sorry about that. The devs spent hours to finally get the PATH 42 stuff consistent and fixing the countless bugs that this process introduced. 47 stuff consistent and fixing the countless bugs that this process introduced. 43 48 Maybe some links still need to use BASE_URL_PATH instead of BASE_SSL_PATH, 44 (or vice-versa) but it was on purpose that SYSTEM_PATH was not made available to Smarty. 49 (or vice-versa) but it was on purpose that SYSTEM_PATH was not made available to Smarty. 45 50 We already have 3 defines to be used for links and html refs, that's enough 46 51 BASE_SSL_PATH should be used to enter SSL mode (if available) … … 48 53 explicitely do not want someting to be referenced over http 49 54 BASE_URL_PATH should be used in all other cases to avoid needless SSL warning 50 55 51 56 2006-04-17 Rob Janes <janes.rob@gmail.com> 52 57 * javascript for validating and navigating forms. … … 65 70 2006-04-01 François Proulx <francois.proulx@gmail.com> 66 71 * Dumped initial schema from working install 67 72 68 73 2006-03-31 Benoit Grégoire <bock@step.polymtl.ca> 69 74 * dump_initial_data_postgres.sh: Add the content_available_display_pages table to the dump, can someone re-generate the initial data from a working install … … 76 81 2006-03-28 François Proulx <francois.proulx@gmail.com> 77 82 * Fixed error in initial schema (bad client encoding) 78 83 79 84 2006-03-28 François Proulx <francois.proulx@gmail.com> 80 85 * Fixed schema 37 : left_area_top 81 86 * Updated initial schema 82 87 83 88 2006-03-27 Benoit Grégoire <bock@step.polymtl.ca> 84 89 * First step in massive simplification of CSS and templates … … 102 107 the code path to the map does not use SSL, but the outgoing URLs do. 103 108 * Removed lost echo in Locale.php 104 109 105 110 2006-03-21 Benoit Grégoire <bock@step.polymtl.ca> 106 * login/index.php: Remove huge security hole introduced by stylistic changes in the file. 107 A user could login to any hotspot by simply filling a blank form because of a gratuitous 111 * login/index.php: Remove huge security hole introduced by stylistic changes in the file. 112 A user could login to any hotspot by simply filling a blank form because of a gratuitous 108 113 change from empty to is_null everywhere. Remove escaping or REQUEST parameters in non SQL 109 114 related code, as this would lead to double unescaping down the line. Remove logic dependent … … 112 117 2006-03-19 François Proulx <francois.proulx@gmail.com> 113 118 * Updated French translations 114 119 115 120 2006-03-18 Rob Janes <janes.rob@gmail.com> 116 121 * path_defines_base working for combinations of DocumentRoot, Alias, … … 127 132 * Removed stale owner_sendfiles.php (now integrated in the Content Manager) 128 133 * Cleaned up a bunch of stale TODOs 129 134 130 135 2006-03-16 Max Horváth <max.horvath@maxspot.de> 131 136 * updated language files (new german strings have already been translated) -
trunk/wifidog-auth/wifidog/classes/MainUI.php
r1031 r1033 162 162 * placed. Must be one of the display aread defined in the 163 163 * content_available_display_areas table 164 * 164 * 165 165 * @param string $content HTML content to be added to the area 166 * 166 * 167 167 * @param integer $display_order_index The order in which the content should 168 168 * be displayed … … 193 193 private function generateDisplayContent() { 194 194 //pretty_print_r($this->_contentArray); 195 usort($this->_contentArray, array ('MainUI', '_contentArrayCmp'));195 usort($this->_contentArray, array($this, "_contentArrayCmp")); 196 196 foreach ($this->_contentArray as $content_fragment) { 197 197 $this->_contentDisplayArray[$content_fragment['display_area']] .= $content_fragment['content']; -
trunk/wifidog-auth/wifidog/config.php
r1031 r1033 210 210 * Normally MAGPIE_REL_PATH is "lib/magpie/". 211 211 */ 212 define('RSS_SUPPORT', true);212 define('RSS_SUPPORT', false); 213 213 214 214 /** … … 221 221 * "Phlickr". 222 222 */ 223 define('PHLICKR_SUPPORT', true);223 define('PHLICKR_SUPPORT', false); 224 224 225 225 /** -
trunk/wifidog-auth/wifidog/install.php
r916 r1033 324 324 } 325 325 326 function downloadFile($remoteURL, $localPath) { 327 set_time_limit(1500); // 25 minutes timeout 328 if(copy($remoteURL, $localPath)) 329 return true; 330 else 331 return false; 332 } 333 326 334 ################################### 327 335 # … … 579 587 580 588 print "Download source code ($filename) : "; 581 if (!file_exists($filename)) 582 exec("wget \"$smarty_full_url\" 2>&1", $output, $return); 583 if (!file_exists($filename)) { 589 if (!file_exists("/tmp/".$filename)) 590 //exec("wget \"$smarty_full_url\" 2>&1", $output, $return); 591 downloadFile($smarty_full_url, "/tmp/".$filename); 592 593 if (!file_exists("/tmp/".$filename)) { 584 594 print "<B STYLE=\"color:red\">Error</B><P>Current working directory : <B>$basepath/tmp/smarty</B>"; 585 595 $output = implode("\n", $output); … … 592 602 593 603 print "Uncompressing : "; 594 $dir_array = split(".tar.gz", $filename);604 $dir_array = split(".tar.gz", "/tmp/".$filename); 595 605 $dirname = array_shift($dir_array); 596 606 … … 623 633 624 634 print "Download source code ($filename) : "; 625 if (!file_exists($filename)) 626 exec("wget \"$magpierss_full_url\" 2>&1", $output, $return); 627 if (!file_exists($filename)) { 635 if (!file_exists("/tmp/".$filename)) 636 //exec("wget \"$magpierss_full_url\" 2>&1", $output, $return); 637 downloadFile($smarty_full_url, "/tmp/".$filename); 638 639 if (!file_exists("/tmp/".$filename)) { 628 640 print "<B STYLE=\"color:red\">Error</B><P>Current working directory : <B>$basepath/tmp/smarty</B>"; 629 641 $output = implode("\n", $output); … … 636 648 637 649 print "Uncompressing : "; 638 $dir_array = split(".tar.gz", $filename);650 $dir_array = split(".tar.gz", "/tmp/".$filename); 639 651 $dirname = array_shift($dir_array); 640 652 if (!file_exists($dirname)) … … 672 684 673 685 print "Download source code ($filename) : "; 674 if (!file_exists($filename)) 675 exec("wget \"$phlickr_full_url\" 2>&1", $output, $return); 676 if (!file_exists($filename)) { # Error occured, print output of wget 686 if (!file_exists("/tmp/".$filename)) 687 //exec("wget \"$phlickr_full_url\" 2>&1", $output, $return); 688 downloadFile($smarty_full_url, "/tmp/".$filename); 689 690 if (!file_exists("/tmp/".$filename)) { # Error occured, print output of wget 677 691 print "<B STYLE=\"color:red\">Error</B><P>Current working directory : <B>$basepath/tmp/smarty</B>"; 678 692 $output = implode("\n", $output); … … 685 699 686 700 print "Uncompressing : "; 687 $dirname_array = split(".tgz", $filename);701 $dirname_array = split(".tgz", "/tmp/".$filename); 688 702 $dirname = array_shift($dirname_array); 689 703 if (!file_exists($dirname)) -
trunk/wifidog-auth/wifidog/media/base_theme/stylesheet.css
r1031 r1033 1 /* Important note: You may not assume ANYTHING about the path to images or media 1 /* Important note: You may not assume ANYTHING about the path to images or media 2 2 that isn't under this file's theme pack. In other words, no ../ relative links. */ 3 3 /********** General HTML section **********/ … … 250 250 251 251 /** Messages */ 252 253 /* Fading Tooltips By Dustin Diaz*/ 254 body div#toolTip { 255 position:absolute; 256 z-index:1000; 257 width:320px; 258 background:#000; 259 /* border:2px double #fff;*/ 260 text-align:left; 261 padding:5px; 262 min-height:1em; 263 -webkit-border-radius:5px; 264 -moz-border-radius:5px; 265 } 266 body div#toolTip p { margin:0;padding:0;color:#fff;font:11px/12px verdana,arial,sans-serif; } 267 body div#toolTip p em { display:block;margin-top:3px;color:#f60;font-style:normal;font-weight:bold; } 268 body div#toolTip p em span { font-weight:bold;color:#fff; } 269 252 270 .errormsg { 253 271 font-weight: bold; -
trunk/wifidog-auth/wifidog/templates/classes/MainUI_Display.tpl
r1031 r1033 46 46 47 47 *} 48 49 48 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 50 51 49 <html> 52 53 50 <head> 54 51 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> … … 56 53 <meta http-equiv="Expires" content="-1"> 57 54 {$htmlHeaders} 58 59 55 <title>{$title}</title> 60 61 56 {foreach from=$stylesheetUrlArray item=stylesheetUrl} 62 57 <link rel="stylesheet" type="text/css" href="{$stylesheetUrl}"> 63 {/foreach} 58 {/foreach} 64 59 <script src="{$base_url_path}js/formutils.js"></script> 65 60 <script src="{$base_url_path}js/addEvent.js"></script> 61 <script src="{$base_url_path}js/sweetTitles.js"></script> 66 62 </head> 67 68 63 <body id='page' class='{$page_name}'> 69 64 {if !empty($contentDisplayArray.page_header) || $debugRequested} … … 76 71 {/if} 77 72 </div> 78 {/if} 79 80 73 {/if} 81 74 <div id="page_body"> 82 75 {if !empty($contentDisplayArray.left_area_top) || !empty($contentDisplayArray.left_area_middle) || !empty($contentDisplayArray.left_area_middle)} … … 96 89 {$contentDisplayArray.left_area_bottom} 97 90 </div> 98 {/if} 91 {/if} 99 92 </div> 100 93 {/if} 101 102 94 {if !empty($contentDisplayArray.main_area_top) || !empty($contentDisplayArray.main_area_middle) || !empty($contentDisplayArray.main_area_middle)} 103 95 <div id="main_area"> … … 116 108 {$contentDisplayArray.main_area_bottom} 117 109 </div> 118 {/if} 110 {/if} 119 111 </div> 120 {/if} 121 112 {/if} 122 113 {if !empty($contentDisplayArray.right_area_top) || !empty($contentDisplayArray.right_area_middle) || !empty($contentDisplayArray.right_area_bottom)} 123 114 <div id="right_area"> … … 136 127 {$contentDisplayArray.right_area_bottom} 137 128 </div> 138 {/if} 129 {/if} 139 130 </div> 140 {/if} 131 {/if} 141 132 </div> 142 133 {if !empty($contentDisplayArray.page_footer)} … … 144 135 {$contentDisplayArray.page_footer} 145 136 </div> 146 {/if} 137 {/if} 147 138 148 139 {foreach from=$footerScripts item=currScript}
