コード例 #1
0
ファイル: theme.php プロジェクト: notzen/e107
 */
require_once "../class2.php";
if (!getperms("1")) {
    header("location:" . e_BASE . "index.php");
    exit;
}
include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_' . e_PAGE);
$e_sub_cat = 'theme_manage';
e107::css("inline", "\n.hide\t\t\t\t\t\t{ display: none }\n.admin-theme-thumb\t\t\t{ height:130px;overflow:hidden;border:1px solid black;margin-bottom:10px   }\n.admin-theme-thumb:hover\t{ opacity:0.4 }\n\n.admin-theme-options\t\t{ transition: opacity .20s ease-in-out;\n\t\t\t\t\t\t\t -moz-transition: opacity .20s ease-in-out;\n\t\t\t\t\t\t\t -webkit-transition: opacity .20s ease-in-out;\n\t\t\t\t\t\t\t opacity:0; \n\t\t\t\t\t\t\t width:100%;\n\t\t\t\t\t\t\t height:80px;\n\t\t\t\t\t\t\t padding-top:50px;\n\t\t\t\t\t\t\t white-space:nowrap;\n\t\t\t\t\t\t\t background-color:black;\n\t\t\t\t\t\t\t display:block;position:relative; text-align:center; vertical-align:middle; top:-141px;}\n\n.admin-theme-options:hover\t{ opacity:0.8; }\n\n.admin-theme-title\t\t\t{ font-size: 15px; overflow:hidden; padding-left:5px; white-space:no-wrap; width:200px; position:relative; top:-132px; }\n\n.admin-theme-select\t\t\t{border:1px dotted silver;background-color:#DDDDDD;float:left }\n\n.admin-theme-select-active\t{ background-color:red;float:left }\n\n.admin-theme-cell\t\t\t{ width:202px; height:160px; padding:10px; -moz-border-radius: 5px; border-radius: 5px; margin:5px}\n\n.admin-theme-cell-default   { border:1px dotted silver; background-color:#DDDDDD }\n\n\n\n.admin-theme-cell-site\t\t{ background-color: #d9edf7;  border: 1px solid #bce8f1; }\n\n.admin-theme-cell-admin\t \t{ background-color:#FFFFD5; border: 1px solid #FFCC00; }\n\n\n");
require_once e_HANDLER . "theme_handler.php";
$themec = new themeHandler();
if (e_AJAX_REQUEST) {
    define('e_IFRAME', true);
}
if (e_AJAX_REQUEST) {
    $data = $themec->getThemeInfo('jayya');
    echo $themec->renderThemeInfo($data);
    exit;
} else {
    require_once "auth.php";
    echo '

		 <div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			    <div class="modal-header">
			    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			    <h3>Theme Info.</h3>
			    </div>
			    <div class="modal-body">
			    <p>Loading…</p>
			    </div>
			    <div class="modal-footer">
コード例 #2
0
ファイル: theme.php プロジェクト: armpit/e107
     	echo "<pre>Connecting...\n"; flush();
     	// download and flush
     	$mp->download($p['id'], $p['mode'], $p['type']);
     	echo "</pre>"; flush();
     	exit;
     break;	
     */
     case 'info':
         $string = base64_decode($_GET['src']);
         parse_str($string, $p);
         echo $themec->renderThemeInfo($p);
         break;
     case 'preview':
         // Theme Info Ajax
         $tm = (string) $_GET['id'];
         $data = $themec->getThemeInfo($tm);
         echo $themec->renderThemeInfo($data);
         //	exit;
         break;
 }
 /*	
 	if(vartrue($_GET['src'])) // Process Theme Download. 
 	{					
 		$string =  base64_decode($_GET['src']);	
 		parse_str($string,$p);
 		
 		if(vartrue($_GET['info']))
 		{		
 			echo $themec->renderThemeInfo($p);
 		//	print_a($p);
 			exit;