Mercurial > hg > fapweb
diff showajax.php @ 1104:0a2117349f46
s/true/TRUE/g; s/false/FALSE/g;
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 14 May 2019 14:45:36 +0300 |
parents | 7da8bde9b7be |
children | b2bca5f6d0ff |
line wrap: on
line diff
--- a/showajax.php Tue May 14 14:12:42 2019 +0300 +++ b/showajax.php Tue May 14 14:45:36 2019 +0300 @@ -8,12 +8,12 @@ require_once "msite.inc.php"; -function stPrintCompoEntry($entry, $class, $compo, $title = false) +function stPrintCompoEntry($entry, $class, $compo, $title = FALSE) { echo " <div class=\"".$class."\">\n"; - if ($title !== false) + if ($title !== FALSE) echo " <div class=\"entryTitle\">".$title."</div>\n"; @@ -23,12 +23,12 @@ if ($compo["show_authors"]) { - if ($title === false) + if ($title === FALSE) echo " <div class=\"entryBy\">by</div>\n"; echo " <div class=\"entryAuthor\">".chentities($entry["author"])."</div>\n"; } - if ($title === false) + if ($title === FALSE) echo " <div class=\"entryInfo\">".stConvertCommonDesc($entry["info"], TRUE)."</div>\n"; echo @@ -44,13 +44,13 @@ " <div class=\"compoTitle\">".chentities($compo["name"])." competition</div>\n". " </div>\n"; - if ($entry === false && $prev === false) + if ($entry === FALSE && $prev === FALSE) echo "<div class=\"compoStarting\">... Is about to start ...</div>"; - if ($entry !== false) - stPrintCompoEntry($entry, "compoNext", $compo, false); + if ($entry !== FALSE) + stPrintCompoEntry($entry, "compoNext", $compo, FALSE); - if ($prev !== false) + if ($prev !== FALSE) stPrintCompoEntry($prev, "compoPrev", $compo, "Previous entry"); } @@ -101,7 +101,7 @@ $sql = stPrepareSQL("SELECT * FROM display_slides WHERE id=%d", stGetDisplayVar("tempSlide")); - if (($res = stFetchSQL($sql)) !== false) + if (($res = stFetchSQL($sql)) !== FALSE) { stSetDisplayVar("tempSlideSet", FALSE); stSetDisplayVar("activeSlideMode", SMODE_ROTATE); @@ -136,7 +136,7 @@ "SELECT * FROM rot_list_slides WHERE list_id=%d ORDER BY order_num,id", $list); - if (($slideList = stExecSQL($sql)) !== false) + if (($slideList = stExecSQL($sql)) !== FALSE) { // Get slide at current index $slides = array(); @@ -226,7 +226,7 @@ $sql = stPrepareSQL("SELECT * FROM display_slides WHERE id=%d", stGetDisplayVar("activeSlide")); - if (($slide = stFetchSQL($sql)) !== false) + if (($slide = stFetchSQL($sql)) !== FALSE) stPrintRotationSlide($slide["text"]); } else @@ -240,7 +240,7 @@ "SELECT * FROM compos WHERE id=%d", $compo_id)); - if ($compo !== false) + if ($compo !== FALSE) { $prev = stFetchSQL(stPrepareSQL( "SELECT * FROM entries WHERE compo_id=%d AND show_id=%d AND show_id<>0",