[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] email/attach_file.php, 1.28.2.2
From: |
nomail |
Subject: |
[Phpgroupware-cvs] email/attach_file.php, 1.28.2.2 |
Date: |
Sat, 6 Nov 2004 17:13:42 +0100 |
Update of /email
Modified Files:
Branch: Version-0_9_16-branch
attach_file.php
date: 2004/11/06 16:13:42; author: powerstat; state: Exp; lines: +35 -35
Log Message:
replaced <br> with <br /> and <hr> with <hr /> for better w3c compatibility
=====================================================================
Index: email/attach_file.php
diff -u email/attach_file.php:1.28.2.1 email/attach_file.php:1.28.2.2
--- email/attach_file.php:1.28.2.1 Sat Sep 13 01:46:14 2003
+++ email/attach_file.php Sat Nov 6 16:13:42 2004
@@ -32,7 +32,7 @@
//$fup_debug=2;
// #### TESTING BO OBJECT, BYPASSES BYPASS THIS FILE
- echo 'this file "attach_file.php" is depreciated, use the BO class
instead<br>';
+ echo 'this file "attach_file.php" is depreciated, use the BO class
instead<br />';
$GLOBALS['phpgw']->common->phpgw_exit(False);
return;
// #### TESTING BO OBJECT, BYPASSES BYPASS THIS FILE
@@ -69,11 +69,11 @@
// if we were NOT able to create this temp directory, then make an
ERROR report
if (!file_exists($GLOBALS['phpgw_info']['server']['temp_dir']))
{
- $alert_msg .= 'Error:'.'<br>'
- . 'Server is unable to access phpgw tmp
directory'.'<br>'
- . $GLOBALS['phpgw_info']['server']['temp_dir'].'<br>'
- . 'Please check your configuration'.'<br>'
- . '<br>';
+ $alert_msg .= 'Error:'.'<br />'
+ . 'Server is unable to access phpgw tmp directory'.'<br
/>'
+ . $GLOBALS['phpgw_info']['server']['temp_dir'].'<br />'
+ . 'Please check your configuration'.'<br />'
+ . '<br />';
}
if (!file_exists($GLOBALS['phpgw_info']['server']['temp_dir'] . SEP .
$GLOBALS['phpgw_info']['user']['sessionid']))
@@ -87,11 +87,11 @@
// if we were NOT able to create this temp directory, then make an
ERROR report
if (!file_exists($uploaddir))
{
- $alert_msg .= 'Error:'.'<br>'
- . 'Server is unable to access phpgw email tmp
directory'.'<br>'
- . $uploaddir.'<br>'
- . 'Please check your configuration'.'<br>'
- . '<br>';
+ $alert_msg .= 'Error:'.'<br />'
+ . 'Server is unable to access phpgw email tmp
directory'.'<br />'
+ . $uploaddir.'<br />'
+ . 'Please check your configuration'.'<br />'
+ . '<br />';
}
/*
@@ -114,7 +114,7 @@
if (($GLOBALS['phpgw']->msg->minimum_version("4.1.0"))
&& (!isset($GLOBALS['phpgw']->msg->ref_FILES)))
{
- echo 'file attach_file ('.__LINE__.') ERROR:
$GLOBALS[phpgw]->msg->ref_FILES should be set here, but it IS NOT set<br>';
+ echo 'file attach_file ('.__LINE__.') ERROR:
$GLOBALS[phpgw]->msg->ref_FILES should be set here, but it IS NOT set<br />';
}
// the following code only applies to php < 4.1.0 where that
superglobal was not available
@@ -144,7 +144,7 @@
$file_name =
$GLOBALS['phpgw']->msg->stripslashes_gpc(trim($GLOBALS['phpgw']->msg->ref_FILES['uploadedfile']['name']));
$file_size =
$GLOBALS['phpgw']->msg->stripslashes_gpc(trim($GLOBALS['phpgw']->msg->ref_FILES['uploadedfile']['size']));
$file_type =
$GLOBALS['phpgw']->msg->stripslashes_gpc(trim($GLOBALS['phpgw']->msg->ref_FILES['uploadedfile']['type']));
- if ($fup_debug > 1) { echo 'ref_FILE dump:
'.htmlspecialchars(serialize($GLOBALS['phpgw']->msg->ref_FILES)).'<br>'; }
+ if ($fup_debug > 1) { echo 'ref_FILE dump:
'.htmlspecialchars(serialize($GLOBALS['phpgw']->msg->ref_FILES)).'<br />'; }
}
else
{
@@ -183,8 +183,8 @@
}
return substr($input, $lastpos + 1, strlen($input));
}
- // now use that function to get a clean file name
- if ($fup_debug > 1) { echo 'file_name (pre-wbasename): ' .$file_name
.'<br>'; }
+ // now use that function to get a clean file name
+ if ($fup_debug > 1) { echo 'file_name (pre-wbasename): ' .$file_name
.'<br />'; }
// Netscape 6 passes file_name with a full path, we need to extract
just the filename
$file_name = wbasename($file_name);
@@ -228,10 +228,10 @@
(($file_tmp_name == '') || ($file_tmp_name == 'none')))
{
$langed_attach_file = lang("Attach File");
- $alert_msg = lang('Input Error:').'<br>'
- . lang('Please submit a filename to attach').'<br>'
- . lang('You must click').' "'.lang('Attach File').'"
'.lang('for the file to actually upload').'<br>'
- . '<br>';
+ $alert_msg = lang('Input Error:').'<br />'
+ . lang('Please submit a filename to attach').'<br />'
+ . lang('You must click').' "'.lang('Attach File').'"
'.lang('for the file to actually upload').'<br />'
+ . '<br />';
}
$dh = opendir($uploaddir);
@@ -294,25 +294,25 @@
}
// begin DEBUG INFO
- $debuginfo .= '--uploadedfile info: <br>'
- . '$GLOBALS[phpgw_info][server][temp_dir]:
'.$GLOBALS['phpgw_info']['server']['temp_dir'].'<br>'
- . '$GLOBALS[phpgw_info][user][sessionid]:
'.$GLOBALS['phpgw_info']['user']['sessionid'].'<br>'
- . 'uploaddir: '.$uploaddir.'<br>'
- . 'file_tmp_name: ' .$file_tmp_name .'<br>'
- . 'file_name: ' .$file_name .'<br>'
- . 'file_size: ' .$file_size .'<br>'
- . 'file_type: ' .$file_type .'<br>'
- . '<br>'
- . 'totalfiles: ' .$totalfiles .'<br>'
- . 'file_info_count: '.count($file_info) .'<br>'
- . '<br>';
+ $debuginfo .= '--uploadedfile info: <br />'
+ . '$GLOBALS[phpgw_info][server][temp_dir]:
'.$GLOBALS['phpgw_info']['server']['temp_dir'].'<br />'
+ . '$GLOBALS[phpgw_info][user][sessionid]:
'.$GLOBALS['phpgw_info']['user']['sessionid'].'<br />'
+ . 'uploaddir: '.$uploaddir.'<br />'
+ . 'file_tmp_name: ' .$file_tmp_name .'<br />'
+ . 'file_name: ' .$file_name .'<br />'
+ . 'file_size: ' .$file_size .'<br />'
+ . 'file_type: ' .$file_type .'<br />'
+ . '<br />'
+ . 'totalfiles: ' .$totalfiles .'<br />'
+ . 'file_info_count: '.count($file_info) .'<br />'
+ . '<br />';
if (count($file_info) > 0)
{
- $debuginfo .= '<br> file_info[0]='.$file_info[0] .'<br>
file_info[1]='.$file_info[1];
+ $debuginfo .= '<br /> file_info[0]='.$file_info[0] .'<br />
file_info[1]='.$file_info[1];
}
- $debuginfo .= '<br>';
+ $debuginfo .= '<br />';
//print_debug('$debuginfo', $debuginfo);
- if ($fup_debug > 1) { echo '$debuginfo: '.$debuginfo.'<br>'; }
+ if ($fup_debug > 1) { echo '$debuginfo: '.$debuginfo.'<br />'; }
// end DEBUG INFO
$charset = lang('charset');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] email/attach_file.php, 1.28.2.2,
nomail <=