Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F391131
config.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
5 KB
Subscribers
None
config.php
View Options
<?php
/*
* Zed
* (c) 2010, Dereckson, some rights reserved
* Released under BSD license
*
* Autogenerable configuration file
*/
////////////////////////////////////////////////////////////////////////////////
/// ///
/// I. SQL configuration ///
/// ///
////////////////////////////////////////////////////////////////////////////////
//SQL configuration
$Config
[
'sql'
][
'product'
]
=
'MySQL'
;
//Only MySQL is currently implemented
$Config
[
'sql'
][
'host'
]
=
'localhost'
;
$Config
[
'sql'
][
'username'
]
=
'zed'
;
$Config
[
'sql'
][
'password'
]
=
'zed'
;
$Config
[
'sql'
][
'database'
]
=
'zed'
;
//SQL tables
$prefix
=
''
;
define
(
'TABLE_API_KEYS'
,
$prefix
.
'api_keys'
);
define
(
'TABLE_COMMENTS'
,
$prefix
.
'comments'
);
define
(
'TABLE_LOG_SMARTLINE'
,
$prefix
.
'log_smartline'
);
define
(
'TABLE_MESSAGES'
,
$prefix
.
'messages'
);
define
(
'TABLE_MOTD'
,
$prefix
.
'motd'
);
define
(
'TABLE_PAGES'
,
$prefix
.
'pages'
);
define
(
'TABLE_PAGES_EDITS'
,
$prefix
.
'pages_edits'
);
define
(
'TABLE_PERSOS'
,
$prefix
.
'persos'
);
define
(
'TABLE_PERSOS_FLAGS'
,
$prefix
.
'persos_flags'
);
define
(
'TABLE_PROFILES'
,
$prefix
.
'profiles'
);
define
(
'TABLE_PROFILES_COMMENTS'
,
$prefix
.
'profiles_comments'
);
define
(
'TABLE_PROFILES_PHOTOS'
,
$prefix
.
'profiles_photos'
);
define
(
'TABLE_SESSIONS'
,
$prefix
.
'sessions'
);
define
(
'TABLE_USERS'
,
$prefix
.
'users'
);
define
(
'TABLE_USERS_OPENID'
,
$prefix
.
'users_openid'
);
//Geo tables
define
(
'TABLE_BODIES'
,
$prefix
.
'geo_bodies'
);
define
(
'TABLE_LOCATIONS'
,
$prefix
.
'geo_locations'
);
//Well... it's view
define
(
'TABLE_PLACES'
,
$prefix
.
'geo_places'
);
////////////////////////////////////////////////////////////////////////////////
/// ///
/// II. Site configuration ///
/// ///
////////////////////////////////////////////////////////////////////////////////
//Default theme
$Config
[
'DefaultTheme'
]
=
"Zed"
;
//Dates
date_default_timezone_set
(
"UTC"
);
////////////////////////////////////////////////////////////////////////////////
/// ///
/// III. Script URLs ///
/// ///
////////////////////////////////////////////////////////////////////////////////
/*
* Without mod_rewrite:
*
* Subdirectory:
* - $Config['SiteURL'] = 'http://zed.dereckson.be/hypership/index.php';
* - $Config['BaseURL'] = '/hypership/index.php';
*
* Root directory:
* - $Config['SiteURL'] = 'http://zed.dereckson.be/index.php';
* - $Config['BaseURL'] = '/index.php';
*
* With mod_rewrite:
*
* Subdirectory:
* - $Config['SiteURL'] = 'http://zed.dereckson.be/hypership';
* - $Config['BaseURL'] = '/hypership';
*
* In .htaccess or your vhost definition:
* RewriteEngine On
* RewriteBase /hypership/
* RewriteCond %{REQUEST_FILENAME} !-f
* RewriteCond %{REQUEST_FILENAME} !-d
* RewriteRule . /hypership/index.php [L]
*
* Root directory:
* - $Config['SiteURL'] = 'http://zed.dereckson.be';
* - $Config['BaseURL'] = '';
*
* In .htaccess or your vhost definition:
* RewriteEngine On
* RewriteBase /
* RewriteCond %{REQUEST_FILENAME} !-f
* RewriteCond %{REQUEST_FILENAME} !-d
* RewriteRule . /index.php [L]
*
*
* If you don't want to specify the server domain, you can use get_server_url:
* $Config['SiteURL'] = get_server_url() . '/hypership';
* $Config['SiteURL'] = get_server_url();
*
* $Config['StaticContentURL'] is used to serve js, css, img and content
* directories. To improve site performance, you can use a CDN for that.
*
* !!! No trailing slash !!!
*
*/
$Config
[
'SiteURL'
]
=
get_server_url
();
$Config
[
'BaseURL'
]
=
''
;
$Config
[
'StaticContentURL'
]
=
$Config
[
'SiteURL'
];
define
(
'SCENE_URL'
,
"$Config[StaticContentURL]/content/scenes"
);
////////////////////////////////////////////////////////////////////////////////
/// ///
/// IV. Sessions ///
/// ///
////////////////////////////////////////////////////////////////////////////////
//Sessions
//If you want to use a common table of sessions / user handling
//with several websites, specify a different resource id for each site.
$Config
[
'ResourceID'
]
=
21
;
//PHP variables
ini_set
(
'session.serialize_handler'
,
'wddx'
);
ini_set
(
'session.save_path'
,
'cache/sessions'
);
ini_set
(
'session.gc_maxlifetime'
,
345600
);
//4 days, for week-end story pause and continue url
?>
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Feb 22, 20:21 (15 h, 27 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
21930
Default Alt Text
config.php (5 KB)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment