manage code is sometimes strange, even for me
for the security, keep in mind that, in my case, cacti is not exposed to internet and that i have IP restrictions for IT staff and ssl for my apache web server
and that manage is already listed ALPHA in the first post
mcutting, try to upgrade to php 5, strripos function is not implemented in php 4
or maybe try this code :
Code: Select all
while ($row3 = mysql_fetch_array($result3, MYSQL_ASSOC)) {
?>
<input type='checkbox' style='margin: 0px;' name='chk2_<?php $pos=strrpos($row3['name_cache']," - ")+1; $str=substr($row3['name_cache'],$pos); print $str;?>'<?php
for ($m=0;$m<count($o);$m++) {
if (strtolower($str) == strtolower($o[$m])) {
print " checked";
}
}
?>
><?php print $str;
print "</select><br>";