Changeset 1306 for trunk/wifidog-auth/wifidog/classes/Dependency.php
- Timestamp:
- 11/05/07 14:44:57 (6 years ago)
- Files:
-
- 1 modified
-
trunk/wifidog-auth/wifidog/classes/Dependency.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/wifidog/classes/Dependency.php
r1294 r1306 37 37 * @package WiFiDogAuthServer 38 38 * @author Philippe April 39 * @author Max Horv áth <max.horvath@freenet.de>40 * @author Benoit Gr égoire <bock@step.polymtl.ca>39 * @author Max Horváth <max.horvath@freenet.de> 40 * @author Benoit Grégoire <bock@step.polymtl.ca> 41 41 * @copyright 2005-2007 Philippe April 42 * @copyright 2005-2007 Max Horv áth, Horvath Web Consulting43 * @copyright 2006-2007 Benoit Gr égoire, Technologies Coeus inc.42 * @copyright 2005-2007 Max Horváth, Horvath Web Consulting 43 * @copyright 2006-2007 Benoit Grégoire, Technologies Coeus inc. 44 44 * @version Subversion $Id$ 45 45 * @link http://www.wifidog.org/ … … 64 64 * @package WiFiDogAuthServer 65 65 * @author Philippe April 66 * @author Max Horv áth <max.horvath@freenet.de>67 * @author Benoit Gr égoire <bock@step.polymtl.ca>66 * @author Max Horváth <max.horvath@freenet.de> 67 * @author Benoit Grégoire <bock@step.polymtl.ca> 68 68 * @copyright 2005-2007 Philippe April 69 * @copyright 2005-2007 Max Horv áth, Horvath Web Consulting70 * @copyright 2006-2007 Benoit Gr égoire, Technologies Coeus inc.69 * @copyright 2005-2007 Max Horváth, Horvath Web Consulting 70 * @copyright 2006-2007 Benoit Grégoire, Technologies Coeus inc. 71 71 */ 72 72 class Dependency … … 123 123 'installDestination' => "/" 124 124 ), 125 125 126 /* PHP extensions (optional) */ 127 "simplepie" => array ( 128 "type" => "localLib", 129 "detectFiles" => "lib/simplepie/simplepie.inc", 130 'description' => "SimplePie is a dependency that provides an RSS parser in PHP. It is required for RssPressReview. It is is recommended to install it, if you do not, RSS feed options will be disabled.", 131 'website' => "http://simplepie.org/", 132 'installSourceUrl' => "http://svn.simplepie.org/simplepie/branches/1.0/", 133 'installMethod' => "svn", 134 'installDestination' => "simplepie" 135 ), 136 'jpgraph' => array ( 137 "type" => "localLib", 138 "detectFiles" => "lib/jpgraph-1.22/src/jpgraph.php", 139 'description' => "JpGraph is a Object-Oriented Graph creating library for PHP. 140 JpGraph is not currently used by Wifidog (it will be use for statistic graphs in a later version). You can skip this installation if your not a developper.", 141 'website' => "http://www.aditus.nu/jpgraph/", 142 'installSourceUrl' => "http://hem.bredband.net/jpgraph/jpgraph-1.22.tar.gz", 143 'installMethod' => "tarball", 144 'installDestination' => "/" 145 ), 146 'feedpressreview' => array ( 147 "type" => "localLib", 148 "detectFiles" => "lib/feedpressreview/FeedPressReview.inc", 149 'description' => "Feed Press Review allows your athentication server to produce RSS Feeds. It is recommended that it is installed. If it is not installed, the RSS feed options will be disabled.", 150 'website' => "http://projects.coeus.ca/feedpressreview/", 151 'installSourceUrl' => "http://projects.coeus.ca/svn/feedpressreview/trunk/", 152 'installMethod' => "svn", 153 'installDestination' => "feedpressreview" 154 ), 126 155 'gettext' => array ( 127 156 "type" => "phpExtension", … … 282 311 283 312 /** Use PHP internal functions to execute a command 284 @return: Return value of the command*/313  @return: Return value of the command*/ 285 314 function execVerbose($command, & $output, & $return_var, &$errMsg = null) { 286 315 $errMsg .= "Executing: $command <br/>"; … … 469 498 break; 470 499 case "localLib": 471 if($this->getInstallSourceUrl()) {472 $name = $this->getId().'_install';473 $value = sprintf(_("Install %s"), $this->getId());474 $html .= sprintf("<input type='submit' name='%s' value='%s'/>", $name, $value);500 if($this->getInstallSourceUrl()) { 501 $name = $this->getId().'_install'; 502 $value = sprintf(_("Install %s"), $this->getId()); 503 $html .= sprintf("<input type='submit' name='%s' value='%s'/>", $name, $value); 475 504 476 505 } 477 506 else { 478 $html .= sprintf(_("Sorry, i couldn't find the source for %s in installSourceUrl"), $this->getId()); 507 $html .= sprintf(_("Sorry, i couldn't find the source for %s in installSourceUrl"), 508 $this->getId()); 479 509 } 480 510 … … 657 687 } 658 688 else { 659 $installDestinationPath = WIFIDOG_ABS_FILE_PATH . "lib/" ;$installDestinationPathOrig.689 $installDestinationPath = WIFIDOG_ABS_FILE_PATH . "lib/" .$installDestinationPathOrig; 660 690 $installMethod = $this->getInstallMethod(); 661 691 switch($installMethod) { 692 case "svn": 693 self::execVerbose("svn co ".escapeshellarg($installSourceUrl)." ".escapeshellarg ($installDestinationPath), $output, $return, $errorMsg); 694 695 696 break; 697 662 698 case "tarball": 663 699 $downloadPath = WIFIDOG_ABS_FILE_PATH . "tmp/";
