Mercurial > hg > fapweb
changeset 243:e284f867c1d8
Remove stGetCompoList().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 22 Nov 2013 01:08:30 +0200 |
parents | c52ca3a89989 |
children | 70c424d025d6 |
files | msite.inc.php |
diffstat | 1 files changed, 0 insertions(+), 31 deletions(-) [+] |
line wrap: on
line diff
--- a/msite.inc.php Fri Nov 22 01:08:15 2013 +0200 +++ b/msite.inc.php Fri Nov 22 01:08:30 2013 +0200 @@ -165,37 +165,6 @@ } -function stGetCompoList($fvisible, $fvoting = FALSE) -{ - global $compos; - - // Get entries and competitions into an array structure - $sql = "SELECT * FROM compos"; - if ($fvisible || $fvoting) - { - $sql .= " WHERE ".implode(" AND ", array($fvisible ? "visible<>0" : "", $fvoting ? "voting<>0" : "")); - } - - // Get the data - foreach (stExecSQL($sql) as $compo) - { - $id = $compo["id"]; - - $compos[$compo["id"]] = array( - "name" => $compo["name"], - "showAuthors" => $compo["showAuthors"], - "entries" => array() - ); - - $sql = stPrepareSQL("SELECT * FROM entries WHERE compo_id=%d", $id); - foreach (stExecSQL($sql) as $entry) - { - $compos[$id]["entries"][$entry["id"]] = $entry; - } - } -} - - function stGenerateUserKey() { global $db;