Subject | Hash | Author | Date (UTC) |
---|---|---|---|
feat(cke): Check query params. | b3a97739e100e8a5f612bdf2b04df02c5bb9ccda | Gabi | 2020-03-22 16:12:31 |
feat(cke): Htaccess | 0516fa010d248f3b3064ad2efa83b62ef512b3a7 | Gabi | 2020-03-22 16:10:50 |
feat(cke): Initial PHP structure. | 236cf15b8bb7f067063729f607a846ffd25c2fc6 | Gabi | 2020-03-21 16:59:32 |
test(cke): Test deploy | 1bbd41c287f88269ff8362773212e2509b0741b5 | Gabi | 2020-03-21 16:19:50 |
build(cke): CPanel repo | 941c0b1d9fe0a66d1bb78bf3dcdd72d64145ae13 | Gabi | 2020-03-21 16:04:36 |
About us | 2ecf2ec89d59fa0b5bd350e16fc29ecb4d4b1ec8 | Gabi | 2020-03-12 16:42:44 |
Initial commit | 82b9fdfd39cb6352971417fed862fd0cc0b6a938 | Gabi | 2020-03-12 15:02:54 |
File | Lines added | Lines deleted |
---|---|---|
.htaccess | 1 | 1 |
php/common/layout.php | 22 | 1 |
File .htaccess changed (mode: 100644) (index 08f7534..860a299) | |||
8 | 8 | RewriteEngine on | RewriteEngine on |
9 | 9 | RewriteCond %{REQUEST_FILENAME} !-f | RewriteCond %{REQUEST_FILENAME} !-f |
10 | 10 | RewriteCond %{REQUEST_FILENAME} !-d | RewriteCond %{REQUEST_FILENAME} !-d |
11 | RewriteRule ^(.*)$ /index.php?path=$1 [NC,L,QSA] | ||
11 | RewriteRule ^(.*)$ /cke.php?path=$1 [NC,L,QSA] | ||
12 | 12 | </IfModule> | </IfModule> |
13 | 13 | ||
14 | 14 | <IfModule !mod_rewrite.c> | <IfModule !mod_rewrite.c> |
File php/common/layout.php changed (mode: 100644) (index d0df171..98e65d7) | |||
9 | 9 | <noscript>You need to enable JavaScript to run this app.</noscript> | <noscript>You need to enable JavaScript to run this app.</noscript> |
10 | 10 | ||
11 | 11 | <?php | <?php |
12 | include(APPDIR . '/pages/home.php'); | ||
12 | |||
13 | if (isset($_GET['path']) && $_GET['path'] !== '') { | ||
14 | $pagePath = APPDIR . "/pages/${$_GET['path']}.php"; | ||
15 | |||
16 | if (file_exists($pagePath)) { | ||
17 | $path = $_GET['path']; | ||
18 | } else { | ||
19 | $path = '404'; | ||
20 | } | ||
21 | } else { | ||
22 | $path = 'home'; | ||
23 | } | ||
24 | |||
25 | ?> | ||
26 | <pre> | ||
27 | <?php | ||
28 | echo $path; | ||
29 | ?> | ||
30 | </pre> | ||
31 | <?php | ||
32 | |||
33 | include(APPDIR . "/pages/home.php"); | ||
13 | 34 | ?> | ?> |
14 | 35 | ||
15 | 36 | </body> | </body> |