Пример #1
0
$allowtwosec = $allowtorrents && $allowspecial;
$brsectiontype = $browsecatmode;
$spsectiontype = $specialcatmode;
$showsource = $allowtorrents && get_searchbox_value($brsectiontype, 'showsource') || $allowspecial && get_searchbox_value($spsectiontype, 'showsource');
//whether show sources or not
$showmedium = $allowtorrents && get_searchbox_value($brsectiontype, 'showmedium') || $allowspecial && get_searchbox_value($spsectiontype, 'showmedium');
//whether show media or not
$showcodec = $allowtorrents && get_searchbox_value($brsectiontype, 'showcodec') || $allowspecial && get_searchbox_value($spsectiontype, 'showcodec');
//whether show codecs or not
$showstandard = $allowtorrents && get_searchbox_value($brsectiontype, 'showstandard') || $allowspecial && get_searchbox_value($spsectiontype, 'showstandard');
//whether show standards or not
$showprocessing = $allowtorrents && get_searchbox_value($brsectiontype, 'showprocessing') || $allowspecial && get_searchbox_value($spsectiontype, 'showprocessing');
//whether show processings or not
$showteam = $allowtorrents && get_searchbox_value($brsectiontype, 'showteam') || $allowspecial && get_searchbox_value($spsectiontype, 'showteam');
//whether show teams or not
$showaudiocodec = $allowtorrents && get_searchbox_value($brsectiontype, 'showaudiocodec') || $allowspecial && get_searchbox_value($spsectiontype, 'showaudiocodec');
//whether show languages or not
stdhead($lang_upload['head_upload']);
?>
	<form id="compose" enctype="multipart/form-data" action="takeupload.php" method="post" name="upload">
			<?php 
print "<p align=\"center\">" . $lang_upload['text_red_star_required'] . "</p>";
?>
			<table border="1" cellspacing="0" cellpadding="5" width="940">
				<tr>
					<td class='colhead' colspan='2' align='center'>
						<?php 
echo $lang_upload['text_tracker_url'];
?>
: &nbsp;&nbsp;&nbsp;&nbsp;<b><?php 
echo get_protocol_prefix() . $announce_urls[0];
Пример #2
0
 $showcodec = get_searchbox_value($brsectiontype, 'showcodec') || $allowspecial && get_searchbox_value($spsectiontype, 'showcodec');
 //whether show codecs or not
 $showstandard = get_searchbox_value($brsectiontype, 'showstandard') || $allowspecial && get_searchbox_value($spsectiontype, 'showstandard');
 //whether show standards or not
 $showprocessing = get_searchbox_value($brsectiontype, 'showprocessing') || $allowspecial && get_searchbox_value($spsectiontype, 'showprocessing');
 //whether show processings or not
 $showteam = get_searchbox_value($brsectiontype, 'showteam') || $allowspecial && get_searchbox_value($spsectiontype, 'showteam');
 //whether show teams or not
 $showaudiocodec = get_searchbox_value($brsectiontype, 'showaudiocodec') || $allowspecial && get_searchbox_value($spsectiontype, 'showaudiocodec');
 //whether show audio codecs or not
 $brcatsperror = get_searchbox_value($brsectiontype, 'catsperrow');
 $catsperrow = get_searchbox_value($spsectiontype, 'catsperrow');
 $catsperrow = !$allowspecial ? $brcatsperror : ($catsperrow > $catsperrow ? $catsperrow : $catsperrow);
 //show how many cats per line
 $brcatpadding = get_searchbox_value($brsectiontype, 'catpadding');
 $spcatpadding = get_searchbox_value($spsectiontype, 'catpadding');
 $catpadding = !$allowspecial ? $brcatpadding : ($brcatpadding < $spcatpadding ? $brcatpadding : $spcatpadding);
 //padding space between categories in pixel
 $brcats = genrelist($brsectiontype);
 $spcats = genrelist($spsectiontype);
 if ($showsubcat) {
     if ($showsource) {
         $sources = searchbox_item_list("sources");
     }
     if ($showmedium) {
         $media = searchbox_item_list("media");
     }
     if ($showcodec) {
         $codecs = searchbox_item_list("codecs");
     }
     if ($showstandard) {
Пример #3
0
    $othermode = $browsecatmode;
    $movenote = $lang_edit['text_move_to_browse'];
}
$showsource = get_searchbox_value($sectionmode, 'showsource') || $allowmove && get_searchbox_value($othermode, 'showsource');
//whether show sources or not
$showmedium = get_searchbox_value($sectionmode, 'showmedium') || $allowmove && get_searchbox_value($othermode, 'showmedium');
//whether show media or not
$showcodec = get_searchbox_value($sectionmode, 'showcodec') || $allowmove && get_searchbox_value($othermode, 'showcodec');
//whether show codecs or not
$showstandard = get_searchbox_value($sectionmode, 'showstandard') || $allowmove && get_searchbox_value($othermode, 'showstandard');
//whether show standards or not
$showprocessing = get_searchbox_value($sectionmode, 'showprocessing') || $allowmove && get_searchbox_value($othermode, 'showprocessing');
//whether show processings or not
$showteam = get_searchbox_value($sectionmode, 'showteam') || $allowmove && get_searchbox_value($othermode, 'showteam');
//whether show teams or not
$showaudiocodec = get_searchbox_value($sectionmode, 'showaudiocodec') || $allowmove && get_searchbox_value($othermode, 'showaudiocodec');
//whether show audio codecs or not
stdhead($lang_edit['head_edit_torrent'] . "\"" . $row["name"] . "\"");
if (!isset($CURUSER) || $CURUSER["id"] != $row["owner"] && get_user_class() < $torrentmanage_class) {
    print "<h1 align=\"center\">" . $lang_edit['text_cannot_edit_torrent'] . "</h1>";
    print "<p>" . $lang_edit['text_cannot_edit_torrent_note'] . "</p>";
} else {
    print "<form method=\"post\" id=\"compose\" name=\"edittorrent\" action=\"takeedit.php\" enctype=\"multipart/form-data\">";
    print "<input type=\"hidden\" name=\"id\" value=\"{$id}\" />";
    if (isset($_GET["returnto"])) {
        print "<input type=\"hidden\" name=\"returnto\" value=\"" . htmlspecialchars($_GET["returnto"]) . "\" />";
    }
    print "<table border=\"1\" cellspacing=\"0\" cellpadding=\"5\" width=\"940\">\n";
    print "<tr><td class='colhead' colspan='2' align='center'>" . htmlspecialchars($row["name"]) . "</td></tr>";
    tr($lang_edit['row_torrent_name'] . "<font color=\"red\">*</font>", "<input type=\"text\" style=\"width: 650px;\" name=\"name\" value=\"" . htmlspecialchars($row["name"]) . "\" />", 1);
    if ($smalldescription_main == 'yes') {