Skip to content

Commit

Permalink
remove old code
Browse files Browse the repository at this point in the history
  • Loading branch information
xmacan committed Aug 13, 2019
1 parent 82026b1 commit 26cbc02
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions intropage_ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ function array_column($array,$column_name) {
}
}

// reload single panel
if (isset_request_var('reload_panel') &&
get_filter_request_var('reload_panel', FILTER_VALIDATE_REGEXP, array('options' => array('regexp' => '/^[0-9]{1,3}$/')))) {

Expand All @@ -42,10 +41,6 @@ function array_column($array,$column_name) {
// few requered variables
$maint_days_before = read_config_option('intropage_maint_plugin_days_before');

// need for thold - isn't any better solution?
//$current_user = db_fetch_row('SELECT * FROM user_auth WHERE id=' . $_SESSION['sess_user_id']);
//$sql_where = get_graph_permissions_sql($current_user['policy_graphs'], $current_user['policy_hosts'], $current_user['policy_graph_templates']);

$hosts = get_allowed_devices();
$allowed_hosts = implode(',', array_column($hosts, 'id'));

Expand Down Expand Up @@ -77,8 +72,4 @@ function array_column($array,$column_name) {
} else {
echo 'Panel not found';
}
} else { // reload all
// include_once('./plugins/intropage/display.php');
// display_information();
}

0 comments on commit 26cbc02

Please sign in to comment.