Files
5ducky/lib/config.php
T
2022-10-06 22:04:13 +02:00

112 lines
3.1 KiB
PHP

<?php
/*
All config settings are defined in this file. Please refer to your readme
for an in depth explanation of each value.
*/
class Config {
// Names and URLs for your installation
public static $absolutePath = '/';
public static $frontendPath = 'http://www.4ducky.com/';
public static $siteName = '4ducky';
public static $siteTitle = '4ducky.com - fol witzik';
public static $sessionCookie = 'sid';
public static $rememberCookie = 'remember';
// Spam protection
public static $ipLockTime = 3600;
public static $uploadLockTime = 7200;
public static $maxNumUploads = 50;
// User score
public static $votingScore = 5;
public static $postScore = 10;
public static $tagScorePerChar = 0.5;
public static $tagScoreMax = 20;
// Misc settings
public static $usersPerPage = 100;
public static $defaultChmod = 0777;
public static $templates = 'templates/';
public static $keywordWordSeperator = '-';
public static $colorSearchDev = 50;
public static $maxRandomThumbs = 10;
public static $minRandomScore = 10.0;
// vbb Forum integration
public static $vbbIntegration = array(
'enabled' => false,
'path' => '/../forum'
);
// Cache settings
public static $cache = array(
'enabled' => false,
'path' => 'cache/',
'clearEvery' => 10
);
// Database settings
public static $db = array(
'host' => 'localhost',
'database' => 'name',
'user' => 'usernmae',
'password' => 'passwort',
'prefix' => 'pl_'
);
// Image processing and thumbnail creation
public static $images = array(
'thumbsPerPage' => 125,
'imagePath' => 'data/images/',
'thumbPath' => 'data/thumbs/',
'avatarsPath' => 'data/avatars/',
'maxDownload' => 8097152,
'jpegQuality' => 100,
'sharpen' => false
);
// Grid Solver settings
public static $gridView = array(
'gridSize' => 64,
'gridWidth' => 12,
'borderWidth' => 2,
// Definition of all Thumbnail classes ---------------------------
// KEY: CSS-className
// width/ height: Size of the thumb in grid units
// percentage: Percentage of thumbnails in this size
// dir: Name of the subdir with thumbs in this size
'classes' => array(
'b2' => array( 'width'=>1, 'height'=>1, 'percentage'=>0.6, 'dir'=>'64x64' ),
'b1' => array( 'width'=>2, 'height'=>2, 'percentage'=>0.35, 'dir'=>'128x128' ),
'b0' => array( 'width'=>3, 'height'=>3, 'percentage'=>0.05, 'dir'=>'192x192' )
),
);
}
// Edit below this line only if you know what you're doing!
// -----------------------------------------------------------------------
// MySQL Table names
define( 'TABLE_IMAGES', Config::$db['prefix'].'images' );
define( 'TABLE_IMAGECOLORS',Config::$db['prefix'].'imagecolors' );
define( 'TABLE_USERS', Config::$db['prefix'].'users' );
define( 'TABLE_IPLOCK', Config::$db['prefix'].'iplock' );
define( 'TABLE_UPLOADLOCK', Config::$db['prefix'].'uploadlock' );
define( 'TABLE_TAGLOG', Config::$db['prefix'].'taglog' );
define( 'TABLE_COMMENTS', Config::$db['prefix'].'comments' );
// MagicQuotes undo
if( function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc() ) {
$_GET = array_map( 'stripslashes', $_GET );
$_POST = array_map( 'stripslashes', $_POST );
}
?>