-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
38 lines (30 loc) · 1.19 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
<?php
// Include necessary functions and JavaScript functions
session_start();
include_once $_SERVER['DOCUMENT_ROOT'] . '/includes/functions.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/includes/js_functions.php';
// Start or resume the PHP session
// Check if the 'link' parameter is not set in the URL
if (!isset($_GET["link"])) {
// If not set, generate a new link and store it in the session
$_SESSION["link"] = generateLink();
} else {
// If 'link' is set in the URL, use that value and store it in the session
$_SESSION["link"] = $_GET["link"];
}
// Check if 'from_nheek' is set in the URL, if not, set it to an empty string
$fromNheek = isset($_GET["from_nheek"]) ? $_GET["from_nheek"] : "";
?>
<!DOCTYPE html>
<html lang="en">
<!-- Import the head here -->
<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/src/head.php'; ?>
<!-- Import the body here -->
<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/src/body.php'; ?>
</html>
<!-- Import the main script file here -->
<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/src/scripts/main.php'; ?>
<style>
/* Import the main css file here */
<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/src/styles/style.css'; ?>
</style>