Update of /cvsroot/phpmychat/phpMyChat-0.15/chat
In directory usw-pr-cvs1:/tmp/cvs-serv5364/chat
Modified Files:
save.php3
Log Message:
Fix some awfull html bugs and improve a bit http headers
Index: save.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/save.php3,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** save.php3 2001/04/19 21:05:04 1.5
--- save.php3 2001/04/29 08:57:35 1.6
***************
*** 41,50 ****
/**
! * Gets the session Id variable sent to this script
*
* Uses the 'pmcGrabGlobals()' function defined in the
* 'chat/lib/common.lib.php3' library.
*/
! pmcGrabGlobals('dbSessionId');
/**
--- 41,51 ----
/**
! * Gets the session Id variable sent to this script and the browser 'signature'
*
* Uses the 'pmcGrabGlobals()' function defined in the
* 'chat/lib/common.lib.php3' library.
*/
! $toGrab = array('dbSessionId', 'HTTP_USER_AGENT');
! pmcGrabGlobals($toGrab);
/**
***************
*** 186,191 ****
if ($messagesCnt > 0)
{
! // Save messages to a file
! header('Content-Type: application/octetstream');
header('Content-Disposition: attachement; filename="chat_save_' . date('mdY') . '.htm"');
?>
--- 187,196 ----
if ($messagesCnt > 0)
{
! // Save messages to a file ('application/octet-stream' is the registered
! // IANA type but MSIE only knows 'application/octetstream')
! $contentType = (ereg('MSIE [56789]', $HTTP_USER_AGENT))
! ? 'application/octetstream'
! : 'application/octet-stream';
! header('Content-Type: ' . $contentType);
header('Content-Disposition: attachement; filename="chat_save_' . date('mdY') . '.htm"');
?>
***************
*** 195,199 ****
<head>
<title><?php echo(APP_NAME . ' - ' . htmlspecialchars($dbSessionVars['currentRoom']) . ' - ' . date('F j, Y')); ?></title>
! <style>
<?php
if (defined('L_FONT_NAME') && L_FONT_NAME != '')
--- 200,204 ----
<head>
<title><?php echo(APP_NAME . ' - ' . htmlspecialchars($dbSessionVars['currentRoom']) . ' - ' . date('F j, Y')); ?></title>
! <style type="text/css">
<?php
if (defined('L_FONT_NAME') && L_FONT_NAME != '')
***************
*** 217,221 ****
echo("\n");
?>
! BODY.mainFrame
{
background-color: #CCCCFF;
--- 222,226 ----
echo("\n");
?>
! body.mainFrame
{
background-color: #CCCCFF;
***************
*** 226,230 ****
}
! A
{
text-decoration: underline;
--- 231,235 ----
}
! a
{
text-decoration: underline;
***************
*** 233,237 ****
}
! A:hover, A:active
{
color: #FF9900;
--- 238,242 ----
}
! a:hover, a:active
{
color: #FF9900;
***************
*** 263,267 ****
}
</style>
! <head>
<body class="mainFrame">
--- 268,272 ----
}
</style>
! </head>
<body class="mainFrame">
|