<?php
/*
DFD Cart
www.DFDcart.com
DragonFrugal.com - Web Site Solutions
Copyright (c) 2007 DragonFrugal.com
Released under the GNU General Public License
*/
/////////////////////////////////////////////////
// Turn off all error reporting
error_reporting(0);
// DragonFrugal -- Security fix for RFI / XSS Hacking
$get_key = NULL;
$get_value = NULL;
$security_shutdown = NULL;
// GET data
foreach ( $_GET as $get_key => $get_value ) {
// Key scanning
if ( eregi("(.*)/(.*)", $get_key) ) {
$security_shutdown = 1;
}
elseif ( $get_key == "set_depth" ) {
$security_shutdown = 1;
}
// Value scanning
elseif ( eregi("(.*)/(.*)", $get_value) ) {
$security_shutdown = 1;
}
}
$post_key = NULL;
$post_value = NULL;
// POST data
foreach ( $_POST as $post_key => $post_value ) {
// Key scanning
if ( eregi("(.*)/(.*)", $post_key) ) {
$security_shutdown = 1;
}
elseif ( $post_key == "set_depth" ) {
$security_shutdown = 1;
}
}
if ( $security_shutdown ) {
// Logs, emails, etc can be coded here
exit;
}
/////////////////////////////////////////////////
$file_depth = 1;
$security_level = 1;
require("../main.config.php");
$admin_key = "g34m8v4cv1qvb9"; // Below config.php to hide behind the admin login procedure
// Must be below main.config.php
require ("".$set_depth."app.lib/product.control/core.php/globals.php");
require ("".$set_depth."app.lib/product.control/core.php/data.control.php");
require ("".$set_depth."app.lib/product.control/core.php/admin.area/admin.front.end.php");
/////////////////////////////START OF CONTENT//////////////////////////////////////////
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- *Frugal Web Development* www.dragonfrugal.com -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?=$company_name?> > Admin > Recent Activities </title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="robots" content="none" />
<?php require ("".$set_depth."app.lib/product.control/core.css/css.php/main.css.php"); ?>
<?php require ("".$set_depth."app.lib/product.control/core.css/css.php/answer.box.css.php"); ?>
<script language="JavaScript" type="text/javascript">
// Set the directory depth for javascript apps...
var set_depth = "<?=$set_depth?>";
// Detect user agent
var user_agent = navigator.userAgent;
</script>
<script src="<?=$set_depth?>app.lib/product.control/core.javascript/answer.box.js" language="javascript" type="text/javascript"></script>
<script src="<?=$set_depth?>app.lib/product.control/core.javascript/basic.xhtml.js" language="JavaScript" type="text/javascript">
</script>
<script src="<?=$set_depth?>app.lib/product.control/core.javascript/code.clean.js" language="JavaScript" type="text/javascript">
</script>
<script src="<?=$set_depth?>app.lib/product.control/core.javascript/scanning.js" language="JavaScript" type="text/javascript">
</script>
<?php
if ( $security_level == 1 || $_SESSION['show_admin_link'] ) {
?>
<!-- Starts the call for the form submit in the head of the document, so it's more reliable... -->
<script src="<?=$set_depth?>app.lib/security/javascript/text.submit.js" language="JavaScript" type="text/javascript"></script>
<?php }
?>
</head>
<body>
<div align="center" id="answers" class="answers_class"></div>
<table align="center" cellspacing="0" cellpadding="0" border="0" style="border: 1px solid black; background-color: #646262; width: 100%;">
<tr>
<td>
<table align="center" cellspacing="0" cellpadding="0" border="0">
<tr id="top_nav">
<td style="padding: 5px;">
<a href="index.php"><b>Edit Products</b></a>
</td>
<td style="padding: 5px;">
<a href="import.php"><b>Import Products</b></a>
</td>
<td style="padding: 5px;">
<a href="export.php"><b>Export Products</b></a>
</td>
<td style="padding: 5px; background-color: #bfbebe; border: 3px dotted #f8f6f6;">
<a href="recent.activities.php" style="color: black;"><b>Recent Activities</b></a>
</td>
<td style="padding: 5px;">
<a href="<?=$set_depth?>admin/configure.php"><b>Configure</b></a>
</td>
<td style="padding: 5px;">
<span onclick='var answer_file = "help.index"; var answer_category = "general"; show_answer(answer_file, answer_category);' title="What's This?" style="color: white; text-decoration: underline; font-size: <?=$font_6?>px; font-weight: bold; cursor: pointer;">Help</span>
</td>
<td style="padding: 5px;">
<a href="javascript:logoutSubmit();"><b>Logout</b></a>
</td>
<td>
<!-- ALWAYS ONE EXTRA TO TAKE THE REST OF THE TABLE WIDTH -->
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" align="center" cellspacing="0" cellpadding="14" border="0">
<tr>
<td valign="top">
<noscript>
<div align="center"><p><b><font color="red">Sorry, your browser must support javascript...</font></b></p></div>
</noscript>
<div align="center" style="padding: 7px; font-size: <?=$font_2?>px;"><b style="color: red;">Recent Activities</b></div>
<div align="left" style="width: 100%;">
Here you can look at all the logs showing the latest activity from administrators and customers in DFD Cart...<br />
<p><br><br><b><font color="#FF0000">Coming soon...</font></b><br><br></p>
</div>
</td>
</tr>
</table>
<?php
if ( $security_level == 1 || $_SESSION['show_admin_link'] ) {
?>
<form name="logout" action="<?=$_SERVER['PHP_SELF']?>?key=<?=$_SESSION['sec_key']?>" method="post">
<input type="hidden" name="my_logout" value="yes">
</form>
<?php }
?>
<?php
require ($set_depth . "main.footer.code.php");
?>
</body>
</html>