-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
57 lines (47 loc) · 1.28 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
<?php
session_start();
require_once('app/@config.php');
require_once('header.php');
?>
<?php
if ($_GET['ref']) {
$_SESSION['ref'] = $_GET['ref'];
} else {
if (!$_SESSION['ref']) {
$_SESSION['ref'] = "";
}
}
if ($_GET['desc']) {
$_SESSION['desc'] = $_GET['desc'];
} else {
if (!$_SESSION['desc']) {
$_SESSION['desc'] = "";
}
}
if ($_GET['v']) {
$_SESSION['v'] = $_GET['v'];
} else {
if (!$_SESSION['v']) {
$_SESSION['v'] = "";
}
}
if ($_GET['id_cliente_cf']) {
$_SESSION['id_cliente_cf'] = $_GET['id_cliente_cf'];
}
?>
<div class="container-principal uk-container uk-container-xsmall uk-margin-top uk-margin-bottom">
<?php
if ($_SESSION['id_cliente_cf']) {
require_once('formulario-valor.php');
} else {
require_once('formulario-cliente.php');
}
?>
<center>
<?php if($_SESSION['ref']) { ?>
<p class="uk-text-muted uk-margin-remove"> <small>Ref.: <?= $_SESSION['ref'] ?></small> </p>
<?php } ?>
<p class="uk-text-muted uk-margin-remove"> <small>Certificado SSL/TLS. Seus dados estão seguros. <br> BRCXP © <?= date('Y') ?> (v<?= json_decode(file_get_contents('versao.json'), true)['versao'] ?>)</small> </p>
</center>
</div>
<?php require_once('footer.php'); ?>