diff --git a/app/Telemetry.php b/app/Telemetry.php index eae4a70c..3e8fb62e 100644 --- a/app/Telemetry.php +++ b/app/Telemetry.php @@ -1,6 +1,6 @@ "https://api.mythicalsystems.me/telemetry?project=mythicaldash&action=NewUser&authKey=AxWTnecj85SI4bG6rIP8bvw2uCF7W5MmkJcQIkrYS80MzeTraQWyICL690XOio8F", + CURLOPT_URL => "https://api.mythicalsystems.me/telemetry?project=mythicaldash&action=NewUser&authKey=AxWTnecj85SI4bG6rIP8bvw2uCF7W5MmkJcQIkrYS80MzeTraQWyICL690XOio8F&hastoken=".Encryption::generate_keynoinfo(), CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, @@ -25,7 +25,7 @@ public static function NewServer() $curl = curl_init(); curl_setopt_array($curl, [ - CURLOPT_URL => "https://api.mythicalsystems.me/telemetry?project=mythicaldash&action=NewWebsite&authKey=AxWTnecj85SI4bG6rIP8bvw2uCF7W5MmkJcQIkrYS80MzeTraQWyICL690XOio8F", + CURLOPT_URL => "https://api.mythicalsystems.me/telemetry?project=mythicaldash&action=NewServer&authKey=AxWTnecj85SI4bG6rIP8bvw2uCF7W5MmkJcQIkrYS80MzeTraQWyICL690XOio8F&hastoken=".Encryption::generate_keynoinfo(), CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, @@ -42,7 +42,7 @@ public static function NewInstall() $curl = curl_init(); curl_setopt_array($curl, [ - CURLOPT_URL => "https://api.mythicalsystems.me/telemetry?project=mythicaldash&action=NewInstall&authKey=AxWTnecj85SI4bG6rIP8bvw2uCF7W5MmkJcQIkrYS80MzeTraQWyICL690XOio8F", + CURLOPT_URL => "https://api.mythicalsystems.me/telemetry?project=mythicaldash&action=NewInstall&authKey=AxWTnecj85SI4bG6rIP8bvw2uCF7W5MmkJcQIkrYS80MzeTraQWyICL690XOio8F&hastoken=".Encryption::generate_keynoinfo(), CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, @@ -59,7 +59,7 @@ public static function NewNode() $curl = curl_init(); curl_setopt_array($curl, [ - CURLOPT_URL => "https://api.mythicalsystems.me/telemetry?project=mythicaldash&action=NewNode&authKey=AxWTnecj85SI4bG6rIP8bvw2uCF7W5MmkJcQIkrYS80MzeTraQWyICL690XOio8F", + CURLOPT_URL => "https://api.mythicalsystems.me/telemetry?project=mythicaldash&action=NewNode&authKey=AxWTnecj85SI4bG6rIP8bvw2uCF7W5MmkJcQIkrYS80MzeTraQWyICL690XOio8F&hastoken=".Encryption::generate_keynoinfo(), CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, @@ -76,7 +76,7 @@ public static function NewTicket() $curl = curl_init(); curl_setopt_array($curl, [ - CURLOPT_URL => "https://api.mythicalsystems.me/telemetry?project=mythicaldash&action=NewTicket&authKey=AxWTnecj85SI4bG6rIP8bvw2uCF7W5MmkJcQIkrYS80MzeTraQWyICL690XOio8F", + CURLOPT_URL => "https://api.mythicalsystems.me/telemetry?project=mythicaldash&action=NewTicket&authKey=AxWTnecj85SI4bG6rIP8bvw2uCF7W5MmkJcQIkrYS80MzeTraQWyICL690XOio8F&hastoken=".Encryption::generate_keynoinfo(), CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, diff --git a/public/index.php b/public/index.php index 5a9f63ef..1bd48574 100644 --- a/public/index.php +++ b/public/index.php @@ -73,7 +73,11 @@ require("../include/main.php"); require("../view/errors/404.php"); }); - $router->route(); + try { + $router->route(); + } catch (Exception $e) { + ErrorHandler::Critical("Automated Message",$e->getMessage()); + } } ?> \ No newline at end of file