diff --git a/admin/index.php b/admin/index.php
index d890657..46ab175 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -25,7 +25,7 @@
require_once("../common.inc.php");
require_once("../user.inc.php");
require_once("../committee.inc.php");
- require_once("../chat.inc.php");
+
user_auth_required('committee','admin');
@@ -33,7 +33,7 @@
array('Committee Main' => 'committee_main.php'),
"administration");
- draw_chatbox('general');
+
echo "
";
echo " ";
diff --git a/admin/registration_list.php b/admin/registration_list.php
index d2ce653..9d87e3c 100644
--- a/admin/registration_list.php
+++ b/admin/registration_list.php
@@ -36,12 +36,16 @@ $auth_type = user_auth_required(array('fair','committee'), 'admin');
if($_GET['year']) $year=$_GET['year'];
else $year=$config['FAIRYEAR'];
-$q=mysql_query("SELECT * FROM projectcategories WHERE year='$year' ORDER BY id");
-while($r=mysql_fetch_object($q))
+ $q = $pdo->prepare("SELECT * FROM projectcategories WHERE year='$year' ORDER BY id");
+ $q->execute();
+
+while($r=$q->fetch(PDO::FETCH_OBJ))
$cats[$r->id]=$r->category;
-$q=mysql_query("SELECT * FROM projectdivisions WHERE year='$year' ORDER BY id");
-while($r=mysql_fetch_object($q))
+$q = $pdo->prepare("SELECT * FROM projectdivisions WHERE year='$year' ORDER BY id");
+$q->execute();
+
+while($q->fetch(PDO::FETCH_OBJ))
$divs[$r->id]=$r->division;
$action=$_GET['action'];
diff --git a/chat.ajax.php b/chat.ajax.php
deleted file mode 100644
index d364958..0000000
--- a/chat.ajax.php
+++ /dev/null
@@ -1,26 +0,0 @@
-
- Copyright (C) 2005-2008 James Grant
-
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public
- License as published by the Free Software Foundation, version 2.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; see the file COPYING. If not, write to
- the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
-*/
-?>
-
-
-
-
-
-
-