Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
slackbuilds:repository [2015/03/30 12:18] – Giuseppe Di Terlizzi | slackbuilds:repository [2015/03/30 12:41] – Giuseppe Di Terlizzi | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Lotar' | ||
+ | |||
<PHP> | <PHP> | ||
Line 6: | Line 8: | ||
$work_dir | $work_dir | ||
- | $current_dir | + | $current_dir |
$parent_dir | $parent_dir | ||
$excluded_file = array(basename($_SERVER[' | $excluded_file = array(basename($_SERVER[' | ||
- | $url_path | + | $url_path |
$page_title | $page_title | ||
Line 25: | Line 27: | ||
} | } | ||
- | $readme = null; | + | $readme |
+ | list($package) = explode('/', | ||
- | if (file_exists(" | + | if (file_exists(" |
$readme = file_get_contents(" | $readme = file_get_contents(" | ||
} elseif (file_exists(" | } elseif (file_exists(" | ||
$readme = file_get_contents(" | $readme = file_get_contents(" | ||
} | } | ||
+ | |||
+ | echo "< | ||
if ($readme) { | if ($readme) { | ||
- | echo '<pre class="readme">'; | + | echo '<p style="white-space: |
- | //$readme = file_get_contents(" | + | echo preg_replace("/ |
- | //echo preg_replace("/ | + | //echo $readme; |
- | echo $readme; | + | echo '</p>'; |
- | echo '</pre>'; | + | |
} | } | ||
Line 57: | Line 61: | ||
echo " | echo " | ||
<tr> | <tr> | ||
- | < | + | < |
- | < | + | < |
< | < | ||
<td> - </td> | <td> - </td> | ||
Line 73: | Line 77: | ||
$size = " | $size = " | ||
$icon = ' | $icon = ' | ||
- | $href = ($current_dir) ? "?dir=/ | + | $href = ($current_dir) ? "?_dir=/ |
} else { | } else { | ||
Line 115: | Line 119: | ||
if (! in_array($file, | if (! in_array($file, | ||
- | |||
- | $odd = (++$i % 2) ? '' | ||
echo " | echo " | ||
- | < | + | <tr> |
< | < | ||
< | < |