|
From: Lo?c C. <lo...@us...> - 2001-04-30 22:45:29
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands
In directory usw-pr-cvs1:/tmp/cvs-serv3139/chat/lib/commands
Modified Files:
whois.cmd.php3 save.cmd.php3 profile.cmd.php3 ignore.cmd.php3
help.cmd.php3
Log Message:
Updated to the new 'input' frame
Index: whois.cmd.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/whois.cmd.php3,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** whois.cmd.php3 2001/04/19 21:05:04 1.6
--- whois.cmd.php3 2001/04/30 22:44:57 1.7
***************
*** 84,95 ****
. $pmcQueryArgSeparator . 'whoisTarget=' . urlencode($cmd[1]);
! $jsToRun = array(
! '<script type="text/javascript" language="javascript">',
! '<!--',
! '// Lauch the whois popup',
! 'window.open(\'' . $whoisUrl . '\', \'' . $winName . '\', \'width=420,height=' . $winHeight . ',resizable=yes,scrollbars=yes\');',
! '// -->',
! '</script>'
! );
}
}
--- 84,104 ----
. $pmcQueryArgSeparator . 'whoisTarget=' . urlencode($cmd[1]);
! // Define a table that contains JavaScript instructions to be ran
! if ($dbSessionVars['jsVersion'] != 'noJs')
! {
! $jsToRun = array(
! '<script type="text/javascript" language="javascript">',
! '<!--',
! '// Lauch the whois popup',
! 'window.open(\'' . $whoisUrl . '\', \'' . $winName . '\', \'width=420,height=' . $winHeight . ',resizable=yes,scrollbars=yes\');',
! '// -->',
! '</script>'
! );
! }
! // Define an html link that will be displayed by the 'input' frame
! else
! {
! $htmlPopupLink = '<a href="' . $whoisUrl . '" target="' . $winName . '">Whois ' . $cmd[1] . '</a>';
! }
}
}
Index: save.cmd.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/save.cmd.php3,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** save.cmd.php3 2001/04/19 21:05:04 1.3
--- save.cmd.php3 2001/04/30 22:44:57 1.4
***************
*** 68,88 ****
if (C_SAVE != "*"
&& ($cmd[2] = '*' || $cmd[2] > C_SAVE || $cmd[2] == ''))
$cmd[2] = C_SAVE;
else if ($cmd[2] == '')
$cmd[2] = C_SAVE;
$dbSessionVars['savedMessagesLimit'] = $cmd[2];
! $exportUrl = 'save.' . C_EXTENSION
. '?' . dbSessionSID('GET');
// Define a table that contains JavaScript instructions to be ran
! $jsToRun = array(
! '<script type="text/javascript" language="javascript">',
! '<!--',
! '// Save messages to a file',
! 'window.open(\'' . $exportUrl . '\', \'save_popup\', \'width=0,height=0,resizable=yes,scrollbars=yes\');',
! '// -->',
! '</script>'
! );
}
else
--- 68,100 ----
if (C_SAVE != "*"
&& ($cmd[2] = '*' || $cmd[2] > C_SAVE || $cmd[2] == ''))
+ {
$cmd[2] = C_SAVE;
+ }
else if ($cmd[2] == '')
+ {
$cmd[2] = C_SAVE;
+ }
$dbSessionVars['savedMessagesLimit'] = $cmd[2];
! $saveUrl = 'save.' . C_EXTENSION
. '?' . dbSessionSID('GET');
// Define a table that contains JavaScript instructions to be ran
! if ($dbSessionVars['jsVersion'] != 'noJs')
! {
! $jsToRun = array(
! '<script type="text/javascript" language="javascript">',
! '<!--',
! '// Save messages to a file',
! 'window.open(\'' . $saveUrl . '\', \'save_popup\', \'width=0,height=0,resizable=yes,scrollbars=yes\');',
! '// -->',
! '</script>'
! );
! }
! // Define an html link to be clicked on
! else
! {
! $htmlPopupLink = '<a href="' . $saveUrl . '" target="save_popup">Save</a>';
! }
}
else
Index: profile.cmd.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/profile.cmd.php3,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** profile.cmd.php3 2001/04/19 21:05:04 1.3
--- profile.cmd.php3 2001/04/30 22:44:57 1.4
***************
*** 26,31 ****
/**
! * Just modidify some variables and define an array of JavaScript instructions
! * to be ran at the end of the calling script
*/
$isCommand = true;
--- 26,30 ----
/**
! * Modidify some variables
*/
$isCommand = true;
***************
*** 35,46 ****
. '?' . 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>'
! );
?>
--- 34,56 ----
. '?' . dbSessionSID('GET');
! /**
! * Define a table that contains JavaScript instructions to be ran or an html
! * link to be clicked on
! */
! if ($dbSessionVars['jsVersion'] != 'noJs')
! {
! $jsToRun = array(
! '<script type="text/javascript" language="javascript">',
! '<!--',
! '// Lauch the profile popup',
! 'window.open(\'' . $profileUrl . '\', \'profile_edit_popup\', \'width=350,height=470,resizable=yes,scrollbars=yes\');',
! '// -->',
! '</script>'
! );
! }
! else
! {
! $htmlPopupLink = '<a href="' . $profileUrl . '" target="profile_edit_popup">' . L_PROFILE . '</a>';
! }
?>
Index: ignore.cmd.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/ignore.cmd.php3,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** ignore.cmd.php3 2001/04/19 21:05:04 1.5
--- ignore.cmd.php3 2001/04/30 22:44:57 1.6
***************
*** 47,67 ****
// Define a table that contains JavaScript instructions to be ran
! $jsToRun = array(
! '<script type="text/javascript" language="javascript">',
! '<!--',
! 'with (window.parent)',
! '{',
! "\t" . 'if (typeof(jsIgnoredPopupWin) != \'undefined\' && jsIgnoredPopupWin != null && !jsIgnoredPopupWin.closed)',
! "\t" . '{',
! "\t\t" . 'jsIgnoredPopupWin.focus();',
! "\t" . '}',
! "\t" . 'else',
! "\t" . '{',
! "\t\t" . 'jsIgnoredPopupWin = window.open(\'' . $ignoredUrl . '\', \'ignore_popup\', \'width=180,height=300,scrollbars=yes,resizable=yes\');',
! "\t" . '}',
! '}',
! '// -->',
! '</script>'
! );
}
// Add user(s) to the ignored list
--- 47,75 ----
// Define a table that contains JavaScript instructions to be ran
! if ($dbSessionVars['jsVersion'] != 'noJs')
! {
! $jsToRun = array(
! '<script type="text/javascript" language="javascript">',
! '<!--',
! 'with (window.parent)',
! '{',
! "\t" . 'if (typeof(jsIgnoredPopupWin) != \'undefined\' && jsIgnoredPopupWin != null && !jsIgnoredPopupWin.closed)',
! "\t" . '{',
! "\t\t" . 'jsIgnoredPopupWin.focus();',
! "\t" . '}',
! "\t" . 'else',
! "\t" . '{',
! "\t\t" . 'jsIgnoredPopupWin = window.open(\'' . $ignoredUrl . '\', \'ignore_popup\', \'width=180,height=300,scrollbars=yes,resizable=yes\');',
! "\t" . '}',
! '}',
! '// -->',
! '</script>'
! );
! }
! // Define an html link that will be displayed by the 'input' frame
! else
! {
! $htmlPopupLink = '<a href="' . $ignoredUrl . '" target="ignored">' . L_IGNOR_TIT . '</a>';
! }
}
// Add user(s) to the ignored list
***************
*** 152,170 ****
// Define a table that contains JavaScript instructions to be ran
! $jsToRun = array(
! '<script type="text/javascript" language="javascript">',
! '<!--',
! '// Refresh the ignored popup',
! 'with (window.parent)',
! '{',
! "\t" . 'if (typeof(jsIgnoredPopupWin) != \'undefined\' && jsIgnoredPopupWin != null && !jsIgnoredPopupWin.closed)',
! "\t" . '{',
! "\t\t" . 'jsIgnoredPopupWin.document.forms[\'ignoredForm\'].elements[\'refresh\'].value = 1;',
! "\t\t" . 'jsIgnoredPopupWin.location = \'' . $ignoredUrl . '\';',
! "\t" . '}',
! '}',
! '// -->',
! '</script>'
! );
}
--- 160,186 ----
// Define a table that contains JavaScript instructions to be ran
! if ($dbSessionVars['jsVersion'] != 'noJs')
! {
! $jsToRun = array(
! '<script type="text/javascript" language="javascript">',
! '<!--',
! '// Refresh the ignored popup',
! 'with (window.parent)',
! '{',
! "\t" . 'if (typeof(jsIgnoredPopupWin) != \'undefined\' && jsIgnoredPopupWin != null && !jsIgnoredPopupWin.closed)',
! "\t" . '{',
! "\t\t" . 'jsIgnoredPopupWin.document.forms[\'ignoredForm\'].elements[\'refresh\'].value = 1;',
! "\t\t" . 'jsIgnoredPopupWin.location = \'' . $ignoredUrl . '\';',
! "\t" . '}',
! '}',
! '// -->',
! '</script>'
! );
! }
! // Define an html link that will be displayed by the 'input' frame
! else
! {
! $htmlPopupLink = '<a href="' . $ignoredUrl . '" target="ignored">' . L_IGNOR_TIT . '</a>';
! }
}
Index: help.cmd.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/help.cmd.php3,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** help.cmd.php3 2001/04/19 21:05:04 1.4
--- help.cmd.php3 2001/04/30 22:44:57 1.5
***************
*** 26,38 ****
/**
! * Define a table that contains JavaScript instructions to be ran
*/
! $jsToRun = array(
! '<script type="text/javascript" language="javascript">',
! '<!--',
! 'window.parent.pmcHelpPopup(' . ((L_CHARSET == 'windows-1256') ? 610 : 10) . ');',
! '// -->',
! '</script>'
! );
$isCommand = true;
--- 26,49 ----
/**
! * Define a table that contains JavaScript instructions to be ran or an html
! * link to be clicked on
*/
! if ($dbSessionVars['jsVersion'] != 'noJs')
! {
! $jsToRun = array(
! '<script type="text/javascript" language="javascript">',
! '<!--',
! 'window.parent.pmcHelpPopup(' . ((L_CHARSET == 'windows-1256') ? 610 : 10) . ');',
! '// -->',
! '</script>'
! );
! }
! else
! {
! $helpUrl = 'help_popup.' . C_EXTENSION
! . '?lang=' . $dbSessionVars['lang']
! . $pmcQueryArgSeparator . 'jsVersion=' . $dbSessionVars['jsVersion'];
! $htmlPopupLink = '<a href="' . $helpUrl . '" target="help_popup">' . L_HLP . '</a>';
! }
$isCommand = true;
|