$category = array_map("intval", $category); } else { $category = 0; } $combo_categories = categories($category[0]); $gold_level = ''; $res = get_result("SELECT * FROM {$TABLE_PREFIX}gold WHERE id='1'", true); foreach ($res as $key => $value) { $gold_level = $value["level"]; } if ($gold_level > $CURUSER['id_level']) { $uploadtpl->set("upload_gold_level", false, true); } else { $uploadtpl->set("upload_gold_level", true, true); } $gold_select_box = createGoldCategories(); $uploadtpl->set("upload_gold_combo", $gold_select_box); $bbc = textbbcode("upload", "info"); $uploadtpl->set("upload.announces", $announcs); $uploadtpl->set("upload_categories_combo", $combo_categories); $uploadtpl->set("textbbcode", $bbc); if ($CURUSER['trusted'] == 'yes') { $moder = "ok"; } else { $moder = "um"; } $uploadtpl->set("moder", $moder); // moder $uploadtpl->set("imageon", $GLOBALS["imageon"] == "true", TRUE); $uploadtpl->set("screenon", $GLOBALS["screenon"] == "true", TRUE); $tplfile = "upload";
$s .= "</select>\n"; */ $torrent = array(); /*Start gold mod by losmi*/ $gold_level = ''; $resg = get_result("SELECT * FROM {$TABLE_PREFIX}gold WHERE id='1'", true); foreach ($resg as $key => $value) { $gold_level = $value["level"]; } unset($resg); if ($gold_level > $CURUSER['id_level']) { $torrenttpl->set("edit_gold_level", false, true); } else { $torrenttpl->set("edit_gold_level", true, true); } $torrent["gold"] = createGoldCategories($results["gold"]); /*End gold mod by losmi*/ /*Start sticky by losmi*/ $query = "SELECT * FROM {$TABLE_PREFIX}sticky"; $rez = do_sqlquery($query, true); $rez = mysql_fetch_assoc($rez); $rez_level = $rez['level']; $current_level = getLevel($CURUSER['id_level']); $level_ok = false; if ($CURUSER["uid"] > 1 && $current_level >= $rez_level) { $torrenttpl->set("LEVEL_OK", true, FALSE); } else { $torrenttpl->set("LEVEL_OK", false, TRUE); } unset($rez); if ($results["sticky"] == 1) {