summaryrefslogtreecommitdiffstats
path: root/private/config.inc.php
blob: 46abf710abbcf375dba63c6544fe8f2ef6031a59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/***************************************************************************
 *             __________               __   ___.
 *   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
 *   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
 *   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
 *   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
 *                     \/            \/     \/    \/            \/
 * $Id$
 *
 * Copyright (C) 2009 Jonas Häggqvist
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
 * KIND, either express or implied.
 *
 ****************************************************************************/

class config {
    // Max size of the theme .zip file in bytes
    const maxzippedsize = 1000000;

    // Max size of the themes when unzipped in bytes
    const maxthemesize = 5000000;

    // Max number of files in a theme (includes dirs)
    const maxfiles = 100;

    // Fully qualified hostname of your server. Without trailing slash or path.
    // Including http://
    const hostname = "https://themes.rockbox.org";

    // Path to the theme site, relative to your server's document root, without trailing slash (might be '')
    const path = "";

    // Full, absolute path to the location of the smarty template engine
    const smartydir = "/usr/share/php/Smarty";

    // Location to store theme data. Relative to the "const path" given above
    // must be web-accessible
    const datadir = "themes";

    // Location of the db relative to preconfig::privpath
    // Should no be web-accessible
    const dbfile = "themes.db";

    // Default status for newly uploaded themes. 1=approved. 0=hidden.
    const defaultstatus = 1;

    // Full, absolute path to the location of 'unzip'
    const unzip = "/usr/bin/unzip";

    // Location of the Rockbox source font dir
    const fontdir = "/home/rockbox/rockbox_git_clone/fonts";

    // Location of the Rockbox source icons dir
    const icondir = "/home/rockbox/rockbox_git_clone/icons";

    // Private key for recaptcha
    const recaptchakey_priv = "6LfwAQsAAAAAAOGeWVtqpSeIFZKP3WcActZeoVk1";

    // Public key for recaptcha
    const recaptchakey = "6LfwAQsAAAAAAPrqZMNC_G_gKbFNf2gP2P2YmXQs";

    // Outbound email address
    const outboundemail = "rockbox-themes-noreply@shaftnet.org";
}

?>