$debug = $_GET["debug"]; $skinpage = "http://xtreamer-web-sdk.googlecode.com/svn/trunk/xmp/skins"; $skinmainicon = "http://xtreamer-web-sdk.googlecode.com/svn/trunk/rss/scripts/image/skin_browser.jpg"; $skinmainiconnew = "http://xtreamer-web-sdk.googlecode.com/svn/trunk/rss/scripts/image/skin_browser_new.jpg"; $skinoriginalicon = "http://xtreamer-web-sdk.googlecode.com/svn/trunk/rss/scripts/image/original_backup.jpg"; $skinbrowserupgrade = "http://xtreamer-web-sdk.googlecode.com/svn/trunk/rss/scripts/image/skin_browser_upgrade.jpg"; header("Content-type: text/xml"); echo "<?xml version='1.0' ?>"; echo '<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">' . "\n"; echo "<channel>\n"; /* MAIN */ if ("" != $home) { exec("echo -n '!' > /tmp/ir"); } else { if ("" != $skin) { changeSkin(); } else { if ("" != $newskins) { getNewSkins(); entermainmenu(); } else { if ("" != $root) { skin_browser(); } else { if ("" != $update) { skin_browser_update(); printitem("Reload Skin Browser", $scriptfile, $skinmainicon, 'photoView23'); } else { if ("" != $backup) { backup_original_skin(); } else {
$aShowBrdMenuPc = new ShowBrdMenuPc(); ob_start(); $aShowBrdMenuPc->printFavIta(); $menuItem = ob_get_clean(); $menuItem = preg_replace('{^\\s*<div class="menu_cate">.+?<div class="itas" id="c_favita">\\s*}s', '', $menuItem); $menuItem = preg_replace('{\\s*</div>\\s*</div>\\s*$}s', '', $menuItem); // RSS } elseif (isset($_GET['m_rss_set'])) { ob_start(); require_once P2EX_LIB_DIR . '/rss/menu.inc.php'; $menuItem = ob_get_clean(); $menuItem = preg_replace('{^\\s*<div class="menu_cate">.+?<div class="itas" id="c_rss">\\s*}s', '', $menuItem); $menuItem = preg_replace('{\\s*</div>\\s*</div>\\s*$}s', '', $menuItem); // スキン } elseif (isset($_GET['m_skin_set'])) { $menuItem = changeSkin($_GET['m_skin_set']); // その他 } else { $menuItem = 'p2 error: 必要な引数が指定されていません'; } // }}} // {{{ 本体出力 if (P2Util::isBrowserSafariGroup()) { $menuItem = P2Util::encodeResponseTextForSafari($menuItem); } echo $menuItem; exit; // }}} // {{{ changeSkin() /** * スキンを切り替える