Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion message.php
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ function check(field) {
if ($action == 'mass_pm') {
if (get_user_class() < UC_MODERATOR)
stderr($tracker_lang['error'], $tracker_lang['access_denied']);
$n_pms = 0 + $_POST['n_pms'];
$n_pms = intval($_POST['n_pms']);
$pmees = $_POST['pmees'];
$auto = $_POST['auto'];

Expand Down
6 changes: 3 additions & 3 deletions modtask.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ function puke($text = "You have forgotten here someting?") {
$birthday = ($resetb=='yes'?", birthday = '0000-00-00'":"");
$enabled = $_POST["enabled"];
$warned = $_POST["warned"];
$warnlength = 0 + $_POST["warnlength"];
$dislength = 0 + $_POST["dislength"];
$warnlength = intval($_POST["warnlength"]);
$dislength = intval($_POST["dislength"]);
$warnpm = $_POST["warnpm"];
$donor = $_POST["donor"];
$uploadtoadd = $_POST["amountup"];
Expand All @@ -78,7 +78,7 @@ function puke($text = "You have forgotten here someting?") {
$modcomm = htmlspecialchars_uni($_POST["modcomm"]);
$deluser = $_POST["deluser"];

$class = 0 + $_POST["class"];
$class = intval($_POST["class"]);
if (!is_valid_id($userid) || !is_valid_user_class($class))
stderr($tracker_lang['error'], "�������� ������������� ������������ ��� ������.");
// check target user class
Expand Down
2 changes: 1 addition & 1 deletion takeedit.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ function dict_get($d, $k, $t) {
$updateset[] = "ori_descr = " . sqlesc($descr);
sql_query('REPLACE INTO torrents_descr (tid, descr_hash, descr_parsed) VALUES ('.implode(', ', array_map('sqlesc', array($id, md5($descr), format_comment($descr)))).')') or sqlerr(__FILE__,__LINE__);

$updateset[] = "category = " . (0 + $type);
$updateset[] = "category = " . (intval($type));
if (get_user_class() >= UC_ADMINISTRATOR) {
if ($_POST["banned"]) {
$updateset[] = "banned = 'yes'";
Expand Down
6 changes: 3 additions & 3 deletions takeprofedit.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ function bark($msg) {
$website = unesc($_POST["website"]);
$updateset[] = "website = " . sqlesc(htmlspecialchars_uni($website));

$updateset[] = "torrentsperpage = " . min(100, 0 + $_POST["torrentsperpage"]);
$updateset[] = "topicsperpage = " . min(100, 0 + $_POST["topicsperpage"]);
$updateset[] = "postsperpage = " . min(100, 0 + $_POST["postsperpage"]);
$updateset[] = "torrentsperpage = " . min(100, intval($_POST["torrentsperpage"]));
$updateset[] = "topicsperpage = " . min(100, intval($_POST["topicsperpage"]));
$updateset[] = "postsperpage = " . min(100, intval($_POST["postsperpage"]));

if (is_theme($theme))
$updateset[] = "theme = ".sqlesc($theme);
Expand Down