December 2006


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:
  1. Header("Expires: Wed, 11 Nov 1998 11:11:11 GMT\r\n".
  2. "Cache-Control: no-cache\r\n".
  3. "Cache-Control: must-revalidate");

to this

PHP:
  1. Header("Cache-Control: no-cache");
  2. Header("Cache-Control: must-revalidate");

Bookmark this article

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
Bookmark this article

AWStats processed statistics are stored in /var/lib/awstats.

The filename is of the form awstats<mm><yyyy>.<domain>.txt

Bookmark this article

The secret is the nm function. For the moment, lets just say you need the command nm -g /path/to/library.so|grep " T "

Bookmark this article

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:
  1. <?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:
  1. <ul id="topnav"><form id="archiveform" action="">
  2. ...
  3.     <li>|
  4.     <SELECT NAME="archive_chrono" onchange="window.location =                         (document.forms.archiveform.archive_chrono[document.forms.archiveform.archive_chrono.selectedIndex].value);">
  5.     <OPTION SELECTED VALUE="">Other months...</OPTION>
  6.     <?php get_archives('monthly', '', 'option', '', '', TRUE); ?>
  7.     </SELECT>
  8.     </li></form>
  9.     </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:
  1. <table><?php get_links('-1', '<tr><td align="center">', '<hr></td></tr>', '<br />', TRUE); ?></table>

styles.css

Added definitions for table

CODE:
  1. #sidebar table
  2. {
  3.         list-style-type: none;
  4.         padding: 5px;
  5.         margin: 0;
  6.         font-size: 0.9em;
  7.         padding-bottom:3em;
  8.         background:#F3F6ED url(img/sidenav_bottom.jpg) no-repeat bottom;
  9.         border:#E1D6c6 1px solid;
  10.         border-top:#f3f6ed 1px solid;
  11. }
  12. #sidebar table tr th, #sidebar table tr td
  13. {
  14.         font-size: 1em;
  15.         text-align: center;
  16.         background-color: #ffffff;
  17. }

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:
  1. #topnav form select
  2. {
  3.         font-size:0.7em;
  4. }

search.php

Removed bug for favicon. Path was was /favicon.ico/bullet.ico

HTML:
  1. <link rel="shortcut icon" href="/favicon.ico" />

Bookmark this article

Next Page »