Version 3.2.3
This commit is contained in:
1 parent
ae5c01cc78
commit
78706903a2
2641 files changed
+228363
-201264
No files matched your search
@@ -2,39 +2,69 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* ACP notification config skin file
|
||||
* Last Updated: $Date: 2010-06-17 17:00:56 -0400 (Thu, 17 Jun 2010) $
|
||||
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: josh $
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @subpackage Members
|
||||
* @link http://www.invisionpower.com
|
||||
* @link http://hatynka.in
|
||||
* @since 20th February 2002
|
||||
* @version $Rev: 6551 $
|
||||
* @version $Rev: 8644 $
|
||||
*
|
||||
*/
|
||||
|
||||
class cp_skin_notifications extends output
|
||||
class cp_skin_notifications
|
||||
{
|
||||
|
||||
/**
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
}
|
||||
/**
|
||||
* Registry Object Shortcuts
|
||||
*
|
||||
* @var $registry
|
||||
* @var $DB
|
||||
* @var $settings
|
||||
* @var $request
|
||||
* @var $lang
|
||||
* @var $member
|
||||
* @var $memberData
|
||||
* @var $cache
|
||||
* @var $caches
|
||||
*/
|
||||
protected $registry;
|
||||
protected $DB;
|
||||
protected $settings;
|
||||
protected $request;
|
||||
protected $lang;
|
||||
protected $member;
|
||||
protected $memberData;
|
||||
protected $cache;
|
||||
protected $caches;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param object $registry Registry object
|
||||
* @return @e void
|
||||
*/
|
||||
public function __construct( ipsRegistry $registry )
|
||||
{
|
||||
$this->registry = $registry;
|
||||
$this->DB = $this->registry->DB();
|
||||
$this->settings =& $this->registry->fetchSettings();
|
||||
$this->request =& $this->registry->fetchRequest();
|
||||
$this->member = $this->registry->member();
|
||||
$this->memberData =& $this->registry->member()->fetchMemberData();
|
||||
$this->cache = $this->registry->cache();
|
||||
$this->caches =& $this->registry->cache()->fetchCaches();
|
||||
$this->lang = $this->registry->class_localization;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form to configure notification defaults
|
||||
*
|
||||
* @access public
|
||||
* @param array Application notification options
|
||||
* @param array Current configuration
|
||||
* @return string HTML
|
||||
@@ -52,7 +82,7 @@ $IPBHTML .= <<<HTML
|
||||
<h3>{$this->lang->words['notifications_config_title']}</h3>
|
||||
<form method='post' action='{$this->settings['base_url']}{$this->form_code}&do=save'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->_admin_auth_key}' />
|
||||
<table width='100%' class='alternate_rows double_pad'>
|
||||
<table class='ipsTable double_pad'>
|
||||
<tr>
|
||||
<th>{$this->lang->words['notificationtype_h']}</th>
|
||||
<th>{$this->lang->words['notificationdfs_h']}</th>
|
||||
@@ -61,8 +91,7 @@ $IPBHTML .= <<<HTML
|
||||
</tr>
|
||||
HTML;
|
||||
|
||||
$_options = array(
|
||||
array( 'pm', $this->lang->words['notopt__pm'] ),
|
||||
$_options = array(
|
||||
array( 'email', $this->lang->words['notopt__email'] ),
|
||||
array( 'inline', $this->lang->words['notopt__inline'] ),
|
||||
array( 'mobile', $this->lang->words['notopt__mobile'] )
|
||||
@@ -78,8 +107,8 @@ foreach( $options as $option )
|
||||
$_thisConfig['disabled'] = $option['disabled'];
|
||||
}
|
||||
|
||||
$_defaultOpt = $this->registry->output->formMultiDropdown( 'default_' . $option['key'] . '[]', $_options, $_thisConfig['selected'], 4, 'default_' . $option['key'] );
|
||||
$_disabledOpt = $this->registry->output->formMultiDropdown( 'disabled_' . $option['key'] . '[]', $_options, $_thisConfig['disabled'], 4,'disabled_' . $option['key'] );
|
||||
$_defaultOpt = $this->registry->output->formMultiDropdown( 'default_' . $option['key'] . '[]', $_options, $_thisConfig['selected'], 3, 'default_' . $option['key'] );
|
||||
$_disabledOpt = $this->registry->output->formMultiDropdown( 'disabled_' . $option['key'] . '[]', $_options, $_thisConfig['disabled'], 3,'disabled_' . $option['key'] );
|
||||
$_disableOver = $this->registry->output->formYesNo( 'disable_override_' . $option['key'], intval($_thisConfig['disable_override']) );
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
|
||||
Reference in new issue
Block a user