当前位置: 首页>>代码示例>>PHP>>正文


PHP GET函数代码示例

本文整理汇总了PHP中GET函数的典型用法代码示例。如果您正苦于以下问题:PHP GET函数的具体用法?PHP GET怎么用?PHP GET使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了GET函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: server_get_servers

function server_get_servers($conn)
{
    $name = GET('name');
    ossim_valid($name, OSS_ALPHA, OSS_PUNC, OSS_SPACE, 'illegal:' . _("Server name"));
    require_once 'ossim_conf.inc';
    $ossim_conf = $GLOBALS["CONF"];
    /* get the port and IP address of the server */
    $address = $ossim_conf->get_conf("server_address");
    $port = $ossim_conf->get_conf("server_port");
    /* create socket */
    $socket = socket_create(AF_INET, SOCK_STREAM, 0);
    if ($socket < 0) {
        echo _("socket_create() failed: reason: ") . socket_strerror($socket) . "\n";
    }
    $list = array();
    $err = "";
    /* connect */
    $result = @socket_connect($socket, $address, $port);
    if (!$result) {
        $err = "<p><b>" . _("socket error") . "</b>: " . gettext("Is OSSIM server running at") . " {$address}:{$port}?</p>";
        return array($list, $err);
    }
    /* first send a connect message to server */
    $in = 'connect id="1" type="web"' . "\n";
    $out = '';
    socket_write($socket, $in, strlen($in));
    $out = @socket_read($socket, 2048, PHP_NORMAL_READ);
    if (strncmp($out, "ok id=", 4)) {
        $err = "<p><b>" . gettext("Bad response from server") . "</b></p>";
        $err .= "<p><b>" . _("socket error") . "</b>: " . gettext("Is OSSIM server running at") . " {$address}:{$port}?</p>";
        return array($list, $err);
    }
    /* get servers from server */
    if ($name != NULL) {
        $in = 'server-get-servers id="2" servername="' . $name . '"' . "\n";
    } else {
        $in = 'server-get-servers id="2"' . "\n";
    }
    $out = '';
    socket_write($socket, $in, strlen($in));
    $pattern = '/server host="([^"]*)" servername="([^"]*)"/ ';
    while ($out = socket_read($socket, 2048, PHP_NORMAL_READ)) {
        if (preg_match($pattern, $out, $regs)) {
            if (Session::hostAllowed($conn, $regs[1])) {
                $s["host"] = $regs[1];
                $s["servername"] = $regs[2];
                //# This should be checked in the server TODO FIXME
                if (!in_array($s, $list)) {
                    $list[] = $s;
                }
            }
        } elseif (!strncmp($out, "ok id=", 4)) {
            break;
        }
    }
    socket_close($socket);
    return array($list, $err);
}
开发者ID:jhbsz,项目名称:ossimTest,代码行数:58,代码来源:server_get_servers.php

示例2: help_invoke

function help_invoke()
{
    list($action) = GET('action');
    if ($action == 'about') {
        help_invoke_about();
    } elseif ($action == 'code') {
        echo exec_tpl('help/cutecode');
    } else {
        help_invoke_main();
    }
}
开发者ID:JulioCF,项目名称:cutenews-2.0,代码行数:11,代码来源:help.php

示例3: retrieve_groups

function retrieve_groups($num)
{
    $g_list = array();
    for ($i = 1; $i <= $num; $i++) {
        $aux = explode("_", GET('group' . $i));
        if (ossim_valid($aux[0], OSS_HEX, 'illegal:' . _("Group ID"))) {
            $g_list[] = "'" . $aux[0] . "'";
        }
    }
    return implode(',', $g_list);
}
开发者ID:AntBean,项目名称:alienvault-ossim,代码行数:11,代码来源:alarm_group_response.php

