Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands
In directory usw-pr-cvs1:/tmp/cvs-serv1707/chat/lib/commands
Added Files:
profile.cmd.php3
Log Message:
The latest command has been updated (profile) :))
--- NEW FILE ---
<?php
//
// +--------------------------------------------------------------------------+
// | phpMyChat version 0.15.0 |
// +--------------------------------------------------------------------------+
// | Copyright (c) 2000-2001 The phpHeaven-team |
// +--------------------------------------------------------------------------+
// | This library does the work associated to the 'profile' command. |
// | |
// | It is called by the 'commands.lib.php3' script. |
// +--------------------------------------------------------------------------+
// | From the phpMyChat project: |
// | http://www.phpheaven.net/projects/phpMyChat/ |
// | |
// | Authors: the phpHeaven-team <php...@ya...> |
// +--------------------------------------------------------------------------+
//
// $Id: profile.cmd.php3,v 1.1 2001/04/13 11:21:45 loic1 Exp $
//
// The work for the 'profile' command.
//
/**
* Just modidify some variables and define an array of JavaScript instructions
* to be ran at the end of the calling script
*/
$isCommand = true;
$isPopup = true;
$dbSessionVars['conservative'] = 1;
$profileUrl = 'profile_edit.' . C_EXTENSION
. '?' . dbSessionSID('GET');
$jsToRun = array(
'<script type="text/javascript" language="javascript">',
'<!--',
'// Lauch the profile popup',
'window.open(\'' . $profileUrl . '\', \'profile_popup\', \'width=350,height=470,resizable=yes,scrollbars=yes\');',
'// -->',
'</script>'
);
?>
|