Skip to content

Commit

Permalink
for [url], it's unnecessary..? (I'm not sure...)
Browse files Browse the repository at this point in the history
  • Loading branch information
tongyifan committed May 20, 2019
1 parent 5acc497 commit 3083cd2
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 37 deletions.
34 changes: 20 additions & 14 deletions catdetail_editoffers.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,14 @@ function tr_textcheckbox($x, $y, $listname, $z = "", $star = "")
$num = count($listarray);
$show = "<tr class=\"rowfollow\" ><td class=\"no_border\" valign=\"top\" align=\"right\"><label><strong>" . $x . "</strong><input type=\"text\" size=\"50\" maxlength=\"100\" id=\"" . $y . "\" name=\"" . $y . "\" value=\"" . $z . "\"></label>$star<br>";
foreach ($listarray as $row) {
$id = $y . $row['id'];
$show .= "<label><INPUT id=" . $id . " type=checkbox value=" . $row['name'] . " name=" . $row['name'] . " onClick=getcheckboxvalue('" . $y . "'," . $num . ")>" . $row['name'] . "</label>";
if (substr_count($row['name'], '<text>'))
$show .= str_replace('<text>', '', $row['name']);
elseif ($row['name'] == '<linebreak>')
$show .= "<br />";
else {
$id = $y . $row['id'];
$show .= "<label><INPUT id=" . $id . " type=checkbox value=" . $row['name'] . " name=" . $row['name'] . " onClick=getcheckboxvalue('" . $y . "'," . $num . ")>" . $row['name'] . "</label>";
}
}
$show .= "</td></tr><div class=\"clear1\"></div>";

Expand Down Expand Up @@ -102,31 +108,31 @@ function tr_textradio($x, $y, $listname, $z = "", $star = "")
$resolution = $row['resolution'];

