From 30ef777ebf8030b529c175d04d3ca14f92b1884a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sat, 21 Oct 2017 23:04:06 +0200 Subject: [PATCH] basics --- www/images/favicon.png | Bin 0 -> 395 bytes www/images/gitkeep | 0 www/index.php | 137 +++++++++++++++++++++++++++++++++++++++++ www/pages/main.php | 12 ++++ 4 files changed, 149 insertions(+) create mode 100644 www/images/favicon.png create mode 100644 www/images/gitkeep create mode 100644 www/index.php create mode 100644 www/pages/main.php diff --git a/www/images/favicon.png b/www/images/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..8522275b461812763641250c0a1f805a19742b87 GIT binary patch literal 395 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}Ea{HEjtmSN z`?>!lvI6;>1s;*b3=DjSL74G){)!Z!phSslL`iUdT1k0gQ7S`0VrE{6US4X6f{C7i zp3(1z%Z~xo{PA>g42f{RJMFaKVFezS*nlh#-k1CN<9!!d7@Uskwm;DF@uBR5uuIlP ztpYJ}=fg8N-}mQm&HwP}aBRrQL*F;Gvt}${pXoCF@n@Ue4r-nz_IVY@l_&i6a$(Gg zagzz!8_M9kb;aWwkL$!4?SdA~J`mWs=)lC(8^`yspO;GJdc*tvYp7b&PD56n{0jk+ zYqa;g`OC6l*#X(d+#jMBKHG6_?=vQ@scVHk6md<>R%bP0l+XkKOJbi^ literal 0 HcmV?d00001 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