* Invision Power Services
* IP.Board v3.1.4
* ACP tools skin file
* Last Updated: $Date: 2010-09-29 20:23:38 -0400 (Wed, 29 Sep 2010) $
*
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/community/board/license.html
* @package IP.Board
* @subpackage Members
* @link http://www.invisionpower.com
* @since 20th February 2002
* @version $Rev: 6925 $
*
*/
class cp_skin_tools extends output
{
/**
* 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 .= <<
{$this->lang->words['nobannedgroup_notice']}
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* Merge start form
*
* @access public
* @param array Member data
* @return string HTML
*/
public function mergeStart( $member ){
$IPBHTML = "";
$title = sprintf( $this->lang->words['merge_users_title'], $member['members_display_name'] );
$desc = sprintf( $this->lang->words['merge_explanation'], $member['members_display_name'], $member['members_display_name'] );
$IPBHTML .= <<
{$desc}
{$message}
| {$this->lang->words['t_ipaddy']} | {$this->lang->words['t_timesused']} | {$this->lang->words['t_lastused']} | {$this->lang->words['t_usedotherreg']} | {$this->lang->words['t_iptool']} | {$ip_address} | {$use_info[0]} | {$date} | {$others} | {$this->lang->words['t_learnmore']} | HTML; } } else { $IPBHTML .= <<{$this->lang->words['t_noips']} | HTML; } $IPBHTML .= <<
|---|
| {$this->lang->words['t_ipresolves']} | {$hostAddr} |
| {$this->lang->words['t_ipname']} | {$this->lang->words['t_ipemail']} | {$this->lang->words['t_ipposts']} | {$this->lang->words['t_ipip']} | {$this->lang->words['t_ipregistered']} | {$member['members_display_name']} | {$member['email']} | {$member['posts']} | {$member['ip_address']} | {$member['_joined']} | HTML; } } else { $IPBHTML .= <<{$this->lang->words['t_nomatches']} | HTML; } $IPBHTML .= <<
|---|
| {$this->lang->words['t_ipname']} | {$this->lang->words['t_ipemail']} | {$this->lang->words['t_ipip']} | {$this->lang->words['t_ipposted']} | {$this->lang->words['t_ipview']} | {$member['members_display_name']} | {$member['email']} | {$member['ip_address']} | {$member['_post_date']} | {$this->lang->words['t_ipviewpost']} | HTML; } } else { $IPBHTML .= <<{$this->lang->words['t_nomatches']} | HTML; } $IPBHTML .= <<
|---|
| {$this->lang->words['t_ipname']} | {$this->lang->words['t_ipemail']} | {$this->lang->words['t_ipip']} | {$this->lang->words['t_ipfirstused']} | {$this->lang->words['t_ipview']} | {$member['members_display_name']} | {$member['email']} | {$member['ip_address']} | {$member['_vote_date']} | {$this->lang->words['t_ipviewpoll']} | HTML; } } else { $IPBHTML .= <<{$this->lang->words['t_nomatches']} | HTML; } $IPBHTML .= <<
|---|
| {$this->lang->words['t_ipname']} | {$this->lang->words['t_ipemail']} | {$this->lang->words['t_ipip']} | {$this->lang->words['t_ipfirstused']} | {$member['members_display_name']} | {$member['email']} | {$member['from_ip_address']} | {$member['_email_date']} | HTML; } } else { $IPBHTML .= <<{$this->lang->words['t_nomatches']} | HTML; } $IPBHTML .= <<
|---|
| {$this->lang->words['t_ipname']} | {$this->lang->words['t_ipemail']} | {$this->lang->words['t_ipip']} | {$this->lang->words['t_ipfirstused']} | {$member['members_display_name']} | {$member['email']} | {$member['ip_address']} | {$member['_entry_date']} | HTML; } } else { $IPBHTML .= <<{$this->lang->words['t_nomatches']} | HTML; } $IPBHTML .= <<
|---|
| {$this->lang->words['t_ipname']} | {$this->lang->words['t_ip_table']} | {$this->lang->words['t_ipip']} | {$this->lang->words['t_ipfirstused']} | {$member['members_display_name']} | {$table} | {$member['ip_address']} | {$date} | HTML; } } } } else { $IPBHTML .= <<{$this->lang->words['t_nomatches']} | HTML; } $IPBHTML .= <<{$lang} | 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 .= <<{$r['members_display_name']}{$r['_coppa']} {$this->lang->words['t_ipcolon']} {$r['ip_address']} |
{$r['email']} | {$r['posts']} | {$r['_where']} {$r['_entry']} {$daysandhours} |
{$r['_joined']} | 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 .= << | {$r['members_display_name']} {$this->lang->words['t_groupcolon']} {$r['group_title']} {$r['ip_addresses']} |
{$r['email']} | {$r['posts']} | {$failuresatlife} | {$r['_joined']} | HTML; //--endhtml--// return $IPBHTML; } /** * Banned row * * @access public * @param array Record * @return string HTML */ public function bannedRow( $r="" ) { $IPBHTML = ""; //--starthtml--// $IPBHTML .= << | {$r['members_display_name']} | {$r['email']} | {$r['posts']} | {$r['group_title']} | {$r['_joined']} | HTML; //--endhtml--// return $IPBHTML; } /** * Spam row * * @access public * @param array Record * @return string HTML */ public function spamRow( $r="" ) { $IPBHTML = ""; //--starthtml--// $IPBHTML .= << | {$r['members_display_name']} | {$r['email']} | {$r['posts']} | {$r['group_title']} | {$r['_joined']} | 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'] : '' . $this->lang->words['inc_no_email'] . ''; $r['members_display_name'] = ( $r['_dnameIsOk'] ) ? $r['members_display_name'] : '' . $this->lang->words['inc_no_dname'] . ''; $r['serviceImg'] = " |
{$r['members_display_name']}
{$this->lang->words['inc_m_name']}: {$r['name']}
|
{$r['serviceImg']} | {$r['email']} | {$r['group_title']} | {$r['_joined']} | HTML; //--endhtml--// return $IPBHTML; } } |
|---|