-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinscription.php
43 lines (32 loc) · 1.22 KB
/
inscription.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
<?php
require('./config/config.php');
require('./code/init.php');
if (isset($_COOKIE['login'])) {
header(URL_HEADER . 'logout_c.php?prj=' . $_GET['prj']);
exit;
}
require('./code/dbaccess.class.php');
require('./code/dbaccess-users.class.php');
require('./code/template.class.php');
$ui = parse_ini_file('./html/' . $_GET['prj'] . '/ui.ini', TRUE);
$db = new Database();
if (!$db->connx) {
header(URL_HEADER . 'home.php?prj=' . $_GET['prj']);
exit;
}
$dbaUsers = new dbaccessUsers($db);
$template = new Template();
$template->SetPageVars($_GET['prj'], 'inscription', $dbaUsers);
$template->SetTrunkVar('TAB_TITLE', $ui['tabs']['inscription']);
$template->SetGlobalVar('_PRJ_', $_GET['prj']);
$template->SetTrunkVars($ui['inscription']);
$laHtml = file_get_contents('./html/' . $_GET['prj'] . '/license_agreement.div.html');
$mainright = file_get_contents('./html/' . $_GET['prj'] . '/home-right.div.html');
$template->SetTrunkVars(array('LICENSE_AGREEMENT' => $laHtml,
'MAINRIGHT' => $mainright));
// display
$template->Grow('./html/div.head.tpl.html');
$template->Grow('./html/inscription.div.tpl.html');
$template->Grow('./html/div.foot.tpl.html');
$_SESSION['nospambot_time'] = time();
?>