Initial commit

This commit is contained in:
2020-01-18 05:51:45 +08:00
Unverified
commit e0da205b34
1758 changed files with 550610 additions and 0 deletions
Executable
+23
View File
@@ -0,0 +1,23 @@
<?php
namespace SakuraPanel;
class Pages {
public function loadPage($name, $data = null)
{
if(file_exists(ROOT . "/pages/{$name}.php")) {
include(ROOT . "/pages/{$name}.php");
} else {
include(ROOT . "/pages/404.php");
}
}
public function loadModule($name, $data = null)
{
if(file_exists(ROOT . "/modules/{$name}.php")) {
include(ROOT . "/modules/{$name}.php");
} else {
include(ROOT . "/modules/404.php");
}
}
}