Location: PHPKode > projects > v-creator > v-creator_1.3-pre3/examples/project_config.php
<?php

/** @file project_config.php
 *  @brief v-creator configuration file.
 *
 * $Revision: 1.7 $  $Date: 2006-03-03 16:53:23 $
 *
 * This file defines all of the settings in v-creator that
 * can easily be customised.
 *
 * @par VC_ROOT
 * This is the root directory where v-creator is installed.
 *
 * @par VC_DOCROOT
 * This is the document root for the website.
 *
 * @par VC_CURL_URL
 * This is the URL of the root of the site as seen by the local CURL session on
 * the SERVER where v-crator is running. Usually it is simply the site URL such
 * as http://www.example.com except when using complex firewall rules or network
 * configurations.
 *
 * @par VC_CURL_IP
 * This setting is optional. If set it should be set the the IP address of the
 * server. Then when CURL makes requests to talk to itself locally it will
 * use the IP address specified to avoid resolving domains for itself and set
 * a 'Host:' header with the domain specified in VC_CURL_URL.
 *
 * @par VC_USER_MODULES
 * This is the path to user supplied modules which are site specific. Multiple
 * paths may be specified with each being separated by a colon. For more
 * details see VCEngine::useModule
 *
 * @par VC_DEFAULT_LANGUAGE
 * This is the default language to use if a message in the specified language
 * cannot be found.
 *
 * @par VC_DATABASE
 * This is the name of the database v-creator should use.
 *
 * @par VC_DB_HOST
 * This is the name of the machine to connect to for the database.
 *
 * @par VC_DB_USER
 * This is the user id to use to log into the database server.
 *
 * @par VC_DB_PASSWORD
 * This is the password to use to log into the database server.
 *
 * @par VC_DB_BACKEND
 * This is the database backend to use. If not set it will default to 'mysql'.
 * Current backends available are 'mysql' and 'odbc'.
 *
 * @par VC_CONVERT_PATH
 * This is the path to the 'convert' program provided by the ImageMagic package
 * ( http://www.imagemagick.org ). As different distributions may put this in
 * different locations the location can be specified here. It also caters for
 * non-Linux users as well.
 *
 * @par VC_UPLOAD_PATH
 * This is the path to the directory where file uploads should be placed and
 * uploaded/generated images are manipulated. This setting shout be treated as
 * a root directory with sub directories appended to this setting.
 *
 * @par VC_DEBUG
 * Setting this to true will cause v-creator debugging information to be
 * generated along with the normal page contents.
 *
 * @par VC_AUTO_SSL
 * When this value is set any page where SSL is set to VC_TRUE (for example a
 * page with |{SSL=VC_TRUE}| will be checked to see if it is requested using
 * HTTPS. If not it will automatically be re-requested using HTTPS. If SSL is
 * not set the page will be checked to see if it is requested using HTTP. If
 * not it will automatically be re-requested using HTTP. IF SSL is set to VC_YES
 * page is only available via SSL otherwise a 403 (Forbidden) is returned. If
 * VC_NO is set the effects are the opposite of VC_YES, i.e. request must be
 * via non-SSL.
 *
 * @par VC_SESSION_TIMEOUT
 * This is the timeout period for an inactive session. If a session is started
 * and no activity is detected within this period the session is invalidated
 * and it's associated values discarded.
 *
 * @par VC_LOG_FILE
 * This is the file name v-creator will write errors and messages to. It is
 * also where messages are written for the LOG tag. If the value is an empty
 * string "" or this value is not defined then logging will be disabled.
 *
 * @par VC_IGNORE_HIDE_TAG
 * This define is used to disable HIDE tags during development and debugging.
 * When set to true the HIDE tags will have no effect and URLs will appear as
 * normal. This saves a developer removing/adding HIDE tags everywhere so they
 * can see what is going on.
 *
 * @par VC_CRYPTO_METHOD
 * This should be set to either OPENSSL or MCRYPT. MCRYPT is the preffered
 * method to use and requires the PHP4-mcrypt module to be installed. However
 * if it is not available OPENSSL can be specified instead to use the openssl
 * command line tools.
 *
 * @par VC_AUTO_DEFINE_GROUPS
 * Setting this to true will cause the v-creator user module to create defines
 * named GROUP_group_code where group_code are the group codes read from the
 * userGroups table, and therefore automatically updated when the table is
 * updated. These replace the older USER_ADMIN and USER_USER defines
 * setup of use with the SEC tag.
 */

define ('VC_ROOT'        				, '/var/www/v-creator/');
define ('VC_DOCROOT'     				, '/var/www/project/public/');
define ('VC_CURL_URL'         	, 'http://www.example.com/');
define ('VC_CURL_IP'          	, '192.0.34.166');
define ('VC_USER_MODULES'     	, '/var/www/project/modules/');
define ('VC_DEFAULT_LANGUAGE' 	, 'EN');
define ('VC_DATABASE'         	, 'exampledb');
define ('VC_DB_HOST'          	, 'localhost');
define ('VC_DB_USER'          	, 'user');
define ('VC_DB_PASSWORD'      	, 'password');
#define ('VC_DB_BACKEND'      	, 'mysql');
define ('VC_CONVERT_PATH'				, '/usr/bin/');
define ('VC_UPLOAD_PATH'				, VC_DOCROOT.'uploaded/');
define ('VC_DEBUG'							, false);
define ('VC_AUTO_SSL'						, true);
define ('VC_SESSION_TIMEOUT'		, 900);
define ('VC_LOG_FILE'						, '/var/www/project/logs/vc.log');
define ('VC_IGNORE_HIDE_TAG'		, false);
define ('VC_HIDE_TAG_KEY'				, 'a32e6ffe014c511d523a532447c67a33');
define ('VC_CRYPTO_METHOD'			, 'OPENSSL');
define ('VC_AUTO_DEFINE_GROUPS'	, true);
?>
Return current item: v-creator