Changeset 4


Ignore:
Timestamp:
Jul 27, 2016, 11:28:39 PM (8 years ago)
Author:
chronos
Message:
  • Fixed: Use table prefix from Database class.
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        11config.php
         2.buildpath
         3.project
         4.settings
  • trunk/error.php

    r3 r4  
    33include('global.php');
    44
    5 $Database->insert($DB_Prefix.'app_errors', array('time' => $_GET['Čas'], 'message' => $_GET['Text_chyby'], 'exception' => $_GET['Třída_vyjímky'],
     5$Database->insert('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'],
    77'version' => $_GET['Verze'], 'release_date' => $_GET['Datum_vydání'], 'unit' => $_GET['Jednotka'],
  • trunk/error_logging.php

    r3 r4  
    33include('global.php');
    44
    5 $Database->insert($DB_Prefix.'app_errors', array('time' => $_GET['Čas'], 'message' => $_GET['Text_chyby'], 'exception' => $_GET['Třída_vyjímky'],
     5$Database->insert('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'],
    77'version' => $_GET['Verze'], 'release_date' => $_GET['Datum_vydání'], 'unit' => $_GET['Jednotka'],
  • trunk/global.php

    r3 r4  
    77$Database = new Database();
    88$Database->Connect($Options['DB_Host'], $Options['DB_User'], $Options['DB_Password'], $Options['DB_Database']);
     9$Database->charset('utf8');
     10$Database->Prefix = $DB_Prefix;
    911
    1012function IconedLink($Link, $Text)
  • trunk/index.php

    r3 r4  
    77<head>
    88<title>Osobní stránky Jiřího Hajdy</title>
    9 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
     9<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    1010</head>
    1111<body style="font-family: Arial;">
     
    1414<table>';
    1515
    16 $DbResult = $Database->select($DB_Prefix.'projekty', '*', 'finished = 0');
     16$DbResult = $Database->select('projekty', '*', 'finished = 0');
    1717while($Row = $DbResult->fetch_assoc())
    1818{
     
    2929<table>';
    3030
    31 $DbResult = $Database->select($DB_Prefix.'projekty', '*', 'finished = 1');
     31$DbResult = $Database->select('projekty', '*', 'finished = 1');
    3232while($Row = $DbResult->fetch_assoc())
    3333{
  • trunk/show_errors.php

    r3 r4  
    1212foreach($Cols as $Index => $Item) $Output .= '<th>'.$Item.'</td>';
    1313$Output .= '</tr>';
    14 $DbResult = $Database->select($DB_Prefix.'app_errors', '*', '1 ORDER BY id DESC LIMIT '.$Page*$PageItems.','.$PageItems);
     14$DbResult = $Database->select('app_errors', '*', '1 ORDER BY id DESC LIMIT '.$Page*$PageItems.','.$PageItems);
    1515while($Row = $DbResult->fetch_assoc())
    1616{
     
    2424}
    2525$Output .= '</table>';
    26 $DbResult = $Database->select($DB_Prefix.'app_errors', 'COUNT(*)');
     26$DbResult = $Database->select('app_errors', 'COUNT(*)');
    2727$Count = $DbResult->fetch_assoc();
    2828$Output .= PagesList('show_errors.php?page=', $_GET['page'], $Count[0], $PageItems);
Note: See TracChangeset for help on using the changeset viewer.