I AM SORRY, I DID NOT WANT TO UPSET ANYBODY...
I was sitting at work having only little time, that´s why I gave you this short (stupid ?) answer.
Of course I will give you all my include codes...
By the way, I am a skilled ASP and .NET programmer (for work) and doing some hobby websites with php privatly. I would say I understand a little about programming, also when php is not my first, favourite or best language.
I did some "debugging" like I always do, when I get errors, but this time it didn´t help, so I did my posting here.
Now I put the "if exists..." around the cpgGetMicroTime function, now the next error comes up, it says that the next function has been previously declared (I left the error now, didn´t remove header and footer from settings).
http://www.tt-bezirk-ulm.de/fotos/If I put the "if exists..." around this function it goes on like that, it brings the same error for the next function (in function.inc.php). So far I think you´re right, it looks like something is included twice.
So here are my includes:
header:<?require_once $_SERVER['DOCUMENT_ROOT'] . '/_include/_klappmenulinks.php';?>
<div id=container>
<?require_once $_SERVER['DOCUMENT_ROOT'] . '/_include/db/inc.php';?>
<div id="header">
<table cellpadding="0" width="98%">
<tr>
<td><h1><a href="/index.php" name=top>Tischtennis Bezirk Ulm</a></h1></td>
<td><?require_once $_SERVER['DOCUMENT_ROOT'] . '/_verwaltung/top.php';?></td>
<td style="text-align:right;">
<h2>
<a href="/aktuelles/aktive/" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'linkmenuaktive')">Aktive</a>
<a href="/aktuelles/jugend/" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'linkmenujugend')">Jugend</a>
<a href="/aktuelles/senioren/" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'linkmenusenioren')">Senioren</a>
</h2></td>
<td style="text-align:right;"> </td>
</tr>
</table>
</div>
<div id="columns-float">
<!-- startprint -->
<div id="centercontent">
Attention, it´s getting a lot...
Its the "_klappmenu.php", it´s only DHTML Code for the Menues, no PHP<div id="linkmenuaktive" class="anylinkcss">
<a href="/aktuelles/aktive/rangliste.php">Rangliste</a>
<a href="/aktuelles/aktive/turniere.php">Turniere</a>
<a href="/aktuelles/aktive/pokal.php">Pokal</a>
<a href="/aktuelles/aktive/termine.php">Termine</a>
</div>
<div id="linkmenujugend" class="anylinkcss">
<a href="/aktuelles/jugend/rangliste.php">Rangliste</a>
<a href="/aktuelles/jugend/turniere.php">Turniere</a>
<a href="/aktuelles/jugend/pokal.php">Pokal</a>
<a href="/aktuelles/jugend/termine.php">Termine</a>
</div>
<div id="linkmenusenioren" class="anylinkcss">
<a href="/ergebnisdienst/senioren.php">Runde</a>
<a href="/aktuelles/senioren/Mannschaftsmeisterschaften.php">Mannschafts-<br>meisterschaften</a>
<a href="/aktuelles/senioren/Bezirksmeisterschaften.php">Einzel-<br>meisterschaften</a>
<a href="/aktuelles/senioren/termine.php">Termine</a>
<a href="/aktuelles/senioren/news.php">Neuigkeiten</a>
</div>
<div id="linkmenuabout" class="anylinkcss">
<a href="/about/adressen.php">Anschriften</a>
<a href="/about/steckbriefe.php">Steckbriefe</a>
<a href="/about/vereine.php">Vereine</a>
<a href="/about/vereinsorte.php">Landkarte</a>
<a href="/about/impressum.php">Impressum/Kontakt</a>
</div>
<div id="linkmenuergebnisdienst" class="anylinkcss">
<a href="/ergebnisdienst/index.php?wer=herren">Herren</a>
<a href="/ergebnisdienst/index.php?wer=damen">Damen</a>
<a href="/ergebnisdienst/index.php?wer=jungen">Jungen</a>
<a href="/ergebnisdienst/index.php?wer=mädchen">Mädchen</a>
<a href="/ergebnisdienst/senioren.php">Senioren</a>
</div>
<div id="linkmenutermine" class="anylinkcss">
<a href="/termine/index.php">Termine Bezirk Ulm</a>
<a href="/termine/turnierkalenderTTVWH.php">TTVWH Turnierkalender</a>
</div>
<div id="linkmenuservice" class="anylinkcss">
<a href="/service/bundesliga.php">Bundesliga</a>
<a href="/service/download.php">Download</a>
<a href="/service/bezirksordnung.php">Bezirksordnung</a>
<a href="/service/linklist.php">Links</a>
<a href="/service/archiv.php">Archiv</a>
</div>
<div id="linkmenuinteraktiv" class="anylinkcss">
<a href="http://www.tt-news.de/forum/forumdisplay.php?f=164" target="_blank">Bezirksforum</a>
<a href="/interaktiv/rss/">RSS News/Termine</a>
<a href="/interaktiv/game.php">Spiele Tischtennis<br>ONLINE</a>
</div>
Now the _db.inc (I´ve posted before)function showDBerror()
{
die("Error" . mysql_errno() . ": " . mysql_error() );
}
$db_server = "myHost";
$db_name = "myDBname";
$db_user = "myDBuser";
$db_passwort = "myDBpwd";
if (! ( $db = @MYSQL_CONNECT($db_server,$db_user,$db_passwort)))
die("Could not connect to DB");
if (! ( mysql_select_db($db_name,$db)))
showDBerror();
Then the "_verwaltung/top.php" (It´s the change for the header view, when you login for my cms, only shows that you are logged in)
echo "<center><font size=1>";
//check if the user is logged in
if($_SESSION['Uname'] == '' || $_SESSION['lp'] == '')
{
// auskommentiert, Login soll nur auf der Verwaltungsseite sein!
// echo "<a href=/_verwaltung/>Login</a>";
}
else
{
echo $_SESSION['Uname'] . ", Du bist eingeloggt. | <a href=/_verwaltung/logout.php><font size=1>Logout</font></a>";
}
if($_SESSION['Uname'] != '' AND $_SESSION['Uname'] != $ADMINUNAME)
{
echo " | <a href=/_verwaltung/verwaltung.php><font size=1>Verwaltung</font></a>";
echo " | <a href=/_verwaltung/profile.php><font size=1>mein Profil</font></a>";
echo " | ";
}
if($_SESSION['Uname'] == $ADMINUNAME && ! $_SESSION['Uname'] == "")
{
echo " | <a href=/_verwaltung/register.php><font size=1>Neues Mitglied anlegen</font></a>";
echo " | <a href=/_verwaltung/members.php><font size=1>Alle Mitglieder sehen</font></a>";
echo " | ";
}
echo "</font></center>";
So far for the header, now the footer
_bottom.php</div> <? // Ende centercontent ?>
<!-- stopprint -->
<div id="leftcontent"><?require_once $_SERVER['DOCUMENT_ROOT'] . '/_left.php';?></div>
</div> <? // Ende columns-float ?>
<div id="rightcontent"><?require_once $_SERVER['DOCUMENT_ROOT'] . '/_right.php';?></div>
<div id="column_padding_after"> </div>
<div id="footer">
<div style="padding: 7px;">
<a href="/search.php"><font size="1">Suchen</font></a> |
<a href="/about/impressum.php"><font size="1">Impressum</font></a>
|
<a href="http://www.ranking-hits.de/user/www.tt-bezirk-ulm.de" title="Google Pagerank" target="_blank"><img src="http://www.ranking-hits.de/?ref=www.tt-bezirk-ulm.de&style=11" border="0" alt="Google Pagerank" /></a>
| <?
$chCounter_visible = 1;
$chCounter_template = <<<TEMPLATE
<font size=1>Besucher gesamt: {V_TOTAL_VISITORS}</font> | <font size=1>Besucher online:</font> <a rel="nofollow" href="{V_COUNTER_URL}/stats/online_users.php" onclick="window.open('{V_COUNTER_URL}/stats/online_users.php','online_users','width=700,height=350,screenX=0,screenY=0,resizable=yes,scrollbars=yes'); return false;" target="online_users"><font size=1>{V_VISITORS_CURRENTLY_ONLINE}</font></a>
TEMPLATE;
include $_SERVER['DOCUMENT_ROOT'] . '/interaktiv/counter/counter.php' ;?></div>
</div>
<? // Ende container ?>
Now it may get complicated for you, I have a _right.php and a _left.php for the style on all pages:
_left.php (no php code)
<a href="/">
<img border="0" src="/images/logos/LogoUlm2006.jpg" width="130" height="174"></a>
<p> </p>
<p><a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'linkmenuabout')">Über uns</a></p>
<p><a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'linkmenuergebnisdienst')">Ergebnisdienst</a></p>
<p><a href="/news/index.php">News</a></p>
<p><a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'linkmenutermine')">Termine</a></p>
<p><a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'linkmenuservice')">Service</a></p>
<p><a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'linkmenuinteraktiv')">Interaktiv</a></p>
_right.php (little php code, which doesn´t effect anything else)
<a target="_blank" href="http://www.ttvwh.de">
<img border="0" src="/images/logos/LOGO_TTVWH_NEW_small.jpg" width="130" height="90"></a>
<p>
<a target="_blank" href="http://ergebnis.ttvwh.de/">
<img border="0" src="/images/logos/click-tt-klein.gif" width="120" height="40"></a></p>
<p><script type="text/javascript"><!--
// GOOGLE ADSENSE CODE</script>
<? $seite = "http://".$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'] ; ?>
<p align="center">
<a href="#" onclick="openWindow('/print.php?seite=<?echo $seite;?>', 'PRINT', '675', '750', 'center', 'middle', false, 'scroll');">
<img border="0" src="/images/printer.gif" width="18" height="15" alt="Seite drucken"></a>
<a href="#" onclick="openWindow('/print.php?seite=<?echo $seite;?>', 'PRINT', '675', '750', 'center', 'middle', false, 'scroll');">Seite drucken</a></p>
<p align="center">
<a href="/search.php">
<img border="0" src="/images/lupe1.gif" width="15" height="15"></a>
<a href="/search.php">Suchen</a></p>
<p align="center">
</p>
</div>
At the end of the _bottom.php I included the counter (chCounter 3.1.3)
I don´t want to upset you again, but I think you really don´t need the code for this application. I´ve been searching fulltext all over my pages and there definitly is no other "microtime" in it, specially not in the chCounter Application.
Please tell me, if you also want to see this code...
And I´ve also been searching through my pages, if there´s some "double include" that could cause some loop, but I´ve also not found anything.
Please don´t be mad with me any more, of course I want your help. And maybe I´ve also showed you, that I understand a little about programming, but this error is really making me crazy.
Do you have an idea, where the "double include" (or whatever else it is) could be?
Thanks in advance for all the work you got with me...
Steff
PS: Here are all my websites
http://www.okelmann.com my private Site (ASP)
http://www.esc-ulm.de my Sportsclub
http://www.tt-bezirk-ulm.de the association for my sports