Exemplo n.º 1
0
 /**
  * hataları silen method
  *
  * @return array
  */
 public function setDelete()
 {
     if ($this->criteria['file'] != '') {
         $paramArr = array('islemKodu' => 'toplusil', 'file' => $this->criteria['file'], 'line' => $this->criteria['line']);
     } else {
         $paramArr = array('islemKodu' => 'sil', 'id' => preg_replace('/,$/', '', $this->criteria['id']));
     }
     $CURL = new Curl(Config::JSON_URL . '/EDV03_PORTAL_PHPError/PhpErrorJSON', $paramArr);
     return $CURL->getArray();
 }
Exemplo n.º 2
0
 /**
  *
  * @param int $errno
  * @param string $errmsg
  * @param string $filename
  * @param int $linenum
  * @param string $vars
  * @param boolean $redirect
  * @return void
  */
 public static function errorHandler($errno, $errmsg, $filename, $linenum, $vars, $redirect = true)
 {
     if (is_integer($errno) && ($errno > E_NOTICE || $errno == 1)) {
         $host = self::getHostName();
         $time = microtime(true) - (double) \model\Request::_session('microtime');
         $arr = debug_backtrace();
         $len = count($arr);
         for ($i = 0; $i < $len; $i++) {
             $arr[$i]['args'][4] = array();
         }
         $paramArr = array('islemKodu' => 'ekle', 'ip_address' => Header::getIpAddress(), 'url' => $_SERVER['REQUEST_URI'], 'get' => json_encode($_GET), 'post' => json_encode($_POST), 'session' => json_encode($_SESSION), 'cookie' => json_encode($_COOKIE), 'execute_time' => $time, 'server_ip' => $_SERVER['SERVER_ADDR'], 'error_no' => $errno, 'message' => $errmsg, 'file' => $filename, 'line' => $linenum, 'host' => $host, 'error_data' => json_encode($arr), 'parameters' => json_encode(Listener::getInstance()->parameters));
         $CURL = new Curl(Config::JSON_URL . '/EDV03_PORTAL_PHPError/PhpErrorJSON', $paramArr);
         $CURL->getArray();
         if ($redirect) {
             Header::redirect(Config::ERROR_URL);
         }
     }
 }
Exemplo n.º 3
0
 /**
  * HTML header içerisindeki bilgileri get eder
  * 
  * @return array
  */
 public static function getHeaderDetail()
 {
     $CURL = new Curl(Config::JSON_URL . '', ['param1' => 'HizmetLinkindenHizmetBilgisiGetir', 'link' => Request::_get('page'), 'tip' => 1], Timeout::get(1, Timeout::HOUR), true);
     return $CURL->getArray();
 }