Switch site->listthemes to expect a resolution rather than a target. Adjust other...
[rockboxthemes.git] / public / rbutilqt.php
blobe49f00ed43c507186aabcaf6db8a997a782a0558
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('preconfig.inc.php');
24 header('Content-type: text/plain');
26 $mainlcd = substr($_REQUEST['res'], 0, strrpos($_REQUEST['res'], 'x'));
27 $themes = $site->listthemes($mainlcd);
28 $t->assign('themes', $themes);
29 /* Not sure what kind of error message we would want to send? */
30 $t->assign('errno', 0);
31 $t->assign('errmsg', 'Rocking da boxes');
32 $t->render('rbutil.tpl');