?> notify('<?php echo _("Sorry, action not allowed"); ?> ', 'nf_error'); <?php } ?> $("#flextable").flexigrid({ url: 'getdbs.php', dataType: 'xml', colModel : [ <?php $default = array("name" => array(_('Name'), 300, 'true', 'center', false), "ip" => array(_('IP'), 120, 'true', 'center', false), "port" => array(_('Port'), 60, 'true', 'center', false), "user" => array(_('User'), 200, 'false', 'center', false), "pass" => array(_('Password'), 200, 'false', 'center', false), "icon" => array(_('Icon'), 270, 'false', 'left', false)); list($colModel, $sortname, $sortorder, $height) = print_layout($layout, $default, "name", "asc", 300); echo "{$colModel}\n"; ?> ], buttons : [ {name: '<?php echo _("New"); ?> ', bclass: 'add', onpress : action}, {separator: true}, {name: '<?php echo _("Modify"); ?> ', bclass: 'modify', onpress : action}, {separator: true}, {name: '<?php
$file = $_GET['file']; $asm = eaccelerator_dasm_file($file); if ($asm == null) { die('File not found!'); } require_once 'PHP_Highlight.php'; $h = new PHP_Highlight(); $h->loadFile($_GET['file']); $source = $h->toArray(); /* what do we need to do ? */ if (!isset($_GET['show'])) { $show = ''; } else { $show = $_GET['show']; } print_layout(); switch ($show) { case 'main': print_op_array($asm['op_array']); break; case 'functions': if (is_array($asm['functions'][$_GET['name']])) { print_function($_GET['name'], $asm['functions'][$_GET['name']]); } break; case 'methods': if (isset($_GET['method']) && is_array($asm['classes'][$_GET['name']][$_GET['method']])) { print_method($_GET['method'], $asm['classes'][$_GET['name']][$_GET['method']]); } break; }
$(document).ready(function(){ $("#flextable").flexigrid({ url: 'getsensor.php?onlyactive=<?php echo intval(GET('onlyactive')) > 0 ? 1 : 0; ?> ', dataType: 'xml', colModel : [ <?php if (Session::show_entities()) { $default = array("ip" => array(_('IP'), 130, 'true', 'center', FALSE), "name" => array(_('Name'), 200, 'true', 'center', FALSE), "entities" => array(_('Contexts'), 230, 'false', 'center', FALSE), "priority" => array(_('Priority'), 60, 'true', 'center', FALSE), "port" => array(_('Port'), 50, 'true', 'center', TRUE), "version" => array(_('Version'), 190, 'false', 'center', FALSE), "connect" => array(_('Status'), 50, 'true', 'center', FALSE), "desc" => array(_('Description'), 284, 'false', 'left', FALSE)); } else { $default = array("ip" => array(_('IP'), 150, 'true', 'center', FALSE), "name" => array(_('Name'), 182, 'true', 'center', FALSE), "priority" => array(_('Priority'), 60, 'true', 'center', FALSE), "port" => array(_('Port'), 40, 'true', 'center', FALSE), "version" => array(_('Version'), 190, 'false', 'center', FALSE), "connect" => array(_('Status'), 50, 'true', 'center', FALSE), "desc" => array(_('Description'), 470, 'false', 'left', FALSE)); } list($colModel, $sortname, $sortorder, $height) = print_layout($layout, $default, 'name', 'asc', 300); echo "{$colModel}\n"; ?> ], buttons : [ {name: '<?php echo _("New"); ?> ', bclass: 'add', onpress : action}, {separator: true}, {name: '<?php echo _("Modify"); ?> ', bclass: 'modify', onpress : action}, {separator: true}, {name: '<?php
$("#flextable_eng_<?php echo $i; ?> ").flexigrid({ url: 'getpolicy.php?ctx=<?php echo $group->get_ctx(); ?> &group=<?php echo $group->get_group_id(); ?> ', dataType: 'xml', colModel : [ <?php list($colModel, $sortname, $sortorder, $height) = print_layout($layout, $def_eng_layout, "order", "asc", 150); echo "{$colModel}\n"; ?> ], buttons : [ {name: '<?php echo _("New"); ?> ', bclass: 'add', onpress : action}, {separator: true}, {name: '<?php echo _("Modify"); ?> ', bclass: 'modify', onpress : action}, {separator: true}, {name: '<?php
} } } $aop->export_pdf(); // // Output to browser // $d->ezOutput(); $d->stream(); die; } break; } } } print_layout($error); // // Functions // function print_layout($error = array()) { global $_submenu, $print_auth, $db, $user, $config, $screen; page_header(); $page_e = explode('/', requested_url()); $folder = array_splice($page_e, 1, 1); $folder = !empty($screen) ? $screen : $folder[0]; $_buildmenu = array(); foreach ($_submenu as $k => $v) { if (!$print_auth[$k]) { continue; }
} ?> $("a.greybox").click(function(){ var t = this.title || $(this).text() || this.href; GB_show(t,this.href,300,700); return false; }); $("#flextable").flexigrid({ url: 'getpluginref.php', dataType: 'xml', colModel : [ <?php $default = array("name" => array(_('Data Source Name'), 200, 'false', 'left', false), "sid name" => array(_('Event Type'), 380, 'false', 'left', false), "ref name" => array(_('Ref Name'), 200, 'false', 'left', false), "ref sid name" => array(_('Ref Sid Name'), 388, 'false', 'left', false)); list($colModel, $sortname, $sortorder) = print_layout($layout, $default, "id", "asc"); echo "{$colModel}\n"; ?> ], buttons : [ {name: '<?php echo _("New"); ?> ', bclass: 'add', onpress : action}, {separator: true}, {name: '<?php echo _("Modify"); ?> ', bclass: 'modify', onpress : action}, {separator: true}, {name: '<?php
$nodes[$server->get_id()] = array('color' => 'green', 'shape' => 'rectangle', 'label' => $server->get_name() . ' (' . $server->get_ip() . ')'); // get childs with uuid like a parent $sql = "SELECT distinct(HEX(server_dst_id)) as id FROM server_forward_role WHERE server_src_id=UNHEX(?)"; if (!($rs = $conn->Execute($sql, array($server->get_id())))) { Av_exception::throw_error(Av_exception::DB_ERROR, $conn->ErrorMsg()); } $aux = array(); while (!$rs->EOF) { $aux[$rs->fields["id"]] = array('directed' => TRUE, 'length' => 5, 'weight' => 2, 'color' => '#999999'); $rs->MoveNext(); } $edges[$server->get_id()] = $aux; } /********* Layout *********/ $layout = array("ip" => array(_('IP'), 80, 'true', 'center', false), "name" => array(_('Name'), 180, 'true', 'center', false), "port" => array(_('Port'), 30, 'true', 'center', false), "sim" => array(_('SIEM'), 40, 'false', 'center', false), "qualify" => array(_('Risk Assessment'), 65, 'false', 'center', false), "correlate" => array(_('Correlation'), 75, 'false', 'center', false), "cross correlate" => array(_('Cross correlation'), 75, 'false', 'center', false), "store" => array(_('SQL Storage'), 50, 'false', 'center', false), "alarm to syslog" => array(_('Alarm Syslog'), 50, 'false', 'center', false), "reputation" => array(_('IP Rep'), 30, 'false', 'center', false), "sem" => array(_('Logger'), 50, 'false', 'center', false), "sign" => array(_('Sign'), 45, 'false', 'center', false), "resend_alarms" => array(_('Forward Alarms'), 50, 'false', 'center', false), "resend_events" => array(_('Forward Events'), 50, 'false', 'center', false), "desc" => array(_('Description'), 210, 'false', 'left', false)); list($colModel, $sortname, $sortorder, $height) = print_layout(array(), $layout, "name", "asc", 300); /********* Message *********/ $msg = GET('msg'); switch ($msg) { case 'created': $msg_text = _('The Server has been created successfully'); $msg_class = 'nf_success'; break; case 'updated': $msg_text = _('The Server has been updated successfully'); $msg_class = 'nf_success'; break; case 'deletesystemfirst': $msg_text = _('Removing the server from this page is not allowed. To remove the server, please go to AlienVault Center and delete the system from the component list.'); $msg_class = 'nf_error'; break;
sugar_die("quote layout file does not exist: " . $layouts[$layout]); } else { include_once $layouts[$layout]; } } foreach (SugarAutoLoader::existing('modules/Quotes/Layouts.override.php', 'custom/modules/Quotes/Layouts.php') as $file) { include_once $file; } if (isset($_REQUEST['email_action']) && $_REQUEST['email_action'] == "EmailLayout") { //check to make sure the layout is set if (isset($_REQUEST['layout'])) { include_once 'modules/Quotes/EmailPDF.php'; $email_id = email_layout($_REQUEST['layout']); } //redirect if ($email_id == "") { //Redirect to quote, since something went wrong echo "There was an error with your request"; exit; //end if email id is blank } else { //Redirect to new email draft just created header("Location: index.php?action=Compose&module=Emails&parent_type=Quotes&return_module=Quotes&return_action=DetailView&return_id=" . $_REQUEST['record'] . "&recordId={$email_id}" . "&parent_id=" . $_REQUEST['record']); } //end if email layout } else { if (isset($_REQUEST['layout'])) { print_layout($_REQUEST['layout']); } //end if else traditional print layout }