Location: PHPKode > projects > Cadence Guestbook Host > cadence/sources/admin/idx.php
<?php

/************************************
 * Cadence
 * Remotely Hosted Guestbook Script.
 * (c) 2006, Dennis Pedrie
 * www.CadenceBook.com
 * idx.php
 ***********************************
 * Cadence Guestbook is licensed under
 * a Creative Commons License.
 * More information is available by visiting
 * http://creativecommons.org/licenses/by/3.0/
 * or the LICENSE file in the Cadence Root Folder
 ***********************************/

if(!defined('IN_CADENCE')) {
	trigger_error("You may not access this file directly",E_USER_ERROR);
}

$do = $post->clean_var($_GET['do']);
if($do == "editnote") {
	$notes = $post->clean_var($_POST['notes']);
	$db->query($q->acpnotes($notes));
	$tpl->assign("sysmsg","ACP Notes Updated!");
	$tpl->assign("linkback","index.php?book=$book&amp;act=admin&amp;acpact=idx");
	$tpl->display("system/admin/sysmsg.tpl");
	$tpl->display("system/admin/footer.tpl");
	exit;
}

echo "<h3>Control Panel Home</h3>
<p>Hello. Welcome to your Cadence Guestbook Control Panel. From here you can manage themes, posts, users, and more.
Why not click one of the links to your right to begin?</p>
";

//Flood Warning
if($gbook->flood < 30) {
	$warning = "Your Flood Control is set to ". $gbook->flood ." seconds. This is lower than the recommended minimum of 30 seconds. You can correct this by clicking below.";
	$tpl->assign("sysmsg",$warning);
	$tpl->assign("linkback","index.php?book=$book&amp;act=admin&amp;acpact=options");
	$tpl->display("system/admin/sysmsg.tpl");
}

echo "<div id='news'><h3>News</h3>
<span style='font-size:10px;'>Latest Host News will be displayed here</span><br />";
$news = $admin->acpnews();
foreach($news as $news) {
	echo $news;
}
echo "</div><br />
<div id='notes'><h3>Notes</h3>
<span style='font-size:10px;'>Use the Admin Notes feature to keep track of information you don't want to forget.</span><br />
". $admin->acpnotes() ."</div>";
?>
Return current item: Cadence Guestbook Host