Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../var/softacul.../mahara
File: config.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
*
[2] Fix | Delete
* @package mahara
[3] Fix | Delete
* @subpackage core
[4] Fix | Delete
* @author Catalyst IT Limited <mahara@catalyst.net.nz>
[5] Fix | Delete
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU GPL version 3 or later
[6] Fix | Delete
* @copyright For copyright information on Mahara, please see the README file distributed with this software.
[7] Fix | Delete
*
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
* MAHARA CONFIGURATION FILE
[12] Fix | Delete
*
[13] Fix | Delete
* INSTRUCTIONS:
[14] Fix | Delete
* 1. Copy this file from config-dist.php to config.php
[15] Fix | Delete
* 2. Change the values in it to suit your environment.
[16] Fix | Delete
*
[17] Fix | Delete
* Information about this file is available on the Mahara wiki:
[18] Fix | Delete
* https://wiki.mahara.org/wiki/System_Administrator's_Guide/Installing_Mahara#Create_Mahara.27s_config.php
[19] Fix | Delete
*
[20] Fix | Delete
* This file includes only the most commonly used Mahara configuration directives. For more options
[21] Fix | Delete
* that can be placed in this file, see the Mahara lib file:
[22] Fix | Delete
*
[23] Fix | Delete
* htdocs/lib/config-defaults.php
[24] Fix | Delete
*/
[25] Fix | Delete
[26] Fix | Delete
$cfg = new stdClass();
[27] Fix | Delete
[28] Fix | Delete
[29] Fix | Delete
/**
[30] Fix | Delete
* database connection details
[31] Fix | Delete
* valid values for dbtype are 'postgres' and 'mysql'
[32] Fix | Delete
*/
[33] Fix | Delete
$cfg->dbtype = 'mysql';
[34] Fix | Delete
$cfg->dbhost = '[[softdbhost]]';
[35] Fix | Delete
$cfg->dbport = null; // Change if you are using a non-standard port number for your database
[36] Fix | Delete
$cfg->dbname = '[[softdb]]';
[37] Fix | Delete
$cfg->dbuser = '[[softdbuser]]';
[38] Fix | Delete
$cfg->dbpass = '[[softdbpass]]';
[39] Fix | Delete
$cfg->dbprefix = '[[dbprefix]]';
[40] Fix | Delete
[41] Fix | Delete
/**
[42] Fix | Delete
* dataroot: The server directory where uploaded files are stored
[43] Fix | Delete
*
[44] Fix | Delete
* This is an ABSOLUTE FILESYSTEM PATH. This is NOT a URL.
[45] Fix | Delete
* For example, valid paths are:
[46] Fix | Delete
* * /home/user/maharadata
[47] Fix | Delete
* * /var/lib/mahara
[48] Fix | Delete
* * c:\maharadata
[49] Fix | Delete
* INVALID paths:
[50] Fix | Delete
* * http://yoursite/files
[51] Fix | Delete
* * ~/files
[52] Fix | Delete
* * ../data
[53] Fix | Delete
*
[54] Fix | Delete
* This path must be writable by the webserver and outside the document root (the
[55] Fix | Delete
* place where the Mahara files like index.php have been installed).
[56] Fix | Delete
* For security purposes, Mahara will NOT RUN if this is inside your document root.
[57] Fix | Delete
*/
[58] Fix | Delete
$cfg->dataroot = '[[softdatadir]]';
[59] Fix | Delete
[60] Fix | Delete
/**
[61] Fix | Delete
* wwwroot: The base URL of your Mahara installation.
[62] Fix | Delete
*
[63] Fix | Delete
* (Normally, this is automatically detected. If it doesn't work for you then try specifying it here.)
[64] Fix | Delete
*/
[65] Fix | Delete
// Example:
[66] Fix | Delete
// $cfg->wwwroot = '[[softurl]]/';
[67] Fix | Delete
[68] Fix | Delete
/**
[69] Fix | Delete
* urlsecret A secret you need to add to the lib/cron.php or admin/upgrade.php
[70] Fix | Delete
* URL to run it through the browser rather than the commandline to prevent unauthorised users triggering
[71] Fix | Delete
* the cron or an upgrade, eg http://example.com/lib/cron.php?urlsecret=mysupersecret.
[72] Fix | Delete
*
[73] Fix | Delete
* You can disable this functionality by setting $cfg->urlsecret = null.
[74] Fix | Delete
*/
[75] Fix | Delete
$cfg->urlsecret = '[[urlsecret]]';
[76] Fix | Delete
[77] Fix | Delete
/**
[78] Fix | Delete
* passwordsaltmain: A secret token used for one-way encryption of user account passwords.
[79] Fix | Delete
*/
[80] Fix | Delete
$cfg->passwordsaltmain = '[[passwordsaltmain]]';
[81] Fix | Delete
[82] Fix | Delete
/**
[83] Fix | Delete
* Uncomment the following line if this server is not a production system.
[84] Fix | Delete
* This will display a banner at the top of the site indicating that it is not a
[85] Fix | Delete
* production site, which can help prevent users confusing it with your production site.
[86] Fix | Delete
* It will also enable on-screen display of warnings and error messages to aid in testing.
[87] Fix | Delete
*/
[88] Fix | Delete
//$cfg->productionmode = false;
[89] Fix | Delete
[90] Fix | Delete
// closing php tag intentionally omitted to prevent whitespace issues
[91] Fix | Delete
[92] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function