Changeset 1313
- Timestamp:
- 12/23/07 23:38:43 (10 months ago)
- Files:
-
- trunk/wifidog-auth/CHANGELOG (modified) (1 diff)
- trunk/wifidog-auth/wifidog/classes/Dependency.php (modified) (9 diffs)
- trunk/wifidog-auth/wifidog/classes/NodeLists/NodeListPDF.php (modified) (1 diff)
- trunk/wifidog-auth/wifidog/install.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wifidog-auth/CHANGELOG
r1312 r1313 2 2 2007-12-23 Benoit Grégoire <bock@step.polymtl.ca> 3 3 * Node.php: Fix bug in setCurrentNode() reported by Vacio 4 * install.php, Dependency.php: Commit install script improvements by Robin Jones 4 5 5 6 2007-11-29 Benoit Grégoire <bock@step.polymtl.ca> trunk/wifidog-auth/wifidog/classes/Dependency.php
r1306 r1313 81 81 * "phpExtension": Standard PHP extension 82 82 * "peclStandard": Standard (in the PECL reposidory) PECL PHP module 83 * "peclStandard": Standard (in the PEAR reposidory) PEAR PHP module83 * "peclStandard": PEAR PHP module in the standard PEAR repository or in a custom channel 84 84 * "pearCustom": PEAR-compatible tarball 85 85 * "localLib": Custom PHP extension, to be downloaded and installed in wifidog/lib … … 89 89 * 'website' => URL to the dependency's official website 90 90 * 'installSourceUrl' => For localLib and pearCustom dependency, the URL where the dependency can be downloaded. 91 * For pearStandard, either the required alpha or beta name like "Image_Canvas-alpha" or the fulle channel URL like: "channel://pear.php.net/Image_graph-0.7.2" ( normally not used for dependencies in standard pear repositories) 91 92 * 'installMethod' => For localLib, the protocol to be used to download and install the dependency. Currently, allowed values are: 92 93 * 'tarball': Decompress a tarball in wifidog/lib 93 94 * 'installDestination' => For localLib, the path, relative to wifidog/lib where the dependency should be installed 95 * 'filename' => temp download filename if sourceurl does not meet preg requirements. 94 96 * 95 97 * @var array … … 200 202 "radius" => array ( 201 203 "type" => "peclStandard", 202 'description' => "Required by the optional Radius Authenticator "204 'description' => "Required by the optional Radius Authenticator. If it's not detected, make sure it's installed (pecl list) AND loaded in php.ini (extension=radius.so)" 203 205 ), 204 206 … … 206 208 "FCKeditor" => array ( 207 209 "type" => "localLib", 208 "detectFiles" => "lib/ FCKeditor/fckeditor.php",210 "detectFiles" => "lib/fckeditor/fckeditor.php", 209 211 'description' => "Required by content type FCKEditor (WYSIWYG HTML)", 210 'website' => "http://www.fckeditor.net/" 211 ), 212 'website' => "http://www.fckeditor.net/", 213 'installSourceUrl' => "http://easynews.dl.sourceforge.net/sourceforge/fckeditor/FCKeditor_2.5.tar.gz", 214 'installMethod' => "tarball", 215 'installDestination' => "/", 216 ), 217 212 218 "FPDF" => array ( 213 219 "type" => "localLib", 214 "detectFiles" => "lib/fpdf /fpdf.php",220 "detectFiles" => "lib/fpdf153/fpdf.php", 215 221 'description' => "Required if you want to be able to export the node list as a PDF file", 216 'website' => "http://www.fpdf.org/" 222 'website' => "http://www.fpdf.org/", 223 'installSourceUrl' => "http://www.fpdf.org/en/dl.php?v=153&f=tgz", 224 'installMethod' => "tarball", 225 'installDestination' => "/", 226 'filename' => "fpdf.tgz" 217 227 ), 218 228 "php-openid" => array ( … … 246 256 "Cache" => array ( 247 257 "type" => "pearStandard", 248 "detectFiles" => "Cache/Lite.php", 249 'description' => "Required if you want to turn on the experimental USE_CACHE_LITE in config.php" 258 "detectFiles" => "Cache/Lite.php", #unsure whether this file still exists. 259 'description' => "Required if you want to turn on the experimental USE_CACHE_LITE in config.php", 250 260 ), 251 261 "HTML_Safe" => array ( 252 262 "type" => "pearStandard", 253 263 "detectFiles" => "HTML/Safe.php", 254 'description' => "Optional for content type Langstring (and subtypes) to better strip out dangerous HTML" 264 'description' => "Optional for content type Langstring (and subtypes) to better strip out dangerous HTML", 265 'installSourceUrl' => "HTML_Safe-beta" 255 266 ), 256 267 "Image_Graph" => array ( 257 268 "type" => "pearStandard", 258 269 "detectFiles" => "Image/Graph.php", 259 'description' => "Required if you want to generate graphical statistics" 270 'description' => "Required if you want to generate graphical statistics", 271 'installSourceUrl' => "Image_graph-alpha" 260 272 ), 261 273 "Image_Canvas" => array ( 262 274 "type" => "pearStandard", 263 275 "detectFiles" => "Image/Canvas.php", 264 'description' => "Required if you want to generate graphical statistics" 276 'description' => "Required if you want to generate graphical statistics", 277 'installSourceUrl' => "Image_Canvas-alpha" 265 278 ), 266 279 "Image_Color" => array ( … … 508 521 $this->getId()); 509 522 } 510 511 512 523 break; 513 //case "pearStandard": 514 // break; 524 525 526 case "pearStandard": 527 if($this->getInstallSourceUrl()) { 528 $installSource=$this->getInstallSourceUrl(); 529 } 530 else { 531 $installSource=$this->getId(); 532 } 533 $html .= sprintf(_("To install this standard PEAR extension, try 'sudo pear install --onlyreqdeps %s'"), $installSource); 534 break; 535 536 537 case "peclStandard": 538 if($this->getInstallSourceUrl()) { 539 $installSource=$this->getInstallSourceUrl(); 540 } 541 else { 542 $installSource=$this->getId(); 543 } 544 $html .= sprintf(_("To install this standard PEAR extension, try 'sudo pecl install %s'"), $installSource); 545 break; 546 547 515 548 case "pearCustom": 516 549 if($this->getInstallSourceUrl()) { … … 518 551 } 519 552 else { 520 $installSource=sprintf(_("url_to_the_tarball (Sorry, i couldn't find the source for %s in installSourceUrl)"), $this->getId());553 $installSource=sprintf(_("url_to_the_tarball (Sorry, i couldn't find the source for %s in installSourceUrl)"), $this->getId()); 521 554 } 522 555 $html .= sprintf(_("To install this custom PEAR extension, use 'sudo pear install %s'"), $installSource); 523 556 break; 557 558 524 559 default: 525 560 $html .= sprintf(_("Sorry, I don't know how to install a %s extension"), $type); … … 615 650 return $retval; 616 651 } 652 617 653 618 654 /** … … 699 735 $downloadPath = WIFIDOG_ABS_FILE_PATH . "tmp/"; 700 736 chdir($downloadPath); 701 $filename_array = preg_split("/\//", $installSourceUrl); 702 $filename = array_pop($filename_array); 737 if(!empty(self::$_components[$this->_id]['filename'])) { 738 $filename = self::$_components[$this->_id]['filename']; 739 } 740 else { 741 $filename_array = preg_split("/\//", $installSourceUrl); 742 $filename = array_pop($filename_array); 743 } 703 744 704 745 trunk/wifidog-auth/wifidog/classes/NodeLists/NodeListPDF.php
r1253 r1313 68 68 if (!$_serverBusy) { 69 69 // Load FPDF library 70 require_once("lib/fpdf /fpdf.php");70 require_once("lib/fpdf153/fpdf.php"); 71 71 72 72 /** trunk/wifidog-auth/wifidog/install.php
r1306 r1313 551 551 navigation(array(array("title" => "Back", "page" => "Database"))); 552 552 die(); 553 break; 553 554 } 554 555 print "</li>"; … … 767 768 768 769 <div class="language"> 769 <form class="language" name="lang_form" method="post" action="{$formAction}">770 770 <div>Default Server Locale: 771 771 <select name="default_locale" onchange="newConfig('DEFAULT_LANG=' + this.options[this.selectedIndex].value);"> … … 785 785 </select> 786 786 </div> 787 </form>788 787 </div> 789 788
