Skip to content

Commit

Permalink
beta-release
Browse files Browse the repository at this point in the history
  • Loading branch information
justalinko committed Oct 5, 2018
1 parent df2ef2e commit 28da34e
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 295 deletions.
14 changes: 12 additions & 2 deletions config/route.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,18 @@

$CONFIG['route']['default'] = 'AppMain';

$CONFIG['route']['static_header'] = 'modules/crud_header';
$CONFIG['route']['static_header'] = '';

$CONFIG['route']['static_footer'] = 'modules/crud_footer';
$CONFIG['route']['static_footer'] = '';

$CONFIG['route']['static_sidebar'] = '';


// Except. kecuali

$CONFIG['route']['except_header'] = ['auth'];

$CONFIG['route']['except_footer'] = ['auth'];

$CONFIG['route']['except_sidebar'] = ['auth'];

13 changes: 9 additions & 4 deletions includes/AppControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
*/


if(!empty($CONFIG['route']['static_header'])){
if(!empty($CONFIG['route']['static_header']) && !in_array($get_page,$CONFIG['route']['except_header'])){

require_once $CONFIG['route']['base_dir'].$CONFIG['route']['static_header'].'.php';
}
if(!empty($CONFIG['route']['static_sidebar']))
if(!empty($CONFIG['route']['static_sidebar']) && !in_array($get_page,$CONFIG['route']['except_sidebar']))
{
require_once $CONFIG['route']['base_dir'].$CONFIG['route']['static_sidebar'].'.php';
}
Expand All @@ -30,11 +31,15 @@
{
require_once $CONFIG['path']['modules'].$CONFIG['url']['p'].'.php';
}else{
exit('Halaman 404 ');
echo "<h1>Not found</h1>";
echo "<hr>";
echo "<i>Tidak di temukan ".$CONFIG['path']['modules'].$CONFIG['url']['p'].'.php</i>';
echo "<br><br>Software powered by : <b>PaniCode v1.0-2018</b>";
exit;
}
}

if(!empty($CONFIG['route']['static_footer'])){
if(!empty($CONFIG['route']['static_footer']) && !in_array($get_page,$CONFIG['route']['except_footer'])){
require_once $CONFIG['route']['base_dir'].$CONFIG['route']['static_footer'].'.php';
}

Expand Down
37 changes: 0 additions & 37 deletions includes/modules/crud/tambah_jurusan.php

This file was deleted.

36 changes: 0 additions & 36 deletions includes/modules/crud/tambah_kelas.php

This file was deleted.

59 changes: 0 additions & 59 deletions includes/modules/crud/tambah_siswa.php

This file was deleted.

3 changes: 0 additions & 3 deletions includes/modules/crud_footer.php

This file was deleted.

38 changes: 0 additions & 38 deletions includes/modules/crud_header.php

This file was deleted.

116 changes: 0 additions & 116 deletions includes/modules/crud_panicode.php

This file was deleted.

0 comments on commit 28da34e

Please sign in to comment.