в движке используется, никуда не денешься - надо с ним работать...
версия пхп 4.3.10
разницы нет, что в $SOURCE, но если так настаиваете, то вот
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
require_once "sys/define.php";
include "sys/lib/templates.php";
include "sys/lib/MYSQLManager.php";
include "sys/PageManagerBase.php";
include "sys/lib/PageManager4.php";
$_p = $_REQUEST['p'];
$page_title = '??????? ??????? ???????';
if ( $_p )
{
require_once ( $_SERVER['DOCUMENT_ROOT'].'/sys/include/inc_manager.inc.php' );
$inc = new inc_manager ($_SERVER['DOCUMENT_ROOT']);
$inc->inc("products");
$db = new db_interface ( constant("DBHostName"), constant("DBUserName"), constant("DBPassword"), constant("DBName") );
$_page = array ( );
$__p = addslashes( $_p );
$query = '
SELECT
*
FROM
`Pages`
WHERE
`id` = "' . $__p . '" OR ( NOT ISNULL(`ShortName`) AND `ShortName` LIKE "' . $__p . '" )
GROUP BY
`id`
';
$rs = $db->query($query);
$_page['title'] = empty( $rs[0]['page_title'] ) ? $rs[0]['Title'] : $rs[0]['page_title'];
$_page['description'] = ( $rs[0]['description'] ) ? $rs[0]['description'] : $_page['title'];
$_page['keyword'] = ( $rs[0]['keyword'] ) ? $rs[0]['keyword'] : preg_replace( '~\.| ~', ', ', $_page['title'] ) . ', ' . $_page['title'];
unset ( $db );
unset ( $inc );
}
else
{
$_page['description'] = '' . $page_title;
$_page['keyword'] = preg_replace( '~\.| ~', ', ', $page_title ) . ', ' . $page_title;
}
?>
<html>
<META name="Description" content="<?php print $_page['description'] . ' - ' . $page_title; ?>" />
<META name="Keywords" content="<?php print $_page['keyword']; ?>" />
<title><?php
print ( $_page['title'] ) ? $_page['title'] . ' - ' : '';
print $page_title;
?></title>
<script language="JavaScript">
function menu(a) {
_t = document.getElementById('tab_'+a);
_s = document.getElementById('sel_'+a);
for (i=1; i<7; i++) {
if (i != a) {
t = document.getElementById('tab_'+i);
t.style.display = 'none';
s = document.getElementById('sel_'+i);
s.style.display = 'none';
}
}
_t.style.display = 'block';
_s.style.display = 'block';
}
</script>
</head>
<body>
<div id="main1">
<div id="main">
<!--header begin-->
<? template(1, "header") ?>
<!--header end-->
<!--menu start-->
<? template(4, "MainMenu") ?>
<!--menu end-->
<!--topmenu start-->
<? template(2, "MainMenu") ?>
<!--topmenu end-->
<!--main content-->
<table cellpadding="0" cellspacing="0" id="mid" border=0>
<tr><td valign="top">
<table cellpadding="0" cellspacing="0" border=0 width=100%>
<tr>
<!-- 2 ??????? ????? -->
<td valign="top">
<!--<? template(53, "text") ?>-->
<!-- ?????? ? ??????? ????? -->
<? template(5, "DynComponent") ?>
</td>
<td valign="top">
<? template(6, "DynComponent") ?>
</td>
</tr><tr><td valign="top">
<? template(52, "DynComponent") ?>
</td><td valign="top">
<? template(62, "DynComponent") ?>
</td></tr></table>
</td>
<td valign="top" id="col3">
<!-- ????????? ????? -->
<? template(8, "DynComponent") ?>
</td>
<td valign="top">
<!-- ?????? -->
<? template(7, "DynComponent") ?>
<!-- ????? -->
<? template(10, "DynComponent") ?>
</td>
</tr>
</table>
<!--main content-->
<!--copyrights-->
<? template(3, "footer") ?>
</div>
</div>
</body>
</html>