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
Last revision Both sides next revision
slackbuilds:repository [2015/03/30 12:36]
Giuseppe Di Terlizzi
slackbuilds:repository [2015/03/30 12:43]
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 135: Line 134:
   </tbody>   </tbody>
 </table>'; </table>';
-</PHP>+ 
 +</php>
  
 ~~NOCACHE~~ ~~NOCACHE~~
  • slackbuilds/repository.txt
  • Last modified: 7 years ago
  • by Giuseppe Di Terlizzi