diff options
Diffstat (limited to 'core/config')
-rw-r--r-- | core/config/config.php | 135 | ||||
-rw-r--r-- | core/config/cookie.php | 49 | ||||
-rw-r--r-- | core/config/database.php | 23 | ||||
-rw-r--r-- | core/config/locale.php | 46 | ||||
-rw-r--r-- | core/config/routes.php | 31 | ||||
-rw-r--r-- | core/config/sendmail.php | 29 | ||||
-rw-r--r-- | core/config/session.php | 66 | ||||
-rw-r--r-- | core/config/upload.php | 36 |
8 files changed, 0 insertions, 415 deletions
diff --git a/core/config/config.php b/core/config/config.php deleted file mode 100644 index 49b17908..00000000 --- a/core/config/config.php +++ /dev/null @@ -1,135 +0,0 @@ -<?php defined("SYSPATH") or die("No direct script access."); -/** - * Gallery - a web based photo album viewer and editor - * Copyright (C) 2000-2009 Bharat Mediratta - * - * 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., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -/** - * Base path of the web site. If this includes a domain, eg: localhost/kohana/ - * then a full URL will be used, eg: http://localhost/kohana/. If it only includes - * the path, and a site_protocol is specified, the domain will be auto-detected. - */ -$config['site_domain'] = dirname($_SERVER['SCRIPT_NAME']); - -/** - * Force a default protocol to be used by the site. If no site_protocol is - * specified, then the current protocol is used, or when possible, only an - * absolute path (with no protocol/domain) is used. - */ -$config['site_protocol'] = ''; - -/** - * Name of the front controller for this application. Default: index.php - * - * This can be removed by using URL rewriting. - */ -$config['index_page'] = 'index.php'; - -/** - * Fake file extension that will be added to all generated URLs. Example: .html - */ -$config['url_suffix'] = ''; - -/** - * Length of time of the internal cache in seconds. 0 or FALSE means no caching. - * The internal cache stores file paths and config entries across requests and - * can give significant speed improvements at the expense of delayed updating. - */ -$config['internal_cache'] = FALSE; -$config['internal_cache_path'] = VARPATH . "tmp/"; - -/** - * Enable or disable gzip output compression. This can dramatically decrease - * server bandwidth usage, at the cost of slightly higher CPU usage. Set to - * the compression level (1-9) that you want to use, or FALSE to disable. - * - * Do not enable this option if you are using output compression in php.ini! - */ -$config['output_compression'] = FALSE; - -/** - * Enable or disable global XSS filtering of GET, POST, and SERVER data. This - * option also accepts a string to specify a specific XSS filtering tool. - */ -$config['global_xss_filtering'] = TRUE; - -/** - * Enable or disable hooks. Setting this option to TRUE will enable - * all hooks. By using an array of hook filenames, you can control - * which hooks are enabled. Setting this option to FALSE disables hooks. - */ -$config['enable_hooks'] = TRUE; - -/** - * Log thresholds: - * 0 - Disable logging - * 1 - Errors and exceptions - * 2 - Warnings - * 3 - Notices - * 4 - Debugging - */ -$config['log_threshold'] = 3; - -/** - * Message logging directory. - */ -$config['log_directory'] = VARPATH . "logs"; -if (@!is_writable($config['log_directory'])) { - $config['log_threshold'] = 0; -} - -/** - * Enable or disable displaying of Kohana error pages. This will not affect - * logging. Turning this off will disable ALL error pages. - */ -$config['display_errors'] = TRUE; - -/** - * Enable or disable statistics in the final output. Stats are replaced via - * specific strings, such as {execution_time}. - * - * @see http://docs.kohanaphp.com/general/configuration - */ -$config['render_stats'] = TRUE; - -/** - * Filename prefixed used to determine extensions. For example, an - * extension to the Controller class would be named MY_Controller.php. - */ -$config['extension_prefix'] = 'MY_'; - -/** - * Additional resource paths, or "modules". Each path can either be absolute - * or relative to the docroot. Modules can include any resource that can exist - * in your application directory, configuration files, controllers, views, etc. - */ -$config['modules'] = array( - MODPATH . 'forge', -); - -if (TEST_MODE) { - array_splice($config['modules'], 0, 0, - array(MODPATH . 'gallery_unit_test', - MODPATH . 'unit_test')); -} - -/** - * Setting the maintenance_mode to block all non administrative access. In - * this mode a user can attempt to logon, but will be unable to access anything. - * The application will be have normally if an adminstrator logs on. - */ -//$config["maintenance_mode"] = true; diff --git a/core/config/cookie.php b/core/config/cookie.php deleted file mode 100644 index 692ef548..00000000 --- a/core/config/cookie.php +++ /dev/null @@ -1,49 +0,0 @@ -<?php defined("SYSPATH") or die("No direct script access."); -/** - * Gallery - a web based photo album viewer and editor - * Copyright (C) 2000-2009 Bharat Mediratta - * - * 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., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -/** - * Domain, to restrict the cookie to a specific website domain. For security, - * you are encouraged to set this option. An empty setting allows the cookie - * to be read by any website domain. - */ -$config['domain'] = ''; - -/** - * Restrict cookies to a specific path, typically the installation directory. - */ -$config['path'] = '/'; - -/** - * Lifetime of the cookie. A setting of 0 makes the cookie active until the - * users browser is closed or the cookie is deleted. - */ -$config['expire'] = 0; - -/** - * Enable this option to only allow the cookie to be read when using the a - * secure protocol. - */ -$config['secure'] = false; - -/** - * Enable this option to disable the cookie from being accessed when using a - * secure protocol. This option is only available in PHP 5.2 and above. - */ -$config['httponly'] = true;
\ No newline at end of file diff --git a/core/config/database.php b/core/config/database.php deleted file mode 100644 index c20ccdb0..00000000 --- a/core/config/database.php +++ /dev/null @@ -1,23 +0,0 @@ -<?php defined("SYSPATH") or die("No direct script access."); -/** - * Gallery - a web based photo album viewer and editor - * Copyright (C) 2000-2009 Bharat Mediratta - * - * 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., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -if (file_exists(VARPATH . "database.php")) { - include(VARPATH . "database.php"); -} diff --git a/core/config/locale.php b/core/config/locale.php deleted file mode 100644 index 4789dc2b..00000000 --- a/core/config/locale.php +++ /dev/null @@ -1,46 +0,0 @@ -<?php defined("SYSPATH") or die("No direct script access."); -/** - * Gallery - a web based photo album viewer and editor - * Copyright (C) 2000-2009 Bharat Mediratta - * - * 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., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -/** - * @package Core - * - * Default language locale name(s). - * First item must be a valid i18n directory name, subsequent items are alternative locales - * for OS's that don't support the first (e.g. Windows). The first valid locale in the array will be used. - * @see http://php.net/setlocale - */ -$config['language'] = array('en_US', 'English_United States'); - -/** - * Locale timezone. Defaults to use the server timezone. - * @see http://php.net/timezones - */ -$config['timezone'] = ''; - -// i18n settings - -/** - * The locale of the built-in localization messages (locale of strings in translate() calls). - * This can't be changed easily, unless all localization strings are replaced in all source files - * as well. - * Although the actual root is "en_US", the configured root is "en" that all en locales inherit the - * built-in strings. - */ -$config['root_locale'] = 'en';
\ No newline at end of file diff --git a/core/config/routes.php b/core/config/routes.php deleted file mode 100644 index 0272ca15..00000000 --- a/core/config/routes.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php defined("SYSPATH") or die("No direct script access."); -/** - * Gallery - a web based photo album viewer and editor - * Copyright (C) 2000-2009 Bharat Mediratta - * - * 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., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -// The abstract REST_Controller is not directly routable. -$config["^rest\b.*"] = null; - -// Admin controllers are not available, except via /admin -$config["^admin_.*"] = null; - -// Redirect /form/add and /form/edit to REST_Controller. -$config["^form/(edit|add)/(\w+)/(.*)$"] = "$2/form_$1/$3"; - -// Default page is the root album -$config["_default"] = "albums/1"; diff --git a/core/config/sendmail.php b/core/config/sendmail.php deleted file mode 100644 index a4fa76ef..00000000 --- a/core/config/sendmail.php +++ /dev/null @@ -1,29 +0,0 @@ -<?php defined("SYSPATH") or die("No direct script access."); -/** - * Gallery - a web based photo album viewer and editor - * Copyright (C) 2000-2009 Bharat Mediratta - * - * 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., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ -/** - * PHP Mail Configuration parameters - * from => email address that appears as the from address - * line-length => word wrap length (PHP documentations suggest no larger tha 70 characters - * reply-to => what goes into the reply to header - */ -$config["from"] = "admin@gallery3.com"; -$config["line_length"] = 70; -$config["reply_to"] = "public@gallery3.com"; -$config["header_separator"] = "\n"; diff --git a/core/config/session.php b/core/config/session.php deleted file mode 100644 index 990fa31f..00000000 --- a/core/config/session.php +++ /dev/null @@ -1,66 +0,0 @@ -<?php defined("SYSPATH") or die("No direct script access."); -/** - * Gallery - a web based photo album viewer and editor - * Copyright (C) 2000-2009 Bharat Mediratta - * - * 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., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -/** - * @package Session - * - * Session driver name. - */ -$config['driver'] = 'database'; - -/** - * Session storage parameter, used by drivers. - */ -$config['storage'] = ''; - -/** - * Session name. - * It must contain only alphanumeric characters and underscores. At least one letter must be present. - */ -$config['name'] = 'g3sid'; - -/** - * Session parameters to validate: user_agent, ip_address, expiration. - */ -$config['validate'] = array('user_agent'); - -/** - * Enable or disable session encryption. - * Note: this has no effect on the native session driver. - * Note: the cookie driver always encrypts session data. Set to TRUE for stronger encryption. - */ -$config['encryption'] = FALSE; - -/** - * Session lifetime. Number of seconds that each session will last. - * A value of 0 will keep the session active until the browser is closed (with a limit of 24h). - */ -$config['expiration'] = 604800; // 7 days - -/** - * Number of page loads before the session id is regenerated. - * A value of 0 will disable automatic session id regeneration. - */ -$config['regenerate'] = 0; - -/** - * Percentage probability that the gc (garbage collection) routine is started. - */ -$config['gc_probability'] = 2;
\ No newline at end of file diff --git a/core/config/upload.php b/core/config/upload.php deleted file mode 100644 index 897ecacf..00000000 --- a/core/config/upload.php +++ /dev/null @@ -1,36 +0,0 @@ -<?php defined("SYSPATH") or die("No direct script access."); -/** - * Gallery - a web based photo album viewer and editor - * Copyright (C) 2000-2009 Bharat Mediratta - * - * 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., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -/** - * @package Core - * - * This path is relative to your index file. Absolute paths are also supported. - */ -$config['directory'] = VARPATH.'uploads'; - -/** - * Enable or disable directory creation. - */ -$config['create_directories'] = FALSE; - -/** - * Remove spaces from uploaded filenames. - */ -$config['remove_spaces'] = TRUE;
\ No newline at end of file |