forked from XoopsModules25x/userpage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
26 lines (26 loc) · 1.27 KB
/
header.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
<?php
/**
* ****************************************************************************
* userpage - MODULE FOR XOOPS
* Copyright (c) Hervé Thouzard of Instant Zero (http://www.instant-zero.com)
*
* You may not change or alter any portion of this comment or credits
* of supporting developers from this source code or any supporting source code
* which is considered copyrighted (c) material of the original comment or credit authors.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* @copyright Hervé Thouzard of Instant Zero (http://www.instant-zero.com)
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
* @package userpage
* @author Hervé Thouzard of Instant Zero (http://www.instant-zero.com)
*
* ****************************************************************************
*/
if (file_exists(__DIR__ . '/../../mainfile.php')) {
require dirname(dirname(__DIR__)) . '/mainfile.php';
} elseif (file_exists(__DIR__ . '/../../../mainfile.php')) {
require dirname(dirname(dirname(__DIR__))) . '/mainfile.php';
}
require_once XOOPS_ROOT_PATH . '/modules/userpage/include/common.php';