function GetAnyPic() { if (!array_key_exists('picture', $_GET)) { header("Content-type: image/png"); $fp = fopen("icons/Error.png", 'rb'); fpassthru($fp); return 1; } $picture = $_GET['picture']; if (!preg_match("/^[A-Za-z0-9][A-Za-z0-9\\-+_\\.\\/]+\$/", $picture)) { header("Content-type: image/png"); $fp = fopen("icons/Error.png", 'rb'); fpassthru($fp); return 1; } if (preg_match("/\\.png\$/i", $picture)) { $type = "png"; } else { if (preg_match("/\\.gif\$/i", $picture)) { $type = "gif"; } else { if (preg_match("/\\.jpg\$/i", $picture)) { $type = "jpg"; } else { $fp = fopen("icons/Error.png", 'rb'); fpassthru($fp); return 1; } } } header("Content-type: image/" . $type); $opts = array(); $opts['.silent'] = 1; $opts['picture'] = $picture; nfsend_query("@get-anypicture", $opts, 1); nfsend_disconnect(); unset($_SESSION['nfsend']); CloseLogFile(); }
case "Stats": DisplayAdminPage(); break; case "Plugins": // Run the plugin if (count($plugins) > 0) call_user_func($plugin_run, $_SESSION['sub_tab'], $_SESSION['profile']); // otherwise do nothing break; */ default: } nfsend_disconnect(); unset($_SESSION['nfsend']); CloseLogFile(); ?> <div id="hintbox"></div> <script type="text/javascript" src="../js/greybox.js"></script> <form action="../conf/solera.php" method="post" id="solera_form"> <input type="hidden" name="from"/> <input type="hidden" name="to"/> <input type="hidden" name="src_ip"/> <input type="hidden" name="dst_ip"/> <input type="hidden" name="src_port"/> <input type="hidden" name="dst_port"/> <input type="hidden" name="proto"/> </form> <script type='text/javascript'> function solera_deepsee (from,to,src_ip,src_port,dst_ip,dst_port,proto) {