Changeset 3 for trunk/error.php


Ignore:
Timestamp:
Jul 27, 2016, 8:36:02 PM (8 years ago)
Author:
chronos
Message:
  • Modified: Updated to work with PHP7. Old database class replaced by Common package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/error.php

    r1 r3  
    1 <php?
     1<?php
    22
    3 include('db.php');
     3include('global.php');
    44
    5 DB_Insert('app_errors', array('time' => $_GET['Èas'], 'message' => $_GET['Text_chyby'], 'exception' => $_GET['Tøída_vyjímky'],
     5$Database->insert($DB_Prefix.'app_errors', array('time' => $_GET['Čas'], 'message' => $_GET['Text_chyby'], 'exception' => $_GET['Třída_vyjímky'],
    66'address' => $_GET['Adresa'], 'application' => $_GET['Aplikace'], 'state' => $_GET['Statové informace'],
    7 'version' => $_GET['Verze'], 'release_date' => $_GET['Datum_vydání'], 'unit' => $_GET['Jednotka'], 
    8 'line_number' => $_GET['Øádek'], 'method' => $_GET['Metoda'], 'remote_addr' => $_SERVER["REMOTE_ADDR"],
     7'version' => $_GET['Verze'], 'release_date' => $_GET['Datum_vydání'], 'unit' => $_GET['Jednotka'],
     8'line_number' => $_GET['Řádek'], 'method' => $_GET['Metoda'], 'remote_addr' => $_SERVER["REMOTE_ADDR"],
    99'remote_host' => gethostbyaddr($_SERVER["REMOTE_ADDR"]), 'url' => $_SERVER["REQUEST_URI"]));
    10 
    11 ?>
Note: See TracChangeset for help on using the changeset viewer.