'); $note = $xml->addChild('SITENAME'); $note->addCData($SITENAME); $note = $xml->addChild('SITEURL'); $note->addCData($SITEURL); $note = $xml->addChild('TEMPLATE'); $note->addCData($TEMPLATE); $xml->addChild('PRETTYURLS', $PRETTYURLS); $xml->addChild('PERMALINK', $PERMALINK); XMLsave($xml, $path . $file); $success = i18n_r('THEME_CHANGED'); } # get available themes (only look for folders) $themes_handle = opendir(GSTHEMESPATH) or die("Unable to open ".GSTHEMESPATH); while ($file = readdir($themes_handle)) { $curpath = GSTHEMESPATH . $file; if( is_dir($curpath) && $file != "." && $file != ".." ) { $sel=""; if (file_exists($curpath.'/template.php')){ if ($TEMPLATE == $file) { $sel="selected"; } $theme_options .= ''; } } } get_template('header', cl($SITENAME).' » '.i18n_r('THEME_MANAGEMENT')); ?>

" /> '.i18n_r('THEME_PATH').':   '.$SITEURL.$theme_path.$TEMPLATE.'/

'; } ?>

   

'.i18n_r('THEME_SCREENSHOT').'

'; echo ''; } else { echo '

'.i18n_r('THEME_SCREENSHOT').'

'; echo '

'.i18n_r('NO_THEME_SCREENSHOT').'

'; } exec_action('theme-extras'); ?>