forked from GithubBackups/tinyib
Fix MySQLi database mode
This commit is contained in:
parent
a22a497ce4
commit
8d5986ee83
@ -14,8 +14,8 @@ For demos see the [TinyIB Installations](https://github.com/tslocum/TinyIB/wiki)
|
|||||||
Features
|
Features
|
||||||
------------
|
------------
|
||||||
- GIF, JPG, PNG, SWF and WebA/WebM upload.
|
- GIF, JPG, PNG, SWF and WebA/WebM upload.
|
||||||
|
- CAPTCHA.
|
||||||
- Reference links >>###
|
- Reference links >>###
|
||||||
- Built-in CAPTCHA system. (Optional)
|
|
||||||
- Delete post via password.
|
- Delete post via password.
|
||||||
- Management panel:
|
- Management panel:
|
||||||
- Administrators and moderators use separate passwords.
|
- Administrators and moderators use separate passwords.
|
||||||
|
@ -45,7 +45,7 @@ function postByID($id) {
|
|||||||
|
|
||||||
function threadExistsByID($id) {
|
function threadExistsByID($id) {
|
||||||
global $link;
|
global $link;
|
||||||
return mysqli_result(mysqli_query($link, "SELECT COUNT(*) FROM `" . TINYIB_DBPOSTS . "` WHERE `id` = '" . mysqli_real_escape_string($link, $id) . "' AND `parent` = 0 AND `moderated` = 0 LIMIT 1"), 0, 0) > 0;
|
return mysqli_result(mysqli_query($link, "SELECT COUNT(*) FROM `" . TINYIB_DBPOSTS . "` WHERE `id` = '" . mysqli_real_escape_string($link, $id) . "' AND `parent` = 0 AND `moderated` = 1 LIMIT 1"), 0, 0) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function insertPost($post) {
|
function insertPost($post) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user