Ejemplo n.º 1
0
function getVersionConfigFileVOPTECH($ip, $user, $passwd)
{
    $nonce = getNonceVOPTECH($ip);
    usleep(500000);
    $fileC = getConfigFileVOPTECH($ip, $nonce, $user, $passwd, true);
    usleep(500000);
    $logou = logoutVOPTECH($ip, $nonce);
    return $fileC;
}
 function isVendorVoptech($user, $password, $ip, $sw)
 {
     include_once "vendors/Voptech.cfg.php";
     $nonce = getNonceVOPTECH($ip);
     usleep(500000);
     $fileP = getInitialPageVOPTECH($ip, $nonce, $user, $password);
     usleep(500000);
     $logou = logoutVOPTECH($ip, $nonce);
     if ($fileP != null) {
         if (!preg_match("/title.htm/", $fileP)) {
             if (preg_match("/currentstat.htm/", $fileP)) {
                 return true;
             }
         }
     } else {
         $this->errMsg = _tr("Unable to connect to ") . $ip;
         return false;
     }
     return false;
 }