Zydecode Studio

Archive for the 'PHP' Category

phpMyAdmin CSS/theme not displayed

Wednesday, October 4th, 2006

This little bug is a pain, but luckily only shows up on certain configs…
So far, it seems to be an issue that only surfaces with Apache2.0 and PHP5, on Windows.. and is caused by the chdir(..) call - the main one being phpmyadmin.css.php. Change the “..” to your root directory, and all should be solved.
BTW [...]

Wordpress on IIS

Saturday, August 5th, 2006

replace /? with /index.php?
replace ?cat with index.php?cat
function wpautop($pee, $br = 1) : set 1 to 0

add ellipses and lengthen Merak subject line

Sunday, October 16th, 2005

add this to readmail.php to add ellipses to subjects longer than ’subjectlimit.

if ($messages[$i]["SUBJECT"]) {
$createdata.= htmlspecialchars(substr($messages[$i]["SUBJECT"], 0, subjectlimit));
$createdata.= (strlen($messages[$i]["SUBJECT"])>(subjectlimit-3)) ? ‘…’ : ”;
} else { $createdata.= $none; }