Passed
Push — master ( e643a0...1f75e2 )
by Michael
03:19
created
Labels
Severity
1
<?php
2
/*
3
 You may not change or alter any portion of this comment or credits
4
 of supporting developers from this source code or any supporting source code
5
 which is considered copyrighted (c) material of the original comment or credit authors.
6
7
 This program is distributed in the hope that it will be useful,
8
 but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
*/
11
12
/**
13
 * oledrion
14
 *
15
 * @copyright   {@link https://xoops.org/ XOOPS Project}
16
 * @license     {@link http://www.fsf.org/copyleft/gpl.html GNU public license}
17
 * @author      Hervé Thouzard (http://www.herve-thouzard.com/)
18
 */
19
20
/**
21
 * Affichage des conditions générales de vente
22
 */
23
24
use XoopsModules\Oledrion;
25
26
require_once __DIR__ . '/header.php';
27
$GLOBALS['current_category']             = -1;
28
$GLOBALS['xoopsOption']['template_main'] = 'oledrion_cgv.tpl';
29
require_once XOOPS_ROOT_PATH . '/header.php';
0 ignored issues
show
The constant XOOPS_ROOT_PATH was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
30
//require_once OLEDRION_PATH . 'class/Registryfile.php';
31
32
$registry = new Oledrion\Registryfile();
33
34
$xoopsTpl->assign('nostock_msg', Oledrion\Utility::getModuleOption('nostock_msg'));
35
$xoopsTpl->assign('mod_pref', $mod_pref); // Module Preferences
36
$xoopsTpl->assign('cgv_msg', $registry->getfile(OLEDRION_TEXTFILE2));
37
38
$xoopsTpl->assign('breadcrumb', Oledrion\Utility::breadcrumb([OLEDRION_URL . basename(__FILE__) => _OLEDRION_CGV]));
39
40
Oledrion\Utility::setCSS();
41
Oledrion\Utility::setLocalCSS($xoopsConfig['language']);
42
Oledrion\Utility::setMetas(_OLEDRION_CGV . ' ' . Oledrion\Utility::getModuleName(), _OLEDRION_CGV . ' ' . Oledrion\Utility::getModuleName());
43
require_once XOOPS_ROOT_PATH . '/footer.php';
44