if ($catid == 401) {
$imdbnum = $row['imdbnum'];
// $imdbnum = $row['imdbnum'];

tr_text("中文名", "cname", $cname, $star);
tr_text("英文名", "ename", $ename, $star . "英文名为0day名,如:The.Kings.Speech.2010.BDRip.XviD-AMIABLE");
//tr_text("Imdb编号","imdbnum",$imdbnum,"如:tt0120815");
tr_text("发行时间", "issuedate", $issuedate, $star);
tr_textcheckbox("电影语言", "language", "langtvseries", $language, $star);
// tr_text("发行时间", "issuedate", $issuedate, $star);
// tr_textcheckbox("电影语言", "language", "langtvseries", $language, $star);

//tr_textcheckbox("电影类别","specificcat","catmovie",$specificcat,$star);
tr_textradio("电影文件格式", "format", "formatmovie", $format, $star);
tr_select("字幕情况", "subsinfo", $subsinfo, $star);
// tr_textradio("电影文件格式", "format", "formatmovie", $format, $star);
// tr_select("字幕情况", "subsinfo", $subsinfo, $star);
tr_textcheckbox("制作国家/地区", "district", "districtmovie", $district, $star);
} elseif ($catid == "402") {
$tvalias = $row['tvalias'];
$tvseasoninfo = $row['tvseasoninfo'];
// $tvalias = $row['tvalias'];
// $tvseasoninfo = $row['tvseasoninfo'];

tr_text("中文名", "cname", $cname, $star);
tr_text("英文名", "ename", $ename);
tr_text("别名", "tvalias", $tvalias);
tr_text("剧集季度信息", "tvseasoninfo", $tvseasoninfo);
// tr_text("别名", "tvalias", $tvalias);
// tr_text("剧集季度信息", "tvseasoninfo", $tvseasoninfo);

tr_textcheckbox("剧集类型", "specificcat", "catseries", $specificcat, $star);
tr_textcheckbox("剧集文件格式", "format", "formattvseries", $format);
tr_select("字幕情况", "subsinfo", $subsinfo);
tr_textcheckbox("剧集语言", "language", "langtvseries", $language, $star);
// tr_textcheckbox("剧集文件格式", "format", "formattvseries", $format);
// tr_select("字幕情况", "subsinfo", $subsinfo);
// tr_textcheckbox("剧集语言", "language", "langtvseries", $language, $star);
} elseif ($catid == "403") {
$tvshowscontent = $row['tvshowscontent'];
$tvshowsguest = $row['tvshowsguest'];
Expand Down
34 changes: 20 additions & 14 deletions catdetail_edittorrents.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,14 @@ function tr_textcheckbox($x, $y, $listname, $z = "", $star = "")
$num = count($listarray);
$show = "<tr class=\"rowfollow\" ><td class=\"no_border\" valign=\"top\" align=\"right\"><label><strong>" . $x . "</strong><input type=\"text\" size=\"50\" maxlength=\"100\" id=\"" . $y . "\" name=\"" . $y . "\" value=\"" . $z . "\"></label>$star<br>";
foreach ($listarray as $row) {
$id = $y . $row['id'];
$show .= "<label><INPUT id=" . $id . " type=checkbox value=" . $row['name'] . " name=" . $row['name'] . " onClick=getcheckboxvalue('" . $y . "'," . $num . ")>" . $row['name'] . "</label>";
if (substr_count($row['name'], '<text>'))
$show .= str_replace('<text>', '', $row['name']);
elseif ($row['name'] == '<linebreak>')
$show .= "<br />";
else {
$id = $y . $row['id'];
$show .= "<label><INPUT id=" . $id . " type=checkbox value=" . $row['name'] . " name=" . $row['name'] . " onClick=getcheckboxvalue('" . $y . "'," . $num . ")>" . $row['name'] . "</label>";
}
}
$show .= "</td></tr><div class=\"clear1\"></div>";

Expand Down Expand Up @@ -102,31 +108,31 @@ function tr_textradio($x, $y, $listname, $z = "", $star = "")
$resolution = $row['resolution'];

if ($catid == 401) {
$imdbnum = $row['imdbnum'];
// $imdbnum = $row['imdbnum'];

tr_text("中文名", "cname", $cname, $star);
tr_text("英文名", "ename", $ename, $star . "英文名为0day名,如:The.Kings.Speech.2010.BDRip.XviD-AMIABLE");
//tr_text("Imdb编号","imdbnum",$imdbnum,"如:tt0120815");
tr_text("发行时间", "issuedate", $issuedate, $star);
tr_textcheckbox("电影语言", "language", "langtvseries", $language, $star);
//tr_text("发行时间", "issuedate", $issuedate, $star);
//tr_textcheckbox("电影语言", "language", "langtvseries", $language, $star);

//tr_textcheckbox("电影类别","specificcat","catmovie",$specificcat,$star);
tr_textradio("电影文件格式", "format", "formatmovie", $format, $star);
tr_select("字幕情况", "subsinfo", $subsinfo, $star);
//tr_textradio("电影文件格式", "format", "formatmovie", $format, $star);
//tr_select("字幕情况", "subsinfo", $subsinfo, $star);
tr_textcheckbox("制作国家/地区", "district", "districtmovie", $district, $star);
} elseif ($catid == "402") {
$tvalias = $row['tvalias'];
$tvseasoninfo = $row['tvseasoninfo'];
// $tvalias = $row['tvalias'];
// $tvseasoninfo = $row['tvseasoninfo'];

tr_text("中文名", "cname", $cname, $star);
tr_text("英文名", "ename", $ename);
tr_text("别名", "tvalias", $tvalias);
tr_text("剧集季度信息", "tvseasoninfo", $tvseasoninfo);
//tr_text("别名", "tvalias", $tvalias);
//tr_text("剧集季度信息", "tvseasoninfo", $tvseasoninfo);

tr_textcheckbox("剧集类型", "specificcat", "catseries", $specificcat, $star);
tr_textcheckbox("剧集文件格式", "format", "formattvseries", $format);
tr_select("字幕情况", "subsinfo", $subsinfo);
tr_textcheckbox("剧集语言", "language", "langtvseries", $language, $star);
//tr_textcheckbox("剧集文件格式", "format", "formattvseries", $format);
//tr_select("字幕情况", "subsinfo", $subsinfo);
//tr_textcheckbox("剧集语言", "language", "langtvseries", $language, $star);
} elseif ($catid == "403") {
$tvshowscontent = $row['tvshowscontent'];
$tvshowsguest = $row['tvshowsguest'];
Expand Down
4 changes: 2 additions & 2 deletions include/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -576,10 +576,10 @@ function format_comment($text, $strip_html = true, $xssclean = false, $newtab =
return formatUrl($matches[1], ($newtab == true ? 1 : 0), $matches[2], 'faqlink');
}
};
$s = preg_replace_callback("/\[url=([^\[\s\"'\(\)]+?)\](.+?)\[\/url\]/i", $anon_formatUrl_Callback_with_adid, $s);
$s = preg_replace_callback("/\[url=([^\[\s]+?)\](.+?)\[\/url\]/i", $anon_formatUrl_Callback_with_adid, $s);

// [url]http://www.example.com[/url]
$s = preg_replace_callback("/\[url\]([^\[\s\"'\(\)]+?)\[\/url\]/i", function ($matches) use ($newtab) {
$s = preg_replace_callback("/\[url\]([^\[\s]+?)\[\/url\]/i", function ($matches) use ($newtab) {
return formatUrl($matches[1], ($newtab == true ? 1 : 0), '', 'faqlink');
}, $s);

Expand Down
6 changes: 3 additions & 3 deletions js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ function getcheckboxvalue(textid,number) {
Q.value = "";

for (var i=1;i<=number;i++) {
id = textid + i;
var id = textid + i;
var e = document.getElementById(id);
if ( e.checked == true) {
if ( e !== null && e.checked === true) {
Q.value = Q.value + e.value + "/"
}
}
Expand Down Expand Up @@ -92,7 +92,7 @@ function QueryString()
//构造参数对象并初始化
var name,value,i;
var str=location.href;//获得浏览器地址栏URL串
var num=str.indexOf("?")
var num=str.indexOf("?");
str=str.substr(num+1);//截取“?”后面的参数串
var arrtmp=str.split("&");//将各参数分离形成参数数组
for(i=0;i < arrtmp.length;i++)
Expand Down
10 changes: 8 additions & 2 deletions showcategorydetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,14 @@ function tr_textcheckbox($x, $y, $z, $star = "")
$num = count($listarray);
$show = "<tr class=\"rowfollow\" ><td class=\"no_border\" valign=\"top\" align=\"right\"><label><strong>" . $x . "</strong><input type=\"text\" size=\"50\" maxlength=\"100\" id=\"" . $y . "\" name=\"" . $y . "\"></label>$star<br>";
foreach ($listarray as $row) {
$id = $y . $row['id'];
$show .= "<label><input id=" . $id . " type=checkbox value=" . $row['name'] . " name=" . $row['name'] . " onClick=getcheckboxvalue('" . $y . "'," . $num . ") />" . $row['name'] . "</label>";
if (substr_count($row['name'], '<text>'))
$show .= str_replace('<text>', '', $row['name']);
elseif ($row['name'] == '<linebreak>')
$show .= "<br />";
else {
$id = $y . $row['id'];
$show .= "<label><input id=" . $id . " type=checkbox value=" . $row['name'] . " name=" . $row['name'] . " onClick=getcheckboxvalue('" . $y . "'," . $num . ") />" . $row['name'] . "</label>";
}
}
$show .= "</td></tr><div class=\"clear1\"></div>";

Expand Down
6 changes: 4 additions & 2 deletions sql/pt.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2350,7 +2350,9 @@ CREATE TABLE `torrents` (
`bonus_sale` enum('2up_free','2x_half','2up','free','half_down','normal') NOT NULL DEFAULT 'normal',
`exclusive` enum('yes','no') NOT NULL DEFAULT 'no',
`tjuptrip` enum('yes','no') NOT NULL DEFAULT 'no',
`connectable` varchar(11) DEFAULT '-/-/-'
`connectable` varchar(11) DEFAULT '-/-/-',
`douban_id` int(10) UNSIGNED DEFAULT NULL,
`douban_rating` varchar(5) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------
Expand Down Expand Up @@ -2959,7 +2961,7 @@ ALTER TABLE `files`
-- 表的索引 `formatanime`
--
ALTER TABLE `formatanime`
ADD PRIMARY KEY (`name`);
ADD PRIMARY KEY (`id`);

--
-- 表的索引 `formatdocum`
Expand Down
14 changes: 14 additions & 0 deletions upload2.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
require_once("include/bittorrent.php");
require_once("include/tjuip_helper.php");
dbconn();
require_once(get_langfile_path());
global $CURUSER, $enableoffer, $torrent_dir, $max_torrent_size, $smalldescription_main, $enablenfo_main, $viewnfo_class, $beanonymous_class;
loggedinorreturn();
parked();
check_tjuip_or_warning($CURUSER);

if ($CURUSER["uploadpos"] == 'no')
stderr($lang_upload['std_sorry'], $lang_upload['std_unauthorized_to_upload'], false);


0 comments on commit 3083cd2

Please sign in to comment.