From bec87360a2813d4d549c25efddaf156b55f5329c Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 9 Sep 2010 12:19:11 +0000 Subject: [PATCH] 2010-09-09 Miguel de Dios * include/functions_networkmap.php: cleaned source code. * include/functions_ui.php: in function "print_os_icon" change the directory to search os icon because it change for new feature. * images/os_icons, images/os_icons/*: copied the icons image files into this dir for to use in new feature. * godmode/menu.php: added new item in submenu "Setup" for the management the OS. * godmode/setup/os.php: added the page to management the list OS of agents. Pending task: #3057663 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3234 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 17 ++ pandora_console/godmode/menu.php | 1 + pandora_console/godmode/setup/os.php | 228 ++++++++++++++++++ pandora_console/images/os_icons/network.png | Bin 0 -> 637 bytes .../images/os_icons/network_small.png | Bin 0 -> 672 bytes pandora_console/images/os_icons/so_aix.png | Bin 0 -> 1036 bytes .../images/os_icons/so_aix_small.png | Bin 0 -> 885 bytes pandora_console/images/os_icons/so_bsd.png | Bin 0 -> 707 bytes .../images/os_icons/so_bsd_small.png | Bin 0 -> 801 bytes pandora_console/images/os_icons/so_cisco.png | Bin 0 -> 1243 bytes .../images/os_icons/so_cisco_small.png | Bin 0 -> 511 bytes pandora_console/images/os_icons/so_hpux.png | Bin 0 -> 539 bytes .../images/os_icons/so_hpux_small.png | Bin 0 -> 623 bytes pandora_console/images/os_icons/so_linux.png | Bin 0 -> 696 bytes .../images/os_icons/so_linux_small.png | Bin 0 -> 748 bytes pandora_console/images/os_icons/so_mac.png | Bin 0 -> 340 bytes .../images/os_icons/so_mac_small.png | Bin 0 -> 788 bytes pandora_console/images/os_icons/so_other.png | Bin 0 -> 698 bytes .../images/os_icons/so_other_small.png | Bin 0 -> 777 bytes .../images/os_icons/so_solaris.png | Bin 0 -> 846 bytes .../images/os_icons/so_solaris_small.png | Bin 0 -> 554 bytes pandora_console/images/os_icons/so_win.png | Bin 0 -> 266 bytes .../images/os_icons/so_win_small.png | Bin 0 -> 454 bytes .../include/functions_networkmap.php | 2 +- pandora_console/include/functions_ui.php | 2 +- 25 files changed, 248 insertions(+), 2 deletions(-) create mode 100644 pandora_console/godmode/setup/os.php create mode 100755 pandora_console/images/os_icons/network.png create mode 100755 pandora_console/images/os_icons/network_small.png create mode 100755 pandora_console/images/os_icons/so_aix.png create mode 100755 pandora_console/images/os_icons/so_aix_small.png create mode 100755 pandora_console/images/os_icons/so_bsd.png create mode 100755 pandora_console/images/os_icons/so_bsd_small.png create mode 100755 pandora_console/images/os_icons/so_cisco.png create mode 100755 pandora_console/images/os_icons/so_cisco_small.png create mode 100755 pandora_console/images/os_icons/so_hpux.png create mode 100755 pandora_console/images/os_icons/so_hpux_small.png create mode 100755 pandora_console/images/os_icons/so_linux.png create mode 100755 pandora_console/images/os_icons/so_linux_small.png create mode 100755 pandora_console/images/os_icons/so_mac.png create mode 100755 pandora_console/images/os_icons/so_mac_small.png create mode 100755 pandora_console/images/os_icons/so_other.png create mode 100755 pandora_console/images/os_icons/so_other_small.png create mode 100755 pandora_console/images/os_icons/so_solaris.png create mode 100755 pandora_console/images/os_icons/so_solaris_small.png create mode 100755 pandora_console/images/os_icons/so_win.png create mode 100755 pandora_console/images/os_icons/so_win_small.png diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index bacd3f2d3b..2f55634129 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,20 @@ +2010-09-09 Miguel de Dios + + * include/functions_networkmap.php: cleaned source code. + + * include/functions_ui.php: in function "print_os_icon" change the + directory to search os icon because it change for new feature. + + * images/os_icons, images/os_icons/*: copied the icons image files into this + dir for to use in new feature. + + * godmode/menu.php: added new item in submenu "Setup" for the management + the OS. + + * godmode/setup/os.php: added the page to management the list OS of agents. + + Pending task: #3057663 + 2010-09-09 Sancho Lerena * fgraph.php: Graph "Modules per agent" was not working properly diff --git a/pandora_console/godmode/menu.php b/pandora_console/godmode/menu.php index 2607bf8ee7..e5905e02cd 100644 --- a/pandora_console/godmode/menu.php +++ b/pandora_console/godmode/menu.php @@ -207,6 +207,7 @@ if (give_acl ($config['id_user'], 0, "PM")) { $sub["godmode/setup/gis"]["text"] = __('Map conections GIS'); $sub["godmode/setup/links"]["text"] = __('Links'); $sub["godmode/setup/news"]["text"] = __('Site news'); + $sub["godmode/setup/os"]["text"] = __('Edit OS'); enterprise_hook ('historydb_submenu'); enterprise_hook ('enterprise_acl_submenu'); diff --git a/pandora_console/godmode/setup/os.php b/pandora_console/godmode/setup/os.php new file mode 100644 index 0000000000..7e4931bf5f --- /dev/null +++ b/pandora_console/godmode/setup/os.php @@ -0,0 +1,228 @@ + $idOS)); + $name = $os['name']; + $description = $os['description']; + $icon = $os['icon_name']; +} +else { + $name = get_parameter('name', ''); + $description = get_parameter('description', ''); + $icon = get_parameter('icon',0); +} + +// Header +print_page_header(__('Edit OS'), "", false, "", true); + +switch ($action) { + default: + case 'new': + $actionHidden = 'save'; + $textButton = __('Create'); + $classButton = 'class="sub next"'; + break; + case 'edit': + $actionHidden = 'update'; + $textButton = __('Update'); + $classButton = 'class="sub upd"'; + break; + case 'save': + $values = array(); + $values['name'] = $name; + $values['description'] = $description; + + if (($icon !== 0) && ($icon != '')) { + $values['icon_name'] = $icon; + } + $resultOrId = process_sql_insert('tconfig_os', $values); + + if ($resultOrId === false) { + print_error_message(__('Fail to create OS')); + $actionHidden = 'save'; + $textButton = __('Create'); + $classButton = 'class="sub next"'; + } + else { + $idOs = $resultOrId; + print_success_message(__('Success to create OS')); + $actionHidden = 'update'; + $textButton = __('Update'); + $classButton = 'class="sub upd"'; + } + break; + case 'update': + $name = get_parameter('name', ''); + $description = get_parameter('description', ''); + $icon = get_parameter('icon',0); + + $values = array(); + $values['name'] = $name; + $values['description'] = $description; + + if (($icon !== 0) && ($icon != '')) { + $values['icon_name'] = $icon; + } + $result = process_sql_update('tconfig_os', $values, array('id_os' => $idOS)); + + print_result_message($result, __('Success to update OS'), __('Error to update OS')); + + $actionHidden = 'update'; + $textButton = __('Update'); + $classButton = 'class="sub upd"'; + break; + case 'delete': + $sql = 'SELECT COUNT(id_os) AS count FROM tagente WHERE id_os = ' . $idOS; + $count = get_db_all_rows_sql($sql); + $count = $count[0]['count']; + + if ($count > 0) { + print_error_message(__('There are agents with this OS.')); + } + else { + $result = (bool)process_sql_delete('tconfig_os', array('id_os' => $idOS)); + + print_result_message($result, __('Success to delete'), __('Error to delete')); + } + + $idOS = 0; + $name = get_parameter('name', ''); + $description = get_parameter('description', ''); + $icon = get_parameter('icon',0); + + $actionHidden = 'save'; + $textButton = __('Create'); + $classButton = 'class="sub next"'; + break; +} + +$table = null; + +$table->width = '80%'; +$table->head[0] = ''; +$table->head[1] = __('Name'); +$table->head[2] = __('Description'); +$table->head[3] = ''; +$table->align[0] = 'center'; +$table->align[3] = 'center'; +$table->size[0] = '20px'; +$table->size[3] = '20px'; + +$osList = get_db_all_rows_in_table('tconfig_os'); + +$table->data = array(); +foreach ($osList as $os) { + $data = array(); + $data[] = print_os_icon($os['id_os'], false, true); + $data[] = '' . safe_output($os['name']) . ''; + $data[] = printTruncateText(safe_output($os['description']), 25, true, true); + if ($os['id_os'] > 13) { + $data[] = ''; + } + else { + //The original icons of pandora don't delete. + $data[] = ''; + } + + $table->data[] = $data; +} + +$htmlListOS = print_table($table, true); + +toggle($htmlListOS,__('List of OS'), __('Toggle')); + +echo '
'; +unset($table->head); +unset($table->align); +unset($table->size); +unset($table->data); + +$table->width = '50%'; + +$table->style[0] = 'font-weight: bolder; vertical-align: top;'; + +$table->data[0][0] = __('Name:'); +$table->data[0][1] = print_input_text('name', $name, __('Name'), 20, 30, true); +$table->data[1][0] = __('Description'); +$table->data[1][1] = print_textarea('description', 5, 10, $description, '', true); +$icons = get_list_os_icons_dir(); +$table->data[2][0] = __('Icon'); +$table->data[2][1] = print_select($icons, 'icon', $icon, 'show_icon_OS();', __('None'), 0, true); +$table->data[2][1] .= ' ' . print_os_icon($idOS, false, true) . ''; + + +echo '
'; +print_button(__('New OS'), 'new_button', false, 'new_os();', 'class="sub add"'); +echo '
'; +echo ''; +print_table($table); + +print_input_hidden('id_os', $idOS); +print_input_hidden ('action', $actionHidden); + +echo '
'; +print_submit_button ($textButton, 'update_button', false, $classButton); +echo '
'; +echo '
'; + +function get_list_os_icons_dir() { + global $config; + + $return = array(); + + $items = scandir($config['homedir'] . '/images/os_icons'); + + foreach ($items as $item) { + if (strstr($item, '_small.png') || strstr($item, '_small.gif') + || strstr($item, '_small.jpg')) { + continue; + } + if (strstr($item, '.png') || strstr($item, '.gif') + || strstr($item, '.jpg')) { + $return[$item] = $item; + } + } + + return $return; +} +?> + \ No newline at end of file diff --git a/pandora_console/images/os_icons/network.png b/pandora_console/images/os_icons/network.png new file mode 100755 index 0000000000000000000000000000000000000000..eb6ee812cbdcb653aa6e1f29cd7e3d54fe02d3c3 GIT binary patch literal 637 zcmV-@0)qXCP)4V-lLbY8BnsMCL@g?YNXb&dgd8+$Y|OD{=FQyOLVY@gP@ToSANOz$ zhjZ^0fSz+*tr<6SK^vXNU&0bAVLSFw0J?iR=VoVP=3fwteKTEWJL3uVL zR#a7PKq-gmuhH!L6VQtV11KXVc)H^Z)zvkGU%wAVn?Qs^t<41eKAQGw`tDg? z*;xsaiDdD}=m`Dy?^0G;MnnB>5Mk`&2S8|RKMX)yJJ`0pV4znd0PMQ$by$JTq+Ek- zD~8^_p=50d0ClxH7jiGI@%cIQ$^;;E-x^~0(|4k?KLMy(pU>dn5apo|pQk6iM+F9B zK*aLS)J)-4c^`>WUt7bYXYa^S7USb%3_Kp-)X5Hl!63iG7{iz7G-6plr1ALeOyiC% z)`KU5B%)&!&%a`guZW6@3ghHBe~6dheWu=rqh`;E{`j^dH~PTHs*2T6f9y{5zs0~W X^V%91+$Z%H00000NkvXXu0mjfV>Tk? literal 0 HcmV?d00001 diff --git a/pandora_console/images/os_icons/network_small.png b/pandora_console/images/os_icons/network_small.png new file mode 100755 index 0000000000000000000000000000000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J5+7kj#8Vy z6aXY50s!}q>lG)Z=5%~kL#y;mq!&8yph?p7*uOu7fb+4-PA3XmjC#Ees{GCi=ckPT! zKg1E4c^p62UdGI1$;|r;PyeHHO!Dsa2BR=JacFXO(fQ2ozA)balvyhxsfF8L00000 LNkvXXu0mjfuiuZA literal 0 HcmV?d00001 diff --git a/pandora_console/images/os_icons/so_bsd.png b/pandora_console/images/os_icons/so_bsd.png new file mode 100755 index 0000000000000000000000000000000000000000..5b1759a231b184a8761f0833ad09f27c27fa655c GIT binary patch literal 707 zcmV;!0zCbRP)VAw1bSUuETg66{7Y45&#^NvAOK24R+;@J`7#i3(;f{|=_t~5jZeDJ`^O{%OpHw` zfb#7Dc|SU#;(p*qM|WA&?an(D;aXMVhr z&Z;sA8=YbVpUR!m5_w*fCs*hC_|`R3}TuJfNlr*7LchYaV=HD zZ|6||l7wg)Apxq-3jUkzpC3&lSihF$FivKWwM;)OL$b8mVAW4Hvxe@Hte2N9qrEmcsx9=%5)b# zTX715)9x^yqAXeC7uv>$^b_T3*?^9 z4M2}~6CHD5dMtzarA4O3$JBoT0H+K0N^XjWF*Cw|Cd@A_;zUiRr)E^#7S^h_`I59I z!@HRv-3vd-&HBTQ3n6@I8S9GxFj`(Hh5;XK7cU$a6Uw6H;w-fnrq>st;=m5s@>?Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iXY& z4HP03RxdgL00N;&L_t(I%Z-v*NK{c6$A9A#XS{Rg^bkoo6ZAbD zIREd*`F`Jl6!oaE&~;`(f#4riQBo}Ob8}n(%EZg(i{|8gi;KSA1x1uc%)Cs+#%o2; zq3IaFkbm&~x&w!L?o?FhfFw->yjhedIyFI))4|$^fedsyWO|Jlg96U2TvocJ`TpqY zOkbC8@zRY+FZgUq6dhbo_TzVyteJ;DFhc*`E*7d59dV0i0|PCerq5zHJcbW;Bmr8p z($NB893T1_+_;3@N4ApQ_L1e0VTSbtH{QJ`EUVZO(y{yZ9@NSc0R@^t_tl3qd>Y{N zi8}0Yi-krIcU&R?gvTU2ic}gL9;i(zG1suDpE{YEU^-=W`)RoJlzh{o-zKA3V1z^b z2wJVb^Wze`+Al_g0PXlS_p9g+UdSHGl{hXZNHLQ}V~nPFf|A{PsH{9c-lz1vJnK@T zOc3_d-PDKJ4ceDcpZoP zwr?n5$J^etbEe+YXe4mQP0A)uL3K<@v2>7Sbxn(^W<7)#EgAEp`M0m!V%6NDb^e@! zT`LrsnZRaAXR8v!X-{&FGP_{$`d`O-0EV1ujXfG|*%S-mbATsJr8{inNn9X=EeRl{ z`s;<>tetzj**ASom2RQX7BT73!Z?J+*P)TW9i##@?%#VfSIE=^f?WUN$DS49*tSt5 z;Y@ar3Se5+p<<6owMXGp<|MpYI!~WuQ(YeWzYzdd7tI#azDxKMF#?v2ps8b5VBg+@ fdR5hhwBNa(oze|iUB4ri00000NkvXXu0mjf?GI@% literal 0 HcmV?d00001 diff --git a/pandora_console/images/os_icons/so_cisco.png b/pandora_console/images/os_icons/so_cisco.png new file mode 100755 index 0000000000000000000000000000000000000000..8e14da3146c81bba7d32f989576540f0257f5b4c GIT binary patch literal 1243 zcmV<11SI>3P)-*dP1F6+U)5LDRp?*5_|vm5F8y4Q@%FJB7++Y6tuYvFN zK0BUWGk)placQ*&r%(20uJ{Ynd796BdW^YG#iRF+J$~rohabDkb5pOqH8}R=<)dGo z{pb@~Se}0U?U|2`SubkR{NP^y!{lIW!v#-3{JN}Is(9C-us_OjPhhU!OnxzOCDupE^0~7?iTq!xPunBsqu8k31w{Ihh#e-cn>IAxp}x zjAZ8ADYIi@{cX3~+6;dFuCsH(jE`}-&ijy>I8Ro-|5Xp{8{4((qU-az>v#S8>S0=# zi-8BUcEWpvN2BnUUL$c2k4Zk zjl^01!j)EQxOm`TQFIs1oafrn>{5T`{HZh<9r&dz&s|-sjmkMYpXGTq7^Gvb6r(xqpFlN)bq9d_Q&rZedZ+qp3_7eR?U+F08*d4edGZxhqPOR4WqSCkqT%eRd4W1|^N=ytuC^R~lI5K%s z6Dv^GxCXFDuuKHN8-`L;SqVS{fMW%K*?9sZc(MRMY$*h7LBS>l;Y5*>sWdjhh^Uc2 zq+n468xsOltOCHw&LW1zs|1;;ATUoYoq$Hw^o$hLz!IQI!MFRJ#2*9f2C}0ENvAgy$bEe2_ zao^o{7|~TZu2~!_z!}lIci%WNGQ!M6lqb0V;4K_0Mn6$%=7Zb0Y5qz~o)*QqOrUpIl za%%wGuyu3MxpQi2YHD`LGttkJf1NlzJy@Qzn)clir$c4CY&0gK!oKSHfkyTHG|Spq z2R3%|VzKXQ=+gX5k(NF0M%$&eHpb|gm>HE@=+6pe{{c{!u)lH!eYOAq002ovPDHLk FV1ki1UX}m= literal 0 HcmV?d00001 diff --git a/pandora_console/images/os_icons/so_cisco_small.png b/pandora_console/images/os_icons/so_cisco_small.png new file mode 100755 index 0000000000000000000000000000000000000000..e170c85d09a77a7741537da16eafa0417dfa7f9c GIT binary patch literal 511 zcmVPx#32;bRa{vGf6951U69E94oEQKA00(qQO+^RU2?Grk9l9$sMgRZ-kx4{BR4C8Q zk}+#jQ5c5b@4M&Z#&|=Uq-YGORu@II7{MY~1QALtMG;&aTy%DK@)tNeyLE7J%jDo6 zsNg0zwV2i|q&L^xd(Zh^7ym#9!DoNq86F{t)1Wvd|6WL54%RI3dbSy=P#hdqvm8t9 zpYPr`FAW#-MaWNz$)qagG1O)8JD%jucb3Y-9oBRU|IK#j84zPFLJnoXD7zHybI1mH&3uX*pim*Jo<(T3K$ z(CbX|JeaKwR_pn+3hb|(yWH<@j&A-qI+FiyzCR?1zl`=Amh}Jt002ovPDHLkV1g&K B;)DPI literal 0 HcmV?d00001 diff --git a/pandora_console/images/os_icons/so_hpux.png b/pandora_console/images/os_icons/so_hpux.png new file mode 100755 index 0000000000000000000000000000000000000000..0745eefdcd66c9b68e0daed2fc531eccda729ff4 GIT binary patch literal 539 zcmV+$0_6RPP)Px#24YJ`L;wH)0002_L%V+f000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iXM@ z4kiPeTnM)S00EmxL_t(I%e|C4Xu?1k$Il0emRb`}Tw)QS>d<6yQP8zm6zSLwuGuAX z$IjyJn!&Xc1b3lk$>J^QAfnk~NU;k`t_kF+I_wp%n;YoAG>AcH+YphGT(Ao2%#r znxc*8FdBxnQU=ya86Y4DHCug5)3;eGUw%7~rf;)mkXZ$qqTgCiF&qm_Jj2>tMHhJ% z81uT{=Np}a6(=s@ZLXqwg5^?hVD}=CXMxDGfA9iL(YX{HxP~>VOvp>kS=pT|kRqK- z8^4{lh}q5&jELaS&av?a_TeNVIN=)h@u_{suEKt^vtt0G)U~Dp0HCX!y^ofnmz)jJ za^|`~_}*ya1!iS;5;mT%$^w!QNy3A0?f1t*C?E-0jV{ZkZnpZ^bheP4yhv8Rj%lUuV8|t1MC0*002ovPDHLkV1k4%>e&DQ literal 0 HcmV?d00001 diff --git a/pandora_console/images/os_icons/so_hpux_small.png b/pandora_console/images/os_icons/so_hpux_small.png new file mode 100755 index 0000000000000000000000000000000000000000..6208c064d2f39e0991488eecb3aec7843643f158 GIT binary patch literal 623 zcmV-#0+9WQP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iXY& z4HG!0bwGyz00HkwL_t(I%hi)lYZFlv#m}4f-Z;iY8!{@^Dx(BTkr>5I5$RH}BDfI> zimSM>{Q%VuV0JBa712czgn(@j>efG?2oWlz3R)DYmQ-V{Hsd7C%*&hWs&%4tuXlMk z=f~x8F7V$EE0oIgbiV$lOl=)99fkk^!3}VO5dao-o$cQTk-zouFRE&XEO+kcr;CF} zdO&a|isiZckLL#jH#&S;hhWZNo}!{3w7<-Z5Aj3$Q#)gp1Q9`)97{E~b}}~^5@FA} zxBtX3h-f%aT0bgW^3IP=rC;3}!GSYlh*=WJgavOc*gZ2g^#0VyU2RIv*E1bE^*X8L zZabc~OhJG|JZ6F$49_Mn<3n|ox)N5p*GVl$GaZ0F$F{?e(3P;5IDQS=x0x^{NB;H` zBoh`B+(4gW+nWM>r5PBo`m=@h>~*+}0KU?=nj65|sVgugN3*4ZO##m@Oy3)UsT>q4`)|aTzXd;W&luc_#}nFCW_^X z+wike@ZSJ#FtqhXVW==Yn~85VD;G{@vTnmC05BM1cOJ}DZkAqV1UHC?7yuXs16x?E z(#Kj0(K0Bd;dCdz?cEjM0RYvnUVUNdhb<-VDAM7B_CN4UzW{OO#KtJx?WF(!002ov JPDHLkV1g(a1~&iz literal 0 HcmV?d00001 diff --git a/pandora_console/images/os_icons/so_linux.png b/pandora_console/images/os_icons/so_linux.png new file mode 100755 index 0000000000000000000000000000000000000000..bbefe2ec455c42b2c8e8435582cc11a8434495ca GIT binary patch literal 696 zcmV;p0!RIcP)a8B{-MRO+d-q3;Nq=BQ5k|pUEm)WqMHu)e1HsCoBnZl&D2fWC zaQI+^Ypcj~qlqjN+KQ~b2pMEyMH{Ql+1>s2yE7NkMta~2=N!)coZtD~5&$KI!t?Ad z$MG3K5aJfgx?{!872ITuZRI#lqksTdtyb{7RJQ~`I$^U_K{Co%zhNU}Spi{>7Y)dA z2T(yWOq>p(RuxZ;w1ML7gxm{mzWemI`nN(<|yr*`feZQuYV#H)Ari z1=G>vINi|>i=~44z?}aDs8rU})cijABZaAtpP*_$DD;f_AnVU~YcQ}?MFF~@lnxDf zyNq(_WL&)Po|mVtd(wFiQob0&DT1hhg-xfS-QxYqH-fm1@dyFt8i e#x0i4_uw}&{+U-AleQoL0000l0ldN literal 0 HcmV?d00001 diff --git a/pandora_console/images/os_icons/so_linux_small.png b/pandora_console/images/os_icons/so_linux_small.png new file mode 100755 index 0000000000000000000000000000000000000000..c198a0664ecc8cf9c2136f68445f532075d00e23 GIT binary patch literal 748 zcmVPx#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iXY& z4H7J*w57WM00L}DL_t(I%Z-v>NKWQu$K(b_3YyHiwP*! zD~QzeAR0^poV`p{HET%#j%V_Ep$UnE7s*@;3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odMNU3` zL}uT9f@&3jcsh-^?s^7J(?$}lt!NlxYc-NPcj2{UFrG*D@R3Hdh~OrZh%xH{uwmWt zsGwnhxG}_94Du&FjzhIr#QOeU00OIvi!4k|5L7A{*F~)*na`uDtOZ;|a6AtU0yK)f zsTaUsTH?dd5TC}zz!=1F+0fS3c;v+67%##6opA~`ZV*P2Ttq-YQT!hj-e0}K%Ewu@ z_xF?9zN4{V-=?RTyLpS!(`hP&kBF%oFV8^V8`M|?M^LLc@fconGsg3%&J}4tb&~4B zXO`c+tcA`Pv7uXPBx#?+&&8vVB*K%mNRm?Q_*QHhL300000NkvXX Hu0mjf%Lin= literal 0 HcmV?d00001 diff --git a/pandora_console/images/os_icons/so_solaris.png b/pandora_console/images/os_icons/so_solaris.png new file mode 100755 index 0000000000000000000000000000000000000000..edf45fca4d55ec958bdb4324f8b38bb78f30052e GIT binary patch literal 846 zcmV-U1F`&xP)TU8v#KPP`~a+5TFYnwXMFf%)KvI$PcHgt;M)9`6_ zuX|NNd=MQ2-v**@zWCxEd>F_;L?32h(iJM$>RSJb zK+RlU+?Dc%U|q+-nEYXbU*qzkR40GzPp0}%io)qLG_K{>!QHk?bLuzTx-9@ryDm51 z{fPKe+5SMaR75@S%3%t}PSTjWB9icQl2A6Vu{+aF*ba1B8YK)!Lr=xARi`d_r2bb;mlZTYscxsVd%} zk3ei-J&66wg5+O*gH9$*_LKMMIW4^D6s;?HtPjtky*)-^&lA+fCow-8N8goY`1I=p zqak%yPYy-9#UMlp9}sL*m8#MD~p;fVy-fs{G2S)};RR6pQbl zAyhC(oI1haYsb*T5w+#{ipVCjzxzoRj=m|g@q_Yn^aUw?by05TCnA({3v%`8F)=

p}Hz|6bqP;KGGjrf06>QQm)mA}Ad2`g!i~ZjO%~QT^&N z>zNu=Tc&4nT%KR1SS;Z*+jv%WJW4|gb~t$GN%ro|FtQ`TKtxl0fo`}!W>d;HO^PdJ zDrFnnYGc-HT8@j?=OrGGGCUL`p43RD!o;Fsf`I^uWK7*R^j>7!wumT1glIIfJ<$8n Y->#Px#32;bRa{vGf6951U69E94oEQKA00(qQO+^RU2?Grl1%hh$(*OVgyh%hsR5;6H zU>Kg@!;=>b3=9kmpKd-TUeo)l_fZXb@bo_e0|UdCEB6@Qp1Q(CoFSL*UH|prlQRPY z1H-Egd;Y`3AI;wQAD12`WR8H2qSw>PNqfHk|9|A~&4&zMuHF6oaNUm2+|oiQn!bPj zglfu{XK$r`{rNo&V)Nc*7nS}0zTb1=|C?P$|KCsz{Qu?IyXCht8YaJ7yyO3mA77&} zobl!Dd#NW4bLTuL?D_w+e%Ak2yN=&tU|?YQ@c+-$pa1`NU9^q;|D07*qoM6N<$f&r5UxBvhE literal 0 HcmV?d00001 diff --git a/pandora_console/images/os_icons/so_win.png b/pandora_console/images/os_icons/so_win.png new file mode 100755 index 0000000000000000000000000000000000000000..1589e8aad075be809222c28a646594361642dd01 GIT binary patch literal 266 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+1|-AI^@Rf|#^NA%Cx&(BWL^R}Y)RhkE)4%c zaKYZ?lYt_f1s;*b3=G`DAk4@xYmNj^kiEpy*OmPys}Q#ycl6W~X+WVaPZ!4!i_^(A zhYx(1&&VH8^}VeT2o`?r6thd^(cuAtQ?q78sJ@Te-*-q{e8S;X@1C~1^Z4+DFfC>i zWYf8k#4cX(^P!-h<+1Yj_x{L-#3h?}#x`Ad-ECzn0RsQ*g%xGo%EE3%sPfD1?mF~b y{Oj>m?;gMIUCcS@ou;&HSwUm}dhJ5LRIQ6@Hl_nz#o+1c=d#Wzp$Py?kXZ}> literal 0 HcmV?d00001 diff --git a/pandora_console/images/os_icons/so_win_small.png b/pandora_console/images/os_icons/so_win_small.png new file mode 100755 index 0000000000000000000000000000000000000000..6ee55db82320e80216fbc3a77c7a11586c87fcd9 GIT binary patch literal 454 zcmV;%0XhDOP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iXY& z4G%i641D$g00BlxL_t(I%gvLqN&`U=Y~on*{7qC^1MNB!z?+?{>x_F}cgd%EsyDXJ-ES|DBa5FcD!jq8SIhF0m?Hy&baQ z>XgF>BEnIlfyTIio%eLw?M3cgh28CaRF^g49Ph&y0)WPdsxAkMU@J^&isjLHz2lGZ z=KO!ae){h)t-dL@ctZXL?Mq?hYtf^!9L}+^iA8)@H)l=?Pi3 zJd#TA+}^ilq$0Qg^_>e$r#X&'; + $img_node = ''; } else { $img_node = '-'; } diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 612518370a..88fca30077 100644 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -276,7 +276,7 @@ function print_os_icon ($id_os, $name = true, $return = false) { return "-"; } - $output = ''.$os_name.''; + $output = ''.$os_name.''; if ($name === true) { $output .= ' - '.$os_name;