Location: PHPKode > projects > SiteX > sitemap.php
<?PHP

ob_start();

session_start();



include("includes/globals.php.inc");

include("includes/functions.php");

include("lang/English.php");

if(strtolower($sxSetup['Language']) != 'english') include("lang/".$sxSetup['Language'].".php");

include("themes/$THEME_FOLDER/config.php.inc");

include("themes/$THEME_FOLDER/header.php");

?>

<style type="text/css"> 

legend{

color: <?PHP echo $sxTheme['ColorText']; ?>

}

</style>

  <div class="bodyWrapper">

	<h1><?php echo $sxLang['SiteMap']; ?></h1>

	<?PHP if($sxSetup['Sitemap'])

	{ 

	

	?>

	

	<table width="100%" cellspacing="20" cellpadding="0"><tr><td width="50%" valign="top">

	<?PHP if(componentActive(1)){ ?>

	<fieldset>

	<legend><?PHP echo getComponentName("1"); ?></legend>

	<ul type="square"><li><a href="journal.php"><?PHP echo getComponentName("1"); ?></a>

	</li>

	<li>

	<a href="<?PHP echo $sxSetup['Url'].'/content/'; ?>rss.xml">RSS</a>

	</li></ul>

	</fieldset><br />

	<?php }?>

	<?PHP if(componentActive(3)){ ?>

	<fieldset>

	<legend><?PHP echo getComponentName("3"); ?></legend>

	<ul type="square"><li><a href="guestbook.php"><?PHP echo getComponentName("3"); ?></a>

	</li>

	<li><a href="guestbook_sign.php"><?php echo $sxLang['GuestbookSign']; ?> <?PHP echo getComponentName("3"); ?></a>

	</li></ul>

	</fieldset><br />

	<?php }?>

	<?PHP if(componentActive(4)){ ?>

	<fieldset>

	<legend><?PHP echo getComponentName("4"); ?></legend>

	<ul type="square"><li><a href="polls.php"><?PHP echo getComponentName("4"); ?></a>

	</li></ul>

	</fieldset><br />

	<?php }?>

	<?PHP if(componentActive(5)){ ?>

	<fieldset>

	<legend><?PHP echo getComponentName("5"); ?></legend>

	<ul type="square"><li><a href="links.php"><?PHP echo getComponentName("5"); ?></a>

	</li></ul>

	</fieldset><br />

	<?php }?>

	<?PHP if(componentActive(7)){ ?>

	<fieldset>

	<legend><?PHP echo getComponentName("7"); ?></legend>

	<ul type="square"><li><a href="contact.php"><?PHP echo getComponentName("7"); ?></a>

	</li></ul>

	</fieldset><br />

	<?php }?>

	<?PHP if(componentActive(8)){ ?>

	<fieldset>

	<legend><?PHP echo getComponentName("8"); ?></legend>

	<ul type="square"><li><a href="calendar.php"><?PHP echo getComponentName("8"); ?> - standard view</a>

	</li>

	<li><a href="calendar_events.php"><?PHP echo getComponentName("8"); ?> - events list view</a> 

	</li></ul>

	</fieldset><br />

	<?php }?>

	<?PHP if(componentActive(9)){ ?>

	<fieldset>

	<legend><?PHP echo getComponentName("9"); ?></legend>

	<ul type="square"><li><a href="contact.php"><?PHP echo getComponentName("9"); ?></a>

	</li></ul>

	</fieldset><br />

	<?php }?>

	<?PHP if($sxSetup['ShowLogin']){ ?>

	<fieldset>

	<legend><?PHP echo $sxLang['AdminLinkUserOptions']; ?></legend>

	<ul type="square">

	<?PHP if(($sxSetup['AllowSignup'])AND(!loggedIn())) { ?>

	<li><a class="loginBoxLinks" href="signup.php"><?PHP echo $sxLang['UserButtonSignup']; ?></a></li>

	<?PHP } ?>

	<?PHP if(!loggedIn()){ ?>

	<li><a href="login.php"><?PHP echo $sxLang['UserButtonLogin']; ?></a>

	</li>

	<li><a href="password.php"><?PHP echo $sxLang['UserButtonPassword']; ?></a> 

	</li>	

	<?php } ?>

	<?PHP if(loggedIn()){ ?>

	<li><a href="logout.php"><?PHP echo $sxLang['Logout']; ?></a>

	</li>

	<?php } ?>

	</ul>

	</fieldset><br />

	<?php }?>

	<?PHP if($sxSetup['ShowSearch']){ ?>

	<fieldset>

	<legend><?PHP echo $sxLang['HomepageSearch']; ?></legend>

	<ul type="square"><li><a href="search.php"><?PHP echo $sxLang['HomepageSearch']; ?></a>

	</li></ul>

	</fieldset><br />

	<?php }?>

	</td>

	<td width="50%" valign="top" ><fieldset>

	<legend><?php echo $sxLang['Pages']; ?></legend>

	<ul>

	<?PHP

	

	$query2 = "SELECT id, name FROM $DB_Pages ORDER BY name ASC";

	$result2 = mysql_query($query2, $Link) or queryError("16", mysql_error());

	while($ROW2 = mysql_fetch_object($result2))

    {

            

            if(protectPrivatePage($ROW2->id, $THIS_USER) == TRUE)

            echo '<li><a href="page.php?pageid=' . $ROW2->id .'">' . $ROW2->name .'</a></li>'."\n";

    }

		?>

	</ul>

	</fieldset><br />

	

	<?PHP if(componentActive(2)){ ?>

	<fieldset>

	<legend><?PHP echo getComponentName("2"); ?></legend>

		<ul type="square"><li><a href="pictures.php"><?PHP echo getComponentName("2"); ?></a></li>

		

	<?php

	echo '<ul>';

	

	$query3 = "SELECT id, name FROM $DB_Photos_Albums ORDER BY position ASC";

	$result3 = mysql_query($query3, $Link) or queryError("16", mysql_error());

	while($ROW3 = mysql_fetch_object($result3))

    {

            if(sxAlbumUserAccess($ROW3->id, $THIS_USER) == TRUE)

            echo '<li><a href="album.php?albumid=' . $ROW3->id . '" title="' . htmlspecialchars($ROW3->name) . '">' .  htmlspecialchars($ROW3->name) . '</a></li>';

    }



	echo '</ul>';

	?>

		</ul>

	</fieldset><br />

		<?php }?>

		<?PHP if(componentActive(6)){ ?>

	<fieldset>

	<legend><?PHP echo getComponentName("6"); ?></legend>

		<ul type="square"><li><a href="forums.php"><?PHP echo getComponentName("6"); ?></a></li>

		

	<?php

	echo '<ul>';

	$query4 = "SELECT * FROM $DB_Forums_Groups ORDER BY position ASC";

	$result4 = mysql_query($query4, $Link) or queryError("16", mysql_error());

	while($ROW4 = mysql_fetch_object($result4))

    {

            if(forumAccess($ROW4->id, $THIS_USER) == TRUE)

            echo '<li><a href="forums_view.php?forumid=' . $ROW4->id . '" title="' . htmlspecialchars($ROW4->name) . '">' .  htmlspecialchars($ROW4->name) . '</a></li>';

    }

	echo '</ul>';

	?>

		</ul>

	</fieldset><br />

		<?php }?>

	</td>

	</tr></table>

<?php } 

	else $message = $sxLang['SiteMapDisabled'];

?>	

	<?PHP if($message) echo '<div class="message">' .$message . '</div>'; ?>

  </div>

<?PHP

include("themes/$THEME_FOLDER/footer.php");

ob_end_flush();

?>
Return current item: SiteX