$POST['default_theme'] = SQL_ESCAPE($_GET['default_theme']);
// Set session
- set_session("mxchange_theme", $POST['default_theme']);
+ set_session('mxchange_theme', $POST['default_theme']);
// Set it in config and current theme as well
global $currTheme;
// Generate output lines for the template
$OUT = ""; $SW = 2;
$result = SQL_QUERY("SELECT id, theme_path, theme_active, theme_ver, theme_name FROM `"._MYSQL_PREFIX."_themes` ORDER BY theme_path", __FILE__, __LINE__);
-if (SQL_NUMROWS($result) > 0)
-{
- while(list($id, $unix, $active, $ver, $name) = SQL_FETCHROW($result))
- {
+if (SQL_NUMROWS($result) > 0) {
+ while(list($id, $unix, $active, $ver, $name) = SQL_FETCHROW($result)) {
// Load theme in test mode
require(PATH."theme/".$unix."/theme.php");