Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../var/softacul.../xoops
File: mainfile.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* XOOPS main configuration file
[2] Fix | Delete
*
[3] Fix | Delete
* You may not change or alter any portion of this comment or credits
[4] Fix | Delete
* of supporting developers from this source code or any supporting source code
[5] Fix | Delete
* which is considered copyrighted (c) material of the original comment or credit authors.
[6] Fix | Delete
* This program is distributed in the hope that it will be useful,
[7] Fix | Delete
* but WITHOUT ANY WARRANTY; without even the implied warranty of
[8] Fix | Delete
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[9] Fix | Delete
*
[10] Fix | Delete
* @copyright (c) 2000-2016 XOOPS Project (www.xoops.org)
[11] Fix | Delete
* @license GNU GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
[12] Fix | Delete
*/
[13] Fix | Delete
[14] Fix | Delete
if (!defined('XOOPS_MAINFILE_INCLUDED')) {
[15] Fix | Delete
define('XOOPS_MAINFILE_INCLUDED', 1);
[16] Fix | Delete
[17] Fix | Delete
// XOOPS Physical Paths
[18] Fix | Delete
[19] Fix | Delete
// Physical path to the XOOPS documents (served) directory WITHOUT trailing slash
[20] Fix | Delete
define('XOOPS_ROOT_PATH', '[[softpath]]');
[21] Fix | Delete
[22] Fix | Delete
// For forward compatibility
[23] Fix | Delete
// Physical path to the XOOPS library directory WITHOUT trailing slash
[24] Fix | Delete
define('XOOPS_PATH', '[[softdatadir]]/xoops_lib');
[25] Fix | Delete
// Physical path to the XOOPS datafiles (writable) directory WITHOUT trailing slash
[26] Fix | Delete
define('XOOPS_VAR_PATH', '[[softdatadir]]/xoops_data');
[27] Fix | Delete
// Alias of XOOPS_PATH, for compatibility, temporary solution
[28] Fix | Delete
define('XOOPS_TRUST_PATH', XOOPS_PATH);
[29] Fix | Delete
[30] Fix | Delete
// URL Association for SSL and Protocol Compatibility
[31] Fix | Delete
$http = 'http://';
[32] Fix | Delete
if (!empty($_SERVER['HTTPS'])) {
[33] Fix | Delete
$http = ($_SERVER['HTTPS'] === 'on') ? 'https://' : 'http://';
[34] Fix | Delete
}
[35] Fix | Delete
define('XOOPS_PROT', $http);
[36] Fix | Delete
[37] Fix | Delete
// XOOPS Virtual Path (URL)
[38] Fix | Delete
// Virtual path to your main XOOPS directory WITHOUT trailing slash
[39] Fix | Delete
// Example: define('XOOPS_URL', '[[softurl]]');
[40] Fix | Delete
define('XOOPS_URL', '[[softurl]]');
[41] Fix | Delete
[42] Fix | Delete
// XOOPS Cookie Domain to specify when creating cookies. May be blank (i.e. for IP address host),
[43] Fix | Delete
// full host from XOOPS_URL (i.e. www.example.com) or just the registered domain (i.e. example.com)
[44] Fix | Delete
// to share cookies across multiple subdomains (i.e. www.example.com and blog.example.com)
[45] Fix | Delete
define('XOOPS_COOKIE_DOMAIN', '[[domhost]]');
[46] Fix | Delete
[47] Fix | Delete
// Shall be handled later, don't forget!
[48] Fix | Delete
define('XOOPS_CHECK_PATH', 0);
[49] Fix | Delete
// Protect against external scripts execution if safe mode is not enabled
[50] Fix | Delete
if (XOOPS_CHECK_PATH && !@ini_get('safe_mode')) {
[51] Fix | Delete
if (function_exists('debug_backtrace')) {
[52] Fix | Delete
$xoopsScriptPath = debug_backtrace();
[53] Fix | Delete
if (!count($xoopsScriptPath)) {
[54] Fix | Delete
die('XOOPS path check: this file cannot be requested directly');
[55] Fix | Delete
}
[56] Fix | Delete
$xoopsScriptPath = $xoopsScriptPath[0]['file'];
[57] Fix | Delete
} else {
[58] Fix | Delete
$xoopsScriptPath = isset($_SERVER['PATH_TRANSLATED']) ? $_SERVER['PATH_TRANSLATED'] : $_SERVER['SCRIPT_FILENAME'];
[59] Fix | Delete
}
[60] Fix | Delete
if (DIRECTORY_SEPARATOR !== '/') {
[61] Fix | Delete
// IIS6 may double the \ chars
[62] Fix | Delete
$xoopsScriptPath = str_replace(strpos($xoopsScriptPath, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, '/', $xoopsScriptPath);
[63] Fix | Delete
}
[64] Fix | Delete
if (strcasecmp(substr($xoopsScriptPath, 0, strlen(XOOPS_ROOT_PATH)), str_replace(DIRECTORY_SEPARATOR, '/', XOOPS_ROOT_PATH))) {
[65] Fix | Delete
exit('XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.');
[66] Fix | Delete
}
[67] Fix | Delete
}
[68] Fix | Delete
[69] Fix | Delete
// Secure file
[70] Fix | Delete
require XOOPS_VAR_PATH . '/data/secure.php';
[71] Fix | Delete
[72] Fix | Delete
define('XOOPS_GROUP_ADMIN', '1');
[73] Fix | Delete
define('XOOPS_GROUP_USERS', '2');
[74] Fix | Delete
define('XOOPS_GROUP_ANONYMOUS', '3');
[75] Fix | Delete
[76] Fix | Delete
if (!isset($xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') {
[77] Fix | Delete
include XOOPS_ROOT_PATH . '/include/common.php';
[78] Fix | Delete
}
[79] Fix | Delete
}
[80] Fix | Delete
[81] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function