-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.php
83 lines (71 loc) · 3.67 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
error_reporting(E_ERROR);
require './config.php';
session_start();
$selected_language = isset($_GET['lang']) ? $_SESSION['selected_language'] = $_GET['lang'] : (isset($_SESSION['selected_language']) ? $_SESSION['selected_language'] : 'fa');
$lang = $selected_language == 'en' ? require './lang/en.php' : require './lang/fa.php';
if (strlen($crisp) >= 20) $crisp_script = "<script type='text/javascript'>window.\$crisp=[];window.CRISP_WEBSITE_ID='{$crisp}';(function(){d=document;s=d.createElement('script');s.src='https://client.crisp.chat/l.js';s.async=1;d.getElementsByTagName('head')[0].appendChild(s);})();</script>";
if (strlen($goftino) >= 3) $goftino_script ="<script type='text/javascript'> !function(){var i='{$goftino}',d=document,g=d.createElement('script'),s='https://www.goftino.com/widget/'+i,l=localStorage.getItem('goftino_'+i);g.type='text/javascript',g.async=!0,g.src=l?s+'?o='+l:s;d.getElementsByTagName('head')[0].appendChild(g);}(); </script>";
if (strlen($raychat) >= 5) $raychat_script ="<script type='text/javascript'> window.RAYCHAT_TOKEN = '$raychat'; (function () { d = document; s = d.createElement('script'); s.src = 'https://widget-react.raychat.io/install/widget.js'; s.async = 1; d.getElementsByTagName('head')[0].appendChild(s); })(); </script>";
?>
<html>
<head>
<link rel="shortcut icon" href="assets/images/raccoon.ico">
<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><?php echo $lang['title_index_page']; ?></title>
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<script src="assets/js/jquery-3.5.1.slim.min.js"></script>
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<div class="home-header-section">
<figure class="banner-right-img left_icon img">
<img src="assets/images/header-right-img.png" alt="" class="star">
</figure>
<div class="home-banner-section overflow-hidden position-relative">
<center>
<div class="logo">
<p><?php echo $lang['search_bar']; ?></p>
</div>
<div class="bar">
<input class="searchbar" type="text" title="Search" id="search_query" name="id" required>
</div>
<div class="buttons">
<button class="button" type="submit" onclick="get_uuid()"><?php echo $lang['button_search']; ?></button>
</div>
<div class="banner-container-box">
<div class="container-fluid">
<div class="row">
<div class="col-xl-6 col-lg-7 col-md-12 col-sm-12 mb-md-0 mb-4 text-md-left text-center order-lg-1 order-2"></div>
<div class="col-xl-6 col-lg-5 col-md-12 col-sm-12 order-lg-2 order-1">
<div class="banner-img-content position-relative">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer-section">
<div class="footer-bar text-center">
<div class="row">
<div class="footer-bar-content w-100">
<p><?php echo $lang['select_lang']; ?>
<a href="?lang=fa">🇮🇷</a>
<a href="?lang=en">🇺🇸</a>
</p>
<p class="text-size-16 mb-0">Coded By <a href="https://github.com/MrAminiNezhad">MrAminiNezhad</a> © 2023. All Rights Reserved.</p>
</div>
</div>
</div>
</div>
<script src="assets/js/index.js"></script>
<?php echo $crisp_script ?? null; ?>
<?php echo $goftino_script ?? null; ?>
<?php echo $raychat_script ?? null; ?>
</body>
</html>