Update of /cvsroot/openfirst/news/admin
In directory sc8-pr-cvs1:/tmp/cvs-serv25706/admin
Modified Files:
delcomment.php
Log Message:
Style changes for the sake of uniformity.
Index: delcomment.php
===================================================================
RCS file: /cvsroot/openfirst/news/admin/delcomment.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** delcomment.php 23 Oct 2003 22:31:13 -0000 1.1
--- delcomment.php 23 Nov 2003 15:42:59 -0000 1.2
***************
*** 38,46 ****
<td align="center">
<?php
! $admin=false;
! if (isset($user->membertype)){
! $admin=($user->membertype == "administrator");
! }
! if($admin) {
if(!isset($_POST["CommentID"])) {
$query = ofirst_dbquery("SELECT * FROM ofirst_news_comments WHERE ID='".$_GET["id"]."'");
--- 38,47 ----
<td align="center">
<?php
! $admin=false;
! if (isset($user->membertype)){
! $admin=($user->membertype == "administrator");
! }
!
! if($admin) {
if(!isset($_POST["CommentID"])) {
$query = ofirst_dbquery("SELECT * FROM ofirst_news_comments WHERE ID='".$_GET["id"]."'");
***************
*** 50,65 ****
echo('<div>Delete comment?</div><br>');
echo('<input type="submit" value="Confirm"></form>');
! }
! else {
echo('<div>This comment does not exist.</div>');
}
! } else {
// Delete the news by ID.
ofirst_dbquery("DELETE FROM ofirst_news_comments WHERE ID=".$_POST["CommentID"].";");
echo("The comment has been deleted. [ <a href='../index.php'>Main</a> ]");
}
! }
! else {
echo("You must be logged on as an administrative user to delete comments.");
}
--- 51,64 ----
echo('<div>Delete comment?</div><br>');
echo('<input type="submit" value="Confirm"></form>');
! } else {
echo('<div>This comment does not exist.</div>');
}
! } else {
// Delete the news by ID.
ofirst_dbquery("DELETE FROM ofirst_news_comments WHERE ID=".$_POST["CommentID"].";");
echo("The comment has been deleted. [ <a href='../index.php'>Main</a> ]");
}
! } else {
echo("You must be logged on as an administrative user to delete comments.");
}
|