mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
upload preivew + es command
This commit is contained in:
+4
-4
@@ -57,9 +57,9 @@ else {
|
||||
print("<input type=\"hidden\" name=\"returnto\" value=\"" . htmlspecialchars($_GET["returnto"]) . "\" />");
|
||||
print("<table border=\"1\" cellspacing=\"0\" cellpadding=\"5\" width=\"97%\">\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);
|
||||
tr($lang_edit['row_torrent_name']."<font color=\"red\">*</font>", "<input type=\"text\" style=\"width: 99%;\" name=\"name\" value=\"" . htmlspecialchars($row["name"]) . "\" />", 1);
|
||||
if ($smalldescription_main == 'yes')
|
||||
tr($lang_edit['row_small_description'], "<input type=\"text\" style=\"width: 650px;\" name=\"small_descr\" value=\"" . htmlspecialchars($row["small_descr"]) . "\" />", 1);
|
||||
tr($lang_edit['row_small_description'], "<input type=\"text\" style=\"width: 99%;\" name=\"small_descr\" value=\"" . htmlspecialchars($row["small_descr"]) . "\" />", 1);
|
||||
|
||||
get_external_tr($row["url"]);
|
||||
if ($settingMain['enable_pt_gen_system'] == 'yes') {
|
||||
@@ -74,11 +74,11 @@ else {
|
||||
"<input type=\"radio\" name=\"nfoaction\" value=\"remove\" />".$lang_edit['radio_remove'].
|
||||
"<input id=\"nfoupdate\" type=\"radio\" name=\"nfoaction\" value=\"update\" />".$lang_edit['radio_update']."</font><br /><input type=\"file\" name=\"nfo\" onchange=\"document.getElementById('nfoupdate').checked=true\" />", 1);
|
||||
print("<tr><td class=\"rowhead\">".$lang_edit['row_description']."<font color=\"red\">*</font></td><td class=\"rowfollow\">");
|
||||
textbbcode("edittorrent","descr",($row["descr"]), false);
|
||||
textbbcode("edittorrent","descr",($row["descr"]), false, 130, true);
|
||||
print("</td></tr>");
|
||||
|
||||
if ($settingMain['enable_technical_info'] == 'yes') {
|
||||
tr($lang_functions['text_technical_info'], '<textarea name="technical_info" rows="8" style="width: 650px;">' . $row['technical_info'] . '</textarea><br/>' . $lang_functions['text_technical_info_help_text'], 1);
|
||||
tr($lang_functions['text_technical_info'], '<textarea name="technical_info" rows="8" style="width: 99%;">' . $row['technical_info'] . '</textarea><br/>' . $lang_functions['text_technical_info_help_text'], 1);
|
||||
}
|
||||
|
||||
$s = "<select name=\"type\" id=\"oricat\">";
|
||||
|
||||
+10
-10
@@ -16,32 +16,32 @@ if($action == "regimage")
|
||||
$space = " ";
|
||||
}
|
||||
$imagestring = $newstring;
|
||||
|
||||
|
||||
if(function_exists("imagecreatefrompng"))
|
||||
{
|
||||
$fontwidth = imageFontWidth(5);
|
||||
$fontheight = imageFontHeight(5);
|
||||
$textwidth = $fontwidth*strlen($imagestring);
|
||||
$textheight = $fontheight;
|
||||
|
||||
|
||||
$randimg = rand(1, 5);
|
||||
$im = imagecreatefrompng("pic/regimages/reg".$randimg.".png");
|
||||
|
||||
|
||||
$imgheight = 40;
|
||||
$imgwidth = 150;
|
||||
$textposh = ($imgwidth-$textwidth)/2;
|
||||
$textposv = ($imgheight-$textheight)/2;
|
||||
|
||||
$textposh = floor(($imgwidth-$textwidth)/2);
|
||||
$textposv = floor(($imgheight-$textheight)/2);
|
||||
|
||||
$dots = $imgheight*$imgwidth/35;
|
||||
$textcolor = null;
|
||||
$gd = imagecreatetruecolor($imgwidth, $imgheight);
|
||||
for($i=1;$i<=$dots;$i++)
|
||||
{
|
||||
imagesetpixel($im, rand(0, $imgwidth), rand(0, $imgheight), $textcolor);
|
||||
imagesetpixel($im, rand(0, $imgwidth), rand(0, $imgheight), imagecolorallocate($gd, rand(0, 255), rand(0, 255), rand(0, 255)));
|
||||
}
|
||||
|
||||
|
||||
$textcolor = imagecolorallocate($im, 0, 0, 0);
|
||||
imagestring($im, 5, $textposh, $textposv, $imagestring, $textcolor);
|
||||
|
||||
|
||||
// output the image
|
||||
header("Content-type: image/png");
|
||||
imagepng($im);
|
||||
|
||||
+4
-3
@@ -158,7 +158,7 @@ echo("<td class=rowfollow><input class=checkbox type=\"checkbox\" name=\"message
|
||||
}
|
||||
?>
|
||||
<tr class="colhead">
|
||||
<td colspan="5" align="right" class="colhead"><input class=btn type="button" value="<?php echo $lang_messages['input_check_all']; ?>" onClick="this.value=check(form,'<?php echo $lang_messages['input_check_all'] ?>','<?php echo $lang_messages['input_uncheck_all'] ?>')">
|
||||
<td colspan="5" align="right" class="colhead"><input class=btn type="button" value="<?php echo $lang_messages['input_check_all']; ?>" onClick="this.value=check(form,'<?php echo $lang_messages['input_check_all'] ?>','<?php echo $lang_messages['input_uncheck_all'] ?>')">
|
||||
<?php if($mailbox != PM_SENTBOX) print("<input class=btn type=\"submit\" name=\"markread\" value=\"".$lang_messages['submit_mark_as_read']."\">") ?>
|
||||
<input class=btn type="submit" name="delete" value=<?php echo $lang_messages['submit_delete']?>>
|
||||
<?php
|
||||
@@ -179,7 +179,7 @@ print("</form>");
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</form><tr><td class=toolbox colspan=5>
|
||||
<div align="center"><img class="unreadpm" src="pic/trans.gif" alt="Unread" title="<?php echo $lang_messages['title_unread'] ?>" /><a href="messages.php?action=viewmailbox&box=<?php echo $mailbox?>&unread=yes"><?php echo $lang_messages['text_unread_messages'] ?></a>
|
||||
<img class="readpm" src="pic/trans.gif" alt="Read" title="<?php echo $lang_messages['title_read'] ?>" /><a href="messages.php?action=viewmailbox&box=<?php echo $mailbox?>&unread=no"><?php echo $lang_messages['text_read_messages'] ?></a>
|
||||
@@ -229,6 +229,7 @@ $reply = " [ <a href=\"sendmessage.php?receiver=" . $message['sender'] . "&reply
|
||||
}
|
||||
}
|
||||
$body = format_comment($message['msg']);
|
||||
$body = htmlspecialchars_decode($body);
|
||||
$added = $message['added'];
|
||||
if ($message['sender'] == $CURUSER['id'])
|
||||
{
|
||||
@@ -673,7 +674,7 @@ function insertJumpTo($selected = 0)
|
||||
{
|
||||
global $lang_messages;
|
||||
global $CURUSER;
|
||||
$res = sql_query('SELECT * FROM pmboxes WHERE userid=' . sqlesc($CURUSER['id']) . ' ORDER BY boxnumber');
|
||||
$res = sql_query('SELECT * FROM pmboxes WHERE userid=' . sqlesc($CURUSER['id']) . ' ORDER BY boxnumber');
|
||||
$place = $_GET['place'] ?? '';
|
||||
?>
|
||||
<form action="messages.php" method="get">
|
||||
|
||||
+5
-6
@@ -40,7 +40,7 @@ stdhead($lang_upload['head_upload']);
|
||||
<table border="1" cellspacing="0" cellpadding="5" width="97%">
|
||||
<tr>
|
||||
<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 echo $lang_upload['text_tracker_url'] ?>: <b><?php echo get_tracker_schema_and_host(true)?></b>
|
||||
<?php
|
||||
if(!is_writable(getFullDirectory($torrent_dir)))
|
||||
print("<br /><br /><b>ATTENTION</b>: Torrent directory isn't writable. Please contact the administrator about this problem!");
|
||||
@@ -56,9 +56,9 @@ stdhead($lang_upload['head_upload']);
|
||||
<b>".$lang_upload['text_chinese_title']."</b> <input type=\"text\" style=\"width: 250px\" name=\"cnname\"><br /><font class=\"medium\">".$lang_upload['text_titles_note']."</font>", 1);
|
||||
}
|
||||
else
|
||||
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);
|
||||
tr($lang_upload['row_torrent_name'], "<input type=\"text\" style=\"width: 99%;\" 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);
|
||||
tr($lang_upload['row_small_description'], "<input type=\"text\" style=\"width: 99%;\" 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();
|
||||
@@ -70,11 +70,11 @@ stdhead($lang_upload['head_upload']);
|
||||
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\">");
|
||||
textbbcode("upload","descr","",false);
|
||||
textbbcode("upload","descr", "", false, 130, true);
|
||||
print("</td></tr>\n");
|
||||
|
||||
if ($settingMain['enable_technical_info'] == 'yes') {
|
||||
tr($lang_functions['text_technical_info'], '<textarea name="technical_info" rows="8" style="width: 650px;"></textarea><br/>' . $lang_functions['text_technical_info_help_text'], 1);
|
||||
tr($lang_functions['text_technical_info'], '<textarea name="technical_info" rows="8" style="width: 99%;"></textarea><br/>' . $lang_functions['text_technical_info_help_text'], 1);
|
||||
}
|
||||
|
||||
if ($allowtorrents){
|
||||
@@ -156,7 +156,6 @@ stdhead($lang_upload['head_upload']);
|
||||
{
|
||||
tr($lang_upload['row_show_uploader'], "<input type=\"checkbox\" name=\"uplver\" value=\"yes\" />".$lang_upload['checkbox_hide_uploader_note'], 1);
|
||||
}
|
||||
// tr($lang_functions['text_tags'], torrentTags(0, 'checkbox'), 1);
|
||||
tr($lang_functions['text_tags'], (new \App\Repositories\TagRepository())->renderCheckbox(), 1);
|
||||
?>
|
||||
<tr><td class="toolbox" align="center" colspan="2"><b><?php echo $lang_upload['text_read_rules']?></b> <input id="qr" type="submit" class="btn" value="<?php echo $lang_upload['submit_upload']?>" /></td></tr>
|
||||
|
||||
Reference in New Issue
Block a user