diff --git a/common.inc.php b/common.inc.php
index c94bef4..ee0028f 100644
--- a/common.inc.php
+++ b/common.inc.php
@@ -630,7 +630,9 @@ if(is_array($nav)) {
}
*/
echo "
".i18n("Committee").'';
- echo "".i18n("Winners").'';
+ if($config['show_winners'] == "yes") {
+ echo "".i18n("Winners").'';
+ }
?>
diff --git a/db/db.code.version.txt b/db/db.code.version.txt
index aa34eab..08839f6 100644
--- a/db/db.code.version.txt
+++ b/db/db.code.version.txt
@@ -1 +1 @@
-199
+200
diff --git a/db/db.update.200.sql b/db/db.update.200.sql
new file mode 100644
index 0000000..5468cd3
--- /dev/null
+++ b/db/db.update.200.sql
@@ -0,0 +1 @@
+INSERT INTO `config` ( `var` , `val` , `category` , `type` , `type_values` , `ord` , `description` , `section`, `conferencetypes`, `conferences_id`, `year`) VALUES ( 'show_winners', 'yes', 'Global', 'yesno', '', '900', 'Display Winners', 'conference', 'sciencefair,scienceolympics', '-1', '-1')
diff --git a/winners.php b/winners.php
index f938845..0d90ad5 100644
--- a/winners.php
+++ b/winners.php
@@ -25,6 +25,12 @@
require("common.inc.php");
require("projects.inc.php");
+ if($config['show_winners'] == "no") {
+ header("HTTP/1.0 404 Not Found");
+ echo "Requested URL not found.";
+ exit;
+ }
+
send_header("Winners");
if($_GET['edit']) $edit=$_GET['edit'];