Yesterday i spent about 1 hours changing each individual HTML files.
i suggest there should be a header and a fotter file to automatically change them all
Moderator: Scooby
###########################
#### The faq.php file ####
###########################
$template = new MyredTemplate("html/$theme/faq.html");
//--
include("header.php");
include("left.php");
//--
$template->assign("text_1", $text_1);
...
...
...
$template->assign("startpage", $startpage);
$template->assign("title", $pagetitle);
$template->myred_print() or die($template->error);
//--
include("footer.php");
//--
exit;
<?
$VAR = str_replace('myred/',"",$_SERVER['REQUEST_URI']);
$AOFF = "";
$mtext_1 = (eregi("home",$VAR))? "<b> HOME </b>" : "<a href='http://www.bizz.cc/myred/home.php'> HOME </a>";
$mtext_2 = (eregi("register",$VAR))? "<b> Sign Up </b>" : "<a href='http://www.bizz.cc/myred/register.php'> Sign Up </a>";
$mtext_3 = (eregi("members",$VAR))? "<b> Members </b>" : "<a href='http://www.bizz.cc/myred/members.php'> Members </a>";
$mtext_4 = (eregi("features",$VAR))? "<b> Features </b>" : "<a href='http://www.bizz.cc/myred/features.php'> Features </a>";
$mtext_5 = (eregi("hosting",$VAR))? "<b> HOSTING </b>" : "<a href='http://www.bizz.cc/myred/hosting.php'> HOSTING </a>";
$mtext_6 = (eregi("faq",$VAR))? "<b> FAQ </b>" : "<a href='http://www.bizz.cc/myred/faq.php'> FAQ </a>";
$mtext_7 = (eregi("contact",$VAR))? "<b> Contact </b>" : "<a href='http://www.bizz.cc/myred/contact.php'> Contact </a>";
$mtext_8 = (eregi("whois",$VAR))? "<b> Who Is </b>" : "<a href='http://www.bizz.cc/myred/whois.php'> Who Is </a>";
$mtext_9 = (eregi("latest",$VAR))? "<b> Latest </b>" : "<a href='http://www.bizz.cc/myred/latest.php'> Latest </a>";
$mtext_10 = (eregi("topsites",$VAR))? "<b> Top Sites </b>" : "<a href='http://www.bizz.cc/myred/topsites.php'> Top Sites </a>";
$mtext_11 = (eregi("tell",$VAR))? "<b> Tell a Friend </b>" : "<a href='http://www.bizz.cc/myred/tell.php'> Tell a Friend </a>";
$mtext_12 = (eregi("dir",$VAR))? "<b> Directory </b>" : "<a href='http://www.bizz.cc/myred/dir.php'> Directory </a>";
$mtext_13 = (eregi("affiliates",$VAR))? "<b> Affiliates </b>" : "<a href='http://www.bizz.cc/myred/affiliates.php'> Affiliates </a>";
$mtext_14 = (eregi("resources",$VAR))? "<b>Web Resources</b>" : "<a href='http://www.bizz.cc/myred/resources.php'>Web Resources</a>";
$mtext_15 = (eregi("forums",$VAR))? "<b> FORUMS </b>" : "<a href='http://www.googlepayments.co.in' target='_blank'> FORUMS </a>";
?>
<table cellspacing=0 cellpadding=0 width="760" align=center border=0>
<tbody>
<tr>
<td valign=top width="120" height="290">
<table cellspacing=2 cellpadding=0 width="100%" align=left border=0>
<tbody>
<tr>
<td valign=top nowrap height=8>
<!-- Search Google -->
<!-- insert google search box-->
<!-- Search Google -->
</td>
</tr>
<tr>
<td class="sidemenu" nowrap><?=$mtext_1?></td>
</tr>
<tr>
<td class="sidemenu" nowrap><?=$mtext_2?></td>
</tr>
<tr>
<td class="sidemenu" nowrap><?=$mtext_3?></td>
</tr>
<tr>
<td class="sidemenu" nowrap><?=$mtext_4?></td>
</tr>
<tr>
<td class="sidemenu" nowrap><?=$mtext_5?></td>
</tr>
<tr>
<td class="sidemenu" nowrap><?=$mtext_15?></td>
</tr>
<tr>
<td class="sidemenu" nowrap><?=$mtext_6?></td>
</tr>
<tr>
<td class="sidemenu" nowrap><?=$mtext_7?></td>
</tr>
<tr>
<td class="sidemenu" nowrap><?=$mtext_8?></td>
</tr>
<tr>
<td class="sidemenu" nowrap><?=$mtext_9?></td>
</tr>
<tr>
<td class="sidemenu" nowrap><?=$mtext_10?></td>
</tr>
<tr>
<td class="sidemenu" nowrap><?=$mtext_11?></td>
</tr>
<tr>
<td class="sidemenu" nowrap><?=$mtext_12?></td>
</tr>
<tr>
<td class="sidemenu1" nowrap><?=$mtext_13?></td>
</tr>
<tr>
<td class="sidemenu2" nowrap><?=$mtext_14?></td>
</tr>
<tr>
<td>
<br><br>
<!-- Search Google -->
<!-- insert google adsense-->
<!-- Search Google -->
</td>
</tr>
</table>
</td>
Users browsing this forum: No registered users and 4 guests