Changeset 4
- Timestamp:
- Jul 27, 2016, 11:28:39 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 1 config.php 2 .buildpath 3 .project 4 .settings
-
- Property svn:ignore
-
trunk/error.php
r3 r4 3 3 include('global.php'); 4 4 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'], 6 6 'address' => $_GET['Adresa'], 'application' => $_GET['Aplikace'], 'state' => $_GET['Statové informace'], 7 7 'version' => $_GET['Verze'], 'release_date' => $_GET['Datum_vydání'], 'unit' => $_GET['Jednotka'], -
trunk/error_logging.php
r3 r4 3 3 include('global.php'); 4 4 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'], 6 6 'address' => $_GET['Adresa'], 'application' => $_GET['Aplikace'], 'state' => $_GET['Statové informace'], 7 7 'version' => $_GET['Verze'], 'release_date' => $_GET['Datum_vydání'], 'unit' => $_GET['Jednotka'], -
trunk/global.php
r3 r4 7 7 $Database = new Database(); 8 8 $Database->Connect($Options['DB_Host'], $Options['DB_User'], $Options['DB_Password'], $Options['DB_Database']); 9 $Database->charset('utf8'); 10 $Database->Prefix = $DB_Prefix; 9 11 10 12 function IconedLink($Link, $Text) -
trunk/index.php
r3 r4 7 7 <head> 8 8 <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"> 10 10 </head> 11 11 <body style="font-family: Arial;"> … … 14 14 <table>'; 15 15 16 $DbResult = $Database->select( $DB_Prefix.'projekty', '*', 'finished = 0');16 $DbResult = $Database->select('projekty', '*', 'finished = 0'); 17 17 while($Row = $DbResult->fetch_assoc()) 18 18 { … … 29 29 <table>'; 30 30 31 $DbResult = $Database->select( $DB_Prefix.'projekty', '*', 'finished = 1');31 $DbResult = $Database->select('projekty', '*', 'finished = 1'); 32 32 while($Row = $DbResult->fetch_assoc()) 33 33 { -
trunk/show_errors.php
r3 r4 12 12 foreach($Cols as $Index => $Item) $Output .= '<th>'.$Item.'</td>'; 13 13 $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); 15 15 while($Row = $DbResult->fetch_assoc()) 16 16 { … … 24 24 } 25 25 $Output .= '</table>'; 26 $DbResult = $Database->select( $DB_Prefix.'app_errors', 'COUNT(*)');26 $DbResult = $Database->select('app_errors', 'COUNT(*)'); 27 27 $Count = $DbResult->fetch_assoc(); 28 28 $Output .= PagesList('show_errors.php?page=', $_GET['page'], $Count[0], $PageItems);
Note:
See TracChangeset
for help on using the changeset viewer.