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,59 +2,69 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* ACP tools skin file
|
||||
* Last Updated: $Date: 2010-09-29 20:23:38 -0400 (Wed, 29 Sep 2010) $
|
||||
* Last Updated: $Date: 2011-09-20 18:16:05 -0400 (Tue, 20 Sep 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @author $Author: rtissier $
|
||||
* @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: 6925 $
|
||||
* @version $Rev: 9519 $
|
||||
*
|
||||
*/
|
||||
|
||||
class cp_skin_tools extends output
|
||||
class cp_skin_tools
|
||||
{
|
||||
|
||||
/**
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Show notice if no banned_group set
|
||||
*
|
||||
* @access public
|
||||
* @return string HTML
|
||||
*/
|
||||
public function bannedGroupNotice(){
|
||||
$IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<div class='information-box'>
|
||||
{$this->lang->words['nobannedgroup_notice']}
|
||||
</div>
|
||||
<br />
|
||||
HTML;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Merge start form
|
||||
*
|
||||
* @access public
|
||||
* @param array Member data
|
||||
* @return string HTML
|
||||
*/
|
||||
@@ -76,17 +86,15 @@ $IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>{$title}</h3>
|
||||
|
||||
<ul class='acp-form alternate_rows'>
|
||||
<li>
|
||||
<label>{$this->lang->words['merge_find_name']}</label>
|
||||
<input type='text' class='textinput' id='members_display_name' name='members_display_name' value='' />
|
||||
</li>
|
||||
</ul>
|
||||
<table class='ipsTable double_pad'>
|
||||
<tr>
|
||||
<td class='field_title'><strong class='title'>{$this->lang->words['merge_find_name']}</strong></td>
|
||||
<td class='field_field'><input type='text' class='textinput' id='members_display_name' name='members_display_name' value='' /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class='acp-actionbar'>
|
||||
<div class='centeraction'>
|
||||
<input type='submit' class='button primary' value=' {$this->lang->words['merge_continue_button']} ' />
|
||||
</div>
|
||||
<input type='submit' class='button primary' value='{$this->lang->words['merge_continue_button']}' />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -104,7 +112,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Confirm merge of two members
|
||||
*
|
||||
* @access public
|
||||
* @param array Member data
|
||||
* @param array Member data
|
||||
* @return string HTML
|
||||
@@ -128,21 +135,19 @@ $IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['merge_confirm_title']}</h3>
|
||||
|
||||
<ul class='acp-form alternate_rows'>
|
||||
<li>
|
||||
<label>{$this->lang->words['merge_remove']}</label>
|
||||
<a href='{$this->settings['_original_base_url']}/index.php?showuser={$member2['member_id']}'>{$member2['members_display_name']}</a>
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['merge_keep']}</label>
|
||||
<a href='{$this->settings['_original_base_url']}/index.php?showuser={$member['member_id']}'>{$member['members_display_name']}</a>
|
||||
</li>
|
||||
</ul>
|
||||
<table class='ipsTable double_pad'>
|
||||
<tr>
|
||||
<td class='field_title'><strong class='title'>{$this->lang->words['merge_remove']}</strong></td>
|
||||
<td class='field_field'><a href='{$this->settings['_original_base_url']}/index.php?showuser={$member2['member_id']}'>{$member2['members_display_name']}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'><strong class='title'>{$this->lang->words['merge_keep']}</strong></td>
|
||||
<td class='field_field'><a href='{$this->settings['_original_base_url']}/index.php?showuser={$member['member_id']}'>{$member['members_display_name']}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class='acp-actionbar'>
|
||||
<div class='centeraction'>
|
||||
<input type='submit' class='button primary' value=' {$this->lang->words['merge_submit']} ' />
|
||||
</div>
|
||||
<input type='submit' class='button primary' value='{$this->lang->words['merge_submit']}' />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -155,7 +160,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Member tools splash page
|
||||
*
|
||||
* @access public
|
||||
* @param string Message
|
||||
* @param array Form elements
|
||||
* @return string HTML
|
||||
@@ -168,8 +172,7 @@ $IPBHTML = "";
|
||||
if( $message )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['t_message']}</h3>
|
||||
<div class='information-box'>
|
||||
<p>{$message}</p>
|
||||
</div>
|
||||
<br />
|
||||
@@ -186,15 +189,15 @@ $IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['t_showallip']}</h3>
|
||||
|
||||
<ul class='acp-form alternate_rows'>
|
||||
<li>
|
||||
<label>{$form['text']}</label>
|
||||
{$form['form']}
|
||||
</li>
|
||||
</ul>
|
||||
<table class='ipsTable double_pad'>
|
||||
<tr>
|
||||
<td class='field_title'><strong class='title'>{$form['text']}</strong></td>
|
||||
<td class='field_field'>{$form['form']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class='acp-actionbar'>
|
||||
<input type='submit' class='button primary' value=' {$this->lang->words['t_showallbutton']} ' />
|
||||
<input type='submit' class='button primary' value='{$this->lang->words['t_showallbutton']}' />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -204,15 +207,15 @@ $IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['t_ipmulti']}</h3>
|
||||
|
||||
<ul class='acp-form alternate_rows'>
|
||||
<li>
|
||||
<label>{$this->lang->words['t_showme']}</label>
|
||||
{$form_ip}
|
||||
</li>
|
||||
</ul>
|
||||
<table class='ipsTable double_pad'>
|
||||
<tr>
|
||||
<td class='field_title'><strong class='title'>{$this->lang->words['t_showme']}</strong></td>
|
||||
<td class='field_field'>{$form_ip}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class='acp-actionbar'>
|
||||
<input type='submit' class='button primary' value=' {$this->lang->words['t_showmebutton']} ' />
|
||||
<input type='submit' class='button primary' value='{$this->lang->words['t_showmebutton']}' />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -232,7 +235,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Delete PM wrapper
|
||||
*
|
||||
* @access public
|
||||
* @param array Member
|
||||
* @param int Total topics
|
||||
* @param int Total replies
|
||||
@@ -254,26 +256,26 @@ $repliesYesNo = $this->registry->output->formYesNo( 'replies', 0 );
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<div class='section_title'>
|
||||
<h2>Управление пользователем</h2>
|
||||
<h2>{$this->lang->words['member_management_h2']}</h2>
|
||||
</div>
|
||||
|
||||
<form action='{$this->settings['base_url']}&module=members&section=tools&do=deleteMessages&member_id={$member['member_id']}&confirm=1' method='post'>
|
||||
<form action='{$this->settings['base_url']}module=members&section=tools&do=deleteMessages&member_id={$member['member_id']}&confirm=1' method='post'>
|
||||
<div class='acp-box'>
|
||||
<h3>Удаление всех личных сообщений {$member['members_display_name']}</h3>
|
||||
<table class='form_table alternate_rows double_pad'>
|
||||
<h3>{$this->lang->words['tools_delete_all_pms']} {$member['members_display_name']}</h3>
|
||||
<table class='ipsTable double_pad'>
|
||||
<tr>
|
||||
<td style='width: 40%'>
|
||||
<strong>{$this->lang->words['total_pms_topics']}</strong>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['total_pms_topics']}</strong>
|
||||
</td>
|
||||
<td style='width: 60%'>
|
||||
<td class='field_field'>
|
||||
{$topicsYesNo}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<strong>{$this->lang->words['total_pms_replies']}</strong>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['total_pms_replies']}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<td class='field_field'>
|
||||
{$repliesYesNo}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -292,7 +294,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Show all of a member's IP addresses
|
||||
*
|
||||
* @access public
|
||||
* @param array Member data
|
||||
* @param array All IPs
|
||||
* @param string Page links
|
||||
@@ -310,7 +311,7 @@ $IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>{$counttxt}</h3>
|
||||
|
||||
<table class='alternate_rows' width='100%'>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<th width='20%'>{$this->lang->words['t_ipaddy']}</th>
|
||||
<th width='10%'>{$this->lang->words['t_timesused']}</th>
|
||||
@@ -333,7 +334,7 @@ if( is_array($allips) AND count($allips) )
|
||||
<td>{$use_info[0]}</td>
|
||||
<td>{$date}</td>
|
||||
<td>{$others}</td>
|
||||
<td><a href='{$this->settings['base_url']}&module=members&section=tools&do=learn_ip&ip={$ip_address}'>{$this->lang->words['t_learnmore']}</a></td>
|
||||
<td><a href='{$this->settings['base_url']}module=members&section=tools&do=learn_ip&ip={$ip_address}'>{$this->lang->words['t_learnmore']}</a></td>
|
||||
</tr>
|
||||
HTML;
|
||||
}
|
||||
@@ -349,10 +350,8 @@ HTML;
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
</table>
|
||||
<div class='acp-actionbar'>
|
||||
<div class='rightaction'>
|
||||
{$links}
|
||||
</div>
|
||||
<div class='acp-actionbar' style='text-align: left;'>
|
||||
{$links}
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
@@ -366,7 +365,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Learn about an IP
|
||||
*
|
||||
* @access public
|
||||
* @param string Host address
|
||||
* @param array All registering members
|
||||
* @param array All posting members
|
||||
@@ -385,7 +383,7 @@ $IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['hostaddress_for']} {$this->request['ip']}</h3>
|
||||
|
||||
<table class='alternate_rows' width='100%'>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<td width='40%'>{$this->lang->words['t_ipresolves']}</td>
|
||||
<td width='60%'>{$hostAddr}</td>
|
||||
@@ -396,7 +394,7 @@ $IPBHTML .= <<<HTML
|
||||
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['t_ipreg']}</h3>
|
||||
<table class='alternate_rows' width='100%'>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<th width='30%'>{$this->lang->words['t_ipname']}</th>
|
||||
<th width='20%'>{$this->lang->words['t_ipemail']}</th>
|
||||
@@ -437,7 +435,7 @@ $IPBHTML .= <<<HTML
|
||||
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['t_ipposting']}</h3>
|
||||
<table class='alternate_rows' width='100%'>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<th width='30%'>{$this->lang->words['t_ipname']}</th>
|
||||
<th width='20%'>{$this->lang->words['t_ipemail']}</th>
|
||||
@@ -478,7 +476,7 @@ $IPBHTML .= <<<HTML
|
||||
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['t_ipvoting']}</h3>
|
||||
<table class='alternate_rows' width='100%'>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<th width='30%'>{$this->lang->words['t_ipname']}</th>
|
||||
<th width='20%'>{$this->lang->words['t_ipemail']}</th>
|
||||
@@ -520,7 +518,7 @@ $IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['t_ipemailing']}</h3>
|
||||
|
||||
<table class='alternate_rows' width='100%'>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<th width='30%'>{$this->lang->words['t_ipname']}</th>
|
||||
<th width='30%'>{$this->lang->words['t_ipemail']}</th>
|
||||
@@ -559,7 +557,7 @@ $IPBHTML .= <<<HTML
|
||||
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['t_ipvalidating']}</h3>
|
||||
<table class='alternate_rows' width='100%'>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<th width='30%'>{$this->lang->words['t_ipname']}</th>
|
||||
<th width='30%'>{$this->lang->words['t_ipemail']}</th>
|
||||
@@ -598,7 +596,7 @@ $IPBHTML .= <<<HTML
|
||||
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['t_ipalsofound']}</h3>
|
||||
<table class='alternate_rows' width='100%'>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<th width='30%'>{$this->lang->words['t_ipname']}</th>
|
||||
<th width='30%'>{$this->lang->words['t_ip_table']}</th>
|
||||
@@ -649,441 +647,4 @@ HTML;
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validation queue wrapper
|
||||
*
|
||||
* @access public
|
||||
* @param string Type of queue
|
||||
* @param string Queue HTML
|
||||
* @param int Page start
|
||||
* @param string New order
|
||||
* @param string Page links
|
||||
* @return string HTML
|
||||
*/
|
||||
public function queueWrapper( $type, $name, $content, $st, $new_ord, $links ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$table_text = mb_strtolower($name);
|
||||
$this->form_code = 'module=members&section=tools';
|
||||
$memberq = sprintf( $this->lang->words['t_memberq'], $table_text );
|
||||
$_do = $this->request['do'];
|
||||
|
||||
if( $_do == 'do_validating' )
|
||||
{
|
||||
$_do = 'validating';
|
||||
}
|
||||
else if( $_do == 'do_locked' )
|
||||
{
|
||||
$_do = 'locked';
|
||||
}
|
||||
else if( $_do == 'do_banned' )
|
||||
{
|
||||
$_do = 'banned';
|
||||
}
|
||||
else if( $_do == 'do_spam' )
|
||||
{
|
||||
$_do = 'spam';
|
||||
}
|
||||
else if( $_do == 'do_incomplete' )
|
||||
{
|
||||
$_do = 'incomplete';
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<div class='section_title'>
|
||||
<h2>{$memberq}</h2>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src='{$this->settings['js_app_url']}ipsMemberQueue.js'></script>
|
||||
HTML;
|
||||
|
||||
if ( $_do == 'validating' )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<form name='selectform' id='selectform' action='{$this->settings['base_url']}&{$this->form_code}&do={$_do}' method='post'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->registry->getClass('adminFunctions')->_admin_auth_key}' />
|
||||
<select name='filter'>
|
||||
<option value='all'>{$this->lang->words['t_qshowall']}</option>
|
||||
<option value='reg_user_validate'>{$this->lang->words['t_qshowreg']}</option>
|
||||
<option value='reg_admin_validate'>{$this->lang->words['t_qshowadmin']}</option>
|
||||
<option value='email_chg'>{$this->lang->words['t_qemailchange']}</option>
|
||||
<option value='coppa'>{$this->lang->words['t_qcoppa']}</option>
|
||||
</select>
|
||||
<input type='submit' class='realbutton' value=' {$this->lang->words['t_qgobutton']} ' />
|
||||
</form>
|
||||
HTML;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<form name='theAdminForm' id='adminform' action='{$this->settings['base_url']}&{$this->form_code}&do=do_{$type}' method='post'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->registry->getClass('adminFunctions')->_admin_auth_key}' />
|
||||
{$links}
|
||||
<br style='clear: both' />
|
||||
|
||||
<div class='acp-box'>
|
||||
<h3>{$memberq}</h3>
|
||||
<table class='alternate_rows double_pad' cellspacing='0' cellpadding='0'>
|
||||
<tr>
|
||||
<th width='1%'> </th>
|
||||
<th>
|
||||
{$this->lang->words['t_qdisplayname']}
|
||||
<a href='{$this->settings['base_url']}&{$this->form_code}&do={$type}&st={$st}&sort=mem&ord=desc' title='{$this->lang->words['sort_desc']}'><img src='{$this->settings['skin_acp_url']}/_newimages/sort_desc.png' /></a>
|
||||
<a href='{$this->settings['base_url']}&{$this->form_code}&do={$type}&st={$st}&sort=mem&ord=asc' title='{$this->lang->words['sort_asc']}'><img src='{$this->settings['skin_acp_url']}/_newimages/sort_asc.png' /></a>
|
||||
</th>
|
||||
HTML;
|
||||
|
||||
if ( $type == 'incomplete' )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<th width='1%'> </th>
|
||||
HTML;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<th>
|
||||
{$this->lang->words['t_qaddress']}
|
||||
HTML;
|
||||
|
||||
if ( $type != 'incomplete' )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<a href='{$this->settings['base_url']}&{$this->form_code}&do={$type}&st={$st}&sort=email&ord=desc' title='{$this->lang->words['sort_desc']}'><img src='{$this->settings['skin_acp_url']}/_newimages/sort_desc.png' /></a>
|
||||
<a href='{$this->settings['base_url']}&{$this->form_code}&do={$type}&st={$st}&sort=email&ord=asc' title='{$this->lang->words['sort_asc']}'><img src='{$this->settings['skin_acp_url']}/_newimages/sort_asc.png' /></a>
|
||||
HTML;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
</th>
|
||||
HTML;
|
||||
|
||||
if ( $type != 'incomplete' )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<th>
|
||||
{$this->lang->words['t_qposts']}
|
||||
<a href='{$this->settings['base_url']}&{$this->form_code}&do={$type}&st={$st}&sort=posts&ord=desc' title='{$this->lang->words['sort_desc']}'><img src='{$this->settings['skin_acp_url']}/_newimages/sort_desc.png' /></a>
|
||||
<a href='{$this->settings['base_url']}&{$this->form_code}&do={$type}&st={$st}&sort=posts&ord=asc' title='{$this->lang->words['sort_asc']}'><img src='{$this->settings['skin_acp_url']}/_newimages/sort_asc.png' /></a>
|
||||
</th>
|
||||
HTML;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
|
||||
<th>
|
||||
HTML;
|
||||
switch( $type )
|
||||
{
|
||||
case 'validating':
|
||||
$IPBHTML .= <<<HTML
|
||||
{$this->lang->words['t_qsent']}
|
||||
<a href='{$this->settings['base_url']}&{$this->form_code}&do={$type}&st={$st}&sort=sent&ord=desc' title='{$this->lang->words['sort_desc']}'><img src='{$this->settings['skin_acp_url']}/_newimages/sort_desc.png' /></a>
|
||||
<a href='{$this->settings['base_url']}&{$this->form_code}&do={$type}&st={$st}&sort=sent&ord=asc' title='{$this->lang->words['sort_asc']}'><img src='{$this->settings['skin_acp_url']}/_newimages/sort_asc.png' /></a>
|
||||
HTML;
|
||||
break;
|
||||
|
||||
case 'locked':
|
||||
$IPBHTML .= <<<HTML
|
||||
{$this->lang->words['t_qfailed']}
|
||||
<a href='{$this->settings['base_url']}&{$this->form_code}&do={$type}&st={$st}&sort=failed&ord=desc' title='{$this->lang->words['sort_desc']}'><img src='{$this->settings['skin_acp_url']}/_newimages/sort_desc.png' /></a>
|
||||
<a href='{$this->settings['base_url']}&{$this->form_code}&do={$type}&st={$st}&sort=failed&ord=asc' title='{$this->lang->words['sort_asc']}'><img src='{$this->settings['skin_acp_url']}/_newimages/sort_asc.png' /></a>
|
||||
HTML;
|
||||
|
||||
case 'banned':
|
||||
$IPBHTML .= <<<HTML
|
||||
{$this->lang->words['t_qgroup']}
|
||||
<a href='{$this->settings['base_url']}&{$this->form_code}&do={$type}&st={$st}&sort=group&ord=desc' title='{$this->lang->words['sort_desc']}'><img src='{$this->settings['skin_acp_url']}/_newimages/sort_desc.png' /></a>
|
||||
<a href='{$this->settings['base_url']}&{$this->form_code}&do={$type}&st={$st}&sort=group&ord=asc' title='{$this->lang->words['sort_asc']}'><img src='{$this->settings['skin_acp_url']}/_newimages/sort_asc.png' /></a>
|
||||
HTML;
|
||||
break;
|
||||
case 'incomplete':
|
||||
case 'spam':
|
||||
$IPBHTML .= <<<HTML
|
||||
{$this->lang->words['t_qgroup']}
|
||||
<a href='{$this->settings['base_url']}&{$this->form_code}&do={$type}&st={$st}&sort=group&ord=desc' title='{$this->lang->words['sort_desc']}'><img src='{$this->settings['skin_acp_url']}/_newimages/sort_desc.png' /></a>
|
||||
<a href='{$this->settings['base_url']}&{$this->form_code}&do={$type}&st={$st}&sort=group&ord=asc' title='{$this->lang->words['sort_asc']}'><img src='{$this->settings['skin_acp_url']}/_newimages/sort_asc.png' /></a>
|
||||
HTML;
|
||||
break;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
</th>
|
||||
<th>
|
||||
{$this->lang->words['t_qjoined']}
|
||||
<a href='{$this->settings['base_url']}&{$this->form_code}&do={$type}&st={$st}&sort=joined&ord=desc' title='{$this->lang->words['sort_desc']}'><img src='{$this->settings['skin_acp_url']}/_newimages/sort_desc.png' /></a>
|
||||
<a href='{$this->settings['base_url']}&{$this->form_code}&do={$type}&st={$st}&sort=joined&ord=asc' title='{$this->lang->words['sort_asc']}'><img src='{$this->settings['skin_acp_url']}/_newimages/sort_asc.png' /></a>
|
||||
</th>
|
||||
<th style='text-align: center'><input type='checkbox' id='maincheckbox' onclick='check_boxes()' /></th>
|
||||
</tr>
|
||||
{$content}
|
||||
</table>
|
||||
<div class='acp-actionbar' style='text-align: right'>
|
||||
<select name='type' id='manage_type' class='dropdown'>
|
||||
HTML;
|
||||
|
||||
switch( $type )
|
||||
{
|
||||
case 'validating':
|
||||
$IPBHTML .= <<<HTML
|
||||
<option value='approve'>{$this->lang->words['t_qapprove']}</option>
|
||||
<option value='ban'>{$this->lang->words['t_qban']}</option>
|
||||
<option value='spam'>{$this->lang->words['ts_spam_mark']}</option>
|
||||
<option value='delete'>{$this->lang->words['t_qdelete']}</option>
|
||||
<option value='resend'>{$this->lang->words['t_qresend']}</option>
|
||||
HTML;
|
||||
break;
|
||||
|
||||
case 'locked':
|
||||
$IPBHTML .= <<<HTML
|
||||
<option value='approve'>{$this->lang->words['t_qban']}</option>
|
||||
<option value='delete'>{$this->lang->words['t_qdelete']}</option>
|
||||
<option value='unlock'>{$this->lang->words['t_qunlock']}</option>
|
||||
HTML;
|
||||
break;
|
||||
|
||||
case 'banned':
|
||||
$IPBHTML .= <<<HTML
|
||||
<option value='unban'>{$this->lang->words['t_qunban']}</option>
|
||||
<option value='delete'>{$this->lang->words['t_qdelete']}</option>
|
||||
HTML;
|
||||
break;
|
||||
case 'incomplete':
|
||||
$IPBHTML .= <<<HTML
|
||||
<option value='delete'>{$this->lang->words['t_qdelete']}</option>
|
||||
<option value='finalize'>{$this->lang->words['t_qfinalizepartial']}</option>
|
||||
HTML;
|
||||
break;
|
||||
|
||||
case 'spam':
|
||||
$IPBHTML .= <<<HTML
|
||||
<option value='unspam'>{$this->lang->words['ts_spam_un']}</option>
|
||||
<option value='unspam_posts'>{$this->lang->words['ts_spam_un_posts']}</option>
|
||||
<option value='ban'>{$this->lang->words['ts_spam_ban']}</option>
|
||||
<option value='ban_blacklist'>{$this->lang->words['ts_spam_blacklist']}</option>
|
||||
HTML;
|
||||
break;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
</select>
|
||||
<input type='submit' class='realbutton' value=' {$this->lang->words['t_processbutton']} ' />
|
||||
</div>
|
||||
</div>
|
||||
{$links}
|
||||
</form>
|
||||
|
||||
<script type='text/javascript'>
|
||||
|
||||
if( $('manage_type') && $('adminform') )
|
||||
{
|
||||
$('adminform').observe( 'submit', function(e) {
|
||||
if( \$F('manage_type') == 'delete' )
|
||||
{
|
||||
if( !confirm("{$this->lang->words['rusure_tools_memform']}" ) )
|
||||
{
|
||||
Event.stop(e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
HTML;
|
||||
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
/**
|
||||
* No rows in queue
|
||||
*
|
||||
* @access public
|
||||
* @param string Language bit
|
||||
* @return string HTML
|
||||
*/
|
||||
public function queueNoRows( $lang ) {
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<td class='tablerow2' colspan='8'><strong>{$lang}</strong></td>
|
||||
</tr>
|
||||
HTML;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validating row
|
||||
*
|
||||
* @access public
|
||||
* @param array Record
|
||||
* @return string HTML
|
||||
*/
|
||||
public function validatingRow( $r="" ) {
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
$daysandhours = sprintf( $this->lang->words['t_daysandhours'], $r['_days'], $r['_rhours'] );
|
||||
$image = $r['spam_flag'] ? array( 'normal_spam.png', $this->lang->words['alt_spamuser'] ) :
|
||||
( ( $r['user_verified'] ) ? array( 'normal_tick.png', $this->lang->words['alt_normal'] ) :
|
||||
array( 'normal_lock.png', $this->lang->words['alt_unverifieduser'] ) );
|
||||
$color = ( $r['user_verified'] ) ? 'red' : 'green';
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<td><img src='{$this->settings['skin_acp_url']}/_newimages/members/{$image[0]}' alt='{$image[1]}' title='{$image[1]}' /></td>
|
||||
<td class='tablerow2'><a href='{$this->settings['base_url']}&module=members&section=members&do=viewmember&member_id={$r['member_id']}'><strong>{$r['members_display_name']}</strong></a>{$r['_coppa']}<div class='desctext'>{$this->lang->words['t_ipcolon']} <a href='{$this->settings['base_url']}&module=members&section=tools&do=learn_ip&ip={$r['ip_address']}'>{$r['ip_address']}</a></div></td>
|
||||
<td class='tablerow1'>{$r['email']}</td>
|
||||
<td class='tablerow1' align='center'>{$r['posts']}</td>
|
||||
<td class='tablerow1'><span style='color:{$color}'>{$r['_where']}</span><br />{$r['_entry']}<div class='desctext'>{$daysandhours}</div></td>
|
||||
<td class='tablerow1'>{$r['_joined']}</td>
|
||||
<td class='tablerow1' align='center'><input type='checkbox' id="mid_{$r['member_id']}" name='mid_{$r['member_id']}' value='1' /></td>
|
||||
</tr>
|
||||
HTML;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
/**
|
||||
* Locked row
|
||||
*
|
||||
* @access public
|
||||
* @param array Record
|
||||
* @return string HTML
|
||||
*/
|
||||
public function lockedRow( $r="" ) {
|
||||
|
||||
$failuresatlife = sprintf( $this->lang->words['t_failures'], $r['oldest_fail'], $r['newest_fail'], $r['failed_login_count'] );
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<td><img src='{$this->settings['skin_acp_url']}/_newimages/members/normal_lock.png' alt='*' /></td>
|
||||
<td class='tablerow2'><a href='{$this->settings['base_url']}&module=members&section=members&do=viewmember&member_id={$r['member_id']}'><strong>{$r['members_display_name']}</strong></a><div class='desctext'>{$this->lang->words['t_groupcolon']} {$r['group_title']}</div><div class='desctext'>{$r['ip_addresses']}</div></td>
|
||||
<td class='tablerow1'>{$r['email']}</td>
|
||||
<td class='tablerow1' align='center'>{$r['posts']}</td>
|
||||
<td class='tablerow1'>{$failuresatlife}</td>
|
||||
<td class='tablerow1'>{$r['_joined']}</td>
|
||||
<td class='tablerow1' align='center'><input type='checkbox' id="mid_{$r['member_id']}" name='mid_{$r['member_id']}' value='1' /></td>
|
||||
</tr>
|
||||
HTML;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
/**
|
||||
* Banned row
|
||||
*
|
||||
* @access public
|
||||
* @param array Record
|
||||
* @return string HTML
|
||||
*/
|
||||
public function bannedRow( $r="" ) {
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<td><img src='{$this->settings['skin_acp_url']}/_newimages/members/normal_alert.png' alt='*' /></td>
|
||||
<td class='tablerow2'><a href='{$this->settings['base_url']}&module=members&section=members&do=viewmember&member_id={$r['member_id']}'><strong>{$r['members_display_name']}</strong></a></td>
|
||||
<td class='tablerow1'>{$r['email']}</td>
|
||||
<td class='tablerow1' align='center'>{$r['posts']}</td>
|
||||
<td class='tablerow1'>{$r['group_title']}</td>
|
||||
<td class='tablerow1'>{$r['_joined']}</td>
|
||||
<td class='tablerow1' align='center'><input type='checkbox' id="mid_{$r['member_id']}" name='mid_{$r['member_id']}' value='1' /></td>
|
||||
</tr>
|
||||
HTML;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
/**
|
||||
* Spam row
|
||||
*
|
||||
* @access public
|
||||
* @param array Record
|
||||
* @return string HTML
|
||||
*/
|
||||
public function spamRow( $r="" ) {
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<td><img src='{$this->settings['skin_acp_url']}/_newimages/members/normal_spam.png' alt='*' /></td>
|
||||
<td class='tablerow2'><a href='{$this->settings['base_url']}&module=members&section=members&do=viewmember&member_id={$r['member_id']}'><strong>{$r['members_display_name']}</strong></a></td>
|
||||
<td class='tablerow1'>{$r['email']}</td>
|
||||
<td class='tablerow1' align='center'>{$r['posts']}</td>
|
||||
<td class='tablerow1'>{$r['group_title']}</td>
|
||||
<td class='tablerow1'>{$r['_joined']}</td>
|
||||
<td class='tablerow1' align='center'><input type='checkbox' id="mid_{$r['member_id']}" name='mid_{$r['member_id']}' value='1' /></td>
|
||||
</tr>
|
||||
HTML;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
/**
|
||||
* Banned row
|
||||
*
|
||||
* @access public
|
||||
* @param array Record
|
||||
* @return string HTML
|
||||
*/
|
||||
public function incompleteRow( $r="" ) {
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$publicUrl = $this->settings['_original_base_url'] . '/' . PUBLIC_DIRECTORY . '/';
|
||||
|
||||
$r['email'] = ( $r['_emailIsOk'] ) ? $r['email'] : '<em>' . $this->lang->words['inc_no_email'] . '</em>';
|
||||
$r['members_display_name'] = ( $r['_dnameIsOk'] ) ? $r['members_display_name'] : '<em>' . $this->lang->words['inc_no_dname'] . '</em>';
|
||||
$r['serviceImg'] = "<img src='{$this->settings['skin_acp_url']}/_newimages/members/internet.png' />";
|
||||
|
||||
if ( $r['_regVia'] == 'facebook' )
|
||||
{
|
||||
$r['serviceImg'] = "<a href='http://www.facebook.com/profile.php?id={$r['fb_uid']}' target='_blank'><img src='{$this->settings['skin_acp_url']}/_newimages/members/facebook.png' /></a>";
|
||||
}
|
||||
|
||||
if ( $r['_regVia'] == 'twitter' )
|
||||
{
|
||||
$r['serviceImg'] = "<img src='{$this->settings['skin_acp_url']}/_newimages/members/twitter.png' />";
|
||||
}
|
||||
|
||||
if ( $r['_regVia'] == 'vkontakte' )
|
||||
{
|
||||
$r['serviceImg'] = "<img src='{$this->settings['skin_acp_url']}/_newimages/members/vkontakte.png' />";
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<td><a href='{$this->settings['base_url']}&module=members&section=members&do=viewmember&member_id={$r['member_id']}'><img src='{$r['pp_thumb_photo']}' style='width: 30px; height: 30px; border: 1px solid #d8d8d8' /></a></td>
|
||||
<td class='tablerow2'>
|
||||
<a href='{$this->settings['base_url']}&module=members&section=members&do=viewmember&member_id={$r['member_id']}'><strong>{$r['members_display_name']}</strong></a>
|
||||
<div class='desctext' style='margin-top:4px'>{$this->lang->words['inc_m_name']}: {$r['name']}</div>
|
||||
</td>
|
||||
<td class='tablerow1'>{$r['serviceImg']}</td>
|
||||
<td class='tablerow1'>{$r['email']}</td>
|
||||
<td class='tablerow1'>{$r['group_title']}</td>
|
||||
<td class='tablerow1'>{$r['_joined']}</td>
|
||||
<td class='tablerow1' align='center'><input type='checkbox' id="mid_{$r['member_id']}" name='mid_{$r['member_id']}' value='1' /></td>
|
||||
</tr>
|
||||
HTML;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user