Przy ustawionych kliku serwerach arpd_servers choosemac.php wyswietla tylko te pobrane z tego ostatniego mial ktos taki przypadek ? Obecnie Techlak ale na poprzednich to samo :/ !DSPAM:48e61b4d195166491211187!
Krzysztof Sroka pisze:
Przy ustawionych kliku serwerach arpd_servers choosemac.php wyswietla tylko te pobrane z tego ostatniego mial ktos taki przypadek ?
Obecnie Techlak ale na poprzednich to samo :/
Pokaz jak masz skonstruowany ten wpis. -- Waldemar Dymkiewicz, administrator urządzeń sieciowych "Easy Com" Piotr Świątek, ul. Jodłowa 7, Góra tel. 65 543 20 44, kom. 502 321 851 !DSPAM:48e62978206748045311664!
obojetnie czy w /etc/lms/lms.ini czy w phpui arpd_servers = xxx.xxx.xxx.xxx:1029 yyy.yyy.yyy.yyy:1029 z portami czy bez to samo mam zawsze listing z ostatniego czyli yyy.yyy.yyy.yyy pozdrawiam Krzysiek !DSPAM:48e63753216176908914954!
Problem rozwiazany: zamiast array_merge() musi byc array_merge_recursive() pozdrawiam Krzysiek choosemac.php <?php /* * LMS version 1.11.4 Telchak * * (C) Copyright 2001-2008 LMS Developers * * Please, see the doc/AUTHORS for more information about authors! * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License Version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, * USA. * * $Id: choosemac.php,v 1.28 2008/01/07 15:53:25 madmark Exp $ */ $layout['pagetitle'] = trans('Select MAC address'); $p = isset($_GET['p']) ? $_GET['p'] : ''; $js = ''; if(!$p) $js = 'var targetfield = window.opener.targetfield;'; elseif($p == 'main') { $js = 'var targetfield = parent.targetfield;'; $maclist = $LMS->GetMACs(); if(isset($CONFIG['phpui']['arpd_servers']) && $CONFIG['phpui']['arpd_servers']) { $servers = explode(' ', eregi_replace("[\t ]+"," ",$CONFIG['phpui']['arpd_servers'])); foreach($servers as $server) { $res = explode(':', $server); if(!isset($res[1]) || $res[1] == '') $res[1] = 1029; $remote = $LMS->GetRemoteMACs($res[0], $res[1]); $maclist = array_merge_recursive($maclist, $remote); } } if(sizeof($maclist)) array_multisort($maclist['longip'],$maclist['mac'],$maclist['ip'],$maclist['nodename']); $SMARTY->assign('maclist',$maclist); } $SMARTY->assign('part', $p); $SMARTY->assign('js', $js); $SMARTY->display('choosemac.html'); ?> !DSPAM:48e64d60233832079114581!
uczestnicy (2)
-
Krzysztof Sroka -
Waldemar Dymkiewicz