5d6bb48f88b222859e8e6f10fd433cedc7a5af11
[rockboxthemes.git] / private / config.inc.php
blob5d6bb48f88b222859e8e6f10fd433cedc7a5af11
1 <?php
2 /***************************************************************************
3 * __________ __ ___.
4 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
5 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
6 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
7 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
8 * \/ \/ \/ \/ \/
9 * $Id$
11 * Copyright (C) 2009 Jonas Häggqvist
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2
16 * of the License, or (at your option) any later version.
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
21 ****************************************************************************/
23 class config {
24 // Max size of the theme .zip file in bytes
25 const maxzippedsize = 1000000;
27 // Max size of the themes when unzipped in bytes
28 const maxthemesize = 5000000;
30 // Max number of files in a theme (includes dirs)
31 const maxfiles = 100;
33 // Fully qualified hostname of your server. Without trailing slash or path.
34 // Including http://
35 const hostname = "http://home.rasher.dk";
37 // Path to the theme site, relative to your server's document root, without trailing slash (might be '')
38 const path = "";
40 // Full, absolute path to the location of the smarty template engine
41 const smartydir = "/usr/share/php/smarty/libs";
43 // Location to store theme data. Relative to the path given above - must be web-accessible
44 const datadir = "themes";
46 // Location of the private (not web-accessible) dir
47 const privdir = "../private";
49 // Location of the db within the above dir. Don't make it web-accessible.
50 const dbfile = "themes.db";
52 // Default status for newly uploaded themes. 1=approved. 0=hidden.
53 const defaultstatus = 1;
55 // Location of 'unzip'
56 const unzip = "/usr/bin/unzip";