From what I remember of the Biorust scripts, there does not appear to be an easy way out.
But wait a minute... if you can afford to do the logic twice, then there might be something. Just make your specialized scripts (those that get included) so that they can be included twice while doing two different things. That way, things do not get overly complicated and yet you still achieve a decent result.
I don't feel like explaining any further, so here is an example of what I'm talking about.
index.php:
PHP Code:
<?php
function page_code() {
switch($_GET['page']) {
case 'xyz':
require './page_xyz.php';
break;
default:
require './page_index.php';
break;
}
}
?>
<html>
<head>
<title>[BioRUST] :: <?php page_code(); ?></title>
</head>
<body>
<?php
define('IN_BODY', '');
page_code();
?>
</body>
</html>
page_xyz.php:
PHP Code:
<?php
if(!defined('IN_BODY'))
echo 'Page XYZ\'s Title';
else {
?>
<!-- Your content here -->
<?php
}
?>
So basically, you would put that code in the first file where the title known for sure, be it
page_xyz.php or
tutorial_85.php
Hope you can achieve something useful out of this.