Skip to content

Instantly share code, notes, and snippets.

@lianglee
Created September 16, 2020 14:03
Show Gist options
  • Save lianglee/630071a4f06326f7e6787a1de40c7155 to your computer and use it in GitHub Desktop.
Save lianglee/630071a4f06326f7e6787a1de40c7155 to your computer and use it in GitHub Desktop.
/system/handlers/errors.php replace it
<?php
/**
* Open Source Social Network
*
* @package (softlab24.com).ossn
* @author OSSN Core Team <[email protected]>
* @copyright (C) SOFTLAB24 LIMITED
* @license Open Source Social Network License (OSSN LICENSE) http://www.opensource-socialnetwork.org/licence
* @link https://www.opensource-socialnetwork.org/
*/
$email = ossn_site_settings('owner_email');
$icon = ossn_theme_url().'images/broken.png';
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title><?php echo ossn_site_settings('site_name'); ?></title>
<link rel="stylesheet"href="<?php echo ossn_site_url(); ?>themes/<?php echo ossn_site_settings('theme'); ?>/plugins/default/css/exception.css"type="text/css"/>
</head>
<body>
<div class="ossn-exception-topbar">&#128736; <span style="margin-left:5px;"><?php echo ossn_site_settings('site_name'); ?></span></div>
<div class="ossn-exception-handler">
<div class="container-inner">
<div class="ossn-logo"></div>
<div class="title"><?php echo ossn_print('ossn:exception:title', array($email)); ?></div>
</div>
<div class="ossn-exception-description">
<div>
<pre><?php echo $params['exception']; ?></pre>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment