Browse Source

add index redirect to first available sub module

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1055 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 9 years ago
parent
commit
feeca445c5
  1. 12
      htdocs/index.php

12
htdocs/index.php

@ -0,0 +1,12 @@
<?php
chdir("common");
require_once "common.php";
if (!$modules) {
die("no sub modules' php pages installed");
}
foreach ($modules as $k => $v) {
header("Location: $k/");
break;
}
Loading…
Cancel
Save