50 lines
1.4 KiB
PHP
50 lines
1.4 KiB
PHP
<?php
|
|
|
|
/**
|
|
* <pre>
|
|
* Invision Power Services
|
|
* IP.Board v3.2.3
|
|
* Define the core notification types
|
|
* Last Updated: $Date: 2011-03-11 06:59:39 -0500 (Fri, 11 Mar 2011) $
|
|
* </pre>
|
|
*
|
|
* @author $Author: ips_terabyte $
|
|
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
|
* @license This is NULLED!
|
|
* @package IP.Board
|
|
* @subpackage Core
|
|
* @link http://hatynka.in
|
|
* @since 20th February 2002
|
|
* @version $Rev: 8031 $
|
|
*
|
|
*/
|
|
|
|
if ( ! defined( 'IN_IPB' ) )
|
|
{
|
|
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
|
exit();
|
|
}
|
|
|
|
|
|
|
|
class core_notifications
|
|
{
|
|
public function getConfiguration()
|
|
{
|
|
/**
|
|
* Notification types - Needs to be a method so when require_once is used, $_NOTIFY isn't empty
|
|
*/
|
|
$_NOTIFY = array(
|
|
// Future...
|
|
// array( 'key' => 'reputation_received', 'default' => array( 'inline' ), 'disabled' => array() ),
|
|
array( 'key' => 'report_center', 'default' => array( 'email' ), 'disabled' => array(), 'show_callback' => TRUE, 'icon' => 'notify_reportcenter' ),
|
|
array( 'key' => 'new_comment' , 'default' => array( 'email' ), 'disabled' => array(), 'show_callback' => false, 'icon' => 'notify_profilecomment' ),
|
|
);/*noLibHook*/
|
|
return $_NOTIFY;
|
|
}
|
|
|
|
public function report_center()
|
|
{
|
|
return $this->memberData['access_report_center'];
|
|
}
|
|
} |