Changeset 37 for trunk/lib/App.inc.php


Ignore:
Timestamp:
Dec 14, 2005 7:07:43 AM (18 years ago)
Author:
scdev
Message:

updated messaging functionality in Upload::

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/App.inc.php

    r36 r37  
    1010 */
    1111 
    12 //  Message Types
    13 define('MSG_SUCCESS', 0);
    14 define('MSG_NOTICE', 1);
     12// Message Types.
     13define('MSG_ERR', 1);
     14define('MSG_ERROR', MSG_ERR);
    1515define('MSG_WARNING', 2);
    16 define('MSG_ERR', 3); // PHP user error style.
    17 define('MSG_ERROR', 3);
     16define('MSG_NOTICE', 4);
     17define('MSG_SUCCESS', 8);
    1818
    1919require_once dirname(__FILE__) . '/Utilities.inc.php';
     
    373373        }
    374374       
    375         $_SESSION[$this->app]['messages'][] = array(
     375        // Save message in session under unique key to avoid duplicate messages.
     376        $_SESSION[$this->app]['messages'][md5($type . $message . $file . $line)] = array(
    376377            'type'    => $type,
    377378            'message' => $message,
Note: See TracChangeset for help on using the changeset viewer.