# HG changeset patch # User Matti Hamalainen # Date 1385075310 -7200 # Node ID e284f867c1d8c66c39a619084e41ee6b3a5b51fd # Parent c52ca3a899890043cbac2ad66c73f0d837f8250a Remove stGetCompoList(). diff -r c52ca3a89989 -r e284f867c1d8 msite.inc.php --- 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;