Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../var/softacul.../gallery2
File: config.php
<?php
[0] Fix | Delete
/*
[1] Fix | Delete
* Gallery - a web based photo album viewer and editor
[2] Fix | Delete
* Copyright (C) 2000-2008 Bharat Mediratta
[3] Fix | Delete
*
[4] Fix | Delete
* This program is free software; you can redistribute it and/or modify
[5] Fix | Delete
* it under the terms of the GNU General Public License as published by
[6] Fix | Delete
* the Free Software Foundation; either version 2 of the License, or (at
[7] Fix | Delete
* your option) any later version.
[8] Fix | Delete
*
[9] Fix | Delete
* This program is distributed in the hope that it will be useful, but
[10] Fix | Delete
* WITHOUT ANY WARRANTY; without even the implied warranty of
[11] Fix | Delete
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[12] Fix | Delete
* General Public License for more details.
[13] Fix | Delete
*
[14] Fix | Delete
* You should have received a copy of the GNU General Public License
[15] Fix | Delete
* along with this program; if not, write to the Free Software
[16] Fix | Delete
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
[17] Fix | Delete
*/
[18] Fix | Delete
[19] Fix | Delete
/*
[20] Fix | Delete
* When display_errors is enabled, PHP errors are printed to the output.
[21] Fix | Delete
* For production web sites, you're strongly encouraged to turn this feature off,
[22] Fix | Delete
* and use error logging instead.
[23] Fix | Delete
* During development, you should set the value to true to ensure that you notice
[24] Fix | Delete
* PHP warnings and notices that are not covered in unit tests (e.g. template issues).
[25] Fix | Delete
*/
[26] Fix | Delete
@ini_set('display_errors', 0);
[27] Fix | Delete
[28] Fix | Delete
/*
[29] Fix | Delete
* Prevent direct access to config.php.
[30] Fix | Delete
*/
[31] Fix | Delete
if (!isset($gallery) || !method_exists($gallery, 'setConfig')) {
[32] Fix | Delete
exit;
[33] Fix | Delete
}
[34] Fix | Delete
[35] Fix | Delete
/*
[36] Fix | Delete
* As a security precaution, we limit access to Gallery's test suite
[37] Fix | Delete
* to those people who know the password, below. Example:
[38] Fix | Delete
*
[39] Fix | Delete
* $gallery->setConfig('setup.password', 'A PASSWORD');
[40] Fix | Delete
*
[41] Fix | Delete
* Choose something random and enter it in plain text. You don't have to
[42] Fix | Delete
* remember it because you can always refer to this file. You'll only be asked
[43] Fix | Delete
* for this password when you run Gallery's lib/tools code. We don't provide a
[44] Fix | Delete
* default password because we want you to choose one of your own (which
[45] Fix | Delete
* lessens the chance that you'll get hacked).
[46] Fix | Delete
*/
[47] Fix | Delete
$gallery->setConfig('setup.password', '[[admin_pass_plain]]');
[48] Fix | Delete
[49] Fix | Delete
/*
[50] Fix | Delete
* In order for Gallery to manage your data, you must provide it with
[51] Fix | Delete
* a directory that it can write to. Gallery is a webserver application,
[52] Fix | Delete
* so the directory that you create must be writeable by the
[53] Fix | Delete
* webserver, not just by you.
[54] Fix | Delete
*
[55] Fix | Delete
* Create an empty directory anywhere you please. Gallery will fill this
[56] Fix | Delete
* directory with its own files (that you shouldn't mess with). This directory
[57] Fix | Delete
* can be anywhere on your filesystem. For security purposes, it's better
[58] Fix | Delete
* if the directory is not accessible via your webserver (ie, it should
[59] Fix | Delete
* not be in your DocumentRoot). If you *do* make it available via your
[60] Fix | Delete
* web server then you probably won't have any security for your data files.
[61] Fix | Delete
*
[62] Fix | Delete
* Don't make this the same as your gallery directory!
[63] Fix | Delete
*/
[64] Fix | Delete
$gallery->setConfig('data.gallery.base', '[[softdatadir]]/');
[65] Fix | Delete
[66] Fix | Delete
/*
[67] Fix | Delete
* Gallery can store its data in multiple different back ends. Currently we
[68] Fix | Delete
* support MySQL, PostgreSQL and Oracle. Enter the hostname where your
[69] Fix | Delete
* database lives, and the username and password you use to connect to it.
[70] Fix | Delete
*
[71] Fix | Delete
* You must specify the name of a database that already exists. Gallery will
[72] Fix | Delete
* not create the database for you, because it's very difficult to do that in
[73] Fix | Delete
* a reliable, database-neutral fashion. The user that you use should have
[74] Fix | Delete
* the following permissions:
[75] Fix | Delete
*
[76] Fix | Delete
* SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER
[77] Fix | Delete
*
[78] Fix | Delete
* You must specify a table and column prefix. This is a few characters that
[79] Fix | Delete
* is prepended to any table or column name to avoid conflicting with reserved
[80] Fix | Delete
* words in the database or other tables you have in the same database. In
[81] Fix | Delete
* fact, it's fine to let Gallery uses the same database as other applications
[82] Fix | Delete
* (including other instances of Gallery itself); the prefix is enough
[83] Fix | Delete
* to distinguish Gallery's tables from other applications.
[84] Fix | Delete
*
[85] Fix | Delete
* We provide some reasonable default prefixes below. If you modify these
[86] Fix | Delete
* after Gallery has created its various tables, it will stop working until
[87] Fix | Delete
* you modify it back.
[88] Fix | Delete
*
[89] Fix | Delete
* The possible database types are:
[90] Fix | Delete
* mysqlt MySQL (3.23.34a and newer)
[91] Fix | Delete
* mysqli MySQL (4.1 and newer) with PHP mysqli extension
[92] Fix | Delete
* mysql Older MySQL (no transactions)
[93] Fix | Delete
* postgres7 PostgreSQL 7.x and newer
[94] Fix | Delete
* postgres PostgreSQL 6.x (not tested)
[95] Fix | Delete
* oci8po Oracle 9i and newer
[96] Fix | Delete
* db2 IBM DB2 9 and newer
[97] Fix | Delete
* ado_mssql Microsoft SQL Server (2005 and newer)
[98] Fix | Delete
*/
[99] Fix | Delete
$storeConfig['type'] = 'mysqli';
[100] Fix | Delete
$storeConfig['hostname'] = '[[softdbhost]]';
[101] Fix | Delete
$storeConfig['database'] = '[[softdb]]';
[102] Fix | Delete
$storeConfig['username'] = '[[softdbuser]]';
[103] Fix | Delete
$storeConfig['password'] = '[[softdbpass]]';
[104] Fix | Delete
$storeConfig['schema'] = '';
[105] Fix | Delete
$storeConfig['tablePrefix'] = '[[dbprefix]]';
[106] Fix | Delete
$storeConfig['columnPrefix'] = 'g_';
[107] Fix | Delete
$storeConfig['usePersistentConnections'] = false;
[108] Fix | Delete
$gallery->setConfig('storage.config', $storeConfig);
[109] Fix | Delete
[110] Fix | Delete
/*
[111] Fix | Delete
* Put Gallery into debug mode. Useful for tracking down problems with the
[112] Fix | Delete
* application. Not a good idea to leave it this way, though. Possible debug
[113] Fix | Delete
* choices are: 'buffered', 'logged', 'immediate' or false. Don't forget to
[114] Fix | Delete
* use the quotes for any value but false!
[115] Fix | Delete
*
[116] Fix | Delete
* If you choose 'immediate', you'll see debugging information as soon as
[117] Fix | Delete
* Gallery generates it. This can be useful at times, but it'll screw up some
[118] Fix | Delete
* parts of the application flow.
[119] Fix | Delete
*
[120] Fix | Delete
* If you choose 'buffered', Gallery will display debug information in a table
[121] Fix | Delete
* as part of the application. You won't necessarily get *all* the debug
[122] Fix | Delete
* information but the application should work normally.
[123] Fix | Delete
*
[124] Fix | Delete
* If you choose 'logged', you must also specify:
[125] Fix | Delete
* $gallery->setDebugLogFile('/path/to/writeable/file');
[126] Fix | Delete
* and all debug output will get printed into that file. You'll get all the
[127] Fix | Delete
* debug output and the application will work normally.
[128] Fix | Delete
*
[129] Fix | Delete
* For best debugging output use this line:
[130] Fix | Delete
*
[131] Fix | Delete
* $gallery->setDebug('buffered');
[132] Fix | Delete
*
[133] Fix | Delete
*/
[134] Fix | Delete
$gallery->setDebug(false);
[135] Fix | Delete
[136] Fix | Delete
/*
[137] Fix | Delete
* Profiling mode. You can enable profiling for different parts of G2 to get an
[138] Fix | Delete
* idea of what's fast and slow. Right now the only options are to enable SQL
[139] Fix | Delete
* profiling:
[140] Fix | Delete
*
[141] Fix | Delete
* $gallery->setProfile(array('sql'));
[142] Fix | Delete
*
[143] Fix | Delete
*/
[144] Fix | Delete
$gallery->setProfile(false);
[145] Fix | Delete
[146] Fix | Delete
/*
[147] Fix | Delete
* Maintenance mode. You can disable access to the site for anyone but
[148] Fix | Delete
* site administrators by setting this flag. Set value below to:
[149] Fix | Delete
* true (without quotes) - to use a basic notification page; themed
[150] Fix | Delete
* view with admin login link when codebase is up to date, but a
[151] Fix | Delete
* plain unstyled page when codebase has been updated but upgrader
[152] Fix | Delete
* has not yet been run.
[153] Fix | Delete
* url (with quotes) - provide a url where requests are redirected in
[154] Fix | Delete
* either case described above. Example: '/maintenance.html'
[155] Fix | Delete
* false (without quotes) - maintenance mode off
[156] Fix | Delete
*/
[157] Fix | Delete
$gallery->setConfig('mode.maintenance', false);
[158] Fix | Delete
[159] Fix | Delete
/*
[160] Fix | Delete
* Embedded mode. You can disable direct access to main.php (standalone G2)
[161] Fix | Delete
* by setting this flag. Set value below to:
[162] Fix | Delete
* true (without quotes) - block direct requests
[163] Fix | Delete
* url (with quotes) - redirect requests to this url
[164] Fix | Delete
* false (without quotes) - allow direct requests
[165] Fix | Delete
*/
[166] Fix | Delete
$gallery->setConfig('mode.embed.only', false);
[167] Fix | Delete
[168] Fix | Delete
/*
[169] Fix | Delete
* Allow a particular IP address to access the session (it still must know the
[170] Fix | Delete
* session id) even though it doesn't match the address/user agent that created
[171] Fix | Delete
* the session. Put the address of validator.w3.org ('133.27.228.132') here to allow
[172] Fix | Delete
* validation of non-public Gallery pages from the links at the bottom of the page.
[173] Fix | Delete
*/
[174] Fix | Delete
$gallery->setConfig('allowSessionAccess', false);
[175] Fix | Delete
[176] Fix | Delete
/*
[177] Fix | Delete
* URL of Gallery codebase; required only for multisite install.
[178] Fix | Delete
*/
[179] Fix | Delete
$gallery->setConfig('galleryBaseUrl', '');
[180] Fix | Delete
[181] Fix | Delete
/*
[182] Fix | Delete
* This setting can be used to override Gallery's auto-detection of the domain-name,
[183] Fix | Delete
* protocol (http/https), URL path, and of the file & query string.
[184] Fix | Delete
* Most users can leave this empty. If the server is misconfigured or for very special
[185] Fix | Delete
* setups, this setting can be quite handy.
[186] Fix | Delete
* Examples (the positions of the slashes ('/') are important):
[187] Fix | Delete
* override the path: $gallery->setConfig('baseUri', '/another/path/');
[188] Fix | Delete
* override the host + path: $gallery->setConfig('baseUri', 'example.com/gallery2/');
[189] Fix | Delete
* override the protocol + host + path + file:
[190] Fix | Delete
* $gallery->setConfig('baseUri', 'https://example.com:8080/gallery2/index.php');
[191] Fix | Delete
*/
[192] Fix | Delete
$gallery->setConfig('baseUri', '[[softurl]]/main.php');
[193] Fix | Delete
?>
[194] Fix | Delete
[195] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function