3 DEFINE('SQUASHER_DB_HOST', '127.0.0.1'); // Ip address of the mysql server
4 DEFINE('SQUASHER_DB_USER', 'squasher'); // Username for the database
5 DEFINE('SQUASHER_DB_PASSWORD', 'squasher'); // Password for the database
6 DEFINE('SQUASHER_DB_DATABASE', 'squasher'); // Mysql database name
8 // Location of the uploaded files
9 // Do NOT add a final slash:
10 // The tree there must be writable by php. Use chmod g+sw or similar
11 DEFINE('SQUASHER_UPLOADS_DIR', '/var/www/uploads');
13 // Location of the smarty php library
14 // Use 'smarty/Smarty.class.php' for relative directory 'smarty/'
15 // Use 'smarty3/Smarty.class.php' if you installed package smarty3
16 DEFINE('SQUASHER_SMARTY_SOURCE', 'smarty3/Smarty.class.php');
18 // Location of the smarty templates, relative to webroot
19 DEFINE('SQUASHER_SMARTY_TEMPLATES', '../templates');
21 // Location of the smarty compiled templates
22 // If you create a 777 templates_c directory here, use '../templates_c'
23 DEFINE('SQUASHER_SMARTY_TEMPLATES_C', '/var/cache/squasher/templates_c');
25 // Location of the smarty cache
26 // If you create a 777 cache directory here, use '../cache'
27 DEFINE('SQUASHER_SMARTY_CACHE', '/var/cache/squasher/cache');
34 $db = mysqli_connect(SQUASHER_DB_HOST, SQUASHER_DB_USER, SQUASHER_DB_PASSWORD, SQUASHER_DB_DATABASE);
36 // vim: syntax=php ts=4 sw=4 sts=4 sr noet