first commit
This commit is contained in:
78
application/config/application.php
Normal file
78
application/config/application.php
Normal file
@@ -0,0 +1,78 @@
|
||||
<?php defined('SYSPATH') OR die('No direct access allowed.');
|
||||
|
||||
$config['title'] = 'Centrum Copy - Kserokopiarki Develop';
|
||||
$config['meta_description'] = 'Kserokopiarki Develop, ul. Okulickiego 9, 35-222 Rzeszów, tel. 17 863 53 91, tel./fax. 17 863 65 10';
|
||||
$config['meta_keywords'] = 'kserokopiarki, develop, powielacze cyfrowe, riso, rzeszów';
|
||||
$config['domain'] = 'centrumcopy.com.pl';
|
||||
|
||||
$config['email'] = '';
|
||||
$config['email_name'] = '';
|
||||
|
||||
$config['google_analytics'] = '';
|
||||
|
||||
$config['gmaps'] = array(
|
||||
'center' => array(
|
||||
'lat' => '50.0491231',
|
||||
'lon' => '21.9869502',
|
||||
'zoom' => 14
|
||||
),
|
||||
'marker' => array(
|
||||
'lat' => '50.0491231',
|
||||
'lon' => '21.9869502',
|
||||
'html' => '<strong>Centrum Copy</strong><p>35-222 Rzeszów, ul. Okulickiego 9</p>',
|
||||
'title' => '"35-222 Rzeszów, ul. Okulickiego 9"'
|
||||
),
|
||||
);
|
||||
|
||||
$config['menu_nav'] = array(
|
||||
'o-firmie' => array('o-firmie', 'O firmie',),
|
||||
'powielacze-cyfrowe-riso' => array(null, 'Powielacze cyfrowe RISO', array(
|
||||
'powielacze-cyfrowe-riso-dlaczego-riso' => array('powielacze-cyfrowe-riso-dlaczego-riso', 'dlaczego RISO?'),
|
||||
'powielacze-cyfrowe-riso-urzadzenia-nowe' => array('powielacze-cyfrowe-riso-urzadzenia-nowe', 'urządzenia nowe'),
|
||||
'powielacze-cyfrowe-riso-urzadzenia-a2' => array('powielacze-cyfrowe-riso-urzadzenia-a2', 'urządzenia A2'),
|
||||
'powielacze-cyfrowe-riso-urzadzenia-poleasingowe' => array('powielacze-cyfrowe-riso-urzadzenia-poleasingowe', 'urządzenia poleasingowe'),
|
||||
)
|
||||
),
|
||||
'pelnokolorowe-urzadzenia-riso' => array(null, 'Pełnokolorowe urządzenia Inkjet Riso ComColor', array(
|
||||
'dlaczego-atramentowe-riso' => array('dlaczego-atramentowe-riso', 'Dlaczego Riso ComColor?'),
|
||||
'pelnokolorowe-urzadzenia-riso-nowe' => array('pelnokolorowe-urzadzenia-riso-nowe', 'Urządzenia nowe'),
|
||||
'pelnokolorowe-urzadzenia-riso-poleasingowe' => array('pelnokolorowe-urzadzenia-riso-poleasingowe', 'Urządzenia poleasingowe'),
|
||||
)
|
||||
),
|
||||
'promocje' => array('promocje', 'Promocje',),
|
||||
'urzadzenia-biurowe' => array(null, 'Urządzenia biurowe', array(
|
||||
'urzadzenia-biurowe-kolorowe' => array('urzadzenia-biurowe-kolorowe', 'kolorowe A4'),
|
||||
'urzadzenia-biurowe-kolorowe-a3' => array('urzadzenia-biurowe-kolorowe-a3', 'kolorowe A3'),
|
||||
'urzadzenia-biurowe-monochromatyczne' => array('urzadzenia-biurowe-monochromatyczne', 'monochromatyczne A4'),
|
||||
'urzadzenia-biurowe-monochromatyczne-a3' => array('urzadzenia-biurowe-monochromatyczne-a3', 'monochromatyczne A3')
|
||||
)
|
||||
),
|
||||
// 'urzadzenia-uslugowe' => array(null, 'Urządzenia usługowe', array(
|
||||
// 'urzadzenia-uslugowe-monochromatyczne' => array('urzadzenia-uslugowe-monochromatyczne', 'monochromatyczne'),
|
||||
// 'urzadzenia-uslugowe-kolorowe' => array('urzadzenia-uslugowe-kolorowe', 'kolorowe'),
|
||||
// )
|
||||
// ),
|
||||
// 'urzadzenia-produkcyjne' => array(null, 'Urządzenia produkcyjne', array(
|
||||
// 'urzadzenia-produkcyjne-monochromatyczne' => array('urzadzenia-produkcyjne-monochromatyczne', 'monochromatyczne'),
|
||||
// 'urzadzenia-produkcyjne-kolorowe' => array('urzadzenia-produkcyjne-kolorowe', 'kolorowe'),
|
||||
// )
|
||||
// ),
|
||||
// 'drukarki' => array(null, 'Drukarki', array(
|
||||
// 'drukarki-monochromatyczne' => array('drukarki-monochromatyczne', 'monochromatyczne'),
|
||||
// 'drukarki-kolorowe' => array('drukarki-kolorowe', 'kolorowe'),
|
||||
// )
|
||||
// ),
|
||||
// 'rozwiazania-software' => array(null, 'Rozwiązania programowe (software)', array(
|
||||
// 'zarzadzanie-drukiem' => array( 'zarzadzanie-drukiem', 'system zarządzania drukiem' ),
|
||||
// // 'rozwiazania-dla-jednostek-medycznych' => array('rozwiazania-dla-jednostek-medycznych', 'rozwiązania dla jednostek medycznych' ),
|
||||
// 'skanownaie-dokumentow-i-dystrybucja' => array('skanownaie-dokumentow-i-dystrybucja', 'skanowanie dokumentów i dystrybucja' )
|
||||
// )
|
||||
// ),
|
||||
'plotery' => array('plotery', 'Plotery i skanery'),
|
||||
'finansowanie' => array('finansowanie', 'Finansowanie'),
|
||||
'serwis' => array('serwis', 'Serwis'),
|
||||
'uslugi' => array('uslugi', 'Usługi'),
|
||||
'kontakt' => array('kontakt', 'Kontakt'),
|
||||
);
|
||||
|
||||
|
||||
108
application/config/config.php
Normal file
108
application/config/config.php
Normal file
@@ -0,0 +1,108 @@
|
||||
<?php defined('SYSPATH') OR die('No direct access allowed.');
|
||||
/**
|
||||
* 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'] = 'centrumcopy.com.pl';
|
||||
|
||||
/**
|
||||
* 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'] = 30;
|
||||
|
||||
/**
|
||||
* 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'] = TRUE;
|
||||
|
||||
/**
|
||||
* 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'] = FALSE;
|
||||
|
||||
/**
|
||||
* Log thresholds:
|
||||
* 0 - Disable logging
|
||||
* 1 - Errors and exceptions
|
||||
* 2 - Warnings
|
||||
* 3 - Notices
|
||||
* 4 - Debugging
|
||||
*/
|
||||
$config['log_threshold'] = 1;
|
||||
|
||||
/**
|
||||
* Message logging directory.
|
||||
*/
|
||||
$config['log_directory'] = APPPATH.'logs';
|
||||
|
||||
/**
|
||||
* Enable or disable displaying of Kohana error pages. This will not affect
|
||||
* logging. Turning this off will disable ALL error pages.
|
||||
*/
|
||||
$config['display_errors'] = false;
|
||||
|
||||
/**
|
||||
* 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.'auth', // Authentication
|
||||
// MODPATH.'forge', // Form generation
|
||||
// MODPATH.'kodoc', // Self-generating documentation
|
||||
// MODPATH.'media', // Media caching and compression
|
||||
MODPATH.'gmaps', // Google Maps integration
|
||||
// MODPATH.'archive', // Archive utility
|
||||
// MODPATH.'payment', // Online payments
|
||||
// MODPATH.'unit_test', // Unit testing
|
||||
// MODPATH.'object_db', // New OOP Database library (testing only!)
|
||||
);
|
||||
32
application/config/cookie.php
Normal file
32
application/config/cookie.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php defined('SYSPATH') OR die('No direct access allowed.');
|
||||
/**
|
||||
* @package Core
|
||||
*
|
||||
* 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'] = 'centrumcopy.com.pl';
|
||||
|
||||
/**
|
||||
* 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'] = FALSE;
|
||||
45
application/config/database.php
Normal file
45
application/config/database.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php defined('SYSPATH') OR die('No direct access allowed.');
|
||||
/**
|
||||
* @package Database
|
||||
*
|
||||
* Database connection settings, defined as arrays, or "groups". If no group
|
||||
* name is used when loading the database library, the group named "default"
|
||||
* will be used.
|
||||
*
|
||||
* Each group can be connected to independently, and multiple groups can be
|
||||
* connected at once.
|
||||
*
|
||||
* Group Options:
|
||||
* benchmark - Enable or disable database benchmarking
|
||||
* persistent - Enable or disable a persistent connection
|
||||
* connection - Array of connection specific parameters; alternatively,
|
||||
* you can use a DSN though it is not as fast and certain
|
||||
* characters could create problems (like an '@' character
|
||||
* in a password):
|
||||
* 'connection' => 'mysql://dbuser:secret@localhost/kohana'
|
||||
* character_set - Database character set
|
||||
* table_prefix - Database table prefix
|
||||
* object - Enable or disable object results
|
||||
* cache - Enable or disable query caching
|
||||
* escape - Enable automatic query builder escaping
|
||||
*/
|
||||
$config['default'] = array
|
||||
(
|
||||
'benchmark' => TRUE,
|
||||
'persistent' => FALSE,
|
||||
'connection' => array
|
||||
(
|
||||
'type' => 'mysqli',
|
||||
'user' => 'host420804_db',
|
||||
'pass' => 'VanMzwjUn85ySRyR',
|
||||
'host' => 'localhost',
|
||||
'port' => FALSE,
|
||||
'socket' => FALSE,
|
||||
'database' => 'host420804_db'
|
||||
),
|
||||
'character_set' => 'utf8',
|
||||
'table_prefix' => '',
|
||||
'object' => TRUE,
|
||||
'cache' => FALSE,
|
||||
'escape' => TRUE
|
||||
);
|
||||
55
application/config/debug_toolbar.php
Normal file
55
application/config/debug_toolbar.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<?php defined('SYSPATH') or die('No direct script access.');
|
||||
|
||||
/*
|
||||
* If true, the debug toolbar will be automagically displayed
|
||||
* NOTE: if IN_PRODUCTION is set to TRUE, the toolbar will
|
||||
* not automatically render, even if auto_render is TRUE
|
||||
*/
|
||||
$config['auto_render'] = TRUE;
|
||||
|
||||
/*
|
||||
* If true, the toolbar will default to the minimized position
|
||||
*/
|
||||
$config['minimized'] = FALSE;
|
||||
|
||||
/*
|
||||
* Location of icon images
|
||||
* relative to your site_domain
|
||||
*/
|
||||
$config['icon_path'] = 'images/debug_toolbar';
|
||||
|
||||
/*
|
||||
* List config files you would like to exclude
|
||||
* from showing in the toolbar (without extension).
|
||||
* Alternatively, set to true to stop all
|
||||
* config files from showing.
|
||||
*/
|
||||
$config['skip_configs'] = array('database', 'encryption');
|
||||
|
||||
/*
|
||||
* Log toolbar data to FirePHP
|
||||
*/
|
||||
$config['firephp_enabled'] = TRUE;
|
||||
|
||||
/*
|
||||
* Enable or disable specific panels
|
||||
*/
|
||||
$config['panels'] = array(
|
||||
'benchmarks' => TRUE,
|
||||
'database' => TRUE,
|
||||
'vars_and_config' => TRUE,
|
||||
'logs' => TRUE,
|
||||
'ajax' => TRUE,
|
||||
'files' => TRUE
|
||||
);
|
||||
|
||||
/*
|
||||
* Toolbar alignment
|
||||
* options: right, left, center
|
||||
*/
|
||||
$config['align'] = 'right';
|
||||
|
||||
/*
|
||||
* Secret Key
|
||||
*/
|
||||
$config['secret_key'] = FALSE;
|
||||
23
application/config/email.php
Normal file
23
application/config/email.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php defined('SYSPATH') OR die('No direct access allowed.');
|
||||
/**
|
||||
* SwiftMailer driver, used with the email helper.
|
||||
*
|
||||
* @see http://www.swiftmailer.org/wikidocs/v3/connections/nativemail
|
||||
* @see http://www.swiftmailer.org/wikidocs/v3/connections/sendmail
|
||||
* @see http://www.swiftmailer.org/wikidocs/v3/connections/smtp
|
||||
*
|
||||
* Valid drivers are: native, sendmail, smtp
|
||||
*/
|
||||
$config['driver'] = 'native';
|
||||
|
||||
/**
|
||||
* To use secure connections with SMTP, set "port" to 465 instead of 25.
|
||||
* To enable TLS, set "encryption" to "tls".
|
||||
*
|
||||
* Driver options:
|
||||
* @param null native: no options
|
||||
* @param string sendmail: executable path, with -bs or equivalent attached
|
||||
* @param array smtp: hostname, (username), (password), (port), (auth), (encryption)
|
||||
*/
|
||||
$config['options'] = NULL;
|
||||
|
||||
15
application/config/gmaps.php
Normal file
15
application/config/gmaps.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php defined('SYSPATH') OR die('No direct access allowed.');
|
||||
|
||||
/**
|
||||
* You should set your own API key in application/config/gmaps.php
|
||||
* This API key is usable for http://localhost/*
|
||||
*/
|
||||
|
||||
$config['api_key'] = 'ABQIAAAAr-Ryn_rBPNdbGZMj6ol1UBRilJROL6iQId9Ow3y7N7_ES742DBQLKgFvbUSVpr9097tywJ-Q2Aq5oA';
|
||||
/**
|
||||
* Using a localised google domain gives more accurated results on geolocation
|
||||
* For example, searches for "Toledo" will return different results within the domain of Spain (http://maps.google.es)
|
||||
* specified by a country code of "es" than within the default domain within the United States (http://maps.google.com).
|
||||
*/
|
||||
|
||||
$config['api_domain'] = 'google.pl';
|
||||
16
application/config/locale.php
Normal file
16
application/config/locale.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php defined('SYSPATH') OR die('No direct access allowed.');
|
||||
/**
|
||||
* @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('pl_PL', 'Polish_Poland');
|
||||
|
||||
/**
|
||||
* Locale timezone. Defaults to use the server timezone.
|
||||
* @see http://php.net/timezones
|
||||
*/
|
||||
$config['timezone'] = '';
|
||||
25
application/config/pagination.php
Normal file
25
application/config/pagination.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php defined('SYSPATH') OR die('No direct access allowed.');
|
||||
/**
|
||||
* @package Pagination
|
||||
*
|
||||
* Pagination configuration is defined in groups which allows you to easily switch
|
||||
* between different pagination settings for different website sections.
|
||||
* Note: all groups inherit and overwrite the default group.
|
||||
*
|
||||
* Group Options:
|
||||
* directory - Views folder in which your pagination style templates reside
|
||||
* style - Pagination style template (matches view filename)
|
||||
* uri_segment - URI segment (int or 'label') in which the current page number can be found
|
||||
* query_string - Alternative to uri_segment: query string key that contains the page number
|
||||
* items_per_page - Number of items to display per page
|
||||
* auto_hide - Automatically hides pagination for single pages
|
||||
*/
|
||||
$config['default'] = array
|
||||
(
|
||||
'directory' => 'pagination',
|
||||
'style' => 'custom',
|
||||
'uri_segment' => 3,
|
||||
'query_string' => 's',
|
||||
'items_per_page' => 5,
|
||||
'auto_hide' => true,
|
||||
);
|
||||
24
application/config/routes.php
Normal file
24
application/config/routes.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php defined('SYSPATH') OR die('No direct access allowed.');
|
||||
/**
|
||||
* @package Core
|
||||
*
|
||||
* Sets the default route to "welcome"
|
||||
*/
|
||||
$config['_default'] = 'front/page/homepage';
|
||||
|
||||
$config['install/*(.*)'] = 'install/$1';
|
||||
|
||||
# admin
|
||||
$config['admin'] = 'admin/welcome/';
|
||||
$config['admin/login'] = 'admin/user/login';
|
||||
$config['admin/logout'] = 'admin/user/logout';
|
||||
$config['admin/password'] = 'admin/user/password';
|
||||
$config['admin/page/(.*)'] = 'admin/page/edit/$1';
|
||||
$config['admin/(.*)'] = 'admin/$1';
|
||||
|
||||
#front
|
||||
$config['kontakt'] = 'front/page/contact';
|
||||
$config['galeria/?(.*)'] = 'front/gallery/$1';
|
||||
$config['aktualnosci/?(.*)'] = 'front/news/$1';
|
||||
$config['(.+)'] = 'front/page/$1';
|
||||
|
||||
47
application/config/session.php
Normal file
47
application/config/session.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php defined('SYSPATH') OR die('No direct access allowed.');
|
||||
/**
|
||||
* @package Session
|
||||
*
|
||||
* Session driver name.
|
||||
*/
|
||||
$config['driver'] = 'native';
|
||||
|
||||
/**
|
||||
* 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'] = 'Frisson_session';
|
||||
|
||||
/**
|
||||
* 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'] = 1800;
|
||||
|
||||
/**
|
||||
* 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;
|
||||
8
application/config/tiny_mce.php
Normal file
8
application/config/tiny_mce.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php defined('SYSPATH') OR die('No direct access allowed.');
|
||||
|
||||
$config['public_html_dir'] = getcwd() .'/';
|
||||
$config['upload_dirs'] = array(
|
||||
'uploads/image' => 'image',
|
||||
'uploads/file' => 'file',
|
||||
'uploads/media' => 'media',
|
||||
);
|
||||
18
application/config/upload.php
Normal file
18
application/config/upload.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php defined('SYSPATH') OR die('No direct access allowed.');
|
||||
/**
|
||||
* @package Core
|
||||
*
|
||||
* This path is relative to your index file. Absolute paths are also supported.
|
||||
*/
|
||||
|
||||
$config['directory'] = DOCROOT. 'uploads/';
|
||||
|
||||
/**
|
||||
* Enable or disable directory creation.
|
||||
*/
|
||||
$config['create_directories'] = true;
|
||||
|
||||
/**
|
||||
* Remove spaces from uploaded filenames.
|
||||
*/
|
||||
$config['remove_spaces'] = TRUE;
|
||||
Reference in New Issue
Block a user