Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Readd sanitized files with sensitive information
- Loading branch information
Showing
4 changed files
with
252 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
// This file is only included when in a non-production environment. | ||
// This allows us for settings branching accordingly: | ||
// * The settings.php file contains common and production settings. | ||
// * The settings-beta.php file overwrites those for the sandbox. | ||
|
||
$ret = array( | ||
'rootdir' => '/var/www/zino.gr/beta/phoenix', | ||
// 'imagesurl' => 'http://static.beta.zino.gr/phoenix/', | ||
'production' => false, | ||
'hostname' => 'beta.zino.gr', | ||
'url' => '/', | ||
'webaddress' => 'http://beta.zino.gr', | ||
// 'legalreferers' => '#^https?://((?<!-)[a-z0-9_-]+(?!-)\.)*beta\.zino\.gr#i', | ||
'databases' => array( | ||
'db' => array( | ||
'name' => 'zinophoenix', // sandbox | ||
'username' => 'zinophoenix', | ||
'password' => 'password', | ||
'hostname' => 'localhost' | ||
) | ||
), | ||
'memcache' => array( | ||
'type' => 'memcached', | ||
'hostname' => '127.0.0.1', | ||
'port' => '11211' | ||
), | ||
'_excalibur' => array( | ||
'cookiedomain' => '.beta.zino.gr', | ||
'usersubdomains' => 'http://*.beta.zino.gr/', | ||
'iphoneurl' => 'iphone.php', | ||
// 'staticimagesurl' => 'http://static.beta.zino.gr/phoenix/', | ||
'staticjsurl' => 'http://static.beta.zino.gr/js/', | ||
'staticcssurl' => 'http://static.beta.zino.gr/css/', | ||
'php2mysqldate' => 3600, | ||
'spotdaemon' => array( | ||
'enabled' => true, | ||
'address' => 'europa.kamibu.com', | ||
'port' => '21490' | ||
) | ||
) | ||
); | ||
|
||
$ret[ '_excalibur' ][ 'mysql2phpdate' ] = ' - INTERVAL ' . $ret[ '_excalibur' ][ 'php2mysqldate' ] . ' SECOND'; | ||
|
||
return $ret; | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
<?php | ||
$settings = array( | ||
'applicationname' => 'Zino', | ||
'rootdir' => '/var/www/zino.gr/html', | ||
'resourcesdir' => '/var/www/zino.gr/beta/resources', | ||
'imagesurl' => 'http://static.zino.gr/phoenix/', | ||
'production' => true, | ||
'hostname' => 'zino.gr', | ||
'hostnameforce' => false, // don't force a hostname | ||
'url' => '', | ||
'port' => 80, | ||
'webaddress' => 'http://www.zino.gr', | ||
'legalreferers' => '#^https?://((?<!-)[a-z0-9_-]+(?!-)\.)*zino\.gr#i', | ||
'timezone' => 'UTC', | ||
'language' => 'el', | ||
'locale' => 'el_EL', | ||
'dbschemaversion' => 68, | ||
'elementschemaversion' => 224, | ||
'databases' => array( // prefix all keys with "db" | ||
'db' => array( | ||
'driver' => 'mysql', | ||
'hostname' => '88.198.246.218', | ||
'name' => 'zinolive', | ||
'username' => 'zinolive', | ||
'password' => 'password', | ||
'charset' => '\'utf8\'', | ||
'prefix' => '', | ||
'tables' => array( | ||
'adminactions', | ||
'ads', | ||
'adplaces', | ||
'albums', | ||
'answers', | ||
'badges' , | ||
'bannedips', | ||
'bannedusers', | ||
'block', | ||
'bulk', | ||
'chatchannels', | ||
'chatparticipants', | ||
'chatvideo', | ||
'coins', | ||
'comments', | ||
'contacts', | ||
'favourites', | ||
'happenings', | ||
'happeningparticipants', | ||
'images', | ||
'imagesfrontpage', | ||
'imagetags', | ||
'institutions', | ||
'journals', | ||
'journalsfrontpage', | ||
'journalstickies', | ||
'lastactive', | ||
'loginattempts', | ||
'moods', | ||
'notify', | ||
'olduserprofiles', | ||
'pageviews', | ||
'passwordrequests', | ||
'places', | ||
'pmfolders', | ||
'pmmessageinfolder', | ||
'pmmessages', | ||
'polloptions', | ||
'polls', | ||
'pollsfrontpage', | ||
'questions', | ||
'report', | ||
'relations', | ||
'relationtypes', | ||
'schools', | ||
'sequences', | ||
'song', | ||
'shoutbox', | ||
'storetypes', | ||
'storeitems', | ||
'storeproperties', | ||
'storepurchases', | ||
'storepurchaseproperties', | ||
'storeactionshots', | ||
'tags', | ||
'universities', | ||
'usercounts', | ||
'userprofiles', | ||
'users', | ||
'usersettings', | ||
'votes', | ||
'statusbox', | ||
'applications', | ||
'memoryusage' | ||
) | ||
) | ||
), | ||
'memcache' => array( | ||
// 'type' => 'memcached', | ||
'type' => 'dummy', | ||
'hostname' => '88.198.246.218', | ||
'port' => '11211' | ||
), | ||
'_excalibur' => array( | ||
'jsversion' => 161, | ||
'cssversion' => 124469, | ||
'readonly' => false, | ||
'membername' => 'Zino', | ||
'ushoutbox' => 'shoutbox', | ||
'cookiename' => 'zino_login_8', | ||
'cookiedomain' => '.zino.gr', | ||
'usersubdomains' => 'http://*.zino.gr/', | ||
'iphoneurl' => 'iphone.php', | ||
'staticimagesurl' => 'http://static.zino.gr/phoenix/', | ||
'staticjsurl' => 'http://static.zino.gr/js/', | ||
'staticcssurl' => 'http://static.zino.gr/css/', | ||
'imagesurl' => 'http://images2.zino.gr/media/', | ||
'php2mysqldate' => '0', | ||
'mysql2phpdate' => '', | ||
'imagesupload' => array( | ||
'ip' => '88.198.246.219', | ||
'host' => 'images2.zino.gr', | ||
'port' => 80, | ||
'url' => '/upload4.php' | ||
), | ||
'spotdaemon' => array( | ||
'enabled' => false, | ||
'address' => 'iris.kamibu.com', | ||
'port' => '21490' | ||
) | ||
) | ||
); | ||
if ( $_SERVER[ 'DOCUMENT_ROOT' ] == '/var/www/zino.gr/beta/phoenix' ) { | ||
// load beta settings from settings-beta.php | ||
function SettingsMerge( $settings, $settingsbeta ) { | ||
foreach ( $settingsbeta as $key => $value ) { | ||
if ( is_array( $value ) && isset( $settings[ $key ] ) ) { | ||
$settings[ $key ] = SettingsMerge( $settings[ $key ], $settingsbeta[ $key ] ); | ||
continue; | ||
} | ||
$settings[ $key ] = $value; | ||
} | ||
return $settings; | ||
} | ||
$betasettings = require_once 'settings-beta.php'; | ||
$settings = SettingsMerge( $settings, $betasettings ); | ||
} | ||
|
||
$settings[ '_excalibur' ][ 'mysql2phpdate' ] = ' - INTERVAL ' . $settings[ '_excalibur' ][ 'php2mysqldate' ] . ' SECOND'; | ||
|
||
return $settings; | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?php | ||
$settings = array( | ||
'db' => array( | ||
/* | ||
'host' => 'code.kamibu.com', | ||
'user' => 'zinophoenix', | ||
'password' => 'password', | ||
'name' => 'zinophoenix' | ||
*/ | ||
'host' => 'localhost', | ||
'user' => 'zinolive', | ||
'password' => 'password', | ||
'name' => 'zinolive' | ||
), | ||
'base' => 'http://zino.gr', | ||
'enablemc' => true, | ||
'cookiename' => 'zino_login_8', | ||
'cookiedomain' => '.zino.gr', | ||
'beta' => false, | ||
'xslversion' => 19, | ||
'imagesurl' => 'http://static.zino.gr/phoenix/', | ||
'imagesuploadurl' => 'images2.zino.gr/upload4.php', | ||
'spotdaemon' => array( | ||
'enabled' => true, | ||
'address' => 'iris.kamibu.com', | ||
'port' => '21490' | ||
), | ||
'presence' => array( | ||
'url' => 'http://presence.zino.gr:8124/users/list' | ||
), | ||
'cachecontrol' => array( | ||
// for JS/CSS uncaching see the file xslt/html.xsl | ||
'xslversion' => '3' | ||
) | ||
); | ||
|
||
if ( file_exists( 'localtest.php' ) ) { | ||
// load local settings from localtest.php | ||
function SettingsMerge( $settings, $settingslocal ) { | ||
foreach ( $settingslocal as $key => $value ) { | ||
if ( is_array( $value ) && isset( $settings[ $key ] ) ) { | ||
$settings[ $key ] = SettingsMerge( $settings[ $key ], $settingslocal[ $key ] ); | ||
continue; | ||
} | ||
$settings[ $key ] = $value; | ||
} | ||
return $settings; | ||
} | ||
$localsettings = include 'localtest.php'; | ||
$settings = SettingsMerge( $settings, $localsettings ); | ||
} | ||
|
||
return $settings; | ||
?> |