Skip to content
Snippets Groups Projects
Commit a0bf5ba0 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

More cleanup

parent 6b5af9af
No related branches found
No related tags found
No related merge requests found
connectinfo.php connectinfo.php
connections/inthenews.php
.svn .svn
.project .project
......
...@@ -12,23 +12,25 @@ if (isset($_GET['logout'])) { ...@@ -12,23 +12,25 @@ if (isset($_GET['logout'])) {
exit(); exit();
} }
$admins = array('lreed5', 'ssmith13', 'rcrisler1', 'bbieber2', 'smeranda2', 'erasmussen2'); $admins = array('lreed5', 'ssmith13', 'rcrisler1', 'erasmussen2');
if (!$auth->isLoggedIn() || if (!$auth->isLoggedIn() ||
!in_array($user, $admins)) { !in_array($user, $admins)) {
echo 'You are not authorized!'; echo 'Access Denied';
exit(); exit();
} }
?>
<?php if (isset($_POST['actionflag'])) {
if(isset($_POST['actionflag']))
$actionflag = $_POST['actionflag']; $actionflag = $_POST['actionflag'];
else } else {
$actionflag = ""; $actionflag = "";
//echo $actionflag; }
if(isset($_POST['ID']))
if (isset($_POST['ID'])) {
$recid = $_POST['ID']; $recid = $_POST['ID'];
//echo $recid; }
if(isset($_POST['headline']))
if (isset($_POST['headline'])) {
$headline = $_POST['headline']; $headline = $_POST['headline'];
//echo $headline; }
<?php <?php
// Copy and rename as connectinfo.php
$username = ''; $username = '';
$password = ''; $password = '';
$database = 'inthenews'; $database = 'inthenews';
......
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_inthenews = "localhost";
$database_inthenews = "inthenews";
$username_inthenews = "root";
$password_inthenews = "";
$inthenews = mysql_pconnect($hostname_inthenews, $username_inthenews, $password_inthenews) or trigger_error(mysql_error(),E_USER_ERROR);
?>
\ No newline at end of file
<ul>
<li><a href="../">In the News Home</a></li>
<li><a href="index.php">ItN Admin</a></li>
</ul>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment