Example #1
0
 protected function remoteImageExists($img)
 {
     try {
         $result = file_get_contents($img, false, null, 0, 1);
     } catch (Exception $ignored) {
         $this->LOG->error("remoteImageExists -> file_get_contents failed");
         return false;
     }
     return $result !== false;
 }
Example #2
0
 public function plot($user)
 {
     if ($this->time != null) {
         $graph = new ChartPlotter($this->time, $user);
         $graph->render();
     } else {
         $this->log->error("{$this->user} has no limits to show");
     }
 }