示例4: termin

 function termin($template)
 {
     $dbuser = new User();
     if (isREQUEST("logout")) {
         $dbuser->logout();
     }
     if (isREQUEST("user") && isREQUEST("password")) {
         $usr = $dbuser->logout()->login(REQUEST("user"), REQUEST("password"));
     }
     if (!($usr = $dbuser->logedin())) {
         $template->view("login");
         return;
     }
     $template->add("usr", $usr);
     // für die User Infos oben Rechts
     if (isREQUEST(array("name", "desc"))) {
         // Termin erstellen
         $t = new Termin();
         $id = $t->create(REQUEST("name"), REQUEST("desc"), $usr["id"]);
         //$template->add("termin",$t->byid($t));
         //$template->add("mitglieder",$t->mitglieder($t));
         //$template->view("termin");
         $template->redirect("?s=termin&id=" . $id);
         $template->view("termin_neu");
     } else {
         if (GET("id")) {
             // Termin aufrufen
             $t = new Termin();
             $tbid = $t->byid(GET("id"));
             if (!isset($tbid) || !isset($tbid["id"])) {
                 $template->redirect(".");
                 $template->view("termin_neu");
                 return;
             }
             $template->add("termin", $tbid);
             $template->add("zeiten", $t->zeiten($tbid["tid"]));
             $template->add("votes", $t->votes($tbid["tid"]));
             $template->add("mitglieder", $t->mitglieder($tbid["tid"]));
             $template->view("termin");
         } else {
             // Neuer Termin
             $template->view("termin_neu");
         }
     }
 }
开发者ID:Woems,项目名称:TerminGrul,代码行数:45,代码来源:index.controler.php

示例5: ossim_db

*
*
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
require_once 'av_init.php';
Session::logcheck('configuration-menu', 'PolicyServers');
$db = new ossim_db();
$conn = $db->connect();
$id = GET('id');
$ip = GET('ip');
$sname = GET('name');
$update = intval(GET('update'));
$opensource = Session::is_pro() ? FALSE : TRUE;
$mssp = intval($conf->get_conf("alienvault_mssp"));
$local_id = $conf->get_conf("server_id");
ossim_valid($ip, OSS_IP_ADDR, OSS_NULLABLE, 'illegal:' . _('Server IP'));
ossim_valid($sname, OSS_ALPHA, OSS_PUNC, OSS_NULLABLE, 'illegal:' . _('Server Name'));
ossim_valid($id, OSS_HEX, OSS_NULLABLE, 'illegal:' . _('Server ID'));
if (ossim_error()) {
    die(ossim_error());
}
$action = 'newserver.php';
$all_rservers = Server::get_server_hierarchy($conn, $id);
$error_forward = FALSE;
$can_i_modify_elem = TRUE;
if (!empty($id)) {
    $server = Server::get_object($conn, $id);
开发者ID:AntBean,项目名称:alienvault-ossim,代码行数:31,代码来源:newserverform.php

示例6: PrintGeneralStats


//.........这里部分代码省略.........
                <?php 
            if ($color == "#28BC04" && !$cloud_instance) {
                ?>
                <a href="javascript:;" onclick="javascript:report_launcher('UniquePlugin_Report','pdf');return false"><img src="images/pdf-icon.png" border="0" align="absmiddle" title="<?php 
                echo _("Launch PDF Report");
                ?>
"></a>
                <a href="javascript:;" onclick="javascript:report_launcher('UniquePlugin_Report','<?php 
                echo $unique_plugins_report_type;
                ?>
');return false"><img src="images/csv-icon.png" border="0" align="absmiddle" title="<?php 
                echo _("Download data in csv format");
                ?>
"></a>
                <?php 
            }
            ?>
            </td>
	  <?php 
        }
        ?>
		</tr>
		<tr>
	  <?php 
        //$src_lnk = "<a href='base_stat_uaddr.php?addr_type=".$_GET['addr_type']."&addhomeips=src' title='Add home networks IPs to current search criteria'><img src='images/homelan.png' border=0 align='absmiddle'></a>";
        //$dst_lnk = "<a href='base_stat_uaddr.php?addr_type=".$_GET['addr_type']."&addhomeips=dst' title='Add home networks IPs to current search criteria'><img src='images/homelan.png' border=0 align='absmiddle'></a>";
        //$li_style = (preg_match("/base_stat_uaddr\.php/",$_SERVER['SCRIPT_NAME'])) ? " style='color:#F37914'" : "";
        $color = preg_match("/base_stat_uaddr/", $_SERVER['SCRIPT_NAME']) ? "#28BC04" : "#FFFFFF";
        if ($color == "#28BC04") {
            $unique_src_ip_cnt_info[1] = str_replace(":black", ":white", $unique_src_ip_cnt_info[1]);
            $unique_dst_ip_cnt_info[1] = str_replace(":black", ":white", $unique_dst_ip_cnt_info[1]);
            $unique_ip_cnt_info[1] = str_replace(":black", ":white", $unique_ip_cnt_info[1]);
            if (!$cloud_instance) {
                $pdf = "&nbsp;<a href=\"javascript:;\" onclick=\"javascript:report_launcher('UniqueAddress_Report" . intval($_GET['addr_type']) . "','pdf');return false\"><img src=\"images/pdf-icon.png\" border=\"0\" align=\"absmiddle\" title=\"" . _("Launch PDF Report") . "\">&nbsp;";
                $csv = "<a href=\"javascript:;\" onclick=\"javascript:report_launcher('UniqueAddress_Report" . intval($_GET['addr_type']) . "','{$unique_addr_report_type}');return false\"><img src=\"images/csv-icon.png\" border=\"0\" align=\"absmiddle\" title=\"" . _("Download data in csv format") . "\"></a>&nbsp;";
            } else {
                $pdf = "";
                $csv = "";
            }
            if ($_GET['addr_type'] == '1') {
                $unique_src_ip_cnt_info[2] .= $pdf . $csv;
            }
            if ($_GET['addr_type'] == '2') {
                $unique_dst_ip_cnt_info[2] .= $pdf . $csv;
            }
        } else {
            $pdf = "<br>";
            $csv = "";
        }
        // echo "  <li$li_style>".gettext("Unique addresses: ").
        //       $unique_src_ip_cnt_info[1].gettext("Source").' | '.$unique_src_ip_cnt_info[2].
        //       $unique_dst_ip_cnt_info[1].gettext("Destination").$unique_dst_ip_cnt_info[2]."</li>";
        //echo "</td><td valign='top' style='padding-left:10px'>";
        $addrtype1 = $_GET['addr_type'] == '1' ? "underline" : "none";
        $addrtype2 = $_GET['addr_type'] == '2' ? "underline" : "none";
        $report_type = $_GET['proto'] == '6' ? 1 : ($_GET['proto'] == '17' ? 2 : 0);
        ?>
			<td align="center" style='border-right:1px solid #CACACA;border-top:1px solid #CACACA;<?php 
        if ($color == "#28BC04") {
            echo "color:white";
        }
        ?>
