Ticket #381: install.php.diff

File install.php.diff, 1.8 KB (added by leandro@…, 7 years ago)
  • install.php

     
    515515            print "Already installed !<br/>"; 
    516516} 
    517517else { 
     518    require_once (dirname(__FILE__) . '/include/common.php'); 
    518519    $output = WIFIDOG_ABS_FILE_PATH."tmp/"; 
    519520    //chdir($output); 
    520521    list ($url, $filename) = split("=", $smarty_full_url); 
     
    522523    print "Download source code ($filename) : "; 
    523524    if (!file_exists($output.$filename)) 
    524525    Dependency::downloadFile($smarty_full_url, $output.$filename); 
    525  
     526     
    526527    if (!file_exists($output.$filename)) { 
    527528        print "<B STYLE=\"color:red\">Error</b><p>Current working directory : <em>$output</em>"; 
    528529        print "<pre><em>wget \"$smarty_full_url\"</em>\n$output</pre>"; 
     
    575576                )); 
    576577            } 
    577578            elseif ($action == 'install') { 
    578  
     579                require_once (dirname(__FILE__) . '/include/common.php'); 
    579580                print "Download source code frpm svn($filename) : "; 
    580581                Dependency::execVerbose("svn co ".escapeshellarg($neededPackages['simplepie']['svn_source'])." ".escapeshellarg(WIFIDOG_ABS_FILE_PATH."lib/simplepie"), $output, $return); 
    581582                #Dependency::execVerbose("locale", $output, $return); 
     
    633634                )); 
    634635            } 
    635636            elseif ($action == 'install') { 
    636  
     637                require_once (dirname(__FILE__) . '/include/common.php'); 
    637638                print "Download source code frpm svn($filename) : "; 
    638639                Dependency::execVerbose("svn co ".escapeshellarg($neededPackages['feedpressreview']['svn_source'])." ".escapeshellarg(WIFIDOG_ABS_FILE_PATH."lib/feedpressreview"), $output, $return); 
    639640                #Dependency::execVerbose("locale", $output, $return);