Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
slackbuilds:repository [2015/03/30 12:18] – Giuseppe Di Terlizzi | slackbuilds:repository [2015/04/03 15:17] (current) – Giuseppe Di Terlizzi | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <PHP> | + | ====== Lotar' |
+ | |||
+ | <php> | ||
date_default_timezone_set(' | date_default_timezone_set(' | ||
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(" | ||
Line 34: | Line 37: | ||
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>'; | + | |
} | } | ||
echo '< | echo '< | ||
+ | echo "< | ||
echo '< | echo '< | ||
<tr> | <tr> | ||
Line 57: | Line 60: | ||
echo " | echo " | ||
<tr> | <tr> | ||
- | < | + | < |
- | < | + | < |
< | < | ||
<td> - </td> | <td> - </td> | ||
Line 73: | Line 76: | ||
$size = " | $size = " | ||
$icon = ' | $icon = ' | ||
- | $href = ($current_dir) ? "?dir=/ | + | $href = ($current_dir) ? "?_dir=/ |
} else { | } else { | ||
Line 115: | Line 118: | ||
if (! in_array($file, | if (! in_array($file, | ||
- | |||
- | $odd = (++$i % 2) ? '' | ||
echo " | echo " | ||
- | < | + | < |
- | < | + | < |
< | < | ||
< | < | ||
Line 133: | Line 134: | ||
</ | </ | ||
</ | </ | ||
- | </PHP> | + | |
+ | </php> | ||
~~NOCACHE~~ | ~~NOCACHE~~ |