mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
improve PTGen
This commit is contained in:
@@ -29,6 +29,8 @@ $showprocessing = (($allowtorrents && get_searchbox_value($brsectiontype, 'showp
|
||||
$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
|
||||
|
||||
$settingMain = get_setting('main');
|
||||
|
||||
stdhead($lang_upload['head_upload']);
|
||||
?>
|
||||
<form id="compose" enctype="multipart/form-data" action="takeupload.php" method="post" name="upload">
|
||||
@@ -40,7 +42,7 @@ stdhead($lang_upload['head_upload']);
|
||||
<td class='colhead' colspan='2' align='center'>
|
||||
<?php echo $lang_upload['text_tracker_url'] ?>: <b><?php echo get_protocol_prefix() . $announce_urls[0]?></b>
|
||||
<?php
|
||||
if(!is_writable($torrent_dir))
|
||||
if(!is_writable(ROOT_PATH . $torrent_dir))
|
||||
print("<br /><br /><b>ATTENTION</b>: Torrent directory isn't writable. Please contact the administrator about this problem!");
|
||||
if(!$max_torrent_size)
|
||||
print("<br /><br /><b>ATTENTION</b>: Max. Torrent Size not set. Please contact the administrator about this problem!");
|
||||
@@ -57,8 +59,11 @@ stdhead($lang_upload['head_upload']);
|
||||
tr($lang_upload['row_torrent_name'], "<input type=\"text\" style=\"width: 650px;\" id=\"name\" name=\"name\" /><br /><font class=\"medium\">".$lang_upload['text_torrent_name_note']."</font>", 1);
|
||||
if ($smalldescription_main == 'yes')
|
||||
tr($lang_upload['row_small_description'], "<input type=\"text\" style=\"width: 650px;\" name=\"small_descr\" /><br /><font class=\"medium\">".$lang_upload['text_small_description_note']."</font>", 1);
|
||||
|
||||
get_external_tr();
|
||||
if ($settingMain['enable_pt_gen_system'] == 'yes') {
|
||||
$ptGen = new \Nexus\PTGen\PTGen();
|
||||
echo $ptGen->renderUploadPageFormInput("");
|
||||
}
|
||||
if ($enablenfo_main=='yes')
|
||||
tr($lang_upload['row_nfo_file'], "<input type=\"file\" class=\"file\" name=\"nfo\" /><br /><font class=\"medium\">".$lang_upload['text_only_viewed_by'].get_user_class_name($viewnfo_class,false,true,true).$lang_upload['text_or_above']."</font>", 1);
|
||||
print("<tr><td class=\"rowhead\" style='padding: 3px' valign=\"top\">".$lang_upload['row_description']."<font color=\"red\">*</font></td><td class=\"rowfollow\">");
|
||||
|
||||
Reference in New Issue
Block a user