"Fossies" - the Fresh Open Source Software Archive

Member "OCSNG_UNIX_SERVER_2.6/ocsreports/plugins/snmp_detail/sd_virtualmachines/sd_virtualmachines.php" (17 Apr 2019, 2151 Bytes) of package /linux/privat/OCSNG_UNIX_SERVER_2.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 <?php
    2 /*
    3  * Copyright 2005-2016 OCSInventory-NG/OCSInventory-ocsreports contributors.
    4  * See the Contributors file for more details about them.
    5  *
    6  * This file is part of OCSInventory-NG/OCSInventory-ocsreports.
    7  *
    8  * OCSInventory-NG/OCSInventory-ocsreports is free software: you can redistribute
    9  * it and/or modify it under the terms of the GNU General Public License as
   10  * published by the Free Software Foundation, either version 2 of the License,
   11  * or (at your option) any later version.
   12  *
   13  * OCSInventory-NG/OCSInventory-ocsreports is distributed in the hope that it
   14  * will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
   15  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   16  * GNU General Public License for more details.
   17  *
   18  * You should have received a copy of the GNU General Public License
   19  * along with OCSInventory-NG/OCSInventory-ocsreports. if not, write to the
   20  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
   21  * MA 02110-1301, USA.
   22  */
   23 
   24 /*
   25  * Show sd_modems data
   26  */
   27 if (AJAX) {
   28     ob_end_clean();
   29     parse_str($protectedPost['ocs']['0'], $params);
   30     $protectedPost += $params;
   31     ob_start();
   32 }
   33 print_item_header($l->g(1266));
   34 if (!isset($protectedPost['SHOW'])) {
   35     $protectedPost['SHOW'] = 'NOSHOW';
   36 }
   37 $table_name = "snmp_virtualmachines";
   38 $tab_options = $protectedPost;
   39 $tab_options['form_name'] = $form_name;
   40 $tab_options['table_name'] = $table_name;
   41 $list_fields = array($l->g(137) => 'CONFIG_FILE',
   42     $l->g(54) => 'CPU',
   43     $l->g(23) => 'NAME',
   44     $l->g(26) => 'MEMORY',
   45     $l->g(25) => 'OS',
   46     $l->g(6005) => 'POWER',
   47     $l->g(1268) => 'UUID');
   48 $sql = prepare_sql_tab($list_fields);
   49 $list_col_cant_del = $list_fields;
   50 $default_fields = $list_fields;
   51 $sql['SQL'] = $sql['SQL'] . " FROM %s WHERE (snmp_id=%s)";
   52 $sql['ARG'][] = 'snmp_virtualmachines';
   53 $sql['ARG'][] = $systemid;
   54 $tab_options['ARG_SQL'] = $sql['ARG'];
   55 ajaxtab_entete_fixe($list_fields, $default_fields, $tab_options, $list_col_cant_del);
   56 if (AJAX) {
   57     ob_end_clean();
   58     tab_req($list_fields, $default_fields, $list_col_cant_del, $sql['SQL'], $tab_options);
   59     ob_start();
   60 }
   61 ?>