-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser_agreement.php
30 lines (27 loc) · 1.18 KB
/
user_agreement.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
<?php
/**
* @author Alexander Rein <a.rein@be-clever-ag.de>, beclever werbeagentur AG <support@be-clever-ag.de>
* @copyright (c) 2016, Alexander Rein
* @license http://www.gnu.org/licenses/agpl-3.0.html GNU Affero General Public License
*/
require_once("./config/mainconf.php");
require_once("./process/script_access.php");
require_once($PATH_classes . "/vendor/autoload.php");
require_once($PATH_classes . "/class.KeyHandler.php");
require_once($PATH_classes . "/class.Customize.php");
require_once($PATH_l10n . "/locallang.php");
$msg_error = isset($_SESSION['ERROR']) ? $_SESSION['ERROR'] : "";
$msg_success = isset($_SESSION['SUCCESS']) ? $_SESSION['SUCCESS'] : "";
unset($_SESSION['ERROR'], $_SESSION['SUCCESS']);
$Customize = new Customize();
$productname = $Customize->get_settings('product_name');
$smarty = new Smarty;
$smarty->assign("msg_error", $msg_error);
$smarty->assign("msg_success", $msg_success);
$smarty->assign("LOCAL", $LOCAL);
$smarty->assign("product_name", $productname);
if (!empty($_SESSION))
$smarty->assign("SESSION", $_SESSION);
if (!empty($_COOKIE))
$smarty->assign("COOKIE", $_COOKIE);
$smarty->display('layout/template/user_agreement.tpl');