Update of /cvsroot/phpmychat/phpMyChat-0.15/chat
In directory usw-pr-cvs1:/tmp/cvs-serv9865/chat
Added Files:
index.php3
Log Message:
First drafts for the 0.15 release
--- NEW FILE ---
<?php
//
// +--------------------------------------------------------------------------+
// | phpMyChat version 0.15.0 |
// +--------------------------------------------------------------------------+
// | Copyright (c) 2000-2001 The phpHeaven-team |
// +--------------------------------------------------------------------------+
// | This script is an example of what may be done to include phpMyChat into |
// | an existing web page, regardless of its name (another example is the |
// | the 'phpMyChat.php3' script at the root of the phpMyChat package). |
// | You can also include such a file in a frameset. |
// +--------------------------------------------------------------------------+
// | From the phpMyChat project: |
// | http://www.phpheaven.net/projects/phpMyChat/ |
// | |
// | Authors: the phpHeaven-team <php...@ya...> |
// +--------------------------------------------------------------------------+
//
// $Id: index.php3,v 1.1 2001/03/29 22:52:17 loic1 Exp $
//
// Launches the phpMyChat script.
//
/**
* Defines the relative path to the chat directory and gets the main library
*
* The lines below must be at the top of your file because
* 'main_index.lib.php3' sets headers and cookies.
*/
// relative path from this file to the chat directory (empty if this file is in
// the same directory than the chat)
define('_CHAT_PATH', '');
// Gets the extension for the php scripts
if (!isset($PHP_SELF))
$PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
define('C_EXTENSION', (substr($PHP_SELF, -1) == 3) ? 'php3' : 'php');
require('./' . _CHAT_PATH .'lib/index_libs/main_index.lib.' . C_EXTENSION);
/**
* Displays the starting form
*
* The 'pmcStartpageHeaders()' and 'pmcStartpageLayout()' functions are defined
* inside the 'chat/lib/index_libs/main_index.lib.php3' library
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html dir="<?php echo((L_CHARSET == 'windows-1256') ? 'rtl' : 'ltr'); ?>">
<head>
<?php
// You can put html head statements right after the '<head>' tag
pmcStartpageHeaders(1, 1);
?>
</head>
<body class="chatBody">
<?php
// If nothing other than phpMyChat is loaded in this page, or if you want
// to have the same background color as phpMyChat for the whole page,
// you have to modify the '<body>' tag to '<body class="chatBody">'
// You can put html statements right after the '<body>' tag or add
// php code here.
$username = (isset($cookieUsername)) ? $cookieUsername : '';
$roomName = (isset($cookieRoom)) ? $cookieRoom : '';
$roomType = (isset($cookieRoomType)) ? $cookieRoomType : '';
pmcStartpageLayout($username, $roomName, $roomType);
// You can add php code here, or add html statements before the '</body>' tag.
?>
</body>
</html>
|