msg( "error", $lang['index_denied'], $lang['mod_not_found'] );
$xfieldsdata = xfieldsdataload($row['xfields']);
$uploads = "/uploads/posts/";
$xfieldsdata['poster'] = $uploads . $xfieldsdata['poster'] ;
$tpl->set( '{poster_url}', $xfieldsdata['poster'] );
} elseif($cronmode == "optimize") {
$arr = array();
$tables = "";
$db->query( "SHOW TABLES" );
while ( $row = $db->get_array() ) {
if( substr( $row[0], 0, strlen( PREFIX ) ) == PREFIX ) {
$tables .= ", `" . $db->safesql( $row[0] ) . "`";
}
}
$db->free();
$tables = substr( $tables, 1 );
$query = "OPTIMIZE TABLE ";
$query .= $tables;
$db->query( $query );
die ("done");
} elseif($cronmode == "allow_index") {
$db->query( "UPDATE " . PREFIX . "_post_extras SET disable_index = '0' " );
die ("done");
} elseif($cronmode == "antivirus") {