From 93680320c78f4556134868a0980fd333f867e3ea Mon Sep 17 00:00:00 2001 From: Michael Erdely Date: Wed, 9 Oct 2024 14:25:15 -0400 Subject: [PATCH] add back config.php --- .gitignore | 1 - src/includes/config.php | 160 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 160 insertions(+), 1 deletion(-) create mode 100644 src/includes/config.php diff --git a/.gitignore b/.gitignore index e335113..b787f40 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ src/templates_c src/item_images -src/includes/config.php diff --git a/src/includes/config.php b/src/includes/config.php new file mode 100644 index 0000000..920febb --- /dev/null +++ b/src/includes/config.php @@ -0,0 +1,160 @@ + $mysql_conn_string, + + /* The database username and password. */ + "pdo_username" => $mysql_username, + "pdo_password" => $mysql_password, + + /* 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" => 0, + + /* Whether or not requesting a new account is immediately approved. + 0 = auto-approve, + 1 = require administrator approval + */ + "newuser_requires_approval" => 1, + + /* Do not allow new user to choose family + 0 = allow new user to choose family + 1 or more = default family + */ + "newuser_default_family" => 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" => 10, + + /* The e-mail From: header. */ + "email_from" => "wishlist@erdelynet.com", + + /* The e-mail Reply-To: header. */ + "email_reply_to" => "mike@erdelynet.com", + + /* The e-mail X-Mailer header. */ + "email_xmailer" => "PHP/" . phpversion(), + + /* 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" => 1, + + /* Whether or not clicking the Delete Item link requires a JavaScript-based + confirmation. + 0 = don't show confirmation, + 1 = show confirmation + */ + "confirm_item_deletes" => 1, + + /* 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 (£) 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" => 8, + + /* 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" => "SHA1", + + /* 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 + ); +} +?>