Skip to content

Commit

Permalink
PUSH
Browse files Browse the repository at this point in the history
-> Added more info to collect for telemetry
  • Loading branch information
NaysKutzu committed Oct 29, 2023
1 parent 0e5d571 commit 4a54a7a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 6 additions & 6 deletions app/Telemetry.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php
namespace MythicalDash;

use MythicalDash\Encryption;
class Telemetry
{
public static function NewUser()
{
$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down
6 changes: 5 additions & 1 deletion public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

?>

0 comments on commit 4a54a7a

Please sign in to comment.