No post for more than one month. Well, I currently simply don’t have the time to do something exciting :). For now, the new Ubuntu Breezy Backports repository must suffice. It contains the Mono packages from Ubuntu Dapper, compiled for the latest Breezy on i386. There are also packages for Anja on i386 and AMD64 available. All the packages are needed by our robots.
Please add the following lines to your /etc/apt/sources.list if you’re interested in the backports or Anja:
deb http://npw.net/debian unstable main
deb-src http://npw.net/debian unstable main
The packages are not signed since they were just recompiled!
In wp-admin/edit-pages.php line 19:
AND ($wpdb->users.user\_level <= $user_level OR $wpdb->posts.post\_author = $user_ID)
What’s going wrong here? I suppose these mails are enogh for one day. Even though the average information content is near zero: bounces…
Hack for classes.php in line 315 (1.5.2). It allows two (sub-)pages to have the same name (slug):
$temp = dirname(
str_replace(
'%2F',
'/',
urlencode($q['pagename'])));
$names = explode('/', $temp);
$parent = null;
foreach ($names as $name) {
$name = sanitize_title($name);
$query = "SELECT ID " .
"FROM $wpdb->posts " .
"WHERE post_name='$name'" .
(isset($parent) ?
" AND post_parent=$parent" :
"");
$parent = null;
$parent = $wpdb->get_var($query);
if (!isset($parent)) {
// an error occured, continue as normal
$parent = null;
break;
}
}
$q['pagename'] = sanitize_title(
basename(
str_replace(
'%2F',
'/',
urlencode($q['pagename']))));
$q['name'] = $q['pagename'];
$where .=
" AND post_name = '" .
$q['pagename'] .
"'" .
(isset($parent) ?
" AND post_parent=$parent" :
"");
Another hack: allow users with user level >= 5 to edit other user’s posts/pages. This was required for our department’s website. post-functions.php functions-post.php line 352 (1.5.2):
if ((($user_id == $post_author_data->ID) &&
!($post->post_status == 'publish' &&
$author_data->user_level < 2)) ||
($author_data->user_level >
$post_author_data->user_level) ||
(($author_data->user_level >=
$post_author_data->user_level) &&
($author_data->user_level >= 5)) ||
($author_data->user_level >= 10) )
{
return true;
} else {
return false;
}
I tentatively switched my nameservers to the Open Root Server Network (OSRN) root servers. Seems to be a promising choice, so let’s give it a try.