Private GIT

Skip to content
Snippets Groups Projects
Commit d35c67ff authored by Christophe K.'s avatar Christophe K.
Browse files

Replace valck.php

parent ab711884
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ EOT;
'website' => "https://www.ckforum.com",
'author' => "ck",
'authorsite' => "http://github.nailis.fr/ckbox/ckval/-/blob/master/upload/inc/plugins/valck.php",
'version' => "1.3.5 - ".$versionAPP,
'version' => "1.3.6 - ".$versionAPP,
'compatibility' => "18*"
);
}
......@@ -59,8 +59,18 @@ global $mybb, $lang, $db, $valck_run;
}
$datecut = TIME_NOW-(86400*$days);
$sql = "SELECT count(*) FROM `".TABLE_PREFIX."threads` where lastpost >= ".$datecut." ORDER BY `tid` DESC";
$query = $db->query("SELECT count(*) as count FROM `" . TABLE_PREFIX . "threads` where lastpost >= ".$datecut." ORDER BY `tid` DESC");
$sql = "
SELECT count(*) FROM `".TABLE_PREFIX."threads`
where lastpost >= ".$datecut."
and visible >= 0
ORDER BY `tid` DESC";
$query = $db->query("
SELECT count(*) as count FROM `" . TABLE_PREFIX . "threads`
where lastpost >= ".$datecut."
and visible >= 0
ORDER BY `tid` DESC");
$newposts = $db->fetch_field($query, "count");
$db->free_result($query);
// fin requete message aujourdui
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment