0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
7.0-0
/
standard
/
htdocs
/
lib
/
[
Home
]
File: errorreportlib.php
<?php // (c) Copyright 2002-2011 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id: errorreportlib.php 33686 2011-03-28 16:15:32Z lphuberdeau $ class ErrorReportLib { function report($message) { if (! isset($_SESSION['errorreport'])) { $_SESSION['errorreport'] = array(); } $_SESSION['errorreport'][] = $message; } function get_errors() { if (! isset($_SESSION['errorreport'])) { return array(); } $errors = $_SESSION['errorreport']; unset($_SESSION['errorreport']); return $errors; } }