30 require_once(
'Archive/Tar.php');
35 $files = glob(
"$pkgName/*.php");
37 $files = array_merge(
$files, glob(
"$pkgName/docs/*.php"));
38 $files = array_merge(
$files, glob(
"$pkgName/docs/includes/*.php"));
39 $files = array_merge(
$files, glob(
"$pkgName/examples/*.php"));
40 $files = array_merge(
$files, glob(
"$pkgName/tests/*.php"));
41 $files = array_merge(
$files, glob(
"$pkgName/utils/*.php"));
46 $webDir = substr($_SERVER[
'PHP_SELF'], 0, -18);
47 $urlPath =
"http://".$_SERVER[
'HTTP_HOST'].$webDir.
"/downloads";
50 header(
"Location: $urlPath/$tarName");
54 include_once
"includes/header.php";
55 include_once
"includes/navbar.php";
58 Download current version:
61 <li><a href=
'<?php echo $_SERVER['PHP_SELF
']."?op=download"; ?>'><?php echo
$tarName ?></a></li>
64 include_once
"includes/footer.php";