Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
packages [2015/03/31 21:07] hesspackages [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== Software Packages ===== 
-NRSW as of version 3.8 is composed of the following software packages: 
-<php> 
-$licenses = Array(       
-  "apache-1.0"                    => "Apache v1.0", 
-  "apache-1.1"                    => "Apache v1.1", 
-  "apache-2.0"                    => "Apache v2.0", 
-  "bsd"                           => "BSD", 
-  "bsd-1"                         => "BSD 1-clause", 
-  "bsd-2"                         => "BSD 2-clause", 
-  "bsd-3"                         => "BSD 3-clause", 
-  "bsd-4"                         => "BSD 4-clause", 
-  "bsd-sun"                       => "BSD/SUN", 
-  "dual-bsd-gpl"                  => "GPL/BSD Dual", 
-  "gpl-2"                         => "GPL v2",  
-  "gpl-3.1-with-gcc-exception"    => "GPL v3.1 (GCC)", 
-  "isc"                           => "ISC",  
-  "kernel"                        => "GPL v2",  
-  "lgpl-2.1"                      => "LGPL v2.1",  
-  "mit"                           => "MIT",  
-  "openssl"                       => "OpenSSL",  
-  "ppp-mix"                       => "PPP Mix",  
-  "php-3.0"                       => "PHP v3.0",  
-  "public-domain"                 => "Public Domain",  
-  "vendor"                        => "NetModule", 
-  "zlib"                          => "Zlib", 
-); 
  
-echo "<html>"; 
-echo "<table>"; 
-echo "<tr><th>Package</th><th>Version</th><th>License</th></tr>"; 
-$lines = file("data/media/nrsw/packages/packages.txt"); 
-foreach ($lines as $line_num => $line) { 
-  if  (substr( $line, 0, 1 ) === "#") continue; 
-  echo "<tr>"; 
-  $fields = preg_split('/\s+/', $line); 
-  if (count($fields) >= 4) { 
-    $package = $fields[0]; 
-    // $version = array_pop(explode("-",$package)); 
-    $arr = preg_split('/-\d/', $package); 
-    $name = $arr[0];  
-    $version = substr($package,strlen($name)+1, strlen($package)); 
-    // $version = $arr[1];  
-    $license = $licenses[$fields[1]]; 
-    $modified = $fields[2]; 
-    $url = $fields[3]; 
-    $version =  ($modified == "yes" && $license != "NetModule") ? $version . " (modified)" : $version; 
-    echo ($url!="") ? "<td><a href='$url'>". $name . "</a></td>" : "<td>". $name . "</td>"; 
-    echo "<td>". $version . "</td>"; 
-    echo "<td>". $license . "</td>"; 
-  } 
-  echo "</tr>"; 
-} 
-echo "</table>"; 
-echo "</html>"; 
-</php>