Rev 4 | Rev 8 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4 | Rev 6 | ||
---|---|---|---|
Line 60... | Line 60... | ||
60 | if (!logviewer_allow_solvemark()) _err('No permission to mark entries as solved!'); |
60 | if (!logviewer_allow_solvemark()) _err('No permission to mark entries as solved!'); |
61 | } catch (Exception $e) { |
61 | } catch (Exception $e) { |
62 | _err($e->getMessage()); |
62 | _err($e->getMessage()); |
63 | } |
63 | } |
64 | 64 | ||
65 | $res = @mysql_query('select id from vts_fehlerlog where (id = '.$_REQUEST['id'].') '.$hardcoded_filters); |
65 | $res = @db_query('select id from vts_fehlerlog where (id = '.$_REQUEST['id'].') '.$hardcoded_filters); |
66 | if (!$res) _err('mysql query failed'); |
66 | if (!$res) _err('mysql query failed'); |
67 | if (mysql_num_rows($res) == 0) _err('Row not found or no permission given.'); |
67 | if (db_num_rows($res) == 0) _err('Row not found or no permission given.'); |
68 | 68 | ||
69 | $res = @mysql_query('update vts_fehlerlog set anzahlsolved = anzahl where (id = '.$_REQUEST['id'].') '.$hardcoded_filters); |
69 | $res = @db_query('update vts_fehlerlog set anzahlsolved = anzahl where (id = '.$_REQUEST['id'].') '.$hardcoded_filters); |
70 | if (!$res) _err('mysql query failed'); |
70 | if (!$res) _err('mysql query failed'); |
71 | 71 | ||
72 | $out = array(); |
72 | $out = array(); |
73 | $out['success'] = true; |
73 | $out['success'] = true; |
74 | $out['id'] = $_REQUEST['id']; // give OK to hide the line |
74 | $out['id'] = $_REQUEST['id']; // give OK to hide the line |