* @access private
*/
function show_message_details(&$links) {
- global $passed_id, $mailbox, $ent_num,
- $javascript_on;
+ global $passed_id, $mailbox, $ent_num;
if (strlen(trim($mailbox)) < 1) {
$mailbox = 'INBOX';
'&mailbox=' . urlencode($mailbox) .
'&passed_id=' . $passed_id;
- $url = $javascript_on ? 'javascript:MessageSource();' :
+ $url = checkForJavascript() ? 'javascript:MessageSource();' :
'../plugins/message_details/message_details_main.php' .
$params;
$links[] = array('URL' => $url,
'Text' => _("View Message details") );
- if ($javascript_on) {
+ if (checkForJavascript()) {
echo '<script type="text/javascript">' . "\n" .
'<!--' . "\n" .
" function MessageSource() {\n" .
* @access private
*/
function spamcop_show_link_function(&$links) {
- global $spamcop_enabled, $spamcop_method, $spamcop_quick_report,$javascript_on;
+ global $spamcop_enabled, $spamcop_method, $spamcop_quick_report;
if (! $spamcop_enabled)
return;
$url = '../plugins/spamcop/spamcop.php?passed_id=' . urlencode($passed_id) .
'&mailbox=' . urlencode($mailbox) . '&startMessage=' . urlencode($startMessage) .
'&passed_ent_id=' . urlencode($passed_ent_id);
- if ( $spamcop_method == 'web_form' && $javascript_on ) {
+ if ( $spamcop_method == 'web_form' && checkForJavascript() ) {
$url .= '&js_web=1';
}