/** * Returns an instance of class (singleton pattern implementation). * * @return OW_Session */ public static function getInstance() { if (self::$classInstance === null) { self::$classInstance = new self(); } return self::$classInstance; }
/** * Returns session object. * * @return OW_Session */ public static function getSession() { return OW_Session::getInstance(); }
* governing rights and limitations under the License. The Original Code is Oxwall software. * The Initial Developer of the Original Code is Oxwall Foundation (http://www.oxwall.org/foundation). * All portions of the code written by Oxwall Foundation are Copyright (c) 2011. All Rights Reserved. * EXHIBIT B. Attribution Information * Attribution Copyright Notice: Copyright 2011 Oxwall Foundation. All rights reserved. * Attribution Phrase (not exceeding 10 words): Powered by Oxwall community software * Attribution URL: http://www.oxwall.org/ * Graphic Image as provided in the Covered Code. * Display of Attribution Information is required in Larger Works which are defined in the CPAL as a work * which combines Covered Code or portions thereof with code not governed by the terms of the CPAL. */ define('_OW_', true); define('DS', DIRECTORY_SEPARATOR); define('OW_DIR_ROOT', dirname(__FILE__) . DS); require_once OW_DIR_ROOT . 'ow_includes' . DS . 'init.php'; $session = OW_Session::getInstance(); $session->start(); $errorDetails = ''; if ($session->isKeySet('errorData')) { $errorData = unserialize($session->get('errorData')); $trace = ''; if (!empty($errorData['trace'])) { $trace = '<tr> <td class="lbl">Trace:</td> <td class="cnt">' . $errorData['trace'] . '</td> </tr>'; } $errorDetails = '<div style="margin-top: 30px;"> <b>Error details</b>: <table style="font-size: 13px;"> <tbody>