-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·39 lines (31 loc) · 1.09 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* ==============================
* Aegis Framework | MIT License
* http://www.aegisframework.com/
* ==============================
*/
// Uncomment on Production
//error_reporting(0);
include("lib/aegis.php");
$session = new Session();
$router = new Router("localhost/Kirino");
$meta = [
"title" => "Kirino - Virtual Assistant Chatbot",
"description" => "Kirino, is an artificial intelligence chatbot, who will help you as a personal assistant and friend.",
"keywords" => "assistant,intelligence,virtual,bot,chat,tak,converse,discuss,ai,ia,kirino,hyuchia,friend",
"author" => "Diego Islas Ocampo",
"twitter" => "@HyuchiaDiego",
"google" => "+HyuchiaDiego",
"domain" => $router -> getBaseUrl(),
"route" => $router -> getFullUrl(),
"year" => date("Y"),
"shareimage" => "share.png"
];
if(!$session -> get("logged")){
$router -> registerRoute("/", new View("main", ["main" => ["year" => $meta["year"]]], $meta));
}else{
$router -> registerRoute("/", new View("loggin", ["loggin" => ["year" => $meta["year"]]], $meta));
}
$router -> listen();
?>