r4487 The error messaging system is renewed, legacy stuff is removed
authorAlexey Andriyanov <alan@al-an.info>
Sat, 23 Apr 2011 14:10:39 +0000 (14:10 +0000)
committerAlexey Andriyanov <alan@al-an.info>
Sat, 23 Apr 2011 14:10:39 +0000 (14:10 +0000)
commit8ab645cff95a45b232f3752e6240453f6686d5d9
tree8b69f2e1a01986115ffefd764030bade4c43e83a
parent4d043be131abe1b1053aae2286f89f0b8d70c17b
r4487 The error messaging system is renewed, legacy stuff is removed

buildRedirectURL: it is renamed buildWideRedirectURL, now is has nothing to do with logs, only URLs, which makes sence
Old buildRedirectURL is removed, use showFuncMessage instead. It has nothing to do with URLs, only logs

Replaced call to buildRedirectURL by showFuncMessage in most ophandlers, cause the only sence of calling it was to show message
editAddress: checking the retval of DB function removed
editv6Address: idem

processGridForm: now returns BOOL instad of log array
updateObjectAllocation: reflecting changes in processGridForm
updateRackDesign: idem
updateRackProblems: idem

setSwitchVLANs: now sets log messages by itelf, returns nothing
setPortVLAN: reflecting changes in setSwitchVLANs

showMessageOrError: removed unused msgcodes and the spport of old v1 and v2 log formats

emptyLog: not needed any more, removed
oneLiner: idem
mergeLogs: idem

setMessage: reflecing v3 version of log
getMessagesCount: idem
showOneLiner: new function constructing and queueing v3 log message by its code
showFuncMessage: same but with search in $msgcode. Used everywhere instead of former buildRedirectURL
wwwroot/inc/database.php
wwwroot/inc/functions.php
wwwroot/inc/gateways.php
wwwroot/inc/interface.php
wwwroot/inc/ophandlers.php
wwwroot/inc/snmp.php
wwwroot/index.php