|
|
|
|
<?php
|
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
|
// the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
// 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. See the
|
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
|
|
|
|
|
function getGlobalOptions() {
|
|
|
|
|
return array(
|
|
|
|
|
/* The PDO connection string.
|
|
|
|
|
http://www.php.net/manual/en/pdo.connections.php
|
|
|
|
|
*/
|
|
|
|
|
"pdo_connection_string" => "mysql:host=127.0.0.1;dbname=wishlists",
|
|
|
|
|
|
|
|
|
|
/* The database username and password. */
|
|
|
|
|
"pdo_username" => "wishlist",
|
|
|
|
|
"pdo_password" => "A-Very-Long-Random-String-1234567890",
|
|
|
|
|
|
|
|
|
|
/* The maximum number of days before an event which produces a notification. */
|
|
|
|
|
"event_threshold" => "60",
|
|
|
|
|
|
|
|
|
|
/* Whether or not requesting to shop for someone is immediately approved.
|
|
|
|
|
0 = auto-approve,
|
|
|
|
|
1 = require approval
|
|
|
|
|
*/
|
|
|
|
|
"shop_requires_approval" => 1,
|
|
|
|
|
|
|
|
|
|
/* Whether or not requesting a new account is immediately approved.
|
|
|
|
|
0 = auto-approve,
|
|
|
|
|
1 = require administrator approval
|
|
|
|
|
*/
|
|
|
|
|
"newuser_requires_approval" => 1,
|
|
|
|
|
|
|
|
|
|
/* Whether or not whom an item is reserved/bought by is hidden. */
|
|
|
|
|
"anonymous_purchasing" => 0,
|
|
|
|
|
|
|
|
|
|
/* The number of your items that show on each page. */
|
|
|
|
|
"items_per_page" => 20,
|
|
|
|
|
|
|
|
|
|
/* The e-mail From: header. */
|
|
|
|
|
"email_from" => "webmaster@" . $_SERVER['SERVER_NAME'],
|
|
|
|
|
|
|
|
|
|
/* The e-mail Reply-To: header. */
|
|
|
|
|
"email_reply_to" => "wishlists@" . $_SERVER['SERVER_NAME'],
|
|
|
|
|
|
|
|
|
|
/* The e-mail X-Mailer header. */
|
|
|
|
|
"email_xmailer" => "PHP-Mailer",
|
|
|
|
|
|
|
|
|
|
/* Whether or not to show brief blurbs in certain spots which describe how
|
|
|
|
|
features work.
|
|
|
|
|
0 = don't help text,
|
|
|
|
|
1 = show help text
|
|
|
|
|
*/
|
|
|
|
|
"show_helptext" => 0,
|
|
|
|
|
|
|
|
|
|
/* Whether or not clicking the Delete Item link requires a JavaScript-based
|
|
|
|
|
confirmation.
|
|
|
|
|
0 = don't show confirmation,
|
|
|
|
|
1 = show confirmation
|
|
|
|
|
*/
|
|
|
|
|
"confirm_item_deletes" => 0,
|
|
|
|
|
|
|
|
|
|
/* Whether or not to allow multiple quantities of an item. */
|
|
|
|
|
"allow_multiples" => 1,
|
|
|
|
|
|
|
|
|
|
/* This is prefixed to all currency values, set it as appropriate for your currency. */
|
|
|
|
|
"currency_symbol" => "$", // US or other dollars
|
|
|
|
|
//"currency_symbol" => "£", // Pound (<EFBFBD>) symbol
|
|
|
|
|
//"currency_symbol" => "¥", // Yen
|
|
|
|
|
//"currency_symbol" => "€", // Euro
|
|
|
|
|
//"currency_symbol" => "€", // Euro alternative
|
|
|
|
|
|
|
|
|
|
/* The date format used in DateTime::format()
|
|
|
|
|
http://php.net/manual/en/function.date.php */
|
|
|
|
|
"date_format" => "m/d/Y",
|
|
|
|
|
|
|
|
|
|
/* If this is set to something other than "" then phpgiftreg will expect that
|
|
|
|
|
string to prefix all tables in this installation. Useful for running
|
|
|
|
|
multiple phpgiftreg installations in the same MySQL database.
|
|
|
|
|
*/
|
|
|
|
|
"table_prefix" => "",
|
|
|
|
|
//"table_prefix" => "gift_", // all tables must be prefixed by `gift_'
|
|
|
|
|
|
|
|
|
|
/* Whether or not your own events show up on the home page.
|
|
|
|
|
0 = don't show my own events,
|
|
|
|
|
1 = show my own events
|
|
|
|
|
*/
|
|
|
|
|
"show_own_events" => 1,
|
|
|
|
|
|
|
|
|
|
/* The length of random generated passwords. */
|
|
|
|
|
"password_length" => 20,
|
|
|
|
|
|
|
|
|
|
/* Whether or not to hide the price when it's $0.00.
|
|
|
|
|
0 = don't hide it,
|
|
|
|
|
1 = hide it
|
|
|
|
|
*/
|
|
|
|
|
"hide_zero_price" => 1,
|
|
|
|
|
|
|
|
|
|
/* Whether or not to hash passwords. Your version of MySQL may or may not
|
|
|
|
|
support it.
|
|
|
|
|
"MD5" = use MySQL's MD5() function,
|
|
|
|
|
"SHA1" = use MySQL's SHA1() function,
|
|
|
|
|
"" = use nothing (store passwords in plaintext).
|
|
|
|
|
If you switch this on, you're going to need to do a
|
|
|
|
|
UPDATE users SET password = MD5(password)
|
|
|
|
|
on your database to convert the passwords. This operation is NON-REVERSIBLE!
|
|
|
|
|
*/
|
|
|
|
|
"password_hasher" => "PASSWORD",
|
|
|
|
|
|
|
|
|
|
/* Whether or not to allow image uploads. If on, the next option must point to
|
|
|
|
|
a valid subdirectory that is writeable by the web server. The setup.php
|
|
|
|
|
script will confirm this.
|
|
|
|
|
0 = don't allow images,
|
|
|
|
|
1 = allow images
|
|
|
|
|
*/
|
|
|
|
|
"allow_images" => 1,
|
|
|
|
|
|
|
|
|
|
/* The *sub*-directory we we can store item images. If you don't want to
|
|
|
|
|
allow images to be attached to items, leave this variable empty ("").
|
|
|
|
|
Trailing / is optional.
|
|
|
|
|
*/
|
|
|
|
|
"image_subdir" => "item_images",
|
|
|
|
|
|
|
|
|
|
/* The number of minutes in between subscription notifications so the subscribers
|
|
|
|
|
don't get flooded with updates.
|
|
|
|
|
*/
|
|
|
|
|
"notify_threshold_minutes" => 60
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
?>
|