<?php
/*
* Copyright 2008 Blandware (http://www.blandware.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* This file contains configuration not bound to server-specific stuff.
*
* @package AtleapLite
* @author Roman Puchkovskiy
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
*/
/**
* Included here to allow log level constants to be used
*/
require_once 'Log.php';
/**
* Duration of HTTP session in seconds
*/
$sessionLen = 3000;
/**
* Number of elements per page displayed by pager
*/
$perPage = 10;
/**
* Number of links to pages displayed by pager
*/
$pagerDelta = 10;
/**
* Maximum number of attributes which may belong to a commodity
*/
$maxAttributes = 50;
/**
* Number of rows for attributes initially displayed for a new commodity
*/
$initialAttributes = 10;
/**
* Maximum number of suggestions for attribute name to output
*/
define('MAX_SUGGESTIONS', 10);
/**
* Maximum size of file to upload in bytes.
* The used DBMS can have restrictions to max packet size.
* E.g. for MySQL do not forget to setup server variables for example
* key_buffer_size=16M
* max_allowed_packet=8M
* And, of course, this value is restricted by PHP directive upload_max_filesize
*/
define('MAX_UPLOAD_FILE_SIZE', 2*1024*1024);
/**
* Width of FCK Editor control
*/
define('FCKE_WIDTH', 650);
/**
* Height of FCKEditor control
*/
define('FCKE_HEIGHT', 600);
/**
* Size in bytes of maximum size of a resource which is allowed to be cached
* in the server-side cache.
*/
define('CACHED_RESOURCE_MAX_SIZE', 50000);
/**
* Name of project - used to avoid session confusion if several applications
* built on this run on same server.
*/
define('PROJECT_NAME', "project");
/**
* Character set to use in Context-Type header
*/
define('HTTP_CHARSET', 'utf-8');
/**
* If this is true, then characters that are not in windows-1251 will be
* converted or removed (to avoid situation when IE actually sends data in
* UTF when encountering a pasted character which is not in windows-1251)
*/
define('ENFORCE_1251', false);
/**
* Default layout to use when serving requests when page is not specified
* for admin console pages
*/
define ('ADMIN_LAYOUT', 'admin');
/**
* Default layout to use when serving requests when page is not specified
* for front-end pages
*/
define ('FRONTEND_LAYOUT', 'internal');
/**
* Layout to use when serving requests to browser pages
*/
define ('BROWSER_LAYOUT', 'browser');
/**
* Date pattern
*/
define('DATE_PATTERN', "d.m.Y");
/**
* Calendar date pattern understandable by calendar script; must match
* DATE_PATTERN (i.e. give same date representation)
*/
define('CALENDAR_DATE_PATTERN', "dd.MM.yyyy");
/**
* Identifier of page which is displayed when no action is specified through
* GET
*/
define('WELCOME_PAGE_IDENTIFIER', 'index');
/**
* URL of page which is entry point to protected area
*/
define('ADMIN_PAGE', 'admin.html');
/**
* This is the config for logging which uses Log PEAR package. The parameters
* are:
* <ul>
* <li>level - the debugging level, all levels that are lower then this will
* not produce messages</li>
* <li>handlers - an assoc array from hanler name to its configuration. Each
* handler included here will be used for logging. The parameters are:
* <ul>
* <li>name - this is the name of the object which will be used by the handler.
* For instance, for the <b>file</b> logger this is name of the file to which
* to write log.</li>
* <li>config - the handler-specific config, refer to the documentation of the
* handler</li>
* </ul>
* </li>
* </ul>
* <p>The documentation on Log package is here:
* <a href="http://www.indelible.org/php/Log/guide.html">http://www.indelible.org/php/Log/guide.html</a></p>
* <p>The log levels are:
* <ul>
* <li>PEAR_LOG_EMERG</li>
* <li>PEAR_LOG_ALERT</li>
* <li>PEAR_LOG_CRIT</li>
* <li>PEAR_LOG_ERR</li>
* <li>PEAR_LOG_WARNING</li>
* <li>PEAR_LOG_NOTICE</li>
* <li>PEAR_LOG_INFO</li>
* <li>PEAR_LOG_DEBUG</li>
* </ul>
* </p>
*/
$loggingConfig = array(
'level' => PEAR_LOG_INFO,
'handlers' => array(
'file' => array(
'name' => 'logs/atleaplite.log',
'config' => array()
)
// Uncomment the following to instruct the logger to send messages
// using mail. Don't forget to configure the PHP for mail sending.
/* ,
'mail' => array(
'name' => 'hide@address.com',
'config' => array(
'from' => 'hide@address.com'
)
)*/
)
);
/**
* DataObject debug level to set in the beginning; if this is 0, no debug info
* will be output. Setting this to positive values is useful for diagnosing
* problems will DB.
*/
define('DO_DEBUG_LEVEL', 0);
?>