32 lines
1.6 KiB
PHP
32 lines
1.6 KiB
PHP
<?php
|
|
|
|
defined( 'ROOT_DIR' ) || exit;
|
|
|
|
require_once $plugin_path . "scripts/fields.php";
|
|
require_once $plugin_path . "scripts/datatypes.php";
|
|
require_once $plugin_path . "scripts/auth.php";
|
|
require_once $plugin_path . "scripts/settings.php";
|
|
require_once $plugin_path . "scripts/wingman.php";
|
|
require_once $plugin_path . "scripts/links.php";
|
|
|
|
// ROUTERS
|
|
$b->router_add("/" . ADMIN_PAGE . "/%", "bive-admin-panel/template/index.php", array("get", "post"));
|
|
$b->event_add(base64_encode("/" . ADMIN_PAGE . "/%"), "admin_page");
|
|
|
|
function admin_page()
|
|
{
|
|
global $b;
|
|
$b->title_set("Bive - Admin Panel");
|
|
$b->meta_add("viewport", "width=device-width, initial-scale=1.0");
|
|
$b->meta_add("description", "Bive Engine is an effective solution for creating websites.");
|
|
$b->link_add(array("rel" => "preconnect", "href" => "https://fonts.googleapis.com"));
|
|
$b->link_add(array("rel" => "preconnect", "href" => "https://fonts.gstatic.com"));
|
|
$b->link_add(array("rel" => "stylesheet", "href" => "https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap"));
|
|
$b->script_add(array("src" => "https://cdn.ckeditor.com/4.22.1/standard/ckeditor.js", "referrerpolicy" => "origin"));
|
|
$b->link_add(array("rel" => "stylesheet", "href" => "/playarea/plugins/bive-admin-panel/assets/styles/b-styles.css"));
|
|
$b->link_add(array("rel" => "stylesheet", "href" => "/playarea/plugins/bive-admin-panel/assets/styles/styles.css"));
|
|
$b->link_add(array("rel" => "stylesheet", "href" => "/playarea/plugins/bive-admin-panel/assets/styles/visor.css"));
|
|
}
|
|
|
|
$admin_page = $_GET["page"] ?? "dashboard";
|
|
$b->ls_set_key("admin_page", $admin_page); |