' bgcolor="<?php 
        echo $color;
        ?>
"><?php 
开发者ID:jhbsz,项目名称:ossimTest,代码行数:67,代码来源:base_stat_common.php

示例7: array

* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA  02110-1301  USA
*
*
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
require_once 'av_init.php';
Session::logcheck('environment-menu', 'PolicyHosts');
//CPE Types
$_cpe_types = array('os' => 'o', 'hardware' => 'h', 'software' => 'a');
$_cpe = GET('q');
$_cpe_type = GET('cpe_type');
ossim_valid($_cpe, OSS_NULLABLE, OSS_ALPHA, OSS_PUNC_EXT, 'illegal:' . _('CPE'));
ossim_valid($_cpe_type, 'os | software | hardware', 'illegal:' . _('CPE Type'));
if (ossim_error() || !array_key_exists($_cpe_type, $_cpe_types)) {
    exit;
}
$db = new Ossim_db();
$conn = $db->connect();
$_cpe = escape_sql($_cpe, $conn);
$filters = array('where' => "`cpe` LIKE 'cpe:/" . $_cpe_types[$_cpe_type] . "%' AND `line` LIKE '%{$_cpe}%'", 'limit' => 20);
$software = new Software($conn, $filters);
$db->close();
foreach ($software->get_software() as $cpe_info) {
    echo $cpe_info['cpe'] . '###' . $cpe_info['line'] . "\n";
}
/* End of file search_cpe.php */
开发者ID:jackpf,项目名称:ossim-arc,代码行数:31,代码来源:search_cpe.php

示例8: GET

* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 dated June, 1991.
* You may not use, modify or distribute this program under any other version
* of the GNU General Public License.
*
* This package is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this package; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA  02110-1301  USA
*
*
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
require_once 'av_init.php';
Session::logcheck("analysis-menu", "EventsForensics");
$rname = GET('name');
ossim_valid($rname, OSS_ALPHA, OSS_SPACE, 'illegal:' . _("Report Name"));
if (ossim_error()) {
    die(ossim_error());
}
$pdfReport = new Pdf_report($rname, "P");
$pdfReport->getPdf();
开发者ID:AntBean,项目名称:alienvault-ossim,代码行数:31,代码来源:pdf.php

