Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../var/softacul.../impress
File: mainfile.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* All information in order to connect to database are going through here.
[2] Fix | Delete
*
[3] Fix | Delete
* Be careful if you are changing data's in this file.
[4] Fix | Delete
*
[5] Fix | Delete
* @copyright http://www.xoops.org/ The XOOPS Project
[6] Fix | Delete
* @copyright XOOPS_copyrights.txt
[7] Fix | Delete
* @copyright http://www.impresscms.org/ The ImpressCMS Project
[8] Fix | Delete
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
[9] Fix | Delete
* @package installer
[10] Fix | Delete
* @since XOOPS
[11] Fix | Delete
* @author http://www.xoops.org The XOOPS Project
[12] Fix | Delete
* @author Sina Asghari (aka stranger) <pesian_stranger@users.sourceforge.net>
[13] Fix | Delete
* @version $Id: mainfile.dist.php 11358 2011-09-02 19:55:40Z phoenyx $
[14] Fix | Delete
*/
[15] Fix | Delete
[16] Fix | Delete
if (!defined("XOOPS_MAINFILE_INCLUDED")) {
[17] Fix | Delete
define("XOOPS_MAINFILE_INCLUDED",1);
[18] Fix | Delete
[19] Fix | Delete
// XOOPS Physical Path
[20] Fix | Delete
// Physical path to your main XOOPS directory WITHOUT trailing slash
[21] Fix | Delete
// Example: define( 'XOOPS_ROOT_PATH', '[[softpath]]' );
[22] Fix | Delete
define( 'XOOPS_ROOT_PATH', '[[softpath]]' );
[23] Fix | Delete
[24] Fix | Delete
// XOOPS Security Physical Path
[25] Fix | Delete
// Physical path to your security XOOPS directory WITHOUT trailing slash.
[26] Fix | Delete
// Ideally off your server WEB folder
[27] Fix | Delete
// Example: define( 'XOOPS_TRUST_PATH', '[[softdatadir]]' );
[28] Fix | Delete
define( 'XOOPS_TRUST_PATH', '[[softdatadir]]' );
[29] Fix | Delete
[30] Fix | Delete
include_once XOOPS_TRUST_PATH . '/[[config]].php' ;
[31] Fix | Delete
[32] Fix | Delete
// XOOPS Virtual Path (URL)
[33] Fix | Delete
// Virtual path to your main XOOPS directory WITHOUT trailing slash
[34] Fix | Delete
// Example: define( 'XOOPS_URL', '[[softurl]]' );
[35] Fix | Delete
define( 'XOOPS_URL', '[[softurl]]' );
[36] Fix | Delete
[37] Fix | Delete
define('XOOPS_CHECK_PATH', 0);
[38] Fix | Delete
// Protect against external scripts execution if safe mode is not enabled
[39] Fix | Delete
if (XOOPS_CHECK_PATH && !@ini_get('safe_mode')) {
[40] Fix | Delete
if (function_exists('debug_backtrace')) {
[41] Fix | Delete
$xoopsScriptPath = debug_backtrace();
[42] Fix | Delete
if (!count($xoopsScriptPath)) {
[43] Fix | Delete
die("ImpressCMS path check: this file cannot be requested directly");
[44] Fix | Delete
}
[45] Fix | Delete
$xoopsScriptPath = $xoopsScriptPath[0]['file'];
[46] Fix | Delete
} else {
[47] Fix | Delete
$xoopsScriptPath = isset($_SERVER['PATH_TRANSLATED']) ? $_SERVER['PATH_TRANSLATED'] : $_SERVER['SCRIPT_FILENAME'];
[48] Fix | Delete
}
[49] Fix | Delete
if (DIRECTORY_SEPARATOR != '/') {
[50] Fix | Delete
// IIS6 may double the \ chars
[51] Fix | Delete
$xoopsScriptPath = str_replace( strpos( $xoopsScriptPath, '\\\\', 2 ) ? '\\\\' : DIRECTORY_SEPARATOR, '/', $xoopsScriptPath);
[52] Fix | Delete
}
[53] Fix | Delete
if (strcasecmp( substr($xoopsScriptPath, 0, strlen(XOOPS_ROOT_PATH)), str_replace( DIRECTORY_SEPARATOR, '/', XOOPS_ROOT_PATH))) {
[54] Fix | Delete
exit("ImpressCMS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.");
[55] Fix | Delete
}
[56] Fix | Delete
}
[57] Fix | Delete
[58] Fix | Delete
// Database
[59] Fix | Delete
// Choose the database to be used
[60] Fix | Delete
define( 'XOOPS_DB_TYPE', 'pdo.mysql' );
[61] Fix | Delete
[62] Fix | Delete
// Set the database charset if applicable
[63] Fix | Delete
if (defined('XOOPS_DB_CHARSET')) die();
[64] Fix | Delete
define( 'XOOPS_DB_CHARSET', 'utf8' );
[65] Fix | Delete
[66] Fix | Delete
// Table Prefix
[67] Fix | Delete
// This prefix will be added to all new tables created to avoid name conflict in the database. If you are unsure, just use the default 'icms'.
[68] Fix | Delete
define( 'XOOPS_DB_PREFIX', SDATA_DB_PREFIX );
[69] Fix | Delete
[70] Fix | Delete
// Database Hostname
[71] Fix | Delete
// Hostname of the database server. If you are unsure, 'localhost' works in most cases.
[72] Fix | Delete
define( 'XOOPS_DB_HOST', SDATA_DB_HOST );
[73] Fix | Delete
[74] Fix | Delete
// Database Username
[75] Fix | Delete
// Your database user account on the host
[76] Fix | Delete
define( 'XOOPS_DB_USER', SDATA_DB_USER );
[77] Fix | Delete
[78] Fix | Delete
// Database Password
[79] Fix | Delete
// Password for your database user account
[80] Fix | Delete
define( 'XOOPS_DB_PASS', SDATA_DB_PASS );
[81] Fix | Delete
[82] Fix | Delete
// Database Name
[83] Fix | Delete
// The name of database on the host. The installer will attempt to create the database if not exist
[84] Fix | Delete
define( 'XOOPS_DB_NAME', SDATA_DB_NAME );
[85] Fix | Delete
[86] Fix | Delete
// Password Salt Key $mainSalt
[87] Fix | Delete
// This salt will be appended to passwords in the icms_encryptPass() function.
[88] Fix | Delete
// Do NOT change this once your site is Live, doing so will invalidate everyones Password.
[89] Fix | Delete
define( 'XOOPS_DB_SALT', SDATA_DB_SALT );
[90] Fix | Delete
[91] Fix | Delete
// Use persistent connection? (Yes=1 No=0)
[92] Fix | Delete
// Default is 'Yes'. Choose 'Yes' if you are unsure.
[93] Fix | Delete
define( 'XOOPS_DB_PCONNECT', 0 );
[94] Fix | Delete
[95] Fix | Delete
// (optional) Physical path to script that logs database queries.
[96] Fix | Delete
// Example: define('ICMS_LOGGING_HOOK', XOOPS_ROOT_PATH . '/modules/foobar/logging_hook.php');
[97] Fix | Delete
define('ICMS_LOGGING_HOOK', '');
[98] Fix | Delete
[99] Fix | Delete
define( 'XOOPS_GROUP_ADMIN', '1' );
[100] Fix | Delete
define( 'XOOPS_GROUP_USERS', '2' );
[101] Fix | Delete
define( 'XOOPS_GROUP_ANONYMOUS', '3' );
[102] Fix | Delete
[103] Fix | Delete
foreach ( array('GLOBALS', '_SESSION', 'HTTP_SESSION_VARS', '_GET', 'HTTP_GET_VARS', '_POST', 'HTTP_POST_VARS', '_COOKIE', 'HTTP_COOKIE_VARS', '_REQUEST', '_SERVER', 'HTTP_SERVER_VARS', '_ENV', 'HTTP_ENV_VARS', '_FILES', 'HTTP_POST_FILES', 'xoopsDB', 'xoopsUser', 'xoopsUserId', 'xoopsUserGroups', 'xoopsUserIsAdmin', 'icmsConfig', 'xoopsOption', 'xoopsModule', 'xoopsModuleConfig', 'xoopsRequestUri') as $bad_global) {
[104] Fix | Delete
if (isset( $_REQUEST[$bad_global] )) {
[105] Fix | Delete
header( 'Location: '.XOOPS_URL.'/' );
[106] Fix | Delete
exit();
[107] Fix | Delete
}
[108] Fix | Delete
}
[109] Fix | Delete
[110] Fix | Delete
define('ICMS_GROUP_ADMIN', XOOPS_GROUP_ADMIN);
[111] Fix | Delete
define('ICMS_GROUP_USERS', XOOPS_GROUP_USERS);
[112] Fix | Delete
define('ICMS_GROUP_ANONYMOUS', XOOPS_GROUP_ANONYMOUS);
[113] Fix | Delete
define( 'ICMS_URL', XOOPS_URL );
[114] Fix | Delete
define( 'ICMS_TRUST_PATH', XOOPS_TRUST_PATH );
[115] Fix | Delete
define( 'ICMS_ROOT_PATH', XOOPS_ROOT_PATH );
[116] Fix | Delete
if (!isset($xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') {
[117] Fix | Delete
include XOOPS_ROOT_PATH."/include/common.php";
[118] Fix | Delete
}
[119] Fix | Delete
}
[120] Fix | Delete
[121] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function