Guest User

config

a guest
Jan 25th, 2013
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4. All config settings are defined in this file. Please refer to your readme
  5. for an in depth explanation of each value.
  6. */
  7.  
  8. class Config {
  9.  
  10. // Names and URLs for your installation
  11. public static $absolutePath = '/';
  12. public static $frontendPath = 'http://vbhpbk.bplaced.net/';
  13. public static $siteName = 'Picturelicious';
  14. public static $siteTitle = 'Picturelicious - Social Imaging';
  15.  
  16. public static $sessionCookie = 'sid';
  17. public static $rememberCookie = 'remember';
  18.  
  19. // Spam protection
  20. public static $ipLockTime = 3600;
  21. public static $uploadLockTime = 7200;
  22. public static $maxNumUploads = 10;
  23.  
  24. // User score
  25. public static $votingScore = 5;
  26. public static $postScore = 10;
  27. public static $tagScorePerChar = 0.5;
  28. public static $tagScoreMax = 20;
  29.  
  30. // Misc settings
  31. public static $usersPerPage = 50;
  32. public static $defaultChmod = 0777;
  33. public static $templates = 'templates/';
  34. public static $keywordWordSeperator = '-';
  35.  
  36. public static $colorSearchDev = 50;
  37.  
  38. public static $maxRandomThumbs = 10;
  39. public static $minRandomScore = 4.0;
  40.  
  41. // vbb Forum integration
  42. public static $vbbIntegration = array(
  43. 'enabled' => false,
  44. 'path' => '/../forum'
  45. );
  46.  
  47. // Cache settings
  48. public static $cache = array(
  49. 'enabled' => true,
  50. 'path' => 'cache/',
  51. 'clearEvery' => 10
  52. );
  53.  
  54. // Database settings
  55. public static $db = array(
  56. 'host' => 'localhost',
  57. 'database' => 'datenbank yoo',
  58. 'user' => 'jugoo',
  59. 'password' => 'password',
  60. 'prefix' => 'pl_'
  61. );
  62.  
  63. // Image processing and thumbnail creation
  64. public static $images = array(
  65. 'thumbsPerPage' => 90,
  66. 'imagePath' => 'data/images/',
  67. 'thumbPath' => 'data/thumbs/',
  68. 'avatarsPath' => 'data/avatars/',
  69. 'maxDownload' => 2097152,
  70. 'jpegQuality' => 80,
  71. 'sharpen' => true
  72. );
  73.  
  74. // Grid Solver settings
  75. public static $gridView = array(
  76. 'gridSize' => 64,
  77. 'gridWidth' => 12,
  78. 'borderWidth' => 2,
  79.  
  80. // Definition of all Thumbnail classes ---------------------------
  81. // KEY: CSS-className
  82. // width/ height: Size of the thumb in grid units
  83. // percentage: Percentage of thumbnails in this size
  84. // dir: Name of the subdir with thumbs in this size
  85. 'classes' => array(
  86. 'b2' => array( 'width'=>1, 'height'=>1, 'percentage'=>0.6, 'dir'=>'64x64' ),
  87. 'b1' => array( 'width'=>2, 'height'=>2, 'percentage'=>0.35, 'dir'=>'128x128' ),
  88. 'b0' => array( 'width'=>3, 'height'=>3, 'percentage'=>0.05, 'dir'=>'192x192' )
  89. ),
  90. );
  91. }
  92.  
  93.  
  94. // Edit below this line only if you know what you're doing!
  95. // -----------------------------------------------------------------------
  96.  
  97. // MySQL Table names
  98. define( 'TABLE_IMAGES', Config::$db['prefix'].'images' );
  99. define( 'TABLE_IMAGECOLORS',Config::$db['prefix'].'imagecolors' );
  100. define( 'TABLE_USERS', Config::$db['prefix'].'users' );
  101. define( 'TABLE_IPLOCK', Config::$db['prefix'].'iplock' );
  102. define( 'TABLE_UPLOADLOCK', Config::$db['prefix'].'uploadlock' );
  103. define( 'TABLE_TAGLOG', Config::$db['prefix'].'taglog' );
  104. define( 'TABLE_COMMENTS', Config::$db['prefix'].'comments' );
  105.  
  106. // MagicQuotes undo
  107. if( function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc() ) {
  108. $_GET = array_map( 'stripslashes', $_GET );
  109. $_POST = array_map( 'stripslashes', $_POST );
  110. }
  111.  
  112. ?>
Advertisement
Add Comment
Please, Sign In to add comment