<?php /* $Id$ */ /* dspam-train.php Copyright (C) 2006 Daniel S. Haischt. All rights reserved. */ $pgtitle = array(gettext("Services"), gettext("DSPAM"), gettext("System Status"), gettext("Overview")); require "guiconfig.inc"; include "/usr/local/pkg/dspam.inc"; if (isDSPAMAdmin($HTTP_SERVER_VARS['AUTH_USER'])) { /* if this is an AJAX caller then handle via JSON */ if (isAjax() && is_array($input_errors)) { input_errors2Ajax($input_errors); exit; } /* if ajax is calling, give them an update message */ if (isAjax()) { print_info_box_np($savemsg); } include "head.inc"; /* put your custom HTML head content here */ /* using some of the $pfSenseHead function calls */ echo $pfSenseHead->getHTML(); ?> <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include "fbegin.inc";
its dependencies) under the terms of the accompanying open source license. </p> <p> The Ni-ONE license provides 1<sup>st</sup> class priority support for a period of one year starting from the day you did purchase a valide license option. If the license is marked as <i>expired</i>, you may consider to purchase a renewal license option using the <i>renew license</i> button that will be provided by the web interface in such circumstances. </p> </td> </tr> <?php } ?> <?php if (strpos($DATA['LICENSE_VALIDITY'], "found") !== false && isDSPAMAdmin($HTTP_SERVER_VARS['AUTH_USER'])) { ?> <tr> <td width="22%" valign="baseline"> </td> <td width="78%"> <input name="Submit" type="submit" class="formbtn" id="restore" value="<?php echo gettext("Upload License"); ?> " /> <p> <strong> <span class="red"><?php echo gettext("Note"); ?> :</span> </strong>
<?php /* $Id$ */ /* dspam-admin-graph.php Copyright (C) 2006 Daniel S. Haischt. All rights reserved. */ /* required because of system_groupmanager.php */ $pgtitle = array(gettext("Services"), gettext("DSPAM"), gettext("System Status"), gettext("Graph")); require_once 'Image/Graph.php'; require_once 'Image/Canvas.php'; require "guiconfig.inc"; include "/usr/local/pkg/dspam.inc"; if (!$_GET || strlen($_SERVER['QUERY_STRING']) == 0 || !isDSPAMAdmin($HTTP_SERVER_VARS['AUTH_USER'])) { return; } $FORM =& ReadParse($_SERVER['QUERY_STRING']); list($spam, $nonspam, $sm, $fp, $inoc, $wh, $period) = split('_', $FORM['data']); $spam = split(',', $spam); $nonspam = split(',', $nonspam); $sm = split(',', $sm); $fp = split(',', $fp); $inoc = split(',', $inoc); $wh = split(',', $wh); $period = split(',', $period); // create a PNG canvas and enable antialiasing (canvas implementation) $Canvas =& Image_Canvas::factory('png', array('width' => 725, 'height' => 450, 'antialias' => 'native')); // create the graph $Graph =& Image_Graph::factory('graph', $Canvas);