Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
slackbuilds:repository [2015/03/30 12:39] Giuseppe Di Terlizzislackbuilds:repository [2015/04/03 15:17] (current) Giuseppe Di Terlizzi
Line 1: Line 1:
 ====== Lotar's SlackBuilds Repository ====== ====== Lotar's SlackBuilds Repository ======
  
-<PHP>+<php>
  
 date_default_timezone_set('UTC'); date_default_timezone_set('UTC');
Line 11: Line 11:
 $parent_dir    = dirname("/$current_dir"); $parent_dir    = dirname("/$current_dir");
 $excluded_file = array(basename($_SERVER['PHP_SELF']), '.htaccess', 'index.php'); $excluded_file = array(basename($_SERVER['PHP_SELF']), '.htaccess', 'index.php');
-$url_path      = 'http://lotar.altervista.org/slackbuils'; //rtrim(dirname($_SERVER['SCRIPT_NAME']), '/');+$url_path      = 'http://lotar.altervista.org/slackbuilds'; //rtrim(dirname($_SERVER['SCRIPT_NAME']), '/');
  
 $page_title    = ""; $page_title    = "";
Line 35: Line 35:
   $readme = file_get_contents("$work_dir/$current_dir/../README");   $readme = file_get_contents("$work_dir/$current_dir/../README");
 } }
- 
-echo "<h2>$page_title</h2>"; 
  
 if ($readme) { if ($readme) {
-   echo '<div style="white-space:pre; font-family:monospace">';+   echo '<style="white-space:pre; font-family:monospace">';
    echo preg_replace("/^($package:)/m", '', $readme);    echo preg_replace("/^($package:)/m", '', $readme);
    //echo $readme;    //echo $readme;
-   echo '</div>';+   echo '</p>';
 } }
  
 echo '<table>'; echo '<table>';
 +echo "<caption>$page_title</caption>";
 echo '<thead> echo '<thead>
   <tr>   <tr>
Line 61: Line 60:
   echo "   echo "
   <tr>   <tr>
-    <td><a href=\"?_dir=$parent_dir\"><i class=\"fa fa-arrow-left fa-lg\"></i></a></td>+    <td><a href=\"?_dir=$parent_dir\"><i class=\"fa fa-arrow-left fa-lg fa-fw\"></i></a></td>
     <td><a href=\"?_dir=$parent_dir\">Parent Directory</a></td>     <td><a href=\"?_dir=$parent_dir\">Parent Directory</a></td>
     <td>&nbsp;</td>     <td>&nbsp;</td>
Line 122: Line 121:
     echo "     echo "
     <tr>     <tr>
-      <td><a href=\"$href\"><i class=\"fa $icon fa-lg\"></i></a></td>+      <td><a href=\"$href\"><i class=\"fa $icon fa-lg fa-fw\"></i></a></td>
       <td><a href=\"$href\">$file</a></td>       <td><a href=\"$href\">$file</a></td>
       <td>".date("d-M-Y H:i",@filemtime($file))."</td>       <td>".date("d-M-Y H:i",@filemtime($file))."</td>
Line 135: Line 134:
   </tbody>   </tbody>
 </table>'; </table>';
-</PHP>+ 
 +</php>
  
 ~~NOCACHE~~ ~~NOCACHE~~
  • slackbuilds/repository.1427711994.txt.gz
  • Last modified: 9 years ago
  • by Giuseppe Di Terlizzi