Make the rbutil page a bit smarter.
[rockboxthemes.git] / private / preamble.inc.php
blob68ff854246f5db7d72b99fce0e23d2b4e520a771
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 require_once(sprintf("%s/config.inc.php", preconfig::privpath));
24 require_once('themesite.class.php');
25 require_once('templater.class.php');
27 $site = new themesite(preconfig::privpath .'/' . config::dbfile);
28 $t = new templater(config::smartydir);
29 $t->assign('datadir', config::datadir);
30 $t->assign('root', config::path);
31 $t->assign('hostname', config::hostname);
32 $t->assign('maxuploadsize', config::maxzippedsize);
34 $values = array();