} if(isset($_GET["popup"])){page();exit;} if(isset($_GET["tabs"])){tabs();exit;} if(isset($_GET["flow-day"])){flow_day();exit;} if(isset($_GET["flow-month-graph1"])){flow_month_graph1();exit;} if(isset($_GET["flow-month-graph2"])){flow_month_graph2();exit;} if(isset($_GET["websites"])){websites_table();exit;} if(isset($_GET["search-websites"])){websites_search();exit;} if(isset($_GET["members"])){members_table();exit;} if(isset($_GET["search-members"])){members_search();exit;} if(isset($_GET["categories"])){categories_table();exit;} if(isset($_GET["search-categories"])){categories_search();exit;} if(isset($_GET["days"])){days_table();exit;} if(isset($_GET["search-days"])){days_search();exit;} js(); function js(){ header("content-type: application/x-javascript"); $tpl=new templates();
} } if (count($subcats) > 0) { foreach ($subcats as $subcat) { if (in_array($subcat['id'], $wherecatina)) { $cats[$i]['checked'] = true; } else { $cats[$i]['checked'] = false; break; } } } $i++; } } $categories = categories_table($cats, $wherecatina); //== $HTMLOUT .= tr($lang['usercp_email_notif'], "<input type='checkbox' name='pmnotif'" . (strpos($CURUSER['notifs'], "[pm]") !== false ? " checked='checked'" : "") . " value='yes' /> {$lang['usercp_notify_pm']}<br />\n" . "<input type='checkbox' name='emailnotif'" . (strpos($CURUSER['notifs'], "[email]") !== false ? " checked='checked'" : "") . " value='yes' /> {$lang['usercp_notify_torrent']}\n", 1); $HTMLOUT .= tr($lang['usercp_browse'], $categories, 1); $HTMLOUT .= tr($lang['usercp_clearnewtagmanually'], "<input type='checkbox' name='clear_new_tag_manually'" . ($CURUSER["clear_new_tag_manually"] == "yes" ? " checked='checked'" : "") . " /> {$lang['usercp_default_clearnewtagmanually']}", 1); $HTMLOUT .= tr($lang['usercp_scloud'], "<input type='checkbox' name='viewscloud'" . ($CURUSER["viewscloud"] == "yes" ? " checked='checked'" : "") . " /> {$lang['usercp_scloud1']}", 1); $HTMLOUT .= tr($lang['usercp_split'], "<input type='radio' name='split'" . ($CURUSER["split"] == "yes" ? " checked='checked'" : "") . " value='yes' />Yes<input type='radio' name='split'" . ($CURUSER["split"] == "no" ? " checked='checked'" : "") . " value='no' />No", 1); $HTMLOUT .= tr($lang['usercp_icons'], "<input type='radio' name='browse_icons'" . ($CURUSER["browse_icons"] == "yes" ? " checked='checked'" : "") . " value='yes' />Yes<input type='radio' name='browse_icons'" . ($CURUSER["browse_icons"] == "no" ? " checked='checked'" : "") . " value='no' />No", 1); $HTMLOUT .= tr($lang['usercp_cats_sets'], "<select name='categorie_icon'>\n <option value='1'" . ($CURUSER['categorie_icon'] == 1 ? " selected='selected'" : "") . ">Default</option>\n <option value='2'" . ($CURUSER['categorie_icon'] == 2 ? " selected='selected'" : "") . ">Future</option>\n <option value='3'" . ($CURUSER['categorie_icon'] == 3 ? " selected='selected'" : "") . ">Alt</option>\n <option value='4'" . ($CURUSER['categorie_icon'] == 4 ? " selected='selected'" : "") . ">Pirate</option>\n </select>", $CURUSER['categorie_icon']); $HTMLOUT .= "<tr><td align='center' colspan='2'><input type='submit' value='Submit changes!' style='height: 25px' /></td></tr>"; $HTMLOUT .= end_table(); } elseif ($action == "personal") { $HTMLOUT .= begin_table(true); $HTMLOUT .= "<tr><td class='colhead' colspan='2' style='height:25px;' ><input type='hidden' name='action' value='personal' />Personal Options</td></tr>"; if ($CURUSER['class'] >= UC_VIP) { $HTMLOUT .= tr($lang['usercp_title'], "<input size='50' value='" . htmlsafechars($CURUSER["title"]) . "' name='title' /><br />", 1);
exit; } if (isset($_GET["flow-month-graph2"])) { flow_month_graph2(); exit; } if (isset($_GET["websites"])) { websites_table(); exit; } if (isset($_GET["search-websites"])) { websites_search(); exit; } if (isset($_GET["categories"])) { categories_table(); exit; } if (isset($_GET["search-categories"])) { categories_search(); exit; } js(); function js() { header("content-type: application/x-javascript"); $tpl = new templates(); $suffix = suffix(); $t = time(); $title = $tpl->_ENGINE_parse_body("{this_month}::{$_GET["familysite"]}:: {$_GET["field"]}::{$_GET["value"]}"); $page = CurrentPageName();
} //== clear new tag manually if ($CURUSER['clear_new_tag_manually'] == 'yes') { $new_button = "<a href='?clear_new=1'><input type='submit' value='{$lang['clear_new_btn']}' class='btn' /></a>"; } else { //== clear new tag automatically sql_query("UPDATE users SET last_browse=" . TIME_NOW . " where id=" . sqlesc($CURUSER['id'])); $mc1->begin_transaction('MyUser_' . $CURUSER['id']); $mc1->update_row(false, array('last_browse' => TIME_NOW)); $mc1->commit_transaction($INSTALLER09['expires']['curuser']); $mc1->begin_transaction('user' . $CURUSER['id']); $mc1->update_row(false, array('last_browse' => TIME_NOW)); $mc1->commit_transaction($INSTALLER09['expires']['user_cache']); } $HTMLOUT .= "<br /><br />\n <form method='get' action='browse.php'>"; $cattable = categories_table($cats, $wherecatina, "browse.php"); $HTMLOUT .= $cattable; $HTMLOUT .= "<br /><table width='75%' class='main' border='0' cellspacing='0' cellpadding='0'>\n<tr><td class='embedded'>"; $HTMLOUT .= "<p align='center'>\n {$lang['search_search']}\n <input type='text' name='search' size='40' value='" . (isset($cleansearchstr) ? $cleansearchstr : '') . "' />"; $selected = isset($_GET["incldead"]) ? (int) $_GET["incldead"] : ""; //=== only free option :o) $only_free = isset($_GET['only_free']) ? intval($_GET['only_free']) : ''; //=== checkbox for only free torrents $only_free_box = '<input type="checkbox" name="only_free" value="1"' . (isset($_GET['only_free']) ? ' checked="checked"' : '') . ' /> Only Free Torrents '; $deadcheck = ""; $deadcheck .= " in: <select name='incldead'>\n <option value='0'>{$lang['browse_active']}</option>\n <option value='1'" . ($selected == 1 ? " selected='selected'" : "") . ">{$lang['browse_inc_dead']}</option>\n <option value='2'" . ($selected == 2 ? " selected='selected'" : "") . ">{$lang['browse_dead']}</option>\n </select>"; $searchin = ' by: <select name="searchin">'; foreach (array('title' => 'Name', 'descr' => 'Description', 'genre' => 'Genre', 'all' => 'All') as $k => $v) { $searchin .= '<option value="' . $k . '" ' . ($select_searchin == $k ? 'selected=\'selected\'' : '') . '>' . $v . '</option>'; } $searchin .= '</select>';