Changeset 1313

Show
Ignore:
Timestamp:
12/23/07 23:38:43 (10 months ago)
Author:
benoitg
Message:
  • install.php, Dependency.php: Commit install script improvements by Robin Jones
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wifidog-auth/CHANGELOG

    r1312 r1313  
    222007-12-23 Benoit GrĂ©goire  <bock@step.polymtl.ca> 
    33        * Node.php:  Fix bug in setCurrentNode() reported by Vacio 
     4        * install.php, Dependency.php:  Commit install script improvements by Robin Jones 
    45         
    562007-11-29 Benoit GrĂ©goire  <bock@step.polymtl.ca> 
  • trunk/wifidog-auth/wifidog/classes/Dependency.php

    r1306 r1313  
    8181           *    "phpExtension":  Standard PHP extension  
    8282           *    "peclStandard":  Standard (in the PECL reposidory) PECL PHP module 
    83            *    "peclStandard":  Standard (in the PEAR reposidory) PEAR PHP module 
     83           *    "peclStandard":  PEAR PHP module in the standard PEAR repository or in a custom channel 
    8484           *    "pearCustom":   PEAR-compatible tarball 
    8585           *    "localLib": Custom PHP extension, to be downloaded and installed in wifidog/lib 
     
    8989           * 'website' => URL to the dependency's official website 
    9090       * '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) 
    9192       * 'installMethod' => For localLib, the protocol to be used to download and install the dependency.  Currently, allowed values are: 
    9293       *        'tarball': Decompress a tarball in wifidog/lib 
    9394       * '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. 
    9496       *  
    9597       * @var array 
     
    200202       "radius" => array ( 
    201203       "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)
    203205       ), 
    204206 
     
    206208       "FCKeditor" => array ( 
    207209       "type" => "localLib", 
    208        "detectFiles" => "lib/FCKeditor/fckeditor.php", 
     210       "detectFiles" => "lib/fckeditor/fckeditor.php", 
    209211       '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        
    212218       "FPDF" => array ( 
    213219       "type" => "localLib", 
    214        "detectFiles" => "lib/fpdf/fpdf.php", 
     220       "detectFiles" => "lib/fpdf153/fpdf.php", 
    215221       '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" 
    217227       ), 
    218228       "php-openid" => array ( 
     
    246256       "Cache" => array ( 
    247257       "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", 
    250260       ), 
    251261       "HTML_Safe" => array ( 
    252262       "type" => "pearStandard", 
    253263       "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" 
    255266       ), 
    256267       "Image_Graph" => array ( 
    257268       "type" => "pearStandard", 
    258269       "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" 
    260272       ), 
    261273       "Image_Canvas" => array ( 
    262274       "type" => "pearStandard", 
    263275       "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" 
    265278       ), 
    266279       "Image_Color" => array ( 
     
    508521                                 $this->getId()); 
    509522                             } 
    510  
    511  
    512523                             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                                  
    515548                         case "pearCustom": 
    516549                             if($this->getInstallSourceUrl()) { 
     
    518551                             } 
    519552                             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()); 
    521554                             } 
    522555                             $html .= sprintf(_("To install this custom PEAR extension, use 'sudo pear install %s'"), $installSource); 
    523556                             break; 
     557                              
     558                              
    524559                         default: 
    525560                             $html .= sprintf(_("Sorry, I don't know how to install a %s extension"), $type); 
     
    615650                      return $retval; 
    616651                  } 
     652                   
    617653 
    618654                  /** 
     
    699735                                       $downloadPath = WIFIDOG_ABS_FILE_PATH . "tmp/"; 
    700736                                       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                                        } 
    703744 
    704745 
  • trunk/wifidog-auth/wifidog/classes/NodeLists/NodeListPDF.php

    r1253 r1313  
    6868    if (!$_serverBusy) { 
    6969        // Load FPDF library 
    70         require_once("lib/fpdf/fpdf.php"); 
     70        require_once("lib/fpdf153/fpdf.php"); 
    7171 
    7272        /** 
  • trunk/wifidog-auth/wifidog/install.php

    r1306 r1313  
    551551            navigation(array(array("title" => "Back", "page" => "Database"))); 
    552552            die(); 
     553            break; 
    553554        } 
    554555        print "</li>"; 
     
    767768 
    768769       <div class="language"> 
    769            <form class="language" name="lang_form" method="post" action="{$formAction}"> 
    770770               <div>Default Server Locale: 
    771771        <select name="default_locale" onchange="newConfig('DEFAULT_LANG=' + this.options[this.selectedIndex].value);"> 
     
    785785                </select> 
    786786               </div> 
    787            </form> 
    788787       </div> 
    789788