-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.php
63 lines (55 loc) · 2.23 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
include "./conn/conn.php";
include "./assets/files/get_webfixer/latest_webfixer.php";
include "./assets/files/header/body_header.php";
include "./assets/files/footer/footer_main.php";
include "./assets/files/header/hero_section.php";
//Starting a session for scrape YouTube
session_start();
function generateRandomString($length = 50) {
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$charactersLength = strlen($characters);
$randomString = '';
for ($i = 0; $i < $length; $i++) {
$randomString .= $characters[rand(0, $charactersLength - 1)];
}
return $randomString;
}
$_SESSION["user_session_id"] = md5(generateRandomString());
setcookie("_SESSION", md5($_SESSION["user_session_id"]), time() + 120, "/");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FIPY Downloader</title>
<link rel="stylesheet" href="<?php echo get_latest_webfixer($conn)?>/tailwind.css"/>
<link rel="shortcut icon" href="<?php echo get_latest_webfixer($conn)?>/assets/logo_fav/fav.svg" type="image/x-icon">
<!--library css-->
<link rel="stylesheet" href="<?php echo get_latest_webfixer($conn)?>/assets/lib/style.css"/>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<!-- dark and light mode theme check -->
<script src="<?php echo get_latest_webfixer($conn)?>/theme.js" ></script>
</head>
<body class="bg-gray-100 dark:bg-gray-900 overflow-x-hidden">
<!-- Header navbar designed started -->
<?php
body_header_navbar($conn,get_latest_webfixer($conn));
?>
<!-- Header navbar designed ended -->
<!-- Header hero section design started -->
<?php
header_hero_section(get_latest_webfixer($conn));
?>
<!-- Header hero section design ended -->
<!-- Footer section design started -->
<?php echo footer(get_latest_webfixer($conn));?>
<!-- Footer section design ended -->
<script src="<?php echo get_latest_webfixer($conn)?>/main.js" ></script>
<!-- This js is a library section -->
<script src="<?php echo get_latest_webfixer($conn)?>/assets/lib/main.js"></script>
<!-- This js is a library section -->
</body>
</html>