Version 3.2.3
This commit is contained in:
1 parent
ae5c01cc78
commit
78706903a2
2641 files changed
+228363
-201264
No files matched your search
@@ -3,38 +3,68 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Attachments skin functions
|
||||
* Last Updated: $LastChangedDate: 2010-06-08 20:53:45 -0400 (Tue, 08 Jun 2010) $
|
||||
* Last Updated: $LastChangedDate: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @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 Forums
|
||||
* @link http://www.invisionpower.com
|
||||
* @link http://hatynka.in
|
||||
* @since 14th May 2003
|
||||
* @version $Rev: 6485 $
|
||||
* @version $Rev: 8644 $
|
||||
*/
|
||||
|
||||
class cp_skin_attachments extends output
|
||||
class cp_skin_attachments
|
||||
{
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Display attachment stats
|
||||
*
|
||||
* @access public
|
||||
* @param array Overall stats
|
||||
* @param array Last 5 attachments
|
||||
* @param array Largest 5 attachments
|
||||
@@ -55,7 +85,7 @@ $IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['atc_overview']}</h3>
|
||||
|
||||
<table class='alternate_rows' width='100%'>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<td width='30%'>{$this->lang->words['atc_number']}</td>
|
||||
<td width='20%'>{$overall_stats['total_attachments']}</td>
|
||||
@@ -73,7 +103,7 @@ $IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['atc_last5']}</h3>
|
||||
|
||||
<table class='alternate_rows' width='100%'>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<th style='width: 2%'> </th>
|
||||
<th style='width: 20%'>{$this->lang->words['atc_attachment']}</th>
|
||||
@@ -92,7 +122,22 @@ $IPBHTML .= <<<HTML
|
||||
<td><img src='{$r['_icon']}' /></td>
|
||||
<td><a href='{$this->settings['board_url']}/index.php?app=core&module=attach&section=attach&attach_rel_module=post&attach_id={$r['attach_id']}' target='_blank'>{$r['attach_file']}</a></td>
|
||||
<td>{$r['attach_filesize']}</td>
|
||||
<td>{$r['members_display_name']}</td>
|
||||
HTML;
|
||||
|
||||
if( $r['attach_member_id'] )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<td><a href='{$this->settings['board_url']}/index.php?showuser={$r['attach_member_id']}'>{$r['members_display_name']}</a></td>
|
||||
HTML;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<td>{$r['members_display_name']}</td>
|
||||
HTML;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<td>{$r['stitle']}</td>
|
||||
<td>{$r['post_date']}</td>
|
||||
<td><div align='center'><input type='checkbox' name='attach_{$r['attach_id']}' value='1' /></div></td>
|
||||
@@ -107,7 +152,7 @@ $IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['atc_largest5']}</h3>
|
||||
|
||||
<table class='alternate_rows' width='100%'>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<th>{$this->lang->words['atc_attachment']}</th>
|
||||
@@ -126,7 +171,22 @@ $IPBHTML .= <<<HTML
|
||||
<td width='1%'><img src='{$r['_icon']}'/></td>
|
||||
<td width='20%'><a href='{$this->settings['board_url']}/index.php?app=core&module=attach&section=attach&attach_rel_module=post&attach_id={$r['attach_id']}' target='_blank'>{$r['attach_file']}</a></td>
|
||||
<td width='10%'>{$r['attach_filesize']}</td>
|
||||
<td width='15%'>{$r['members_display_name']}</td>
|
||||
HTML;
|
||||
|
||||
if( $r['attach_member_id'] )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<td><a href='{$this->settings['board_url']}/index.php?showuser={$r['attach_member_id']}'>{$r['members_display_name']}</a></td>
|
||||
HTML;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<td>{$r['members_display_name']}</td>
|
||||
HTML;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<td width='25%'>{$r['stitle']}</td>
|
||||
<td width='25%'>{$r['post_date']}</td>
|
||||
<td width='1%'><div align='center'><input type='checkbox' name='attach_{$r['attach_id']}' value='1' /></div></td>
|
||||
@@ -141,7 +201,7 @@ $IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['atc_top5']}</h3>
|
||||
|
||||
<table class='alternate_rows' width='100%'>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<th width='1%'> </th>
|
||||
<th width='20%'>{$this->lang->words['atc_attachment']}</th>
|
||||
@@ -160,7 +220,22 @@ $IPBHTML .= <<<HTML
|
||||
<td width='1%'><img src='{$r['_icon']}' /></td>
|
||||
<td width='20%'><a href='{$this->settings['board_url']}/index.php?app=core&module=attach&section=attach&attach_rel_module=post&attach_id={$r['attach_id']}' target='_blank'>{$r['attach_file']}</a></td>
|
||||
<td width='10%'>{$r['attach_hits']}</td>
|
||||
<td width='15%'>{$r['members_display_name']}</td>
|
||||
HTML;
|
||||
|
||||
if( $r['attach_member_id'] )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<td><a href='{$this->settings['board_url']}/index.php?showuser={$r['attach_member_id']}'>{$r['members_display_name']}</a></td>
|
||||
HTML;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<td>{$r['members_display_name']}</td>
|
||||
HTML;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<td width='25%'>{$r['stitle']}</td>
|
||||
<td width='25%'>{$r['post_date']}</td>
|
||||
<td width='1%'><div align='center'><input type='checkbox' name='attach_{$r['attach_id']}' value='1' /></div></td>
|
||||
@@ -187,7 +262,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Form to add/edit attachment types
|
||||
*
|
||||
* @access public
|
||||
* @param string Title
|
||||
* @param string Do action
|
||||
* @param integer Editing attachment type id
|
||||
@@ -214,29 +288,45 @@ $IPBHTML .= <<<HTML
|
||||
<input type='hidden' name='id' value='{$id}' />
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->getSecurityKey()}' />
|
||||
|
||||
<ul class="acp-form alternate_rows">
|
||||
<li>
|
||||
<label>{$this->lang->words['atc_fileext']} <span class='desctext'>{$this->lang->words['atc_fileext_info']}</span></label>
|
||||
{$form['atype_extension']}
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['atc_mimetype']} <span class='desctext'>{$this->lang->words['atc_mimetype_info']}</span></label>
|
||||
{$form['atype_mimetype']}
|
||||
</li>
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['atc_inposts']}</label>
|
||||
{$form['atype_post']}
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['atc_inavatars']}</label>
|
||||
{$form['atype_photo']}
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['atc_miniimg']} <span class='desctext'>{$this->lang->words['atc_miniimg_info']}</span></label>
|
||||
{$form['atype_img']}
|
||||
</li>
|
||||
</ul>
|
||||
<table class="ipsTable double_pad">
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['atc_fileext']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['atype_extension']}<br />
|
||||
<span class='desctext'>{$this->lang->words['atc_fileext_info']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['atc_mimetype']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['atype_mimetype']}<br />
|
||||
<span class='desctext'>{$this->lang->words['atc_mimetype_info']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['atc_inposts']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['atype_post']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['atc_miniimg']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['atype_img']}<br />
|
||||
<span class='desctext'>{$this->lang->words['atc_miniimg_info']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="acp-actionbar"><input type='submit' value='{$button}' class='realbutton' accesskey='s'></div>
|
||||
|
||||
@@ -251,7 +341,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Build the "based on" dropdown
|
||||
*
|
||||
* @access public
|
||||
* @param string Dropdown HTML
|
||||
* @return string HTML
|
||||
*/
|
||||
@@ -262,7 +351,6 @@ $IPBHTML = "";
|
||||
$IPBHTML .= <<<HTML
|
||||
<form method='post' class='information-box' style='margin-bottom: 10px' action='{$this->settings['base_url']}{$this->form_code}&do=attach_add'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->registry->getClass('adminFunctions')->_admin_auth_key}' />
|
||||
|
||||
<strong>{$this->lang->words['attach_baseon']}</strong> {$dd} <input type='submit' value='{$this->lang->words['atc_go']}' class='realbutton' />
|
||||
</form>
|
||||
HTML;
|
||||
@@ -274,7 +362,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Display attachment types
|
||||
*
|
||||
* @access public
|
||||
* @param array attachment types
|
||||
* @return string HTML
|
||||
*/
|
||||
@@ -287,8 +374,8 @@ $IPBHTML .= <<<HTML
|
||||
<div class='section_title'>
|
||||
<h2>{$this->lang->words['ty_title']}</h2>
|
||||
<ul class='context_menu'>
|
||||
<li><a href='{$this->settings['base_url']}{$this->form_code}&do=attach_add' title=''><img src='{$this->settings['skin_acp_url']}/_newimages/icons/attach_add.png' alt='' /> {$this->lang->words['atc_add']}</a></li>
|
||||
<li><a href='{$this->settings['base_url']}module=attachments&section=types&do=attach_export'><img src='{$this->settings['skin_acp_url']}/_newimages/icons/cog.png' alt='' /> {$this->lang->words['atc_export']}</a></li>
|
||||
<li><a href='{$this->settings['base_url']}{$this->form_code}&do=attach_add' title=''><img src='{$this->settings['skin_acp_url']}/images/icons/attach_add.png' alt='' /> {$this->lang->words['atc_add']}</a></li>
|
||||
<li><a href='{$this->settings['base_url']}module=attachments&section=types&do=attach_export'><img src='{$this->settings['skin_acp_url']}/images/icons/cog.png' alt='' /> {$this->lang->words['atc_export']}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -296,31 +383,33 @@ $IPBHTML .= <<<HTML
|
||||
<div class="acp-box">
|
||||
<h3>{$this->lang->words['atc_atttypes']}</h3>
|
||||
|
||||
<table class='alternate_rows' width='100%'>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<th width='1%'> </td>
|
||||
<th width='20%'>{$this->lang->words['atc_extension']}</td>
|
||||
<th width='40%'>{$this->lang->words['atc_mime_type']}</td>
|
||||
<th>{$this->lang->words['atc_extension']}</td>
|
||||
<th width='10%' style='text-align: center'>{$this->lang->words['atc_post']}</td>
|
||||
<th width='10%' style='text-align: center'>{$this->lang->words['atc_avatar']}</td>
|
||||
<th width='5%'>{$this->lang->words['atc_options']}</td>
|
||||
<th class='col_buttons'></td>
|
||||
</tr>
|
||||
HTML;
|
||||
|
||||
foreach( $rows as $row )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<tr class='ipsControlRow'>
|
||||
<td><img src='{$this->settings['mime_img']}/{$row['atype_img']}' /></td>
|
||||
<td>.<strong>{$row['atype_extension']}</strong></td>
|
||||
<td>{$row['atype_mimetype']}</td>
|
||||
<td>
|
||||
.<strong>{$row['atype_extension']}</strong><br />
|
||||
<span class='desctext'>{$row['atype_mimetype']}</span>
|
||||
</td>
|
||||
<td style='text-align: center'>{$row['apost_checked']}</td>
|
||||
<td style='text-align: center'>{$row['aphoto_checked']}</td>
|
||||
<td style='text-align: center'>
|
||||
<img class='ipbmenu' id="menu{$row['atype_id']}" src='{$this->settings['skin_acp_url']}/_newimages/menu_open.png' alt='' />
|
||||
<ul class='acp-menu' id='menu{$row['atype_id']}_menucontent'>
|
||||
<li class='icon edit'><a href='{$this->settings['base_url']}{$this->form_code}do=attach_edit&id={$row['atype_id']}'>{$this->lang->words['atc_edit']}</a></li>
|
||||
<li class='icon delete'><a href='#' onclick='return acp.confirmDelete("{$this->settings['base_url']}{$this->form_code}do=attach_delete&id={$row['atype_id']}");'>{$this->lang->words['atc_delete']}</a></li>
|
||||
<td class='col_buttons'>
|
||||
<ul class='ipsControlStrip'>
|
||||
<li class='i_edit'>
|
||||
<a href='{$this->settings['base_url']}{$this->form_code}do=attach_edit&id={$row['atype_id']}' title='{$this->lang->words['atc_edit']}'>{$this->lang->words['atc_edit']}</a>
|
||||
</li>
|
||||
<li class='i_delete'>
|
||||
<a href='#' onclick='return acp.confirmDelete("{$this->settings['base_url']}{$this->form_code}do=attach_delete&id={$row['atype_id']}");' title='{$this->lang->words['atc_delete']}'>{$this->lang->words['atc_delete']}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -342,10 +431,12 @@ $IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['atc_import']}</h3>
|
||||
|
||||
<p align='center'>
|
||||
{$this->lang->words['atc_uploadxml_info']}
|
||||
<input class='textinput' type='file' size='30' name='FILE_UPLOAD'>
|
||||
</p>
|
||||
<table class='ipsTable double_pad'>
|
||||
<tr>
|
||||
<td class='field_title'><strong class='title'>{$this->lang->words['atc_uploadxml_info']}</strong></td>
|
||||
<td class='field_field'><input class='textinput' type='file' size='30' name='FILE_UPLOAD'></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class='acp-actionbar'>
|
||||
<input type='submit' value='{$this->lang->words['atc_importbutton']}' class="button primary" accesskey='s'>
|
||||
@@ -361,7 +452,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Display attachment search form
|
||||
*
|
||||
* @access public
|
||||
* @param array Form fields
|
||||
* @return string HTML
|
||||
*/
|
||||
@@ -382,52 +472,95 @@ $IPBHTML .= <<<HTML
|
||||
<input type='hidden' name='do' value='attach_search_complete' />
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->getSecurityKey()}' />
|
||||
|
||||
<ul class="acp-form alternate_rows">
|
||||
<li>
|
||||
<label>{$this->lang->words['se_mext']}</label>
|
||||
{$form['extension']}
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['se_msize']}</label>
|
||||
{$form['filesize_gt']} {$form['filesize']}
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['se_mposted']}</label>
|
||||
{$form['days_gt']} {$form['days']}{$this->lang->words['se_ago']}
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['se_mviewed']}</label>
|
||||
{$form['hits_gt']} {$form['hits']}{$this->lang->words['se_times']}
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['se_mname']}</label>
|
||||
{$form['filename']}
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['se_mauthor']}</label>
|
||||
{$form['authorname']}
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['se_mimages']}</label>
|
||||
{$form['onlyimage']}
|
||||
</li>
|
||||
<table class='ipsTable double_pad'>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['se_mext']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['extension']}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['se_morder']}</label>
|
||||
{$form['orderby']} {$form['sort']}
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['se_showresults']}</label>
|
||||
{$form['show']}
|
||||
</li>
|
||||
</ul>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['se_msize']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['filesize_gt']} {$form['filesize']}<br />
|
||||
<span class='desctext'>{$this->lang->words['se_msize_desc']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['se_mposted']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['days_gt']} {$form['days']}{$this->lang->words['se_ago']}<br />
|
||||
<span class='desctext'>{$this->lang->words['se_mposted_desc']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['se_mviewed']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['hits_gt']} {$form['hits']}{$this->lang->words['se_times']}<br />
|
||||
<span class='desctext'>{$this->lang->words['se_mviewed_desc']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['se_mname']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['filename']}<br />
|
||||
<span class='desctext'>{$this->lang->words['se_mname_desc']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['se_mauthor']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['authorname']}<br />
|
||||
<span class='desctext'>{$this->lang->words['se_mauthor_desc']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['se_mimages']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['onlyimage']}<br />
|
||||
<span class='desctext'>{$this->lang->words['se_mimages_desc']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['se_morder']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['orderby']} {$form['sort']}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['se_showresults']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['show']}<br />
|
||||
<span class='desctext'>{$this->lang->words['se_showresults_desc']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class='acp-actionbar'><input type='submit' value='{$this->lang->words['se_searchbutton']}' class='realbutton' accesskey='s' /></div>
|
||||
</form>
|
||||
@@ -447,7 +580,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Display attachment search results
|
||||
*
|
||||
* @access public
|
||||
* @param string URL
|
||||
* @param array Search results
|
||||
* @return string HTML
|
||||
@@ -468,7 +600,7 @@ $IPBHTML .= <<<HTML
|
||||
<div class="acp-box">
|
||||
<h3>{$this->lang->words['se_results']}</h3>
|
||||
|
||||
<table class='alternate_rows' width='100%'>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<th width='1%'> </tg>
|
||||
<th width='20%'>{$this->lang->words['se_attachment']}</th>
|
||||
@@ -480,14 +612,31 @@ $IPBHTML .= <<<HTML
|
||||
</tr>
|
||||
HTML;
|
||||
|
||||
$_public = PUBLIC_DIRECTORY;
|
||||
|
||||
foreach( $rows as $r )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<td><img src='{$this->settings['board_url']}/public/{$this->caches['attachtypes'][ $r['attach_ext'] ]['atype_img']}' /></td>
|
||||
<td><img src='{$this->settings['board_url']}/{$_public}/{$this->caches['attachtypes'][ $r['attach_ext'] ]['atype_img']}' /></td>
|
||||
<td><a href='{$this->settings['board_url']}/index.php?app=core&module=attach&type={$r['attach_rel_module']}&attach_id={$r['attach_id']}'>{$r['attach_file']}</a></td>
|
||||
<td>{$r['attach_filesize']}</td>
|
||||
<td>{$r['members_display_name']}</td>
|
||||
HTML;
|
||||
|
||||
if( $r['attach_member_id'] )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<td><a href='{$this->settings['board_url']}/index.php?showuser={$r['attach_member_id']}'>{$r['members_display_name']}</a></td>
|
||||
HTML;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<td>{$r['members_display_name']}</td>
|
||||
HTML;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<td>{$r['stitle']}</td>
|
||||
<td>{$r['attach_date']}</td>
|
||||
<td><div align='center'><input class='checkAll' type='checkbox' name='attach_{$r['attach_id']}' value='1' /></div></td>
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -3,39 +3,68 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Group plugin skin functions
|
||||
* Last Updated: $LastChangedDate: 2010-07-09 23:59:26 -0400 (Fri, 09 Jul 2010) $
|
||||
* Last Updated: $LastChangedDate: 2011-09-01 08:16:37 -0400 (Thu, 01 Sep 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @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 Forums
|
||||
* @link http://www.invisionpower.com
|
||||
* @link http://hatynka.in
|
||||
* @since 14th May 2003
|
||||
* @version $Rev: 6627 $
|
||||
* @version $Rev: 9439 $
|
||||
*/
|
||||
|
||||
class cp_skin_group_form extends output
|
||||
class cp_skin_group_form
|
||||
{
|
||||
|
||||
/**
|
||||
* 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 forums group form
|
||||
*
|
||||
* @access public
|
||||
* @param array Group data
|
||||
* @param string Tab ID
|
||||
* @return string HTML
|
||||
@@ -93,17 +122,17 @@ $form['gbw_soft_delete_see_post'] = $this->registry->output->formYesNo( "gbw_sof
|
||||
$IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div id='tabpane-GROUPS|{$tabId}'>
|
||||
<div id='tab_GROUPS_{$tabId}_content'>
|
||||
<div>
|
||||
<table class='form_table alternate_rows double_pad' cellspacing='0'>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<th colspan='2' class='head'><strong>{$this->lang->words['gf_t_rating']}</strong></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_topic_rate_setting']}</label>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_topic_rate_setting']}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<td class='field_field'>
|
||||
{$form['g_topic_rate_setting']}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -111,10 +140,10 @@ $IPBHTML .= <<<EOF
|
||||
<th colspan='2' class='head'><strong>{$this->lang->words['gf_t_viewing']}</strong></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='width: 40%'>
|
||||
<label>{$this->lang->words['gf_other_topics']}</label>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_other_topics']}</strong>
|
||||
</td>
|
||||
<td style='width: 60%'>
|
||||
<td class='field_field'>
|
||||
{$form['g_other_topics']}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -122,28 +151,28 @@ $IPBHTML .= <<<EOF
|
||||
<th colspan='2' class='head'><strong>{$this->lang->words['gf_t_posting']}</strong></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_post_new_topics']}</label>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_post_new_topics']}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<td class='field_field'>
|
||||
{$form['g_post_new_topics']}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_reply_own_topics']}</label>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_reply_own_topics']}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<td class='field_field'>
|
||||
{$form['g_reply_own_topics']}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_reply_other_topics']}</label>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_reply_other_topics']}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<td class='field_field'>
|
||||
{$form['g_reply_other_topics']}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -151,38 +180,38 @@ $IPBHTML .= <<<EOF
|
||||
<th colspan='2' class='head'><strong>{$this->lang->words['gf_t_editing']}</strong></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_edit_posts']}</label>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_edit_posts']}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<td class='field_field'>
|
||||
{$form['g_edit_posts']}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_edit_cutoff']}</label>
|
||||
<div class='desctext'>{$this->lang->words['gf_edit_cuttoff_info']}</div>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_edit_cutoff']}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<td class='field_field'>
|
||||
{$form['g_edit_cutoff']}
|
||||
<div class='desctext'>{$this->lang->words['gf_edit_cuttoff_info']}</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_append_edit']}</label>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_append_edit']}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<td class='field_field'>
|
||||
{$form['g_append_edit']}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_edit_topic']}</label>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_edit_topic']}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<td class='field_field'>
|
||||
{$form['g_edit_topic']}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -190,143 +219,143 @@ $IPBHTML .= <<<EOF
|
||||
<th colspan='2' class='head'><strong>{$this->lang->words['gf_t_deleting']}</strong></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_delete_own_posts']}</label>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_delete_own_posts']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['g_delete_own_posts']}
|
||||
<p class='desctext'>{$this->lang->words['hard_delete_info']}</p>
|
||||
<span class='desctext'><strong>{$this->lang->words['sup_mod_already']}</strong></span>
|
||||
</td>
|
||||
<td>
|
||||
{$form['g_delete_own_posts']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_delete_own_topics']}</label>
|
||||
<p class='desctext'>{$this->lang->words['hard_delete_info']}</p>
|
||||
<span class='desctext'><strong>{$this->lang->words['sup_mod_already']}</strong></span>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_delete_own_topics']}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<td class='field_field'>
|
||||
{$form['g_delete_own_topics']}
|
||||
<p class='desctext'>{$this->lang->words['hard_delete_info']}</p>
|
||||
<span class='desctext'><strong>{$this->lang->words['sup_mod_already']}</strong></span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_bw_soft_delete']}</label>
|
||||
<p class='desctext'>{$this->lang->words['soft_delete_info']}</p>
|
||||
<span class='desctext'><strong>{$this->lang->words['sup_mod_already']}</strong></span>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_bw_soft_delete']}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<td class='field_field'>
|
||||
{$form['gbw_soft_delete']}
|
||||
<p class='desctext'>{$this->lang->words['soft_delete_info']}</p>
|
||||
<span class='desctext'><strong>{$this->lang->words['sup_mod_already']}</strong></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_bw_soft_delete_own']}</label>
|
||||
<p class='desctext'>{$this->lang->words['soft_delete_info']}</p>
|
||||
<span class='desctext'><strong>{$this->lang->words['sup_mod_already']}</strong></span>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_bw_soft_delete_own']}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<td class='field_field'>
|
||||
{$form['gbw_soft_delete_own']}
|
||||
<p class='desctext'>{$this->lang->words['soft_delete_info']}</p>
|
||||
<span class='desctext'><strong>{$this->lang->words['sup_mod_already']}</strong></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_bw_un_soft_delete']}</label>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_bw_un_soft_delete']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['gbw_un_soft_delete']}
|
||||
<p class='desctext'>{$this->lang->words['soft_delete_info']}</p>
|
||||
<span class='desctext'><strong>{$this->lang->words['sup_mod_already']}</strong></span>
|
||||
</td>
|
||||
<td>
|
||||
{$form['gbw_un_soft_delete']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_bw_soft_delete_see']}</label>
|
||||
<p class='desctext'>{$this->lang->words['gbw_soft_delete_see_d']}</p>
|
||||
<span class='desctext'><strong>{$this->lang->words['sup_mod_already']}</strong></span>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_bw_soft_delete_see']}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<td class='field_field'>
|
||||
{$form['gbw_soft_delete_see']}
|
||||
<p class='desctext'>{$this->lang->words['gbw_soft_delete_see_d']}</p>
|
||||
<span class='desctext'><strong>{$this->lang->words['sup_mod_already']}</strong></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_bw_soft_delete_topic']}</label>
|
||||
<p class='desctext'>{$this->lang->words['soft_delete_info']}</p>
|
||||
<span class='desctext'><strong>{$this->lang->words['sup_mod_already']}</strong></span>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_bw_soft_delete_topic']}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<td class='field_field'>
|
||||
{$form['gbw_soft_delete_topic']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_bw_soft_delete_own_topic']}</label>
|
||||
<p class='desctext'>{$this->lang->words['soft_delete_info']}</p>
|
||||
<span class='desctext'><strong>{$this->lang->words['sup_mod_already']}</strong></span>
|
||||
</td>
|
||||
<td>
|
||||
{$form['gbw_soft_delete_own_topic']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_bw_un_soft_delete_topic']}</label>
|
||||
<p class='desctext'>{$this->lang->words['soft_delete_info']}</p>
|
||||
<span class='desctext'><strong>{$this->lang->words['sup_mod_already']}</strong></span>
|
||||
</td>
|
||||
<td>
|
||||
{$form['gbw_un_soft_delete_topic']}
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_bw_soft_delete_own_topic']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['gbw_soft_delete_own_topic']}
|
||||
<p class='desctext'>{$this->lang->words['soft_delete_info']}</p>
|
||||
<span class='desctext'><strong>{$this->lang->words['sup_mod_already']}</strong></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_bw_soft_delete_topic_see']}</label>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_bw_un_soft_delete_topic']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['gbw_un_soft_delete_topic']}
|
||||
<p class='desctext'>{$this->lang->words['soft_delete_info']}</p>
|
||||
<span class='desctext'><strong>{$this->lang->words['sup_mod_already']}</strong></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_bw_soft_delete_topic_see']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['gbw_soft_delete_topic_see']}
|
||||
<p class='desctext'>{$this->lang->words['gbw_soft_delete_topic_see_d']}</p>
|
||||
<span class='desctext'><strong>{$this->lang->words['sup_mod_already']}</strong></span>
|
||||
</td>
|
||||
<td>
|
||||
{$form['gbw_soft_delete_topic_see']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_bw_soft_delete_reason']}</label>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_bw_soft_delete_reason']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['gbw_soft_delete_reason']}
|
||||
<p class='desctext'>{$this->lang->words['soft_delete_info']}</p>
|
||||
<span class='desctext'><strong>{$this->lang->words['sup_mod_already']}</strong></span>
|
||||
</td>
|
||||
<td>
|
||||
{$form['gbw_soft_delete_reason']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_bw_soft_delete_see_post']}</label>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_bw_soft_delete_see_post']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['gbw_soft_delete_see_post']}
|
||||
<p class='desctext'>{$this->lang->words['gbw_soft_delete_see_post_d']}</p>
|
||||
<span class='desctext'><strong>{$this->lang->words['sup_mod_already']}</strong></span>
|
||||
</td>
|
||||
<td>
|
||||
{$form['gbw_soft_delete_see_post']}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th colspan='2' class='head'><strong>{$this->lang->words['gf_t_openclose']}</strong></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['g_open_close_posts']}</label>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['g_open_close_posts']}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<td class='field_field'>
|
||||
{$form['g_open_close_posts']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_post_closed']}</label>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_post_closed']}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<td class='field_field'>
|
||||
{$form['g_post_closed']}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -334,40 +363,40 @@ $IPBHTML .= <<<EOF
|
||||
<th colspan='2' class='head'><strong>{$this->lang->words['gf_t_polling']}</strong></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_post_polls']}</label>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_post_polls']}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<td class='field_field'>
|
||||
{$form['g_post_polls']}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class='guest_legend'>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_vote_polls']}</label>
|
||||
{$guest_legend}
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_vote_polls']}</strong>
|
||||
</td>
|
||||
<td>
|
||||
{$form['g_vote_polls']}
|
||||
<td class='field_field'>
|
||||
{$form['g_vote_polls']}<br />
|
||||
{$guest_legend}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan='2' class='head'><strong>{$this->lang->words['gf_t_avoidance']}</strong></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_avoid_flood']}</label>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_avoid_flood']}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<td class='field_field'>
|
||||
{$form['g_avoid_flood']}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_avoid_q']}</label>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_avoid_q']}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<td class='field_field'>
|
||||
{$form['g_avoid_q']}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -376,22 +405,22 @@ $IPBHTML .= <<<EOF
|
||||
<th colspan='2' class='head'><strong>{$this->lang->words['gf_t_restrictions']}</strong></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{$this->lang->words['gf_mod_preview']}</label>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['gf_mod_preview']}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<td class='field_field'>
|
||||
<p>{$form['g_mod_preview']} {$this->lang->words['g_until']} {$form['g_mod_post_unit']} {$form['gbw_mod_post_unit_type']}</p>
|
||||
<p style='color:gray;font-size:0.8em'>{$this->lang->words['g_limit_dd']}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>
|
||||
{$this->lang->words['gf_ppd_limit']}
|
||||
<p style='color:gray;font-size:0.8em'>{$this->lang->words['g_limit_no']}</p>
|
||||
</label>
|
||||
</strong>
|
||||
</td>
|
||||
<td>
|
||||
<td class='field_field'>
|
||||
<p>{$this->lang->words['g_max']} {$form['g_ppd_limit']} {$this->lang->words['g_ppd']} {$form['g_ppd_unit']} {$form['gbw_ppd_unit_type']}</p>
|
||||
<p style='color:gray;font-size:0.8em'>{$this->lang->words['g_limit_dd']}</p>
|
||||
</td>
|
||||
@@ -408,7 +437,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Display forum group form tabs
|
||||
*
|
||||
* @access public
|
||||
* @param array Group data
|
||||
* @param string Tab id
|
||||
* @return string HTML
|
||||
@@ -418,7 +446,7 @@ public function acp_group_form_tabs( $group, $tabId ) {
|
||||
$IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<li id='tabtab-GROUPS|{$tabId}' class=''>{$this->lang->words['g_forperm']}</li>
|
||||
<li id='tab_GROUPS_{$tabId}'>{$this->lang->words['g_forperm']}</li>
|
||||
EOF;
|
||||
|
||||
return $IPBHTML;
|
||||
|
||||
@@ -3,148 +3,68 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Forum member form plugin
|
||||
* Last Updated: $LastChangedDate: 2010-09-24 21:21:39 -0400 (Fri, 24 Sep 2010) $
|
||||
* Last Updated: $LastChangedDate: 2011-09-01 08:16:37 -0400 (Thu, 01 Sep 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @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 Forums
|
||||
* @link http://www.invisionpower.com
|
||||
* @link http://hatynka.in
|
||||
* @since 14th May 2003
|
||||
* @version $Rev: 6915 $
|
||||
* @version $Rev: 9439 $
|
||||
*/
|
||||
|
||||
class cp_skin_member_form extends output
|
||||
|
||||
class cp_skin_member_form
|
||||
{
|
||||
|
||||
/**
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Display/change avatar
|
||||
*
|
||||
* @access public
|
||||
* @param array Image data
|
||||
* @return string HTML
|
||||
*/
|
||||
public function inline_avatar_images( $images=array() )
|
||||
{
|
||||
$IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
|
||||
<select name='avatar_image' id='avatar_image' onChange='acp.members.updateAvatarPreview();'>
|
||||
<option value=''>{$this->lang->words['m_selectav']}</option>
|
||||
EOF;
|
||||
foreach( $images as $image )
|
||||
{
|
||||
$IPBHTML .= "<option value='{$image}'>{$image}</option>";
|
||||
}
|
||||
/**
|
||||
* 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;
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
</select>
|
||||
EOF;
|
||||
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Ability to select an avatar from avatar galleries
|
||||
*
|
||||
* @access public
|
||||
* @param array Member data
|
||||
* @param array Avatar gallery categories
|
||||
* @return string HTML
|
||||
*/
|
||||
public function inline_avatar_selector( $member, $categories=array() )
|
||||
{
|
||||
$IPBHTML = "";
|
||||
|
||||
$default_url = ($member['avatar_type'] == 'url') ? $member['avatar_location'] : '';
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<form action='{$this->settings['_base_url']}&app=forums&module=tools&section=tools&do=new_avatar&member_id={$member['member_id']}' method='post' enctype='multipart/form-data'>
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['memchangeavatar']}</h3>
|
||||
<div class='row1'>
|
||||
<p class='information-box' style='margin: 6px;'>
|
||||
{$this->lang->words['m_firstfield']}
|
||||
</p>
|
||||
</div>
|
||||
<ul class='acp-form'>
|
||||
<li><h4>{$this->lang->words['m_newav']}</h4></li>
|
||||
<li style='padding-left: 20px'>
|
||||
<input type='file' size='30' style='width: 95%' id='upload_avatar' name='upload_avatar' />
|
||||
</li>
|
||||
<li><h4>{$this->lang->words['m_avurl']}</h4></li>
|
||||
<li>
|
||||
<label for='avatar_url' style='font-weight: normal'>{$this->lang->words['m_avurl_label']}</label>
|
||||
<input type='text' size='30' id='avatar_url' name='avatar_url' value='{$default_url}' />
|
||||
</li>
|
||||
EOF;
|
||||
if( $this->settings['disable_ipbsize'] )
|
||||
{
|
||||
list($p_width, $p_height) = explode( "x", strtolower( $this->settings['avatar_dims'] ) );
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<li><h4>{$this->lang->words['m_avdimen']}</h4></li>
|
||||
<li>
|
||||
<label for='avatar_url' style='font-weight: normal'>{$this->lang->words['m_avdimen']}</label>
|
||||
{$this->lang->words['m_width']} <input type='text' size='6' id='man_width' name='man_width' value='{$p_width}' /> x {$this->lang->words['m_height']} <input type='text' size='6' id='man_height' name='man_height' value='{$p_height}' />
|
||||
</li>
|
||||
EOF;
|
||||
}
|
||||
|
||||
if( count($categories) )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<li><h4>{$this->lang->words['m_localav']}</h4></li>
|
||||
<li>
|
||||
<div style='float:right;margin-right:4px;margin-top:4px;'>
|
||||
<div style='border:1px solid #000;background:#FFF;width:auto; padding:2px;' id='avatarContainer'></div>
|
||||
</div>
|
||||
|
||||
<select name='avatar_gallery' id='avatar_gallery'>
|
||||
EOF;
|
||||
foreach( $categories as $category )
|
||||
{
|
||||
$IPBHTML .= "<option value='{$category[0]}'>{$category[1]}</option>";
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
</select>
|
||||
<span style='display:none;' id='avatarGalleryContainer'></span>
|
||||
</li>
|
||||
EOF;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
</ul>
|
||||
<div class='acp-actionbar' style='clear:both;'><input type='submit' value='{$this->lang->words['m_updateav']}' class='realbutton' /></div>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
return $IPBHTML;
|
||||
}
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Main ACP member form
|
||||
*
|
||||
* @access public
|
||||
* @param array Member data
|
||||
* @return string HTML
|
||||
*/
|
||||
@@ -163,7 +83,7 @@ while( $data = ipsRegistry::DB()->fetch() )
|
||||
$_restrict_tick = '';
|
||||
$_restrict_timespan = '';
|
||||
$_restrict_units = '';
|
||||
$units = array( 0 => array( 'h', $this->lang->words['m_hours'] ), 1 => array( 'd', $this->lang->words['m_days'] ) );
|
||||
$units = array( 0 => array( 'h', $this->lang->words['m_hours'] ), 1 => array( 'd', $this->lang->words['m_days'] ) );
|
||||
|
||||
if ( $member['restrict_post'] == 1 )
|
||||
{
|
||||
@@ -171,29 +91,29 @@ if ( $member['restrict_post'] == 1 )
|
||||
}
|
||||
elseif ($member['restrict_post'] > 0)
|
||||
{
|
||||
$mod_arr = IPSMember::processBanEntry( $member['restrict_post'] );
|
||||
$rest_arr = IPSMember::processBanEntry( $member['restrict_post'] );
|
||||
|
||||
$hours = ceil( ( $mod_arr['date_end'] - time() ) / 3600 );
|
||||
$hours = ceil( ( $rest_arr['date_end'] - time() ) / 3600 );
|
||||
|
||||
if( $hours < 0 )
|
||||
{
|
||||
$mod_arr['units'] = '';
|
||||
$mod_arr['timespan'] = '';
|
||||
$rest_arr['units'] = '';
|
||||
$rest_arr['timespan'] = '';
|
||||
}
|
||||
else if ( $hours > 24 and ( ($hours / 24) == ceil($hours / 24) ) )
|
||||
{
|
||||
$mod_arr['units'] = 'd';
|
||||
$mod_arr['timespan'] = $hours / 24;
|
||||
$rest_arr['units'] = 'd';
|
||||
$rest_arr['timespan'] = $hours / 24;
|
||||
}
|
||||
else
|
||||
{
|
||||
$mod_arr['units'] = 'h';
|
||||
$mod_arr['timespan'] = $hours;
|
||||
$rest_arr['units'] = 'h';
|
||||
$rest_arr['timespan'] = $hours;
|
||||
}
|
||||
}
|
||||
|
||||
$_restrict_timespan = ipsRegistry::getClass('output')->formSimpleInput('post_timespan', $mod_arr['timespan'] );
|
||||
$_restrict_units = ipsRegistry::getClass('output')->formDropdown('post_units', $units, $mod_arr['units'] );
|
||||
$_restrict_timespan = ipsRegistry::getClass('output')->formSimpleInput('post_timespan', $rest_arr['timespan'] );
|
||||
$_restrict_units = ipsRegistry::getClass('output')->formDropdown('post_units', $units, $rest_arr['units'] );
|
||||
|
||||
$_mod_tick = '';
|
||||
$_mod_timespan = '';
|
||||
@@ -231,66 +151,38 @@ $_mod_units = ipsRegistry::getClass('output')->formDropdown('mod_units', $uni
|
||||
|
||||
$form_override_masks = ipsRegistry::getClass('output')->formMultiDropdown( "org_perm_id[]", $masks, explode( ",", $member['org_perm_id'] ), 8, 'org_perm_id' );
|
||||
$form_posts = ipsRegistry::getClass('output')->formInput( "posts", $member['posts'] );
|
||||
$form_view_avs = ipsRegistry::getClass('output')->formYesNo( "view_avs", $member['view_avs'] );
|
||||
$form_view_img = ipsRegistry::getClass('output')->formYesNo( "view_img", $member['view_img'] );
|
||||
|
||||
$IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
|
||||
<div class='tablerow1' id='tabpane-MEMBERS|{$tabID}'>
|
||||
<table class='alternate_rows double_pad' cellspacing='0'>
|
||||
<div id='tab_MEMBERS_{$tabID}_content'>
|
||||
<table class='ipsTable double_pad'>
|
||||
|
||||
<tr>
|
||||
<th colspan='2'>{$this->lang->words['sm_settings']}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>{$this->lang->words['strong_avatar_label']}</strong></td>
|
||||
<td>
|
||||
{$member['_avatar']}
|
||||
<br /><br />
|
||||
<input type='button' class='button' id='MF__avatarremove' value='{$this->lang->words['mem_remove_avatar']}' />
|
||||
<input type='button' class='button' id='MF__avatarchange' value='{$this->lang->words['m_changeav']}' />
|
||||
|
||||
<script type='text/javascript'>
|
||||
$('MF__avatarremove').observe('click', acp.members.removeAvatar.bindAsEventListener( this, {$member['member_id']} ) );
|
||||
$('MF__avatarchange').observe('click', acp.members.changeAvatar.bindAsEventListener( this, "app=forums&module=ajax&section=member_editform&do=show&name=inline_avatar&member_id={$member['member_id']}" ) );
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>{$this->lang->words['mem_posts']}</strong></td>
|
||||
<td>
|
||||
<td class='field_title'><strong class='title'>{$this->lang->words['mem_posts']}</strong></td>
|
||||
<td class='field_field'>
|
||||
<span id='MF__posts'>{$form_posts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>{$this->lang->words['m_viewavs']}</strong></td>
|
||||
<td>
|
||||
<span id='MF__view_avs'>{$form_view_avs}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>{$this->lang->words['m_viewimgs']}</strong></td>
|
||||
<td>
|
||||
<span id='MF__view_img'>{$form_view_img}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class='alternate_rows double_pad' cellspacing='0'>
|
||||
<table class='ipsTable double_pad'>
|
||||
<tr>
|
||||
<th colspan='2'>{$this->lang->words['sm_access']}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='width: 35%'><strong>{$this->lang->words['m_overrride']}</strong></td>
|
||||
<td>
|
||||
<td class='field_title'><strong class='title'>{$this->lang->words['m_overrride']}</strong></td>
|
||||
<td class='field_field'>
|
||||
<span id='MF__ogpm'>{$form_override_masks}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>{$this->lang->words['m_modprev']}</strong></td>
|
||||
<td>
|
||||
<td class='field_title'><strong class='title'>{$this->lang->words['m_modprev']}</strong></td>
|
||||
<td class='field_field'>
|
||||
<input type='checkbox' name='mod_indef' id='mod_indef' value='1' {$_mod_tick}> {$this->lang->words['m_modindef']}
|
||||
<br />
|
||||
{$this->lang->words['m_orfor']}
|
||||
@@ -298,8 +190,8 @@ $IPBHTML .= <<<EOF
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>{$this->lang->words['m_restrict']}</strong></td>
|
||||
<td>
|
||||
<td class='field_title'><strong class='title'>{$this->lang->words['m_restrict']}</strong></td>
|
||||
<td class='field_field'>
|
||||
<input type='checkbox' name='post_indef' id='post_indef' value='1' {$_restrict_tick}> {$this->lang->words['m_restrictindef']}
|
||||
<br />
|
||||
{$this->lang->words['m_orfor']}
|
||||
@@ -317,7 +209,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Forums member tabs
|
||||
*
|
||||
* @access public
|
||||
* @param array Member data
|
||||
* @return string HTML
|
||||
*/
|
||||
@@ -326,7 +217,7 @@ public function acp_member_form_tabs( $member, $tabID ) {
|
||||
$IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<li id='tabtab-MEMBERS|{$tabID}' class=''>{$this->lang->words['m_details']}</li>
|
||||
<li id='tab_MEMBERS_{$tabID}'>{$this->lang->words['m_details']}</li>
|
||||
EOF;
|
||||
|
||||
return $IPBHTML;
|
||||
@@ -335,7 +226,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Delete posts confirmation page
|
||||
*
|
||||
* @access public
|
||||
* @param array Member data
|
||||
* @param integer Number of topics
|
||||
* @param integer Number of posts
|
||||
@@ -349,27 +239,23 @@ $IPBHTML = "";
|
||||
$IPBHTML .= <<<EOF
|
||||
<form action='{$this->settings['base_url']}&{$this->form_code}&do=deleteposts_process&member_id={$member['member_id']}' method='POST'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->registry->getClass('adminFunctions')->_admin_auth_key}' />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>{$this->lang->words['mem_delete_posts_title']} {$member['members_display_name']}</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['mem_delete_posts_title']} {$member['members_display_name']}</h3>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<td class='tablerow1' width='90%'><strong>{$this->lang->words['mem_delete_delete_posts']}</strong><div class='desctext'>{$this->lang->words['mem_delete_delete_posts_desc']}</div></td>
|
||||
<td class='tablerow2' width='10%'><input type='checkbox' value='1' name='dposts' /></td>
|
||||
<td class='field_title'><strong class='title'>{$this->lang->words['mem_delete_delete_posts']}</strong></td>
|
||||
<td class='field_field'><input type='checkbox' value='1' name='dposts' class='input_text' /><br /><span class='desctext'>{$this->lang->words['mem_delete_delete_posts_desc']}</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1' width='90%'><strong>{$this->lang->words['mem_delete_delete_topics']}</strong><div class='desctext'>{$this->lang->words['mem_delete_delete_topics_desc']}</div></td>
|
||||
<td class='tablerow2' width='10%'><input type='checkbox' value='1' name='dtopics' /></td>
|
||||
<td class='field_title'><strong class='title'>{$this->lang->words['mem_delete_delete_topics']}</strong></td>
|
||||
<td class='field_field'><input type='checkbox' value='1' name='dtopics' class='input_text' /><br /><span class='desctext'>{$this->lang->words['mem_delete_delete_topics_desc']}</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1' width='90%'><strong>{$this->lang->words['mem_delete_posts_trash']}</strong><div class='desctext'>{$this->lang->words['mem_delete_posts_trash_desc']}</div></td>
|
||||
<td class='tablerow2' width='10%'><input type='checkbox' value='1' name='use_trash_can' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1' width='90%'><strong>{$this->lang->words['mem_delete_delete_pergo']}</strong><div class='desctext'>{$this->lang->words['mem_delete_delete_pergo_desc']}</div></td>
|
||||
<td class='tablerow2' width='10%'><input type='input' value='50' size='3' name='dpergo' /></td>
|
||||
<td class='field_title'><strong class='title'>{$this->lang->words['mem_delete_delete_pergo']}</strong></td>
|
||||
<td class='field_field'><input type='input' value='50' size='3' name='dpergo' class='input_text' /><br /><span class='desctext'>{$this->lang->words['mem_delete_delete_pergo_desc']}</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div align='center' class='tablefooter'><input type='submit' class='realbutton' value='{$this->lang->words['mem_delete_process']}' /></div>
|
||||
<div class='acp-actionbar'><input type='submit' class='button primary' value='{$this->lang->words['mem_delete_process']}' /></div>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
@@ -3,38 +3,68 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Multimods skin functions
|
||||
* Last Updated: $LastChangedDate: 2010-01-15 10:18:44 -0500 (Fri, 15 Jan 2010) $
|
||||
* Last Updated: $LastChangedDate: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @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 Forums
|
||||
* @link http://www.invisionpower.com
|
||||
* @link http://hatynka.in
|
||||
* @since 14th May 2003
|
||||
* @version $Rev: 5713 $
|
||||
* @version $Rev: 8644 $
|
||||
*/
|
||||
|
||||
class cp_skin_multimods extends output
|
||||
class cp_skin_multimods
|
||||
{
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Form to add/edit multimods
|
||||
*
|
||||
* @access public
|
||||
* @param integer MM ID
|
||||
* @param string Action
|
||||
* @param string Description
|
||||
@@ -60,76 +90,124 @@ $IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['mm_title']}</h3>
|
||||
|
||||
<ul class="acp-form alternate_rows">
|
||||
<li><label class='head'>{$description}</label>
|
||||
<li>
|
||||
<label>{$this->lang->words['mm_titlefor']}</label>
|
||||
{$form['mm_title']}
|
||||
</li>
|
||||
<table class="ipsTable double_pad">
|
||||
<tr>
|
||||
<th colspan='2'>{$description}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['mm_titlefor']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['mm_title']}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['mm_activein']}<span class='desctext'>{$this->lang->words['mm_activein_desc']}</span></label>
|
||||
{$form['forums']}
|
||||
</tr>
|
||||
|
||||
<li>
|
||||
<label class='head'>{$this->lang->words['mm_modoptions']}</label>
|
||||
</li>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['mm_activein']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['forums']}<br />
|
||||
<span class='desctext'>{$this->lang->words['mm_activein_desc']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th colspan='2'>{$this->lang->words['mm_modoptions']}</th>
|
||||
</tr>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['mm_start']}</label>
|
||||
{$form['topic_title_st']}
|
||||
</li>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['mm_start']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['topic_title_st']}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['mm_end']}</label>
|
||||
{$form['topic_title_end']}
|
||||
</li>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['mm_end']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['topic_title_end']}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['mm_state']}</label>
|
||||
{$form['topic_state']}
|
||||
</li>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['mm_state']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['topic_state']}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['mm_pinned']}</label>
|
||||
{$form['topic_pin']}
|
||||
</li>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['mm_pinned']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['topic_pin']}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['mm_approved']}</label>
|
||||
{$form['topic_approve']}
|
||||
</li>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['mm_approved']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['topic_approve']}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['mm_move']}</label>
|
||||
{$form['topic_move']}
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['mm_link']}</label>
|
||||
{$form['topic_move_link']}
|
||||
</li>
|
||||
|
||||
<li><label class='head'>{$this->lang->words['mm_postoptions']}</label></li>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['mm_move']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['topic_move']}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['mm_addreply']}<span class='desctext'>{$this->lang->words['mm_addreply_desc']}</span></label>
|
||||
{$form['topic_reply']}<br />
|
||||
{$form['topic_reply_content']}
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['mm_postcount']}</label>
|
||||
{$form['topic_reply_postcount']}
|
||||
</li>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['mm_link']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['topic_move_link']}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th colspan='2'>{$this->lang->words['mm_postoptions']}</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['mm_addreply']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['topic_reply']}<br /><br />
|
||||
{$form['topic_reply_content']}<br />
|
||||
<span class='desctext'>{$this->lang->words['mm_addreply_desc']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['mm_postcount']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['topic_reply_postcount']}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class='acp-actionbar'>
|
||||
<div class='centeraction'>
|
||||
<input type='submit' value='{$button}' class='button primary' accesskey='s'>
|
||||
</div>
|
||||
</div>
|
||||
<input type='submit' value='{$button}' class='button primary' accesskey='s'>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
HTML;
|
||||
@@ -141,7 +219,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Show multimod overview page
|
||||
*
|
||||
* @access public
|
||||
* @param array MM Rows
|
||||
* @return string HTML
|
||||
*/
|
||||
@@ -156,7 +233,7 @@ $IPBHTML .= <<<HTML
|
||||
<ul class='context_menu'>
|
||||
<li>
|
||||
<a href='{$this->settings['base_url']}{$this->form_code}do=new' title='{$this->lang->words['mm_addnew']}'>
|
||||
<img src='{$this->settings['skin_acp_url']}/_newimages/icons/lightning_add.png' alt='' />
|
||||
<img src='{$this->settings['skin_acp_url']}/images/icons/lightning_add.png' alt='' />
|
||||
{$this->lang->words['mm_addnew']}
|
||||
</a>
|
||||
</li>
|
||||
@@ -166,17 +243,21 @@ $IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['mm_current']}</h3>
|
||||
|
||||
<table class='alternate_rows' width='100%'>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<th width='95%'>{$this->lang->words['mm_wordtitle']}</th>
|
||||
<th width='5%'>{$this->lang->words['a_options']}</th>
|
||||
<th>{$this->lang->words['mm_wordtitle']}</th>
|
||||
<th class='col_buttons'> </th>
|
||||
</tr>
|
||||
HTML;
|
||||
|
||||
if( ! count( $rows ) )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr><td colspan='3'><center>{$this->lang->words['mm_none']}</center></td></tr>
|
||||
<tr>
|
||||
<td colspan='3' class='no_messages'>
|
||||
{$this->lang->words['mm_none']} <a href='{$this->settings['base_url']}{$this->form_code}do=new' title='{$this->lang->words['mm_addnew']}' class='mini_button'>{$this->lang->words['mm_createnow']}</a>
|
||||
</td>
|
||||
</tr>
|
||||
HTML;
|
||||
}
|
||||
else
|
||||
@@ -184,13 +265,12 @@ else
|
||||
foreach( $rows as $r )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<tr class='ipsControlRow'>
|
||||
<td><strong>{$r['mm_title']}</strong></td>
|
||||
<td>
|
||||
<img class='ipbmenu' id="menu{$r['mm_id']}" src='{$this->settings['skin_acp_url']}/_newimages/menu_open.png' alt='{$this->lang->words['a_options']}' />
|
||||
<ul class='acp-menu' id='menu{$r['mm_id']}_menucontent'>
|
||||
<li class='icon edit'><a href='{$this->settings['base_url']}{$this->form_code}do=edit&id={$r['mm_id']}'>{$this->lang->words['mm_wordedit']}</a></li>
|
||||
<li class='icon delete'><a href='{$this->settings['base_url']}{$this->form_code}do=delete&id={$r['mm_id']}'>{$this->lang->words['mm_remove']}</a></li>
|
||||
<ul id='menu{$r['mm_id']}_menucontent' class='ipsControlStrip'>
|
||||
<li class='i_edit'><a href='{$this->settings['base_url']}{$this->form_code}do=edit&id={$r['mm_id']}' title='{$this->lang->words['mm_wordedit']}'>{$this->lang->words['mm_wordedit']}</a></li>
|
||||
<li class='i_delete'><a href='#' onclick='return acp.confirmDelete("{$this->settings['base_url']}{$this->form_code}do=delete&id={$r['mm_id']}");' title='{$this->lang->words['mm_remove']}'>{$this->lang->words['mm_remove']}</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -1,358 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* Permissions masks skin functions
|
||||
* Last Updated: $LastChangedDate: 2010-09-13 17:28:12 -0400 (Mon, 13 Sep 2010) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @package IP.Board
|
||||
* @subpackage Forums
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 14th May 2003
|
||||
* @version $Rev: 6863 $
|
||||
*/
|
||||
|
||||
class cp_skin_permissions extends output
|
||||
{
|
||||
|
||||
/**
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Preview forum permissions
|
||||
*
|
||||
* @access public
|
||||
* @param integer Mask id
|
||||
* @param string Mask title
|
||||
* @param string HTML for type dropdown
|
||||
* @param array Forum rows
|
||||
* @param string Type human-understandable text
|
||||
* @return string HTML
|
||||
*/
|
||||
public function previewForumPermissions( $id, $title, $type_drop, $rows, $human_type )
|
||||
{
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>{$this->lang->words['per_preview']}{$title}</div>
|
||||
|
||||
<table width='100%' align='center'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='100%' align='center' colspan='2'>{$human_type}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='tablerow1' width='100%' valign='middle'>
|
||||
HTML;
|
||||
|
||||
foreach( $rows as $r )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<span style='{$r['css']}'>{$r['name']}</span><br />
|
||||
HTML;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><br />
|
||||
|
||||
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='theAdminForm' id='theAdminForm'>
|
||||
<input type='hidden' name='do' value='preview_forums' />
|
||||
<input type='hidden' name='id' value='{$id}' />
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->_admin_auth_key}' />
|
||||
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>{$this->lang->words['per_legend']}</div>
|
||||
|
||||
<table width='100%' align='center'>
|
||||
<tr>
|
||||
<td class='tablerow1' width='60%' valign='middle'>{$this->lang->words['per_can']}{$human_type}</td>
|
||||
<td class='tablerow2' width='40%' valign='middle'><input type='text' readonly='readonly' style='border:1px solid black;background-color:green;size=30px' name='blah'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1' width='60%' valign='middle'>{$this->lang->words['per_cannot']}{$human_type}</td>
|
||||
<td class='tablerow2' width='40%' valign='middle'><input type='text' readonly='readonly' style='border:1px solid gray;background-color:red;size=30px' name='blah'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1' width='60%' valign='middle'>{$this->lang->words['per_category']}</td>
|
||||
<td class='tablerow2' width='40%' valign='middle'><input type='text' readonly='readonly' style='border:1px solid gray;background-color:grey;size=30px' name='blah'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1' width='60%' valign='middle'>{$this->lang->words['per_testwith']}</td>
|
||||
<td class='tablerow2' width='40%' valign='middle'>{$type_drop}</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='center' class='tablesubheader' colspan='2' ><input type='submit' value='{$this->lang->words['per_updatebutton']}' class='realbutton' accesskey='s'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
HTML;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
/**
|
||||
* Permissions editor
|
||||
*
|
||||
* @access public
|
||||
* @param integer Mask id
|
||||
* @param string Mask title
|
||||
* @param array Rows
|
||||
* @return string HTML
|
||||
*/
|
||||
public function permissionsForum( $id, $title, $rows ){
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<div class='section_title'>
|
||||
<h2>{$this->lang->words['per_title_edit']}</h2>
|
||||
</div>
|
||||
|
||||
<!-- RENAME PERMISSION SET -->
|
||||
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='nameForm' id='nameForm'>
|
||||
<input type='hidden' name='do' value='donameedit' />
|
||||
<input type='hidden' name='id' value='{$id}' />
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->_admin_auth_key}' />
|
||||
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>{$this->lang->words['per_rename']}{$title}</div>
|
||||
|
||||
<table width='100%' align='center'>
|
||||
<tr>
|
||||
<td class='tablerow1' width='40%' valign='middle'>{$this->lang->words['per_setname']}</td>
|
||||
<td class='tablerow2' width='60%' valign='middle'><input type='text' name='perm_name' id='perm_name' value='{$title}' size='30' class='textinput' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='center' class='tablesubheader' colspan='2' ><input type='submit' value='{$this->lang->words['per_editbutton']}' class='realbutton' accesskey='s'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
<br />
|
||||
<!-- / RENAME PERMISSION SET -->
|
||||
<!-- PERMISSION MATRIX -->
|
||||
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='theAdminForm' id='theAdminForm'>
|
||||
<input type='hidden' name='do' value='dofedit' />
|
||||
<input type='hidden' name='id' value='{$id}' />
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->_admin_auth_key}' />
|
||||
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>{$this->lang->words['forumpermsfor']} {$title}</div>
|
||||
|
||||
<table width='100%' align='center'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='25%' align='center'>{$this->lang->words['per_forumname']}</td>
|
||||
<td class='tablesubheader' width='10%' align='center'>{$this->lang->words['per_show_c']}<br /><input id='show' type='checkbox' onclick='checkcol("show", this.checked );' /></td>
|
||||
<td class='tablesubheader' width='10%' align='center'>{$this->lang->words['per_read_c']}<br /><input id='read' type='checkbox' onclick='checkcol("read", this.checked );' /></td>
|
||||
<td class='tablesubheader' width='10%' align='center'>{$this->lang->words['per_reply_c']}<br /><input id='reply' type='checkbox' onclick='checkcol("reply", this.checked );' /></td>
|
||||
<td class='tablesubheader' width='10%' align='center'>{$this->lang->words['per_start_c']}<br /><input id='start' type='checkbox' onclick='checkcol("start", this.checked );' /></td>
|
||||
<td class='tablesubheader' width='10%' align='center'>{$this->lang->words['per_upload_c']}<br /><input id='upload' type='checkbox' onclick='checkcol("upload", this.checked );' /></td>
|
||||
<td class='tablesubheader' width='10%' align='center'>{$this->lang->words['per_download_c']}<br /><input id='download' type='checkbox' onclick='checkcol("download", this.checked );' /></td>
|
||||
</tr>
|
||||
HTML;
|
||||
|
||||
foreach( $rows as $r )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<td class='{$r['css']}' width='25%' valign='middle'>
|
||||
<div style='float:right;width:auto;'>
|
||||
<input type='button' id='button' value='+' onclick='checkrow( {$r['id']},true )' />
|
||||
<input type='button' id='button' value='-' onclick='checkrow( {$r['id']},false )' />
|
||||
</div>
|
||||
<b>{$r['depthed_name']}</b>
|
||||
</td>
|
||||
<td class='{$r['css']}' width='10%' valign='middle'><div style='background-color:#ecd5d8; padding:4px;'>{$this->_permission_check_box( $r['id'], 'view', $r['_perms'] )}</td>
|
||||
<td class='{$r['css']}' width='10%' valign='middle'><div style='background-color:#dbe2de; padding:4px;'>{$this->_permission_check_box( $r['id'], 'read', $r['_perms'] )}</div></td>
|
||||
<td class='{$r['css']}' width='10%' valign='middle'><div style='background-color:#dbe6ea; padding:4px;'>{$this->_permission_check_box( $r['id'], 'reply', $r['_perms'] )}</div></td>
|
||||
<td class='{$r['css']}' width='10%' valign='middle'><div style='background-color:#d2d5f2; padding:4px;'>{$this->_permission_check_box( $r['id'], 'start', $r['_perms'] )}</div></td>
|
||||
<td class='{$r['css']}' width='10%' valign='middle'><div style='background-color:#ece6d8; padding:4px;'>{$this->_permission_check_box( $r['id'], 'upload', $r['_perms'] )}</div></td>
|
||||
<td class='{$r['css']}' width='10%' valign='middle'><div style='background-color:#dfdee9; padding:4px;'>{$this->_permission_check_box( $r['id'], 'download', $r['_perms'] )}</div></td>
|
||||
</tr>
|
||||
HTML;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<td align='center' class='tablesubheader' colspan='7' ><input type='submit' value='{$this->lang->words['per_updatebutton']}' class='realbutton' accesskey='s'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
<!-- / PERMISSION MATRIX -->
|
||||
|
||||
HTML;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check box generator helper
|
||||
*
|
||||
* @access private
|
||||
* @param integer Mask id
|
||||
* @param array Mask data
|
||||
* @param array Current selections
|
||||
* @return string HTML
|
||||
*/
|
||||
private function _permission_check_box( $id, $perm, $r )
|
||||
{
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
if( in_array( $r[ $perm ], array( $this->lang->words['per_global'], $this->lang->words['per_notused'] ) ) )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<center><i>{$r[$perm]}</i></center>
|
||||
HTML;
|
||||
}
|
||||
else if( $r[ $perm ] == 'checked' )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<center><input type='checkbox' name='{$perm}[{$id}]' id='{$perm}_{$id}' onclick="obj_checked('{$perm}', {$id} );" value='1' checked></center>
|
||||
HTML;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<center><input type='checkbox' name='{$perm}[{$id}]' id='{$perm}_{$id}' onclick="obj_checked('{$perm}', {$id} );" value='1'></center>
|
||||
HTML;
|
||||
}
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
/**
|
||||
* Perm mask splash page
|
||||
*
|
||||
* @access public
|
||||
* @param array Mask rows
|
||||
* @param string Dropdown list
|
||||
* @return string HTML
|
||||
*/
|
||||
public function permissionsSplash( $rows, $dlist ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<div class='section_title'>
|
||||
<h2>{$this->lang->words['per_title']}</h2>
|
||||
</div>
|
||||
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>{$this->lang->words['per_setname']}</div>
|
||||
|
||||
<table cellpadding='4' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='20%'>{$this->lang->words['per_name']}</td>
|
||||
<td class='tablesubheader' width='15%'>{$this->lang->words['per_usedgroups']}</td>
|
||||
<td class='tablesubheader' width='20%' align='center'>{$this->lang->words['per_usedmembers']}</td>
|
||||
<td class='tablesubheader' width='1%'> </td>
|
||||
</tr>
|
||||
HTML;
|
||||
|
||||
/* ROW */
|
||||
foreach( $rows as $r )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<td class='tablerow2'><strong>{$r['name']}</strong></td>
|
||||
<td class='tablerow1'>{$r['groups']}</td>
|
||||
<td class='tablerow1' align='center'>
|
||||
HTML;
|
||||
if ( $r['mems'] > 0 )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
{$r['mems']} (<a href='#' onclick='return acp.openWindow("{$this->settings['base_url']}{$this->form_code_js}do=view_perm_users&id={$r['id']}", "{$this->lang->words['per_user']}", "500","350");' title='{$this->lang->words['per_viewnames']}'>{$this->lang->words['per_view']}</a>)
|
||||
HTML;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
{$this->lang->words['per_nomember']}
|
||||
HTML;
|
||||
}
|
||||
$IPBHTML .= <<<HTML
|
||||
</td>
|
||||
<td class='tablerow1' align='center'>
|
||||
<img id="menu{$r['id']}" src='{$this->settings['skin_acp_url']}/_newimages/menu_open.png' alt='{$this->lang->words['per_options']}' class='ipbmenu' />
|
||||
<ul class='acp-menu' id='menu{$r['id']}_menucontent'>
|
||||
<li class='icon view'><a href='#' onclick='return acp.openWindow(\"{$this->settings['base_url']}{$this->form_code_js}do=preview_forums&id={$r['id']}&t=read\", \"{$this->lang->words['per_preview']}\", \"400\",\"350\");' title='{$this->lang->words['per_previewtext']}'>{$this->lang->words['per_previewset']}</a></li>
|
||||
<li class='icon edit'><a href='{$this->settings['base_url']}{$this->form_code}do=fedit&id={$r['id']}'>{$this->lang->words['per_editset']}</a></li>
|
||||
HTML;
|
||||
|
||||
if ( ! $r['isactive'] )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<li class='icon delete'><a href='#' onclick='return acp.confirmDelete("{$this->settings['base_url']}&{$this->form_code}&do=pdelete&id={$r['id']}");'>{$this->lang->words['per_deleteset']}</a></li>
|
||||
HTML;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<li class='icon delete'>{$this->lang->words['per_inuse']}</li>
|
||||
HTML;
|
||||
}
|
||||
$IPBHTML .= <<<HTML
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
HTML;
|
||||
}
|
||||
/* / ROW */
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
<form name='theAdminForm' id='adminform' action='{$this->settings['base_url']}{$this->form_code}&do=dopermadd' method='post'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->_admin_auth_key}' />
|
||||
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>{$this->lang->words['per_createnew']}</div>
|
||||
|
||||
<table cellpadding='4' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablerow1'>{$this->lang->words['per_setname']}</td>
|
||||
<td class='tablerow2'><input type='text' class='input' size='30' name='new_perm_name' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'>{$this->lang->words['per_baseon']}</td>
|
||||
<td class='tablerow2'><select name='new_perm_copy' class='dropdown'>{$dlist}</select></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class='tablefooter' align='center'><input type='submit' value='{$this->lang->words['per_createbutton']}' class='realbutton' /></div>
|
||||
</div>
|
||||
</form>
|
||||
HTML;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -3,37 +3,68 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* RSS skin functions
|
||||
* Last Updated: $LastChangedDate: 2010-05-19 21:06:53 -0400 (Wed, 19 May 2010) $
|
||||
* Last Updated: $LastChangedDate: 2011-09-01 17:55:10 -0400 (Thu, 01 Sep 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @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 Forums
|
||||
* @link http://www.invisionpower.com
|
||||
* @link http://hatynka.in
|
||||
* @since 14th May 2003
|
||||
* @version $Rev: 6326 $
|
||||
* @version $Rev: 9441 $
|
||||
*/
|
||||
|
||||
class cp_skin_rss extends output {
|
||||
|
||||
/**
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function __destruct()
|
||||
class cp_skin_rss
|
||||
{
|
||||
}
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Export overview page
|
||||
*
|
||||
* @access public
|
||||
* @param string Rows html
|
||||
* @param string Page links
|
||||
* @return string HTML
|
||||
@@ -46,10 +77,16 @@ $IPBHTML = "";
|
||||
$IPBHTML .= <<<HTML
|
||||
<div class='section_title'>
|
||||
<h2>{$this->lang->words['ex_title']}</h2>
|
||||
<ul class='context_menu'>
|
||||
<li><a href='{$this->settings['base_url']}&{$this->form_code}&do=rssexport_add'><img src='{$this->settings['skin_acp_url']}/_newimages/icons/add.png' alt='' />{$this->lang->words['rss_ex_create']}</a></li>
|
||||
<li><a href='{$this->settings['base_url']}&{$this->form_code}&do=rssexport_recache&rss_export_id=all'><img src='{$this->settings['skin_acp_url']}/_newimages/icons/arrow_refresh.png' alt='' />{$this->lang->words['rss_ex_update']}</a></li>
|
||||
</ul>
|
||||
<div class='ipsActionBar clearfix'>
|
||||
<ul>
|
||||
<li class='ipsActionButton'>
|
||||
<a href='{$this->settings['base_url']}{$this->form_code}&do=rssexport_add'><img src='{$this->settings['skin_acp_url']}/images/icons/add.png' alt='' />{$this->lang->words['rss_ex_create']}</a>
|
||||
</li>
|
||||
<li class='ipsActionButton'>
|
||||
<a href='{$this->settings['base_url']}{$this->form_code}&do=rssexport_recache&rss_export_id=all'><img src='{$this->settings['skin_acp_url']}/images/icons/arrow_refresh.png' alt='' />{$this->lang->words['rss_ex_update']}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
HTML;
|
||||
@@ -58,7 +95,6 @@ if( $page_links != "" )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
{$page_links}
|
||||
<br style='clear: both' />
|
||||
HTML;
|
||||
}
|
||||
|
||||
@@ -66,33 +102,58 @@ $IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['rss_ex_streams']}</h3>
|
||||
|
||||
<table class='alternate_rows double_pad' width='100%'>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<th width='90%'>{$this->lang->words['rss_title']}</th>
|
||||
<th width='5%' align='center'>{$this->lang->words['rss_enabled']}</th>
|
||||
<th width='5%' align='right'> </th>
|
||||
<th style='width: 15px'> </th>
|
||||
<th style='width: 50px'> </th>
|
||||
<th width='85%'>{$this->lang->words['rss_title']}</th>
|
||||
<th class='col_buttons'> </th>
|
||||
</tr>
|
||||
HTML;
|
||||
|
||||
foreach( $content as $data )
|
||||
if( count( $content ) )
|
||||
{
|
||||
foreach( $content as $data )
|
||||
{
|
||||
$badge = ( $data['rss_export_enabled'] ) ? "<span class='ipsBadge badge_green'>{$this->lang->words['enabled']}</span>" : "<span class='ipsBadge badge_red'>{$this->lang->words['disabled']}</span>";
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<tr class='ipsControlRow'>
|
||||
<td>
|
||||
<a target='_blank' href='{$this->settings['board_url']}/index.php?app=core&module=global&section=rss&type=forums&id={$data['rss_export_id']}'><img src='{$this->settings['skin_acp_url']}/_newimages/icons/feed.png' alt='RSS' style='vertical-align:top' /></a>
|
||||
<strong>{$data['rss_export_title']}</strong>
|
||||
<a target='_blank' href='{$this->settings['board_url']}/index.php?app=core&module=global&section=rss&type=forums&id={$data['rss_export_id']}'><img src='{$this->settings['skin_acp_url']}/images/icons/feed.png' alt='RSS' /></a>
|
||||
</td>
|
||||
<td align='center'><img src='{$this->settings['skin_acp_url']}/images/{$data['_enabled_img']}' alt='YN' /></td>
|
||||
<td align='right'>
|
||||
<img id="menu{$data['rss_export_id']}" src='{$this->settings['skin_acp_url']}/_newimages/menu_open.png' alt='{$this->lang->words['rss_']}' class='ipbmenu' />
|
||||
<ul class='acp-menu' id='menu{$data['rss_export_id']}_menucontent'>
|
||||
<li class='icon edit'><a href='{$this->settings['base_url']}&{$this->form_code}&do=rssexport_edit&rss_export_id={$data['rss_export_id']}'>{$this->lang->words['rss_ex_edit']}</a></li>
|
||||
<li class='icon delete'><a href='#' onclick='return acp.confirmDelete("{$this->settings['base_url']}&{$this->form_code}&do=rssexport_delete&rss_export_id={$data['rss_export_id']}");'>{$this->lang->words['rss_ex_delete']}</a></li>
|
||||
<li class='icon refresh'><a href='{$this->settings['base_url']}&{$this->form_code}&do=rssexport_recache&rss_export_id={$data['rss_export_id']}'>{$this->lang->words['rss_ex_recache']}</a></li>
|
||||
<td>
|
||||
{$badge}
|
||||
</td>
|
||||
<td>
|
||||
<strong class='larger_text'>{$data['rss_export_title']}</strong>
|
||||
</td>
|
||||
<td class='col_buttons'>
|
||||
<ul class='ipsControlStrip'>
|
||||
<li class='i_refresh'>
|
||||
<a href='{$this->settings['base_url']}{$this->form_code}&do=rssexport_recache&rss_export_id={$data['rss_export_id']}'>{$this->lang->words['rss_ex_recache']}</a>
|
||||
</li>
|
||||
<li class='i_edit'>
|
||||
<a href='{$this->settings['base_url']}{$this->form_code}&do=rssexport_edit&rss_export_id={$data['rss_export_id']}'>{$this->lang->words['rss_ex_edit']}</a>
|
||||
</li>
|
||||
<li class='i_delete'>
|
||||
<a href='#' onclick='return acp.confirmDelete("{$this->settings['base_url']}{$this->form_code}&do=rssexport_delete&rss_export_id={$data['rss_export_id']}");'>{$this->lang->words['rss_ex_delete']}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
HTML;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<td colspan='3' class='no_messages'>
|
||||
{$this->lang->words['ex_none']} <a href='{$this->settings['base_url']}{$this->form_code}&do=rssexport_add' class='mini_button'>{$this->lang->words['ex_createone']}</a>
|
||||
</td>
|
||||
</tr>
|
||||
HTML;
|
||||
}
|
||||
|
||||
@@ -118,7 +179,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Export form
|
||||
*
|
||||
* @access public
|
||||
* @param array Form fields
|
||||
* @param string Title
|
||||
* @param string Action code
|
||||
@@ -142,54 +202,96 @@ $IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>$title</h3>
|
||||
|
||||
<ul class="acp-form alternate_rows">
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_ex_title']}</label>
|
||||
{$form['rss_export_title']}
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_desc']}</label>
|
||||
{$form['rss_export_desc']}
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_ex_img']}<span class='desctext'>{$this->lang->words['rss_ex_img_info']}</span></label>
|
||||
{$form['rss_export_image']}
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_ex_enabled']}</label>
|
||||
{$form['rss_export_enabled']}
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_ex_firstpost']}</label>
|
||||
{$form['rss_export_include_post']}
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_ex_numitem']}<span class='desctext'>{$this->lang->words['rss_ex_numitem_info']}</span></label>
|
||||
{$form['rss_export_count']}
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_ex_order']}</label>
|
||||
{$form['rss_export_order']}
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_ex_sort']}</label>
|
||||
{$form['rss_export_sort']}
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_ex_forums']}<span class='desctext'>{$this->lang->words['rss_ex_forums_info']}</span></label>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_export_forums']}</td>
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_ex_cache']}<span class='desctext'>{$this->lang->words['rss_ex_cache_info']}</span></label>
|
||||
{$form['rss_export_cache_time']}
|
||||
</li>
|
||||
</ul>
|
||||
<table class="ipsTable double_pad">
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_ex_title']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_export_title']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_desc']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_export_desc']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_ex_img']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_export_image']}<br />
|
||||
<span class='desctext'>{$this->lang->words['rss_ex_img_info']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_ex_enabled']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_export_enabled']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_ex_firstpost']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_export_include_post']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_ex_numitem']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_export_count']}<br />
|
||||
<span class='desctext'>{$this->lang->words['rss_ex_numitem_info']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_ex_order']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_export_order']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_ex_sort']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_export_sort']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_ex_forums']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_export_forums']}<br />
|
||||
<span class='desctext'>{$this->lang->words['rss_ex_forums_info']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_ex_cache']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_export_cache_time']}<br />
|
||||
<span class='desctext'>{$this->lang->words['rss_ex_cache_info']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class='acp-actionbar'>
|
||||
<div class='rightaction'>
|
||||
<input type='submit' class='button primary' value='{$button}' />
|
||||
</div>
|
||||
<input type='submit' class='button primary' value='{$button}' />
|
||||
</div>
|
||||
</form>
|
||||
HTML;
|
||||
@@ -201,7 +303,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Splash page for removing imported items
|
||||
*
|
||||
* @access public
|
||||
* @param array RSS Record
|
||||
* @param integer Remove article count
|
||||
* @return string HTML
|
||||
@@ -222,20 +323,23 @@ $IPBHTML .= <<<HTML
|
||||
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['rss_im_removetopics']} {$rssstream['rss_import_title']}</h3>
|
||||
<ul class='acp-form alternate_rows'>
|
||||
<li>
|
||||
<label>{$article_count_text}</label>
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_im_removelast']}<span class='desctext'>{$this->lang->words['rss_im_blankall']}</span></label>
|
||||
<input type='text' name='remove_count' value='10' />
|
||||
</li>
|
||||
</ul>
|
||||
<table class='ipsTable double_pad'>
|
||||
<tr>
|
||||
<th colspan='2'>{$article_count_text}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_im_removelast']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
<input type='text' name='remove_count' value='10' /><br />
|
||||
<span class='desctext'>{$this->lang->words['rss_im_blankall']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class='acp-actionbar'>
|
||||
<div class='rightaction'>
|
||||
<input type='submit' class='button primary' value='{$this->lang->words['rss_im_removenoconf']}' />
|
||||
</div>
|
||||
<input type='submit' class='button primary' value='{$this->lang->words['rss_im_removenoconf']}' />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -248,7 +352,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* RSS Import form
|
||||
*
|
||||
* @access public
|
||||
* @param array Form fields
|
||||
* @param string Title
|
||||
* @param string Action code
|
||||
@@ -274,98 +377,173 @@ $IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>{$title}</h3>
|
||||
|
||||
<ul class='acp-form alternate_rows'>
|
||||
<li><label class='head'>{$this->lang->words['rss_im_basics']}</label></li>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_im_title']}</label>
|
||||
{$form['rss_import_title']}
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_im_url']}<span class='desctext'>{$this->lang->words['rss_im_url_info']}</span></label>
|
||||
{$form['rss_import_url']}
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_im_charset']}<span class='desctext'>{$this->lang->words['rss_im_charset_info']}</span></label>
|
||||
{$form['rss_import_charset']}
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_im_enabled']}</label>
|
||||
{$form['rss_import_enabled']}
|
||||
</li>
|
||||
<table class='ipsTable double_pad'>
|
||||
<tr>
|
||||
<th colspan='2'>{$this->lang->words['rss_im_basics']}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_im_title']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_import_title']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_im_url']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_import_url']}<br />
|
||||
<span class='desctext'>{$this->lang->words['rss_im_url_info']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_im_enabled']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_import_enabled']}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<li><label class='head'>{$this->lang->words['rss_im_htaccess']}</label></li>
|
||||
<tr>
|
||||
<th colspan='2'>{$this->lang->words['rss_im_htaccess']}</th>
|
||||
</tr>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_im_ht_require']}<span class='desctext'>{$this->lang->words['rss_im_ht_info']}</span></label>
|
||||
{$form['rss_import_auth']}
|
||||
</li>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_im_ht_require']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_import_auth']}<br />
|
||||
<span class='desctext'>{$this->lang->words['rss_im_ht_info']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<span id='rss_import_auth_userinfo' {$form['rss_div_show']}>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_im_ht_user']}</label>
|
||||
<tr id='rss_import_auth_userinfo_1' style='display: none'>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_im_ht_user']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_import_auth_user']}
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_im_ht_pass']}</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id='rss_import_auth_userinfo_2' style='display: none'>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_im_ht_pass']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_import_auth_pass']}
|
||||
</li>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<li><label class='head'>{$this->lang->words['rss_im_content']}</label></li>
|
||||
<tr>
|
||||
<th colspan='2'>{$this->lang->words['rss_im_content']}</th>
|
||||
</tr>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_im_forum']}<span class='desctext'>{$this->lang->words['rss_im_forum_info']}</span></label>
|
||||
{$form['rss_import_forum_id']}
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_im_html']}<span class='desctext'>{$this->lang->words['rss_im_html_info']}</span></label>
|
||||
{$form['rss_import_allow_html']}
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_im_poster']}<span class='desctext'>{$this->lang->words['rss_im_poster_info']}</span></label>
|
||||
{$form['rss_import_mid']}
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_im_incpost']}<span class='desctext'>{$this->lang->words['rss_im_incpost_info']}</span></label>
|
||||
{$form['rss_import_inc_pcount']}
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_im_link']}<span class='desctext'>{$this->lang->words['rss_im_link_info']}</span></label>
|
||||
{$form['rss_import_showlink']}
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_im_open']}<span class='desctext'>{$this->lang->words['rss_im_open_info']}</span></label>
|
||||
{$form['rss_import_topic_open']}
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_im_hidden']}<span class='desctext'>{$this->lang->words['rss_im_hidden_info']}</span></label>
|
||||
{$form['rss_import_topic_hide']}
|
||||
</li>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_im_prefix']}<span class='desctext'>{$this->lang->words['rss_im_prefix_info']}</span></label>
|
||||
{$form['rss_import_topic_pre']}
|
||||
</li>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_im_forum']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_import_forum_id']}<br />
|
||||
<span class='desctext'>{$this->lang->words['rss_im_forum_info']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_im_html']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_import_allow_html']}<br />
|
||||
<span class='desctext'>{$this->lang->words['rss_im_html_info']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_im_poster']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_import_mid']}<br /> <br />
|
||||
<span class='desctext'>{$this->lang->words['rss_im_poster_info']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_im_incpost']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_import_inc_pcount']}<br />
|
||||
<span class='desctext'>{$this->lang->words['rss_im_incpost_info']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_im_link']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_import_showlink']}<br />
|
||||
<span class='desctext'>{$this->lang->words['rss_im_link_info']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_im_open']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_import_topic_open']}<br />
|
||||
<span class='desctext'>{$this->lang->words['rss_im_open_info']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_im_hidden']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_import_topic_hide']}<br />
|
||||
<span class='desctext'>{$this->lang->words['rss_im_hidden_info']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_im_prefix']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_import_topic_pre']}<br />
|
||||
<span class='desctext'>{$this->lang->words['rss_im_prefix_info']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<li><label class='head'>{$this->lang->words['rss_im_settings']}</label></li>
|
||||
<tr>
|
||||
<th colspan='2'>{$this->lang->words['rss_im_settings']}</th>
|
||||
</tr>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_im_pergo']}<span class='desctext'>{$this->lang->words['rss_im_pergo_info']}</span></label>
|
||||
{$form['rss_import_pergo']}
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_im_refresh']}<span class='desctext'>{$this->lang->words['rss_im_refresh_info']}</span></label>
|
||||
{$form['rss_import_time']}
|
||||
</li>
|
||||
</ul>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_im_pergo']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_import_pergo']}<br />
|
||||
<span class='desctext'>{$this->lang->words['rss_im_pergo_info']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_im_refresh']}</strong>
|
||||
</td>
|
||||
<td class='field_field'>
|
||||
{$form['rss_import_time']}<br />
|
||||
<span class='desctext'>{$this->lang->words['rss_im_refresh_info']}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class='acp-actionbar'>
|
||||
<div class='rightaction'>
|
||||
<input type='submit' class='button primary' value='$button' />
|
||||
<input type='button' class='button primary' value='{$this->lang->words['rss_im_valbutton']}' onclick='ACPRss.validate();' /></div>
|
||||
</div>
|
||||
<input type='submit' class='button primary' value='$button' />
|
||||
<input type='button' class='button primary' value='{$this->lang->words['rss_im_valbutton']}' onclick='ACPRss.validate();' /></div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -379,7 +557,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* RSS Import stream overview
|
||||
*
|
||||
* @access public
|
||||
* @param string HTML content
|
||||
* @param string Page links
|
||||
* @return string HTML
|
||||
@@ -392,65 +569,89 @@ $IPBHTML = "";
|
||||
$IPBHTML .= <<<HTML
|
||||
<div class='section_title'>
|
||||
<h2>{$this->lang->words['im_title']}</h2>
|
||||
<ul class='context_menu'>
|
||||
<li><a href='{$this->settings['base_url']}&{$this->form_code}&do=rssimport_add'><img src='{$this->settings['skin_acp_url']}/_newimages/icons/add.png' alt='' />{$this->lang->words['rss_im_create']}</a></li>
|
||||
<li><a href='{$this->settings['base_url']}&{$this->form_code}&do=rssimport_recache&rss_import_id=all'><img src='{$this->settings['skin_acp_url']}/_newimages/icons/arrow_refresh.png' alt='' />{$this->lang->words['rss_im_updateall']}</a></li>
|
||||
</ul>
|
||||
<div class='ipsActionBar clearfix'>
|
||||
<ul>
|
||||
<li class='ipsActionButton'>
|
||||
<a href='{$this->settings['base_url']}{$this->form_code}&do=rssimport_add'><img src='{$this->settings['skin_acp_url']}/images/icons/add.png' alt='' />{$this->lang->words['rss_im_create']}</a>
|
||||
</li>
|
||||
<li class='ipsActionButton'>
|
||||
<a href='{$this->settings['base_url']}{$this->form_code}&do=rssimport_recache&rss_import_id=all'><img src='{$this->settings['skin_acp_url']}/images/icons/arrow_refresh.png' alt='' />{$this->lang->words['rss_im_updateall']}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form action='{$this->settings['base_url']}{$this->form_code}&do=rssimport_validate' method='post'>
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['rss_im_quickval']}</h3>
|
||||
|
||||
<ul class='acp-form alternate_rows'>
|
||||
<li>
|
||||
<label>{$this->lang->words['rss_im_enturl']}</label>
|
||||
<input type='text' size='50' name='rss_url' value='http://' />
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->_admin_auth_key}' />
|
||||
</li>
|
||||
</ul>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<td class='field_title'>
|
||||
<strong class='title'>{$this->lang->words['rss_im_enturl']}</strong>
|
||||
</td>
|
||||
|
||||
<td class='field_field'>
|
||||
<input type='text' size='70' name='rss_url' value='http://' class='input_text' /> <br />
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->_admin_auth_key}' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class='acp-actionbar'>
|
||||
<div class='rightaction'>
|
||||
<input type='submit' class='button primary' value='{$this->lang->words['rss_im_valbutton']}' />
|
||||
</div>
|
||||
<input type='submit' class='button primary' value='{$this->lang->words['rss_im_valbutton']}' />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<br />
|
||||
|
||||
{$page_links}
|
||||
<br style='clear: both' />
|
||||
<br class='clear' />
|
||||
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['rss_im_thefeeds']}</h3>
|
||||
|
||||
<table class='alternate_rows' width='100%'>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<th width='90%'>{$this->lang->words['rss_title']}</th>
|
||||
<th width='5%' align='center'>{$this->lang->words['rss_enabled']}</th>
|
||||
<th width='5%' align='right'> </th>
|
||||
<th style='width: 30px'></th>
|
||||
<th style='width: 5%'></th>
|
||||
<th>{$this->lang->words['rss_title']}</th>
|
||||
<th class='col_buttons'> </th>
|
||||
</tr>
|
||||
HTML;
|
||||
|
||||
foreach( $content as $data )
|
||||
{
|
||||
$enabled = ( $data['rss_import_enabled'] ) ? "<span class='ipsBadge badge_green'>ENABLED</span>" : "<span class='ipsBadge badge_red'>DISABLED</span>";
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<td>
|
||||
<!--ACPNOTE: Missing rss.png -->
|
||||
<a target='_blank' href='{$data['rss_import_url']}'><img src='{$this->settings['skin_acp_url']}/_newimages/icons/feed.png' alt='{$this->lang->words['rss_rss']}' style='vertical-align:top' /></a>
|
||||
<strong>{$data['rss_import_title']}</strong>
|
||||
<tr class='ipsControlRow'>
|
||||
<td class='center'>
|
||||
<a target='_blank' href='{$data['rss_import_url']}'><img src='{$this->settings['skin_acp_url']}/images/icons/feed.png' alt='{$this->lang->words['rss_rss']}' style='vertical-align:middle' /></a>
|
||||
</td>
|
||||
<td align='center'><img src='{$this->settings['skin_acp_url']}/images/{$data['_enabled_img']}' alt='***' /></td>
|
||||
<td align='right'>
|
||||
<img id="menu{$data['rss_import_id']}" src='{$this->settings['skin_acp_url']}/_newimages/menu_open.png' alt='{$this->lang->words['rss_options']}' class='ipbmenu' />
|
||||
<ul class='acp-menu' id='menu{$data['rss_import_id']}_menucontent'>
|
||||
<li class='icon edit'><a href='{$this->settings['base_url']}&{$this->form_code}&do=rssimport_edit&rss_import_id={$data['rss_import_id']}'>{$this->lang->words['rss_im_edit']}</a></li>
|
||||
<li class='icon delete'><a href='#' onclick='return acp.confirmDelete("{$this->settings['base_url']}&{$this->form_code}&do=rssimport_delete&rss_import_id={$data['rss_import_id']}");'>{$this->lang->words['rss_im_delete']}</a></li>
|
||||
<li class='icon delete'><a href='{$this->settings['base_url']}&{$this->form_code}&do=rssimport_remove&rss_import_id={$data['rss_import_id']}'>{$this->lang->words['rss_im_remove']}</a></li>
|
||||
<li class='icon refresh'><a href='{$this->settings['base_url']}&{$this->form_code}&do=rssimport_recache&rss_import_id={$data['rss_import_id']}'>{$this->lang->words['rss_im_update']}</a></li>
|
||||
<li class='icon manage'><a href='{$this->settings['base_url']}&{$this->form_code}&do=rssimport_validate&rss_id={$data['rss_import_id']}'>{$this->lang->words['rss_im_validate']}</a></li>
|
||||
<td class='center'>
|
||||
{$enabled}
|
||||
</td>
|
||||
<td>
|
||||
<strong class='larger_text'>{$data['rss_import_title']}</strong><br />
|
||||
<span class='desctext'>{$data['rss_import_url']}</span>
|
||||
</td>
|
||||
<td class='col_buttons'>
|
||||
<ul class='ipsControlStrip'>
|
||||
<li class='i_edit'>
|
||||
<a href='{$this->settings['base_url']}{$this->form_code}&do=rssimport_edit&rss_import_id={$data['rss_import_id']}' title='{$this->lang->words['rss_im_edit']}'>{$this->lang->words['rss_im_edit']}</a>
|
||||
</li>
|
||||
<li class='i_delete'>
|
||||
<a href='#' onclick='return acp.confirmDelete("{$this->settings['base_url']}{$this->form_code}&do=rssimport_delete&rss_import_id={$data['rss_import_id']}");' title='{$this->lang->words['rss_im_delete']}'>{$this->lang->words['rss_im_delete']}</a>
|
||||
</li>
|
||||
<li class='ipsControlStrip_more ipbmenu' id="menu{$data['rss_import_id']}">
|
||||
<a href='#'>More</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class='acp-menu' id='menu{$data['rss_import_id']}_menucontent' style='display: none'>
|
||||
<li class='icon delete'><a href='{$this->settings['base_url']}{$this->form_code}&do=rssimport_remove&rss_import_id={$data['rss_import_id']}'>{$this->lang->words['rss_im_remove']}</a></li>
|
||||
<li class='icon refresh'><a href='{$this->settings['base_url']}{$this->form_code}&do=rssimport_recache&rss_import_id={$data['rss_import_id']}'>{$this->lang->words['rss_im_update']}</a></li>
|
||||
<li class='icon manage'><a href='{$this->settings['base_url']}{$this->form_code}&do=rssimport_validate&rss_id={$data['rss_import_id']}'>{$this->lang->words['rss_im_validate']}</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -462,7 +663,6 @@ $IPBHTML .= <<<HTML
|
||||
</div>
|
||||
|
||||
{$page_links}
|
||||
|
||||
HTML;
|
||||
|
||||
//--endhtml--//
|
||||
@@ -473,7 +673,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Validation message
|
||||
*
|
||||
* @access public
|
||||
* @param array Validation info
|
||||
* @return string HTML
|
||||
*/
|
||||
@@ -483,7 +682,7 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<span class='{$info['class']}'>{$info['msg']}</span>
|
||||
<span class='{$info['class']}'>{$info['msg']}</span>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
|
||||
@@ -3,44 +3,143 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Stats skin functions
|
||||
* Last Updated: $LastChangedDate: 2010-09-14 05:48:02 -0400 (Tue, 14 Sep 2010) $
|
||||
* Last Updated: $LastChangedDate: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: terabyte $
|
||||
* @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 Forums
|
||||
* @link http://www.invisionpower.com
|
||||
* @link http://hatynka.in
|
||||
* @since 14th May 2003
|
||||
* @version $Rev: 6865 $
|
||||
* @version $Rev: 8644 $
|
||||
*/
|
||||
|
||||
class cp_skin_stats extends output {
|
||||
|
||||
/**
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function __destruct()
|
||||
class cp_skin_stats
|
||||
{
|
||||
}
|
||||
/**
|
||||
* 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 spam stats
|
||||
*
|
||||
* @access public
|
||||
* @return string HTML
|
||||
*/
|
||||
public function spamServiceStats( $title, $rows, $total ) {
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<div class='section_title'>
|
||||
<h2>{$this->lang->words['stats_spam']}</h2>
|
||||
</div>
|
||||
|
||||
<table class='information-box' style='width:20%; background-image: none;' align='right'>
|
||||
<tr>
|
||||
<td><strong>{$this->lang->words['spam_spam']}</strong></td>
|
||||
<td><img src='{$this->settings['skin_acp_url']}/images/bar_left_red.gif' width='4' height='11' align='middle' alt=''><img src='{$this->settings['skin_acp_url']}/images/bar_red.gif' width='32' height='11' align='middle' alt=''><img src='{$this->settings['skin_acp_url']}/images/bar_right_red.gif' width='4' height='11' align='middle' alt=''><br /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>{$this->lang->words['spam_ok']}</strong></td>
|
||||
<td><img src='{$this->settings['skin_acp_url']}/images/bar_left.gif' width='4' height='11' align='middle' alt=''><img src='{$this->settings['skin_acp_url']}/images/bar.gif' width='32' height='11' align='middle' alt=''><img src='{$this->settings['skin_acp_url']}/images/bar_right.gif' width='4' height='11' align='middle' alt=''></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br class='clear'/>
|
||||
<br class='clear'/>
|
||||
|
||||
<div class='acp-box'>
|
||||
<h3>{$title}</h3>
|
||||
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<th width='20%'>{$this->lang->words['stats_date']}</th>
|
||||
<th width='70%'>{$this->lang->words['stats_results']}</th>
|
||||
<th width='10%'>{$this->lang->words['stats_count']}</th>
|
||||
</tr>
|
||||
HTML;
|
||||
|
||||
foreach( $rows as $dateVal => $stats )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<td width='20%'>{$dateVal}</td>
|
||||
<td width='70%'>
|
||||
<img src='{$this->settings['skin_acp_url']}/images/bar_left_red.gif' width='4' height='11' align='middle' alt=''><img src='{$this->settings['skin_acp_url']}/images/bar_red.gif' width='{$stats['spam']['_width']}' height='11' align='middle' alt=''><img src='{$this->settings['skin_acp_url']}/images/bar_right_red.gif' width='4' height='11' align='middle' alt=''><br />
|
||||
<img src='{$this->settings['skin_acp_url']}/images/bar_left.gif' width='4' height='11' align='middle' alt=''><img src='{$this->settings['skin_acp_url']}/images/bar.gif' width='{$stats['notspam']['_width']}' height='11' align='middle' alt=''><img src='{$this->settings['skin_acp_url']}/images/bar_right.gif' width='4' height='11' align='middle' alt=''>
|
||||
</td>
|
||||
<td width='10%'><center>{$this->registry->class_localization->formatNumber( $stats['spam']['count'] )}<br />{$this->registry->class_localization->formatNumber( $stats['notspam']['count'] )}</center></td>
|
||||
</tr>
|
||||
HTML;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<td width='20%'> </td>
|
||||
<td width='70%' align='right'>{$this->lang->words['stats_total']}</td>
|
||||
<td width='10%'><center><b>{$this->registry->class_localization->formatNumber( $total )}</b></center></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
HTML;
|
||||
|
||||
if( count( $rows ) <= 30 AND $total > 0 )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<div class='center'>
|
||||
<img src='{$this->settings['base_url']}{$this->form_code}&do=spamGraph&to_month={$this->request['to_month']}&to_day={$this->request['to_day']}&to_year={$this->request['to_year']}h&from_month={$this->request['from_month']}&from_day={$this->request['from_day']}&from_year={$this->request['from_year']}&timescale={$this->request['timescale']}&sortby={$this->request['sortby']}'>
|
||||
</div>
|
||||
HTML;
|
||||
}
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the stats results
|
||||
*
|
||||
* @access public
|
||||
* @param string Title
|
||||
* @param array Stats rows
|
||||
* @param integer Total
|
||||
@@ -58,7 +157,7 @@ $IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>{$title}</h3>
|
||||
|
||||
<table class='alternate_rows' width='100%'>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<th width='20%'>{$this->lang->words['stats_date']}</th>
|
||||
<th width='70%'>{$this->lang->words['stats_results']}</th>
|
||||
@@ -74,7 +173,7 @@ $IPBHTML .= <<<HTML
|
||||
<td width='70%'>
|
||||
<img src='{$this->settings['skin_acp_url']}/images/bar_left.gif' width='4' height='11' align='middle' alt=''><img src='{$this->settings['skin_acp_url']}/images/bar.gif' width='{$r['_width']}' height='11' align='middle' alt=''><img src='{$this->settings['skin_acp_url']}/images/bar_right.gif' width='4' height='11' align='middle' alt=''>
|
||||
</td>
|
||||
<td width='10%'><center>{$r['result_count']}</center></td>
|
||||
<td width='10%'><center>{$this->registry->class_localization->formatNumber( $r['result_count'] )}</center></td>
|
||||
</tr>
|
||||
HTML;
|
||||
}
|
||||
@@ -82,8 +181,8 @@ HTML;
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<td width='20%'> </td>
|
||||
<td width='70%'><div align='right'>{$this->lang->words['stats_total']}</div></td>
|
||||
<td width='10%'><center><b>{$total}</b></center></td>
|
||||
<td width='70%' align='right'>{$this->lang->words['stats_total']}</td>
|
||||
<td width='10%'><center><b>{$this->registry->class_localization->formatNumber( $total )}</b></center></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@@ -96,7 +195,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Show the stats main screen
|
||||
*
|
||||
* @access public
|
||||
* @param string Type
|
||||
* @param string Title
|
||||
* @param array Form fields
|
||||
@@ -118,16 +216,16 @@ $IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>{$title}</h3>
|
||||
|
||||
<ul class="acp-form alternate_rows">
|
||||
<li>
|
||||
<label>{$this->lang->words['stats_datefrom']}</label>
|
||||
{$form['from_month']} {$form['from_day']} {$form['from_year']}
|
||||
</li>
|
||||
<table class='ipsTable double_pad'>
|
||||
<tr>
|
||||
<td class='field_title'><strong class='title'>{$this->lang->words['stats_datefrom']}</strong></td>
|
||||
<td class='field_field'>{$form['from_month']} {$form['from_day']} {$form['from_year']}</td>
|
||||
</tr>
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['stats_dateto']}</label>
|
||||
{$form['to_month']} {$form['to_day']} {$form['to_year']}
|
||||
</li>
|
||||
<tr>
|
||||
<td class='field_title'><strong class='title'>{$this->lang->words['stats_dateto']}</strong></td>
|
||||
<td class='field_field'>{$form['to_month']} {$form['to_day']} {$form['to_year']}</td>
|
||||
</tr>
|
||||
HTML;
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -137,25 +235,23 @@ HTML;
|
||||
if( $type != 'statsShowTopicViews' )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<li>
|
||||
<label>{$this->lang->words['stats_timescale']}</label>
|
||||
{$form['timescale']}
|
||||
</li>
|
||||
<tr>
|
||||
<td class='field_title'><strong class='title'>{$this->lang->words['stats_timescale']}</strong></td>
|
||||
<td class='field_field'>{$form['timescale']}</td>
|
||||
</tr>
|
||||
HTML;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
|
||||
<li>
|
||||
<label>{$this->lang->words['stats_sorting']}</label>
|
||||
{$form['sortby']}
|
||||
</li>
|
||||
<tr>
|
||||
<td class='field_title'><strong class='title'>{$this->lang->words['stats_sorting']}</strong></td>
|
||||
<td class='field_field'>{$form['sortby']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class='acp-actionbar'>
|
||||
<div class='centeraction'>
|
||||
<input type='submit' value='{$this->lang->words['stats_show']}' class='button primary' accesskey='s'>
|
||||
</div>
|
||||
<input type='submit' value='{$this->lang->words['stats_show']}' class='button primary' accesskey='s'>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
<a href="http://www.invisionboard.com/">IP.Board</a>
|
||||
<a href="http://www.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user