I could not log in to my webmail. I kept getting the error
ERROR (2): Header may not contain more than a single header, new line detected. (/path/to/webmail/inc/inc.php:156)
I am running Uebimiau version 2.7.10 and there is a bug in the file inc/inc.php. You need to change
PHP:
-
Header("Expires: Wed, 11 Nov 1998 11:11:11 GMT\r\n".
-
"Cache-Control: no-cache\r\n".
-
"Cache-Control: must-revalidate");
to this
PHP:
-
Header("Cache-Control: no-cache");
-
Header("Cache-Control: must-revalidate");
Add this article to your bookmarks












I was messing around with FTP and needed to decode the log file. It contains lines such as
Thu Nov 9 03:11:13 2006 1 xxx.xxx.xxx.xxx 35 /ftp/pub/anonymous/incoming/test.txt b _ i a IEUser@ ftp 0 * c
but what does this mean? Time to find out... Off to the WU-FTP website
|
Field
|
Width
|
Meaning
|
Sample
|
|
current-time
|
23 |
the current local time in the form "DDD MMM dd hh:mm:ss YYYY". Where DDD is the day of the week, MMM is the month, dd is the day of the month, hh is the hour, mm is the minutes, ss is the seconds,
and YYYY is the year.
|
Thu Nov 9 03:11:13 2006 |
|
transfer-time
|
Variable |
the total time in seconds for the transfer.
|
1
|
|
remote-host
|
Variable |
the remote host name |
xxx.xxx.xxx.xxx |
| file-size |
Variable |
the size of the transferred file in bytes |
35 |
| file-name |
Variable |
the name of the transferred file |
/ftp/pub/anonymous/incoming/test.txt |
| transfer-type |
1 |
a single character indicating the type of transfer. Can be one of:
a for an ascii transfer
b for a binary transfer |
b |
| special-action-flag |
Variable |
one or more single character flags indicating any special action taken.. Can be one or more of:
C file was compressed
U file was uncompressed
T file was tar'ed
_ no action was taken |
_ |
| direction |
1 |
the direction of the transfer. Can be one of:
o outgoing
i incoming |
i |
| access-mode |
1 |
the method by which the user is logged in. Can be one of:
a (anonymous) is for an anonymous guest user.
g (guest) is for a passworded guest user. (see the guestgroup command in ftpaccess(5) )
r (real) is for a local authenticated user.
|
a |
| username |
Variable |
the local username, or if guest, the ID string given |
IEUser@ |
| service-name |
Variable (Typically 3) |
the name of the service being invoked, usually FTP |
ftp |
| authentication-mode |
1 |
the method of authentication used.
Can be one of:
0 none
1 RFC931 Authentication
|
0 |
| authenticated-user-id |
Variable |
the user id returned by the authentication method. A * is used if an authenticated user id is not available. |
* |
| completion-status |
1 |
a single character indicating the status of the transfer. Can be one of:
c complete transfer
i incomplete transfer
|
c |
Add this article to your bookmarks












I've been playing with the connections theme by Patricia Müller. There have been several minor changes,
index.php
Moved Links into sidebar.php
header.php
Limited archives to current month so that menu does not wrap
PHP:
-
<?php get_archives('monthly', '1', 'html', '', '', TRUE);
Added drop down menu. Wrapping all list items within <form> </form> declarations prevents drop down menu appearing on a separate line.
HTML:
-
<ul id="topnav"><form id="archiveform" action="">
-
...
-
-
<SELECT NAME="archive_chrono" onchange="window.location = (document.forms.archiveform.archive_chrono[document.forms.archiveform.archive_chrono.selectedIndex].value);">
-
<OPTION SELECTED VALUE="">Other months...
</OPTION>
-
<?php get_archives('monthly', '', 'option', '', '', TRUE); ?>
-
</SELECT>
-
</li></form>
-
</ul>
Reorder from Home, Login, Archives, Links, About, Contact to Login, About, Contact, Links, Recent, Archives, DropDown
sidebar.php
Moved Links from index.php
Changed order of elements from Categories, Monthly, Pages, Search to Search, Categories, Links, Monthly, Pages
Changed Links from unordered list to table so that I could centre graphics
HTML:
-
<table><?php get_links('-1', '<tr><td align="center">', '<hr></td></tr>', '<br />', TRUE); ?></table>
styles.css
Added definitions for table
CODE:
-
#sidebar table
-
{
-
list-style-type: none;
-
padding: 5px;
-
margin: 0;
-
font-size: 0.9em;
-
padding-bottom:3em;
-
background:#F3F6ED url(img/sidenav_bottom.jpg) no-repeat bottom;
-
border:#E1D6c6 1px solid;
-
border-top:#f3f6ed 1px solid;
-
}
-
#sidebar table tr th, #sidebar table tr td
-
{
-
font-size: 1em;
-
text-align: center;
-
background-color: #ffffff;
-
}
Note that in order to define the <td> element, I needed to define the whole tree table tr td. These definitions are based on those for #sidebar ul.
Added definition for select so that drop down menu fits within the top menu
CODE:
-
#topnav form select
-
{
-
font-size:0.7em;
-
}
search.php
Removed bug for favicon. Path was was /favicon.ico/bullet.ico
HTML:
-
<link rel="shortcut icon" href="/favicon.ico" />
Add this article to your bookmarks











