Beispiel #1
0
include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_' . e_PAGE);
$e_sub_cat = 'theme_manage';
e107::css("inline", "\n.block-text h2.caption \t\t{ text-align: right; margin-bottom: -30px; padding-right: 10px; }\n.hide\t\t\t\t\t\t{ display: none }\n\n\n\n");
require_once e_HANDLER . "theme_handler.php";
$themec = new themeHandler();
// print_a($_GET);
$mode = varset($_GET['mode'], 'main');
// (e_QUERY) ? e_QUERY :"main" ;
if (!empty($_GET['action'])) {
    define('e_IFRAME', true);
}
if (!empty($_GET['action'])) {
    require_once "auth.php";
    switch ($_GET['action']) {
        case 'login':
            $mp = $themec->getMarketplace();
            echo $mp->renderLoginForm();
            exit;
            break;
            /*
            case 'download':
            	$string =  base64_decode($_GET['src']);	
            	parse_str($string, $p);
            	$mp = $themec->getMarketplace();
            	$mp->generateAuthKey($e107SiteUsername, $e107SiteUserpass);
            	// Server flush useless. It's ajax ready state 4, we can't flush (sadly) before that (at least not for all browsers) 
            	echo "<pre>Connecting...\n"; flush();
            	// download and flush
            	$mp->download($p['id'], $p['mode'], $p['type']);
            	echo "</pre>"; flush();
            	exit;