diff --git a/www/images/favicon.png b/www/images/favicon.png new file mode 100644 index 0000000..8522275 Binary files /dev/null and b/www/images/favicon.png differ diff --git a/www/images/gitkeep b/www/images/gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/www/index.php b/www/index.php new file mode 100644 index 0000000..09d8856 --- /dev/null +++ b/www/index.php @@ -0,0 +1,137 @@ +] +if ($partcount == 3 && $pathparts[0] == 'programs' && $pathparts[1] == 'cat') +{ + $OPTIONS = [ 'categoryfilter' => $pathparts[2] ]; + include 'pages/programs_list.php'; + return; +} + +// [programs/view/] +if ($partcount == 3 && $pathparts[0] == 'programs' && $pathparts[1] == 'view') +{ + $OPTIONS = [ 'id' => $pathparts[2] ]; + include 'pages/programs_view.php'; + return; +} + +// [programs/download/] +if ($partcount == 3 && $pathparts[0] == 'programs' && $pathparts[1] == 'download') +{ + $OPTIONS = [ 'id' => $pathparts[2] ]; + include 'pages/programs_download.php'; + return; +} + +// [log/] +if ($partcount == 1 && $pathparts[0] == 'log') +{ + $OPTIONS = [ 'id' => -1 ]; + include 'pages/log.php'; + return; +} + +// [log/] +if ($partcount == 2 && $pathparts[0] == 'log') +{ + $OPTIONS = [ 'id' => $pathparts[1] ]; + include 'pages/log.php'; + return; +} + +// [update.php] +if ($partcount == 1 && $pathparts[0] == 'update.php') +{ + $OPTIONS = [ 'name' => '' ]; + include 'pages/updatecheck.php'; + return; +} + +// [update.php/] +if ($partcount == 2 && $pathparts[0] == 'update.php') +{ + $OPTIONS = [ 'name' => $pathparts[1] ]; + include 'pages/updatecheck.php'; + return; +} + +// [update/] +if ($partcount == 1 && $pathparts[0] == 'update') +{ + $OPTIONS = [ 'name' => '' ]; + include 'pages/updatecheck.php'; + return; +} + +// [update/] +if ($partcount == 2 && $pathparts[0] == 'update') +{ + $OPTIONS = [ 'name' => $pathparts[1] ]; + include 'pages/updatecheck.php'; + return; +} + +// [blog/] +if ($partcount == 1 && $pathparts[0] == 'blog') +{ + $OPTIONS = []; + include 'pages/blog_list.php'; + return; +} + +// [blog/] +if ($partcount == 2 && $pathparts[0] == 'blog') +{ + $OPTIONS = [ 'id' => $pathparts[1] ]; + include 'pages/blog_view.php'; + return; +} + +// [blog//] +if ($partcount == 3 && $pathparts[0] == 'blog') +{ + $OPTIONS = [ 'id' => $pathparts[1], 'subview' => '' ]; + include 'pages/blog_view.php'; + return; +} + +// [blog///] +if ($partcount == 4 && $pathparts[0] == 'blog') +{ + $OPTIONS = [ 'id' => $pathparts[1], 'subview' => $pathparts[3] ]; + include 'pages/blog_view.php'; + return; +} + +// [msmain/admin/egh/] +if ($partcount == 4 && $pathparts[0] == 'msmain' && $pathparts[1] == 'admin' && $pathparts[2] == 'egh') +{ + $OPTIONS = [ 'commandcode' => $pathparts[3] ]; + include 'pages/egh.php'; + return; +} + +die("Invalid path:" . $path); //TODO \ No newline at end of file diff --git a/www/pages/main.php b/www/pages/main.php new file mode 100644 index 0000000..cd2d5f6 --- /dev/null +++ b/www/pages/main.php @@ -0,0 +1,12 @@ + + + + + Mikescher.com + + + + +Hello World + + \ No newline at end of file