Exemplo n.º 1
0
 function validate($performance, $info)
 {
     require './lib/cl_performance.lib.php';
     require './lib/cl_wind.lib.php';
     // validate result
     $perf = new PerformanceAttempt($performance);
     $this->performance = $perf->getPerformance();
     if (is_null($this->performance)) {
         $GLOBALS['AA_ERROR'] = $GLOBALS['strErrInvalidResult'] . $performance;
     }
     $this->info = $GLOBALS['cfgResultsInfoFill'];
     if ($this->performance > 0) {
         // valid performance
         $wind = new Wind($info);
         $this->info = $wind->getWind();
     }
 }
Exemplo n.º 2
0
 function validate($performance, $info)
 {
     require './lib/cl_performance.lib.php';
     require './lib/cl_wind.lib.php';
     // validate result
     $perf = new PerformanceAttempt($performance);
     $this->performance = $perf->getPerformance();
     if (is_null($this->performance)) {
         $GLOBALS['AA_ERROR'] = $GLOBALS['strErrInvalidResult'] . $performance;
     }
     $this->info = $GLOBALS['cfgResultsInfoFill'];
     if ($this->performance > 0) {
         // valid performance
         $wind = new Wind($info);
         $this->info = $wind->getWind();
     }
     //  check more results when -1 or -4
     if ($performance == -1 || $performance == -4) {
         $sql = "SELECT r.Leistung FROM resultat AS r WHERE r.xSerienstart = " . $this->startID;
         $res = mysql_query($sql);
         if (mysql_errno($res)) {
         } else {
             if (mysql_num_rows($res) > 0) {
                 $GLOBALS['AA_ERROR'] = $GLOBALS['strErrInvalidResultByMore'];
             }
         }
     }
 }