Update of /cvsroot/openfirst/messenger
In directory sc8-pr-cvs1:/tmp/cvs-serv29754
Modified Files:
inbox.php index.php newmsg.php viewmsg.php
Log Message:
Change include to include_once so that scripts may be easily included from other scripts without problems.
Index: inbox.php
===================================================================
RCS file: /cvsroot/openfirst/messenger/inbox.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** inbox.php 28 Sep 2003 13:54:24 -0000 1.6
--- inbox.php 13 Oct 2003 17:58:27 -0000 1.7
***************
*** 26,35 ****
*
*/
! include("../config/globals.php");
! include($header);
if(! isset($user->user)){
showlogin();
! die(include($footer));
}
--- 26,35 ----
*
*/
! include_once("../config/globals.php");
! include_once($header);
if(! isset($user->user)){
showlogin();
! die(include_once($footer));
}
***************
*** 38,42 ****
ofirst_dbquery("DELETE FROM ofirst_messenger_messages WHERE ID = '".$_GET['DELETE']."'") or die(ofirst_dberror());
echo "<br><p>Message has been removed, thank you! [ <a href='inbox.php'>Inbox</a> ]</p><br>";
! die(include($footer));
}
--- 38,42 ----
ofirst_dbquery("DELETE FROM ofirst_messenger_messages WHERE ID = '".$_GET['DELETE']."'") or die(ofirst_dberror());
echo "<br><p>Message has been removed, thank you! [ <a href='inbox.php'>Inbox</a> ]</p><br>";
! die(include_once($footer));
}
***************
*** 45,49 ****
ofirst_dbquery("DELETE FROM ofirst_messenger_messages WHERE Receiver = '".$user->user."'") or die(ofirst_dberror());
echo "<br><p>All messages have been deleted, thank you! [ <a href='inbox.php'>Inbox</a> ]</p><br>";
! die(include($footer));
}
--- 45,49 ----
ofirst_dbquery("DELETE FROM ofirst_messenger_messages WHERE Receiver = '".$user->user."'") or die(ofirst_dberror());
echo "<br><p>All messages have been deleted, thank you! [ <a href='inbox.php'>Inbox</a> ]</p><br>";
! die(include_once($footer));
}
***************
*** 93,97 ****
<p><br>
<?php
! include($footer);
?>
</p>
--- 93,97 ----
<p><br>
<?php
! include_once($footer);
?>
</p>
Index: index.php
===================================================================
RCS file: /cvsroot/openfirst/messenger/index.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** index.php 28 Sep 2003 13:54:24 -0000 1.7
--- index.php 13 Oct 2003 17:58:27 -0000 1.8
***************
*** 26,31 ****
*
*/
! include("../config/globals.php");
! include($header);
?>
<h1>Current Online Users</h1>
--- 26,31 ----
*
*/
! include_once("../config/globals.php");
! include_once($header);
?>
<h1>Current Online Users</h1>
***************
*** 73,76 ****
</table>
<?php
! include($footer);
?>
--- 73,76 ----
</table>
<?php
! include_once($footer);
?>
Index: newmsg.php
===================================================================
RCS file: /cvsroot/openfirst/messenger/newmsg.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** newmsg.php 28 Sep 2003 13:54:24 -0000 1.10
--- newmsg.php 13 Oct 2003 17:58:27 -0000 1.11
***************
*** 26,35 ****
*
*/
! include("../config/globals.php");
! include($header);
if(! isset($user->user)){
showlogin();
! die(include($footer));
}
--- 26,35 ----
*
*/
! include_once("../config/globals.php");
! include_once($header);
if(! isset($user->user)){
showlogin();
! die(include_once($footer));
}
***************
*** 59,63 ****
echo("<br><br><br><center>Message has been sent! [ <a href='inbox.php'>Inbox</a> ]<br><br>");
! die(include($footer));
}
?>
--- 59,63 ----
echo("<br><br><br><center>Message has been sent! [ <a href='inbox.php'>Inbox</a> ]<br><br>");
! die(include_once($footer));
}
?>
***************
*** 126,129 ****
</form>
<?php
! include($footer);
?>
--- 126,129 ----
</form>
<?php
! include_once($footer);
?>
Index: viewmsg.php
===================================================================
RCS file: /cvsroot/openfirst/messenger/viewmsg.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** viewmsg.php 28 Sep 2003 13:54:24 -0000 1.6
--- viewmsg.php 13 Oct 2003 17:58:27 -0000 1.7
***************
*** 26,35 ****
*
*/
! include("../config/globals.php");
! include($header);
if(! isset($user->user)){
showlogin();
! die(include($footer));
}
--- 26,35 ----
*
*/
! include_once("../config/globals.php");
! include_once($header);
if(! isset($user->user)){
showlogin();
! die(include_once($footer));
}
***************
*** 83,86 ****
]</p>
<?php
! include($footer);
?>
--- 83,86 ----
]</p>
<?php
! include_once($footer);
?>
|