Exemplo n.º 1
0
function AddCriteriaFormRow(&$submit, $submit_value, &$cnt, &$criteria_array, $max)
{
    $submit = $submit_value;
    ++$cnt;
    InitArray($criteria_array[$cnt - 1], $max, 0, "");
}
Exemplo n.º 2
0
    $tmp_signatures = $_SESSION["acid_sig_names"];
}
if (isset($_SESSION["acid_sig_refs"])) {
    $tmp_sig_refs = $_SESSION["acid_sig_refs"];
}
$_SESSION = NULL;
if (isset($user_ossim_tmp)) {
    $_SESSION["_user"] = $user_ossim_tmp;
}
if (isset($tmp_signatures)) {
    $_SESSION["acid_sig_names"] = $tmp_signatures;
}
if (isset($tmp_sig_refs)) {
    $_SESSION["acid_sig_refs"] = $tmp_sig_refs;
}*/
InitArray($_SESSION['back_list'], 1, 3, "");
$_SESSION['back_list_cnt'] = 0;
PushHistory();
// Check role out and redirect if needed -- Kevin
$roleneeded = 10000;
$BUser = new BaseUser();
//if (($Use_Auth_System == 1) && ($BUser->hasRole($roleneeded) == 0))
if ($Use_Auth_System == 1) {
    if ($BUser->hasRole($roleneeded) == 0) {
        base_header("Location: {$BASE_urlpath}/index.php");
    }
}
// Set cookie to use the correct db.
if (isset($_GET['archive'])) {
    "no" == $_GET['archive'] ? $value = 0 : ($value = 1);
    setcookie('archive', $value);
Exemplo n.º 3
0
    echo ' </TD>
           </TR>
          </TABLE>
		  <!-- END HEADER TABLE -->
		  
		  </div>  </TD>
           </TR>
          </TABLE>';
}
$from = " FROM acid_event " . $criteria_clauses[0];
$where = " WHERE " . $criteria_clauses[1];
if ($event_cache_auto_update == 1) {
    UpdateAlertCache($db);
}
if ($submit == "") {
    InitArray($time, $MAX_ROWS, TIME_CFCNT, "");
}
echo '<FORM ACTION="base_stat_time.php" METHOD="get" style="margin-top:3px">
        <input type="hidden" name="time_range" value="today">
		<TABLE WIDTH="100%" BORDER=0 cellpadding=0 cellspacing=0>
         <TR>
          <TD WIDTH="100%" class="header">' . gettext("Time Criteria") . '</TD>
          <TD></TD></TR>
        </TABLE>';
$timetz = $GLOBALS["timetz"];
$today_d = gmdate("d", $timetz);
$today_m = gmdate("m", $timetz);
$today_y = gmdate("Y", $timetz);
$today_h = gmdate("h", $timetz);
//$yesterday_d = date("d",mktime(0,0,0, $today_m, $today_d - 1, $today_y));
//$yesterday_m = date("m",mktime(0,0,0, $today_m, $today_d - 1, $today_y));
Exemplo n.º 4
0
 function Init()
 {
     parent::Init();
     InitArray($this->data_encode, 2, 0, "");
 }