ggoffy /
wggithub
| 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 | * wgGitHub module for xoops |
||
| 14 | * |
||
| 15 | * @copyright 2020 XOOPS Project (https://xooops.org) |
||
| 16 | * @license GPL 2.0 or later |
||
| 17 | * @package wggithub |
||
| 18 | * @since 1.0 |
||
| 19 | * @min_xoops 2.5.10 |
||
| 20 | * @author Goffy - XOOPS Development Team - Email:<[email protected]> - Website:<https://wedega.com> |
||
| 21 | */ |
||
| 22 | if (!\defined('XOOPS_ICONS32_PATH')) {
|
||
| 23 | \define('XOOPS_ICONS32_PATH', \XOOPS_ROOT_PATH . '/Frameworks/moduleclasses/icons/32');
|
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 24 | } |
||
| 25 | if (!\defined('XOOPS_ICONS32_URL')) {
|
||
| 26 | \define('XOOPS_ICONS32_URL', \XOOPS_URL . '/Frameworks/moduleclasses/icons/32');
|
||
|
0 ignored issues
–
show
|
|||
| 27 | } |
||
| 28 | \define('WGGITHUB_DIRNAME', 'wggithub');
|
||
| 29 | \define('WGGITHUB_PATH', \XOOPS_ROOT_PATH . '/modules/' . \WGGITHUB_DIRNAME);
|
||
| 30 | \define('WGGITHUB_URL', \XOOPS_URL . '/modules/' . \WGGITHUB_DIRNAME);
|
||
| 31 | \define('WGGITHUB_ICONS_PATH', \WGGITHUB_PATH . '/assets/icons');
|
||
| 32 | \define('WGGITHUB_ICONS_URL', \WGGITHUB_URL . '/assets/icons');
|
||
| 33 | \define('WGGITHUB_IMAGE_PATH', \WGGITHUB_PATH . '/assets/images');
|
||
| 34 | \define('WGGITHUB_IMAGE_URL', \WGGITHUB_URL . '/assets/images');
|
||
| 35 | \define('WGGITHUB_UPLOAD_PATH', XOOPS_UPLOAD_PATH . '/' . \WGGITHUB_DIRNAME);
|
||
|
0 ignored issues
–
show
|
|||
| 36 | \define('WGGITHUB_UPLOAD_URL', XOOPS_UPLOAD_URL . '/' . \WGGITHUB_DIRNAME);
|
||
|
0 ignored issues
–
show
|
|||
| 37 | \define('WGGITHUB_UPLOAD_FILES_PATH', \WGGITHUB_UPLOAD_PATH . '/files');
|
||
| 38 | \define('WGGITHUB_UPLOAD_FILES_URL', \WGGITHUB_UPLOAD_URL . '/files');
|
||
| 39 | \define('WGGITHUB_UPLOAD_IMAGE_PATH', \WGGITHUB_UPLOAD_PATH . '/images');
|
||
| 40 | \define('WGGITHUB_UPLOAD_IMAGE_URL', \WGGITHUB_UPLOAD_URL . '/images');
|
||
| 41 | \define('WGGITHUB_UPLOAD_SHOTS_PATH', \WGGITHUB_UPLOAD_PATH . '/images/shots');
|
||
| 42 | \define('WGGITHUB_UPLOAD_SHOTS_URL', \WGGITHUB_UPLOAD_URL . '/images/shots');
|
||
| 43 | \define('WGGITHUB_ADMIN', \WGGITHUB_URL . '/admin/index.php');
|
||
| 44 | $localLogo = \WGGITHUB_IMAGE_URL . '/wedega_logo.png'; |
||
| 45 | // Module Information |
||
| 46 | $copyright = "<a href='https://wedega.com' title='XOOPS on Wedega' target='_blank'><img src='" . $localLogo . "' alt='XOOPS on Wedega' /></a>"; |
||
| 47 | include_once \XOOPS_ROOT_PATH . '/class/xoopsrequest.php'; |
||
| 48 | include_once \WGGITHUB_PATH . '/include/functions.php'; |
||
| 49 |