示例9: GET

*   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
*   MA  02110-1301  USA
*
*
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
****************************************************************************/
/**
* Class and Function List:
* Function list:
* Classes list:
*/
include "classes/Security.inc";
$param = GET('param');
ossim_valid($plugin_id, OSS_ALPHA, OSS_NULLABLE);
if (ossim_error()) {
    die(ossim_error());
}
?>
		
    <div style="
      background-color:#17457c;
      width:100%;
      position:fixed;
      height:2px;
      left:0px;"></div>
		<center>
			<button style="width: 80px; margin-top:8px; cursor:pointer;"
				id="cancel"
开发者ID:jhbsz,项目名称:ossimTest,代码行数:31,代码来源:bottom.php

示例10: array

    exit;
}
$data = array('status' => 'success', 'data' => '');
$db = new ossim_db();
$conn = $db->connect();
$map = GET('map');
$ri_positions = GET('data');
$name = GET('alarm_name');
$icon = GET('icon');
$url = GET('url');
$ri_id = GET('id');
$type = GET('type');
$type_name = GET('elem');
$iconbg = GET('iconbg');
$iconsize = GET('iconsize') != '' ? GET('iconsize') : 0;
$noname = GET('noname') != '' ? '#NONAME' : '';
if (!empty($name)) {
    $name = $name . $noname;
}
$icon = str_replace("url_slash", "/", $icon);
$icon = str_replace("url_quest", "?", $icon);
$icon = str_replace("url_equal", "=", $icon);
$url = str_replace("url_slash", "/", $url);
$url = str_replace("url_quest", "?", $url);
$url = str_replace("url_equal", "=", $url);
ossim_valid($map, OSS_HEX, 'illegal:' . _('Map'));
ossim_valid($ri_id, OSS_DIGIT, OSS_NULLABLE, 'illegal:' . _('ID'));
ossim_valid($risk_positions, OSS_SCORE, OSS_NULLABLE, OSS_ALPHA, ";,.", 'illegal:' . _('Risk Indicator Positions'));
ossim_valid($url, OSS_NULLABLE, OSS_SCORE, OSS_ALPHA, OSS_SPACE, ";,.:\\/\\?=&()%&", 'illegal:' . _('URL'));
ossim_valid($name, OSS_NULLABLE, OSS_SCORE, OSS_ALPHA, OSS_SPACE, ";,.:\\/\\?=&()%&#", 'illegal:' . _('Name'));
ossim_valid($icon, OSS_NULLABLE, OSS_SCORE, OSS_ALPHA, OSS_SPACE, ";,.:\\/\\?=&()%&", 'illegal:' . _('Icon'));
开发者ID:AntBean,项目名称:alienvault-ossim,代码行数:31,代码来源:save.php

示例11: GET

