This is what I have now that is showing the error.

<?php
// Whoops! If you see this text in your browser,
// your web hosting provider has not installed PHP.
//
// You will be unable to use UBB until PHP has been properly installed.
//
// You may wish to ask your web hosting provider to install PHP.
// Both Windows and Unix versions are available on the PHP website,
// http://www.php.net/
//
//
//
// Ultimate Bulletin Board
// Script Version 7.4
//
// Program authors: Rick Baker, Charles Capps
// Copyright (C) 2008 Groupee, Inc..
//
// You may not distribute this program in any manner, modified or
// otherwise, without the express, written consent from
// Groupee, Inc..
//
// You may make modifications, but only for your own use and
// within the confines of the UBB License Agreement
// (see our website for that).
//
// Note: If you modify ANY code within your UBB, we at Groupee, Inc
// cannot offer you support -- thus modify at your own peril smile

// Require the library
require ("../libs/admin.inc.php");
require ("../languages/{$config['LANGUAGE']}/admin/generic.php");

// -----------------
// Get the user info

$userob = new user;
$user = $userob -> authenticate("USER_DISPLAY_NAME");

$admin = new Admin;

$admin->doAuth();

$query = "
UPDATE {$config['TABLE_PREFIX']}CACHE
SET CACHE_VALUE = ''
WHERE CACHE_FIELD not in ('max_online','max_online_timestamp')
";
$sth = $dbh->do_query($query,__LINE__,__FILE__);

// Rebuild the content islands
rebuild_islands(1);

// Rebuild the rss feeds
generate_rss_feeds(1);

build_forum_cache();

// Rebuild any custom tags
build_custom_tag_cache();

// set all PM counters to zero.
$query = "
update {$config['TABLE_PREFIX']}USER_PROFILE
set USER_TOTAL_PM=0,
USER_PM_TOTALS=0
";
$sth = $dbh->do_query($query,__LINE__,__FILE__);

// cycle through all user ID's that have New PM's.

$query = "
SELECT count(*) AS count, t1.USER_ID
FROM {$config['TABLE_PREFIX']}PRIVATE_MESSAGE_USERS AS t1,
{$config['TABLE_PREFIX']}PRIVATE_MESSAGE_TOPICS AS t2
WHERE t1.TOPIC_ID = t2.TOPIC_ID
AND t2.TOPIC_LAST_REPLY_TIME > t1.MESSAGE_LAST_READ
GROUP BY t1.USER_ID
";

$sti = $dbh->do_query($query,__LINE__,__FILE__);
while (list($total_unread,$PM_UserId) = $dbh -> fetch_array($sti)) {
$query = "
update {$config['TABLE_PREFIX']}USER_PROFILE
set USER_TOTAL_PM = ?
where USER_ID = ?
";
$dbh->do_placeholder_query($query,array($total_unread,$PM_UserId),__LINE__,__FILE__);
}

$query = "
SELECT count( USER_ID ) AS cnt,USER_ID
FROM ubbt_PRIVATE_MESSAGE_USERS
GROUP BY USER_ID
";
$sti = $dbh->do_query($query,__LINE__,__FILE__);
while (list($total_PM,$PM_UserId) = $dbh -> fetch_array($sti)) {
$query = "
update {$config['TABLE_PREFIX']}USER_PROFILE
set USER_PM_TOTALS = ?
where USER_ID = ?
";
$dbh->do_placeholder_query($query,array($total_PM,$PM_UserId),__LINE__,__FILE__);
}

$userob->clear_cached_perms();

admin_log("CLEAR_CACHE","");


$admin->redirect($ubbt_lang['CACHE_CLEARED'],"{$config['BASE_URL']}/admin/cache.php",$ubbt_lang['CACHE_F_LOC']);

?>