r4092 new API for dispaying messages (showError, showWarning, showSuccess)
authorAlexey Andriyanov <alan@al-an.info>
Tue, 11 Jan 2011 07:50:30 +0000 (07:50 +0000)
committerAlexey Andriyanov <alan@al-an.info>
Tue, 11 Jan 2011 07:50:30 +0000 (07:50 +0000)
commit0840847232058d23d49ea76702b998765edac887
tree14c4b80110edacf1581a200a80a090e6b6c267e6
parent9b6e7bd1f32f14531a44ba03a78e58870a252808
r4092 new API for dispaying messages (showError, showWarning, showSuccess)

index.php:
 merged together all HTML layout
 added output buffering to collect all the messages before the HTML layout rendering

process.php:
 used new functions instead of oneLiner.
 added logic to redirect to the submit form page when ophandler returns NULL

render_image.php:
 changed old showError calls to the calls of new one

inc/interface.php:
 showTabs: removed surrounding <td>'s from the output
 renderObject8021QSync: changed old showError calls to the calls of new one
 renderDiscoveredNeighbors: idem

inc/auth.php:
 authenticated_via_ldap: changed old showError calls to the calls of new one

inc/init.php:
 -showError: the old version of the func removed, the new one is implemented in functions.php
 -showWarning: idem

inc/functions.php:
 getCellFilter: changed old showWarning calls to the calls of new one
 buildLVSConfig: idem
 eval_expression: idem
+setMessage: function for rendering or queueing all kinds of messages
+showError, showWarning, showSuccess, showNotice: wrappers around setMessage

upgrade.php:
-showFailure
 changed calls to showFailure to calls to showError
 added dependency on functions.php

inc/ophandlers.php:
 buildWideRedirectURL: now $_SESSION['log'] is merged with $log, not substituted
ChangeLog
inc/auth.php
inc/functions.php
inc/init.php
inc/interface.php
inc/ophandlers.php
index.php
process.php
render_image.php
upgrade.php