* You should have received a copy of the GNU General Public License
* along with this package; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA  02110-1301  USA
*
*
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
require_once 'classes/Security.inc';
Session::logcheck("report-menu", "ReportsReportServer");
$date_from = GET('date_from') != "" ? GET('date_from') : strftime("%Y-%m-%d", time() - 24 * 60 * 60 * 30);
$date_to = GET('date_to') != "" ? GET('date_to') : strftime("%Y-%m-%d", time());
ossim_valid($date_from, OSS_DATE, 'illegal:' . _('Date From'));
ossim_valid($date_to, OSS_DATE, 'illegal:' . _('Date To'));
if (ossim_error()) {
    die(ossim_error());
}
$sql_year = "STR_TO_DATE( CONCAT( a.year, '-', a.month, '-', a.day ) , '%Y-%m-%d' ) >= '{$date_from}' AND STR_TO_DATE( CONCAT( a.year, '-', a.month, '-', a.day ) , '%Y-%m-%d' ) <= '{$date_to}'";
require_once 'ossim_db.inc';
$db = new ossim_db();
$conn = $db->connect();
$user = Session::get_session_user();
$conn->Execute('use datawarehouse');
$sql = "SELECT * FROM ( SELECT * FROM\n(select s.service as service, 'Availability' as category, sum(c.D) as volume from datawarehouse.ssi_user a,\ndatawarehouse.category c, datawarehouse.ip2service s\nwhere c.D <> '0' and a.sid=c.sid and a.destination=s.dest_ip and " . $sql_year . " AND a.user='" . $user . "' GROUP BY\n2) as imp_D\nUNION SELECT * FROM\n(select s.service as service, 'Integrity' as category, sum(c.I) as volume from datawarehouse.ssi_user a,\ndatawarehouse.category c, datawarehouse.ip2service s\nwhere c.I <> '0' and a.sid=c.sid and a.destination=s.dest_ip and " . $sql_year . " AND a.user='" . $user . "' GROUP BY 2)\nas imp_I\nUNION SELECT * FROM\n(select s.service as service, 'Confidentiality' as category, sum(c.C) as volume from datawarehouse.ssi_user a,\ndatawarehouse.category c, datawarehouse.ip2service s\nwhere c.C <> '0' and a.sid=c.sid and a.destination=s.dest_ip and " . $sql_year . " AND a.user='" . $user . "' GROUP BY\n2) as imp_C\n) AS allalarms;";
if (!($rs =& $conn->Execute($sql))) {
    print $conn->ErrorMsg();
    return;
开发者ID:AntBean,项目名称:alienvault-ossim,代码行数:31,代码来源:CIAPotentialImpactsRisksPie1.php

示例12: array

* MA  02110-1301  USA
*
*
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
require_once 'av_init.php';
Session::logcheck("configuration-menu", "PolicyServers");
$validate = array("id" => array("validation" => "OSS_HEX", "e_message" => 'illegal:' . _("ID")), "sname" => array("validation" => "OSS_ALPHA, OSS_PUNC", "e_message" => 'illegal:' . _("Name")), "ip" => array("validation" => "OSS_IP_ADDR", "e_message" => 'illegal:' . _("Ip")), "port" => array("validation" => "OSS_PORT", "e_message" => 'illegal:' . _("Port number")), "descr" => array("validation" => "OSS_ALL, OSS_NULLABLE", "e_message" => 'illegal:' . _("Description")), "correlate" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Correlation")), "cross_correlate" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Cross Correlation")), "store" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Store")), "reputation" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Reputation")), "qualify" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Qualify")), "resend_alarms" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Resend Alarms")), "resend_events" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Resend Events")), "sign" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Sign")), "multi" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Multilevel")), "sem" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Log")), "sim" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Security Events")), "alarm_to_syslog" => array("validation" => "OSS_ALPHA, OSS_NULLABLE", "e_message" => 'illegal:' . _("Alarm to Syslog")), "remoteadmin" => array("validation" => "OSS_ALPHA, OSS_PUNC, OSS_NULLABLE", "e_message" => 'illegal:' . _("Remote Admin")), "remotepass" => array("validation" => "OSS_PASSWORD, OSS_NULLABLE", "e_message" => 'illegal:' . _("Remote Password")), "remoteurl" => array("validation" => "OSS_ALPHA, OSS_PUNC, OSS_NULLABLE", "e_message" => 'illegal:' . _("Remote URL")), "setssh" => array("validation" => "OSS_DIGIT, OSS_NULLABLE", "e_message" => 'illegal:' . _("setssh")));
if (GET('ajax_validation') == TRUE) {
    $data['status'] = 'OK';
    $validation_errors = array();
    if (GET('name') == 'rservers[]' && !empty($_GET['rservers'])) {
        $rservers = $_GET['rservers'];
        foreach ($rservers as $rserver) {
            $rserver = explode('@', $rserver);
            $fwr_ser = $rserver[0];
            $fwr_prio = $rserver[1];
            ossim_valid($fwr_ser, OSS_HEX, 'illegal:' . _("Forward Servers"));
            ossim_valid($fwr_prio, OSS_DIGIT, 'illegal:' . _("Forward Priority"));
            if (ossim_error()) {
                $validation_errors['rservers[]'] = ossim_get_error_clean();
                ossim_clean_error();
            }
        }
    } else {
        $validation_errors = validate_form_fields('GET', $validate);
    }
开发者ID:jackpf,项目名称:ossim-arc,代码行数:31,代码来源:modifyserver.php

示例13: ossim_error

    echo ossim_error(_("You don't have permission to see this page"));
    exit;
}
$db = new ossim_db();
$conn = $db->connect();
$plugin_list = Plugin::get_list($conn, "ORDER BY name", 0);
require 'base_conf.php';
include_once $BASE_path . "includes/base_db.inc.php";
include_once "{$BASE_path}/includes/base_state_query.inc.php";
include_once "{$BASE_path}/includes/base_state_common.inc.php";
/* Connect to the Alert database */
$db_snort = NewBASEDBConnection($DBlib_path, $DBtype);
$db_snort->baseDBConnect($db_connect_method, $alert_dbname, $alert_host, $alert_port, $alert_user, $alert_password, 1);
$qs = new QueryState();
$newref = GET('newref');
$delete = GET('deleteref');
$error_msg = null;
if ($newref != "") {
    ossim_valid($newref, OSS_ALPHA, OSS_NULLABLE, 'illegal:' . _("New Reference"));
    if (!ossim_error()) {
        $sql = "INSERT INTO reference_system (ref_system_name) VALUES (\"{$newref}\")";
        $qs->ExecuteOutputQueryNoCanned($sql, $db_snort);
    } else {
        $error_msg = ossim_get_error();
        ossim_clean_error();
    }
}
if (preg_match("/^\\d+\$/", $delete)) {
    ossim_valid($delete, OSS_DIGIT, OSS_NULLABLE, 'illegal:' . _("Reference ID"));
    if (!ossim_error()) {
        $sql = "SELECT sig_reference.ref_id FROM sig_reference,reference WHERE reference.ref_system_id={$delete} AND reference.ref_id=sig_reference.ref_id";
开发者ID:AntBean,项目名称:alienvault-ossim,代码行数:31,代码来源:manage_references.php

示例14: GET

require_once 'av_init.php';
Session::logcheck("analysis-menu", "IncidentsReport");
$by = GET('by');
ossim_valid($by, OSS_ALPHA, OSS_SPACE, OSS_SCORE, 'illegal:' . _("Target"));
if (ossim_error()) {
    die(ossim_error());
}
// Define colors
$color_list = array('#D6302C', '#3933FC', 'green', 'yellow', 'pink', '#40E0D0', '#00008B', '#800080', '#FFA500', '#A52A2A', '#228B22', '#D3D3D3');
$conf = $GLOBALS["CONF"];
$jpgraph = $conf->get_conf("jpgraph_path");
require "{$jpgraph}/jpgraph.php";
require "{$jpgraph}/jpgraph_bar.php";
$db = new ossim_db();
$conn = $db->connect();
$shared = new DBA_shared(GET('shared'));
if ($by == "ticketsByTypePerMonth") {
    $titley = _("Month") . '-' . _("Year");
    $titlex = _("Num. Tickets");
    $title = '';
    $width = 650;
    $user = $shared->get("TicketsStatus4_user");
    $assets = $shared->get("TicketsStatus4_assets");
    $final_values = array();
    $ticket_by_type_per_month = Incident::incidents_by_type_per_month($conn, $assets, $user);
    if (is_array($ticket_by_type_per_month) && !empty($ticket_by_type_per_month)) {
        foreach ($ticket_by_type_per_month as $event_type => $months) {
            $final_values[$event_type] = implode(",", $months);
        }
        $event_types = array_keys($ticket_by_type_per_month);
    }
开发者ID:AntBean,项目名称:alienvault-ossim,代码行数:31,代码来源:incidents_stacked_bar_chart.php

示例15: gettext

<html>
<head>
  <title> <?php 
echo gettext("OSSIM Framework");
?>
 </title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
  <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
  <link rel="stylesheet" type="text/css" href="../style/style.css"/>
</head>
<body>

<?php 
require_once "classes/Security.inc";
$sensor = GET('sensor');
ossim_valid($sensor, OSS_ALPHA, OSS_PUNC, OSS_SPACE, 'illegal:' . _("Sensor"));
if (ossim_error()) {
    die(ossim_error());
}
require_once 'ossim_conf.inc';
$conf = $GLOBALS["CONF"];
//
// get ntop proto and port from default ntop entry at
// /etc/ossim/framework/ossim.conf
// a better solution ??
//
require_once 'ossim_db.inc';
require_once 'classes/Sensor.inc';
require_once 'classes/Net.inc';
$db = new ossim_db();
开发者ID:jhbsz,项目名称:ossimTest,代码行数:30,代码来源:menu_session.php


注:本文中的GET函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。