-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.php
30 lines (27 loc) · 1.04 KB
/
base.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
<?php
// error_reporting(0);
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
require 'vendor/autoload.php';
Sentry\init(['dsn' => 'https://[email protected]/5502794',
'traces_sample_rate' => 1.0 ]);
Sentry\configureScope(function (Sentry\State\Scope $scope): void {
$scope->setUser(['username' =>'localhost']);
});
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
define("DIR_ROOT", "https://localhost/gragtrack2/");
define("DIR_INC", "include/");
define("DIR_ADMIN", "admin/");
define("DIR_USER", "member/");
define("DIR_API", "API/");
define("APP_Name", "grag_app");
define("Parents","../");
define("Grand_Parents"," ../../");
define("parent_Grand_Parents","../../../");
define("DIR_NGROK",'https://6d67528ee341.ngrok.io/gragtrack2/');
?>