-
Notifications
You must be signed in to change notification settings - Fork 2
/
add_url.php
42 lines (33 loc) · 1.13 KB
/
add_url.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
<?php
session_start();
header("Content-Type: text/html; charset=utf-8");
include('includes/config.inc.php');
include('includes/db.tables.inc.php'); // Descrierea tabelelor din baza de date
include('includes/functions/db.functions.php'); // Functii pentru baza de date
include('includes/functions/functions.php');
include('simplehtmldom/simple_html_dom.php');
connect(); // Conectare la baza de date
//==========================================================================
// Try to store the $_GET params in the $_SESSION for further reference
storeSessionParams();
if (! isLogged() && ! tokenLogin()) {
//header('Location: '.$websiteURL.'login.php');
var_dump($_GET['token']);
var_dump($_SESSION);
exit;
}
if (! checkSessionParams()) {
header('Location: '.$websiteURL.'index.php');
}
if (isSetDetails()) {
if (isValidRequest()) {
insertUserData();
} else {
// Eroare
}
header('Location: '.$websiteURL.'index.php');
} else {
$error = "Te rugam sa completezi campurile. ";
}
// Se include pagina
include('pages/set_stuff_details.php');