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 | * wgSitenotice module for xoops |
||
13 | * |
||
14 | * @copyright XOOPS Project (https://xoops.org) |
||
15 | * @license GPL 2.0 or later |
||
16 | * @package wgsitenotice |
||
17 | * @since 1.0 |
||
18 | * @min_xoops 2.5.11 |
||
19 | * @author Goffy (xoops.wedega.com) - Email:<[email protected]> - Website:<https://xoops.wedega.com> |
||
20 | */ |
||
21 | |||
22 | \defined('XOOPS_ROOT_PATH') || exit('Restricted access'); |
||
23 | if (!\defined('WGSITENOTICE_MODULE_PATH')) { |
||
24 | \define('WGSITENOTICE_DIRNAME', \basename(\dirname(__DIR__))); |
||
25 | \define('WGSITENOTICE_PATH', \XOOPS_ROOT_PATH . '/modules/' . \WGSITENOTICE_DIRNAME); |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
26 | \define('WGSITENOTICE_URL', \XOOPS_URL . '/modules/' . \WGSITENOTICE_DIRNAME); |
||
0 ignored issues
–
show
|
|||
27 | \define('WGSITENOTICE_UPLOAD_PATH', XOOPS_UPLOAD_PATH . '/' . \WGSITENOTICE_DIRNAME); |
||
0 ignored issues
–
show
|
|||
28 | \define('WGSITENOTICE_UPLOAD_URL', XOOPS_UPLOAD_URL . '/' . \WGSITENOTICE_DIRNAME); |
||
0 ignored issues
–
show
|
|||
29 | \define('WGSITENOTICE_IMAGE_PATH', \WGSITENOTICE_PATH . '/assets/images'); |
||
30 | \define('WGSITENOTICE_IMAGE_URL', \WGSITENOTICE_URL . '/assets/images/'); |
||
31 | \define('WGSITENOTICE_ICONS_URL', \WGSITENOTICE_URL . '/assets/images/icons/'); |
||
32 | \define('WGSITENOTICE_ADMIN', \WGSITENOTICE_URL . '/admin/index.php'); |
||
33 | $local_logo = \WGSITENOTICE_IMAGE_URL . '/wedega_logo.png'; |
||
34 | /*if(\is_dir(\WGSITENOTICE_IMAGE_PATH) && \file_exists($local_logo)) { |
||
35 | $logo = $local_logo; |
||
36 | } else { |
||
37 | $sysPathIcon32 = $GLOBALS['xoopsModule']->getInfo('icons32'); |
||
38 | $logo = $sysPathIcon32.'/xoopsmicrobutton.gif'; |
||
39 | }*/ |
||
40 | } |
||
41 | // module information |
||
42 | $copyright = "<a href='https://xoops.wedega.com' title='WEDEGA Webdesign Gabor' target='_blank'> |
||
43 | <img src='" . $local_logo . "' alt='WEDEGA Webdesign Gabor' /></a>"; |
||
44 | |||
45 | include_once \XOOPS_ROOT_PATH . '/class/xoopsrequest.php'; |
||
46 | include_once \WGSITENOTICE_PATH . '/include/functions.php'; |
||
47 |