Version 3.3.4

This commit is contained in:
Neo committed 2025-12-19 00:35:52 -08:00
1 parent 78706903a2
commit fb6b5baabc
2206 files changed
+409828 -382984

No files matched your search

@@ -1,460 +1,534 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.2.3
* Admin log skin file
* Last Updated: $Date: 2011-07-26 04:00:17 -0400 (Tue, 26 Jul 2011) $
* </pre>
*
* @author $Author: mmecham $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license This is NULLED!
* @package IP.Board
* @subpackage Core
* @link http://hatynka.in
* @since Friday 19th May 2006 17:33
* @version $Revision: 9317 $
*/
class cp_skin_adminlogs
{
/**
* Registry Object Shortcuts
*
* @var $registry
* @var $DB
* @var $settings
* @var $request
* @var $lang
* @var $member
* @var $memberData
* @var $cache
* @var $caches
*/
protected $registry;
protected $DB;
protected $settings;
protected $request;
protected $lang;
protected $member;
protected $memberData;
protected $cache;
protected $caches;
/**
* Constructor
*
* @param object $registry Registry object
* @return @e void
*/
public function __construct( ipsRegistry $registry )
{
$this->registry = $registry;
$this->DB = $this->registry->DB();
$this->settings =& $this->registry->fetchSettings();
$this->request =& $this->registry->fetchRequest();
$this->member = $this->registry->member();
$this->memberData =& $this->registry->member()->fetchMemberData();
$this->cache = $this->registry->cache();
$this->caches =& $this->registry->cache()->fetchCaches();
$this->lang = $this->registry->class_localization;
}
/**
* Show the splash screen for the logs
*
* @return string HTML
*/
public function logSplashScreen() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='acp-box'>
<h3>{$this->lang->words['choose_splash']}</h3>
<table class='ipsTable'>
HTML;
if ( $this->registry->class_permissions->checkPermission( 'errorlogs_view' ) )
{
$IPBHTML .= <<<HTML
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=errorlogs'>{$this->lang->words['error_log_thelogs']}</a></td></tr>
HTML;
}
if ( $this->registry->class_permissions->checkPermission( 'adminlogs_view' ) )
{
$IPBHTML .= <<<HTML
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=adminlogs'>{$this->lang->words['alog_adminlogs']}</a></td></tr>
HTML;
}
if ( $this->registry->class_permissions->checkPermission( 'modlogs_view' ) )
{
$IPBHTML .= <<<HTML
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=modlogs'>{$this->lang->words['mlog_modlogs']}</a></td></tr>
HTML;
}
if ( $this->registry->class_permissions->checkPermission( 'emailerrorlogs_view' ) )
{
$IPBHTML .= <<<HTML
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=emailerrorlogs'>{$this->lang->words['elog_email_err_logs']}</a></td></tr>
HTML;
}
if ( $this->registry->class_permissions->checkPermission( 'spiderlogs_view' ) )
{
$IPBHTML .= <<<HTML
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=spiderlogs'>{$this->lang->words['slog_spider_logs']}</a></td></tr>
HTML;
}
if ( $this->registry->class_permissions->checkPermission( 'warnlogs_view' ) )
{
$IPBHTML .= <<<HTML
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=warnlogs'>{$this->lang->words['wlog_warn_logs']}</a></td></tr>
HTML;
}
$IPBHTML .= <<<HTML
<tr><td><a href='{$this->settings['base_url']}module=tools&amp;section=api&amp;do=log_list'>{$this->lang->words['api_error_logs']}</a></td></tr>
<tr><td><a href='{$this->settings['base_url']}module=system&amp;section=taskmanager&amp;do=task_logs'>{$this->lang->words['sched_error_logs']}</a></td></tr>
<tr><td><a href='{$this->settings['base_url']}module=system&amp;section=loginlog&amp;do=show'>{$this->lang->words['al_error_logs']}</a></td></tr>
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=spamlogs&amp;do=show'>{$this->lang->words['slog_spamlogs']}</a></td></tr>
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=mobilelogs&amp;do=show'>{$this->lang->words['mlog_mobilelogs']}</a></td></tr>
HTML;
if ( $this->registry->class_permissions->checkPermission( 'sqlerrorlogs_view' ) )
{
$IPBHTML .= <<<HTML
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=sqlerror&amp;do=show'>{$this->lang->words['mlog_sqlerrors']}</a></td></tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* Show the splash screen for the admin logs
*
* @param array Rows
* @param array Admins
* @return string HTML
*/
public function adminlogsWrapper( $rows, $admins ) {
$form_array = array(
0 => array( 'member_id' , $this->lang->words['alog_id'] ),
1 => array( 'note' , $this->lang->words['alog_performed'] ),
2 => array( 'ip_address' , $this->lang->words['alog_ip'] ),
3 => array( 'appcomponent' , $this->lang->words['alog_app'] ),
4 => array( 'module' , $this->lang->words['alog_mod'] ),
5 => array( 'section' , $this->lang->words['alog_sec'] ),
6 => array( 'do' , $this->lang->words['alog_do'] ),
);
$form = array();
$form['search_for'] = $this->registry->output->formInput( "search_string" );
$form['search_in'] = $this->registry->output->formDropdown( "search_type", $form_array );
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['alog_title']}</h2>
</div>
<div class="acp-box">
<h3>{$this->lang->words['alog_last5']}</h3>
<table class='ipsTable'>
<tr>
<th width='20%'>{$this->lang->words['alog_member']}</th>
<th width='40%'>{$this->lang->words['alog_performed']}</th>
<th width='20%'>{$this->lang->words['alog_date']}</th>
<th width='20%'>{$this->lang->words['alog_ip']}</th>
</tr>
HTML;
if( count($rows) AND is_array($rows) )
{
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td><span class='larger_text'>{$row['members_display_name']}</span></td>
<td>{$row['note']}</td>
<td>{$row['_time']}</td>
<td>{$row['ip_address']}</td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='4' align='center'>{$this->lang->words['alog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
<br />
<div class="acp-box">
<h3>{$this->lang->words['alog_saved']}</h3>
<table class='ipsTable'>
<tr>
<th width='20%'>{$this->lang->words['alog_member']}</th>
<th width='40%'>{$this->lang->words['alog_performed']}</th>
<th width='20%'>{$this->lang->words['alog_viewall']}</th>
<th width='20%'>{$this->lang->words['alog_removeall']}</th>
</tr>
HTML;
if( count($admins) AND is_array($admins) )
{
foreach( $admins as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td><span class='larger_text'>{$row['members_display_name']}</span></td>
<td>{$row['act_count']}</td>
<td><a href='{$this->settings['base_url']}{$this->form_code}&amp;do=view&amp;mid={$row['member_id']}'>{$this->lang->words['alog_view']}</a></td>
<td><a href='{$this->settings['base_url']}{$this->form_code}&amp;do=remove&amp;mid={$row['member_id']}'>{$this->lang->words['alog_remove']}</a></td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='4' align='center'>{$this->lang->words['alog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
<br />
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='theAdminForm' id='theAdminForm'>
<input type='hidden' name='do' value='view' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['alog_search']}</h3>
<table class='ipsTable double_pad'>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['alog_searchfor']}</strong></td>
<td class='field_field'>{$form['search_for']}</td>
</tr>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['alog_searchin']}</strong></td>
<td class='field_field'>{$form['search_in']}</td>
</tr>
</table>
<div class="acp-actionbar">
<input value="{$this->lang->words['alog_searchbutton']}" class="button primary" accesskey="s" type="submit" />
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* SQL log RAPPER LIKE ICE T BUT MORE LIKE COFFEE
*
* @param array Rows
* @param string Page links
* @return string HTML
*/
public function sqllogsWrapper( $rows, $latestError ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['sqllog_title']}</h2>
<ul class='context_menu'>
<li>
<a href="#" onclick="acp.confirmDelete( '{$this->settings['base_url']}{$this->form_code}&amp;do=delete_all');">
<img src='{$this->settings['skin_acp_url']}/images/icons/delete.png' alt='' />
{$this->lang->words['delete_all_sqllogs']}
</a>
</li>
</ul>
</div>
HTML;
if ( $latestError )
{
$IPBHTML .= <<<HTML
<div class='information-box'>
$latestError
</div>
<br />
HTML;
}
$IPBHTML .= <<<HTML
<div class="acp-box">
<h3>{$this->lang->words['sqllog_title']}</h3>
<table class="ipsTable">
<tr>
<th width="1%">&nbsp;</th>
<th width='49%'>{$this->lang->words['sqllog_name']}</th>
<th width='40%'>{$this->lang->words['sqllog_date']}</th>
<th width='10%'>{$this->lang->words['sqllog_size']}</th>
<th width="1%">&nbsp;</th>
</tr>
HTML;
if( count($rows) AND is_array($rows) )
{
foreach( $rows as $row )
{
$size = IPSLib::sizeFormat( $row['size'] );
$mtime = $this->registry->class_localization->getDate( $row['mtime'], 'SHORT' );
$IPBHTML .= <<<HTML
<tr>
<td><img src='{$this->settings['skin_acp_url']}/images/icons/page_red.png' /></td>
<td><a href="{$this->settings['base_url']}{$this->form_code}&amp;do=view&amp;file={$row['name']}">{$row['name']}</a></td>
<td>{$mtime}</td>
<td>{$size}</td>
<td><a href="#" onclick="acp.confirmDelete( '{$this->settings['base_url']}{$this->form_code}&amp;do=remove&amp;file={$row['name']}' )"><img src='{$this->settings['skin_acp_url']}/images/icons/delete.png' /></a></td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='4' align='center'>{$this->lang->words['sqllog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
<div class='acp-actionbar'>
<div class="leftaction">&nbsp;</div>
</div>
</div>
<br />
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* View a log
*
*/
public function sqlLogsView( $file, $size, $content, $tailSize ) {
/* Display a message? */
if ( $tailSize < $size )
{
$this->registry->output->global_message = sprintf( $this->lang->words['sqllog_more_file'], $file );
}
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['sqllog_title']}</h2>
</div>
<div class="acp-box">
<h3>{$file}</h3>
<div style='padding:8px'>
<div style="width:100%; height:400px; background-color:white;font-family:monospace;white-space:pre;overflow:auto">{$content}</div>
</div>
</div>
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* View an individual admin's logs
*
* @param array Rows
* @param string Page links
* @return string HTML
*/
public function adminlogsView( $rows, $pages ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['alog_title']}</h2>
</div>
<div class="acp-box">
<h3>{$this->lang->words['alog_saved']}</h3>
<table class="ipsTable">
<tr>
<th width='20%'>{$this->lang->words['alog_member']}</th>
<th width='40%'>{$this->lang->words['alog_performed']}</th>
<th width='20%'>{$this->lang->words['alog_date']}</th>
<th width='20%'>{$this->lang->words['alog_ip']}</th>
</tr>
HTML;
if( count($rows) AND is_array($rows) )
{
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td>{$row['members_display_name']}</td>
<td><span style='color:{$row['color']}'>{$row['note']}</span></td>
<td>{$row['_time']}</td>
<td>{$row['ip_address']}</td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='4' align='center'>{$this->lang->words['alog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
<div class='acp-actionbar'>
<div class="left">{$pages}</div>
<br class='clear' />
</div>
</div>
<br />
HTML;
//--endhtml--//
return $IPBHTML;
}
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.3.4
* Admin log skin file
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @subpackage Core
* @link http://www.invisionpower.com
* @since Friday 19th May 2006 17:33
* @version $Revision: 10914 $
*/
class cp_skin_adminlogs
{
/**
* 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;
}
/**
* Archive log wrapper
*
* @param array Rows
* @param string Page links
* @return string HTML
*/
public function archiverlogsView( $rows, $links ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class="acp-box">
<h3>{$this->lang->words['archiver_title']}</h3>
<table class='ipsTable'>
HTML;
if( count( $rows ) AND is_array( $rows ) )
{
foreach( $rows as $row )
{
$text = '';
if ( $row['archlog_is_restore'] )
{
$text = sprintf( $this->lang->words['archlog_restored'], $row['archlog_count'] );
}
else if ( $row['archlog_is_error'] )
{
$text = sprintf( $this->lang->words['archlog_error'], $row['archlog_msg'] );
}
else
{
$text = sprintf( $this->lang->words['archlog_archived'], $row['archlog_count'] );
}
$date = $this->lang->getDate( $row['archlog_date'], 'short' );
$IPBHTML .= <<<HTML
<tr>
<td width="70%">{$text}</td>
<td width="30%">{$date}</td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='2' align='center'>{$this->lang->words['error_log_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
<div class='acp-actionbar'>
{$links}
</div>
</div>
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* Show the splash screen for the logs
*
* @return string HTML
*/
public function logSplashScreen() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='acp-box'>
<h3>{$this->lang->words['choose_splash']}</h3>
<table class='ipsTable'>
HTML;
if ( $this->registry->class_permissions->checkPermission( 'errorlogs_view' ) )
{
$IPBHTML .= <<<HTML
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=errorlogs'>{$this->lang->words['error_log_thelogs']}</a></td></tr>
HTML;
}
if ( $this->registry->class_permissions->checkPermission( 'adminlogs_view' ) )
{
$IPBHTML .= <<<HTML
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=adminlogs'>{$this->lang->words['alog_adminlogs']}</a></td></tr>
HTML;
}
if ( $this->registry->class_permissions->checkPermission( 'modlogs_view' ) )
{
$IPBHTML .= <<<HTML
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=modlogs'>{$this->lang->words['mlog_modlogs']}</a></td></tr>
HTML;
}
if ( $this->registry->class_permissions->checkPermission( 'emailerrorlogs_view' ) )
{
$IPBHTML .= <<<HTML
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=emailerrorlogs'>{$this->lang->words['elog_email_err_logs']}</a></td></tr>
HTML;
}
if ( $this->registry->class_permissions->checkPermission( 'spiderlogs_view' ) )
{
$IPBHTML .= <<<HTML
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=spiderlogs'>{$this->lang->words['slog_spider_logs']}</a></td></tr>
HTML;
}
if ( $this->registry->class_permissions->checkPermission( 'warnlogs_view' ) )
{
$IPBHTML .= <<<HTML
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=warnlogs'>{$this->lang->words['wlog_warn_logs']}</a></td></tr>
HTML;
}
$IPBHTML .= <<<HTML
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=xmlrpclogs'>{$this->lang->words['api_error_logs']}</a></td></tr>
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=tasklogs'>{$this->lang->words['sched_error_logs']}</a></td></tr>
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=loginlog&amp;do=show'>{$this->lang->words['al_error_logs']}</a></td></tr>
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=spamlogs&amp;do=show'>{$this->lang->words['slog_spamlogs']}</a></td></tr>
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=mobilelogs&amp;do=show'>{$this->lang->words['mlog_mobilelogs']}</a></td></tr>
HTML;
if ( $this->registry->class_permissions->checkPermission( 'sqlerrorlogs_view' ) )
{
$IPBHTML .= <<<HTML
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=sqlerror&amp;do=show'>{$this->lang->words['mlog_sqlerrors']}</a></td></tr>
HTML;
}
$IPBHTML .= <<<HTML
<tr><td><a href='{$this->settings['base_url']}module=logs&amp;section=adminlogs&amp;do=showArchived'>{$this->lang->words['mlog_showarchived']}</a></td></tr>
</table>
</div>
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* Show the splash screen for the admin logs
*
* @param array Rows
* @param array Admins
* @return string HTML
*/
public function adminlogsWrapper( $rows, $admins ) {
$form_array = array(
0 => array( 'member_id' , $this->lang->words['alog_id'] ),
1 => array( 'note' , $this->lang->words['alog_performed'] ),
2 => array( 'ip_address' , $this->lang->words['alog_ip'] ),
3 => array( 'appcomponent' , $this->lang->words['alog_app'] ),
4 => array( 'module' , $this->lang->words['alog_mod'] ),
5 => array( 'section' , $this->lang->words['alog_sec'] ),
6 => array( 'do' , $this->lang->words['alog_do'] ),
);
$form = array();
$form['search_for'] = $this->registry->output->formInput( "search_string" );
$form['search_in'] = $this->registry->output->formDropdown( "search_type", $form_array );
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['alog_title']}</h2>
</div>
<div class="acp-box">
<h3>{$this->lang->words['alog_last5']}</h3>
<table class='ipsTable'>
<tr>
<th width='20%'>{$this->lang->words['alog_member']}</th>
<th width='40%'>{$this->lang->words['alog_performed']}</th>
<th width='20%'>{$this->lang->words['alog_date']}</th>
<th width='20%'>{$this->lang->words['alog_ip']}</th>
</tr>
HTML;
if( count($rows) AND is_array($rows) )
{
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td><span class='larger_text'>{$row['members_display_name']}</span></td>
<td>{$row['note']}</td>
<td>{$row['_time']}</td>
<td>{$row['ip_address']}</td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='4' align='center'>{$this->lang->words['alog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
<br />
<div class="acp-box">
<h3>{$this->lang->words['alog_saved']}</h3>
<table class='ipsTable'>
<tr>
<th width='20%'>{$this->lang->words['alog_member']}</th>
<th width='40%'>{$this->lang->words['alog_performed']}</th>
<th width='20%'>{$this->lang->words['alog_viewall']}</th>
<th width='20%'>{$this->lang->words['alog_removeall']}</th>
</tr>
HTML;
if( count($admins) AND is_array($admins) )
{
foreach( $admins as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td><span class='larger_text'>{$row['members_display_name']}</span></td>
<td>{$row['act_count']}</td>
<td><a href='{$this->settings['base_url']}{$this->form_code}&amp;do=view&amp;mid={$row['member_id']}'>{$this->lang->words['alog_view']}</a></td>
<td><a href='{$this->settings['base_url']}{$this->form_code}&amp;do=remove&amp;mid={$row['member_id']}'>{$this->lang->words['alog_remove']}</a></td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='4' align='center'>{$this->lang->words['alog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
<br />
<form action='{$this->settings['base_url']}{$this->form_code}' method='post'>
<input type='hidden' name='do' value='view' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['alog_search']}</h3>
<table class='ipsTable double_pad'>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['alog_searchfor']}</strong></td>
<td class='field_field'>{$form['search_for']}</td>
</tr>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['alog_searchin']}</strong></td>
<td class='field_field'>{$form['search_in']}</td>
</tr>
</table>
<div class="acp-actionbar">
<input value="{$this->lang->words['alog_searchbutton']}" class="button primary" accesskey="s" type="submit" />
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* SQL log RAPPER LIKE ICE T BUT MORE LIKE COFFEE
*
* @param array Rows
* @param string Page links
* @return string HTML
*/
public function sqllogsWrapper( $rows, $latestError ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['sqllog_title']}</h2>
<ul class='context_menu'>
<li>
<a href="#" onclick="acp.confirmDelete( '{$this->settings['base_url']}{$this->form_code}&amp;do=delete_all');">
<img src='{$this->settings['skin_acp_url']}/images/icons/delete.png' alt='' />
{$this->lang->words['delete_all_sqllogs']}
</a>
</li>
</ul>
</div>
HTML;
if ( $latestError )
{
$IPBHTML .= <<<HTML
<div class='information-box'>
$latestError
</div>
<br />
HTML;
}
$IPBHTML .= <<<HTML
<div class="acp-box">
<h3>{$this->lang->words['sqllog_title']}</h3>
<table class="ipsTable">
<tr>
<th width="1%">&nbsp;</th>
<th width='49%'>{$this->lang->words['sqllog_name']}</th>
<th width='40%'>{$this->lang->words['sqllog_date']}</th>
<th width='10%'>{$this->lang->words['sqllog_size']}</th>
<th class="col_buttons">&nbsp;</th>
</tr>
HTML;
if( count($rows) AND is_array($rows) )
{
foreach( $rows as $row )
{
$size = IPSLib::sizeFormat( $row['size'] );
$mtime = $this->registry->class_localization->getDate( $row['mtime'], 'SHORT' );
$IPBHTML .= <<<HTML
<tr class='ipsControlRow'>
<td><img src='{$this->settings['skin_acp_url']}/images/icons/page_red.png' /></td>
<td><a href="{$this->settings['base_url']}{$this->form_code}&amp;do=view&amp;file={$row['name']}">{$row['name']}</a></td>
<td>{$mtime}</td>
<td>{$size}</td>
<td class='col_buttons'>
<ul class='ipsControlStrip'>
<li class='i_view'><a href="{$this->settings['base_url']}{$this->form_code}&amp;do=view&amp;file={$row['name']}" title='{$this->lang->words['slog_view']}'>{$this->lang->words['slog_view']}</a></li>
<li class='i_delete'><a href="#" onclick="acp.confirmDelete( '{$this->settings['base_url']}{$this->form_code}&amp;do=remove&amp;file={$row['name']}' )" title='{$this->lang->words['delete']}'>{$this->lang->words['delete']}</a></li>
</ul>
</td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='5' class='no_messages'>{$this->lang->words['sqllog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
<div class='acp-actionbar'>
<div class="leftaction">&nbsp;</div>
</div>
</div>
<br />
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* View a log
*
*/
public function sqlLogsView( $file, $size, $content, $tailSize ) {
/* Display a message? */
if ( $tailSize < $size )
{
$this->registry->output->setMessage( sprintf( $this->lang->words['sqllog_more_file'], $file ), true );
}
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['sqllog_title']}</h2>
</div>
<div class="acp-box">
<h3>{$file}</h3>
<div style='padding:8px'>
<div style="width:100%; height:400px; background-color:white;font-family:monospace;white-space:pre;overflow:auto">{$content}</div>
</div>
</div>
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* View an individual admin's logs
*
* @param array Rows
* @param string Page links
* @return string HTML
*/
public function adminlogsView( $rows, $pages ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['alog_title']}</h2>
</div>
<div class="acp-box">
<h3>{$this->lang->words['alog_saved']}</h3>
<table class="ipsTable">
<tr>
<th width='20%'>{$this->lang->words['alog_member']}</th>
<th width='40%'>{$this->lang->words['alog_performed']}</th>
<th width='20%'>{$this->lang->words['alog_date']}</th>
<th width='20%'>{$this->lang->words['alog_ip']}</th>
</tr>
HTML;
if( count($rows) AND is_array($rows) )
{
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td>{$row['members_display_name']}</td>
<td><span style='color:{$row['color']}'>{$row['note']}</span></td>
<td>{$row['_time']}</td>
<td>{$row['ip_address']}</td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='4' align='center'>{$this->lang->words['alog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
<div class='acp-actionbar'>
<div class="left">{$pages}</div>
<br class='clear' />
</div>
</div>
<br />
HTML;
//--endhtml--//
return $IPBHTML;
}
}
@@ -1,410 +1,406 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.2.3
* API users skin file
* Last Updated: $Date: 2011-05-11 12:57:46 -0400 (Wed, 11 May 2011) $
* </pre>
*
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license This is NULLED!
* @package IP.Board
* @subpackage Core
* @link http://hatynka.in
* @since Friday 19th May 2006 17:33
* @version $Revision: 8727 $
*/
class cp_skin_api
{
/**
* 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;
}
/**
* View api log details
*
* @param array Log record
* @return string HTML
*/
public function api_log_detail( $log ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<div class='acp-box'>
<h3>{$this->lang->words['a_detail']}</h3>
<table class='ipsTable'>
<tr>
<th colaspan='2'>{$this->lang->words['a_basics']}</th>
</tr>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['a_key']}</strong></td>
<td class='field_field'>{$log['api_log_key']}</td>
</tr>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['a_ip']}</strong></td>
<td class='field_field'>{$log['api_log_ip']}</td>
</tr>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['a_time']}</strong></td>
<td class='field_field'>{$log['_api_log_date']}</td>
</tr>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['a_success']}</strong></td>
<td class='field_field'><img src='{$this->settings['skin_acp_url']}/images/icons/{$log['_api_log_allowed']}' alt='-' /></td>
</tr>
<tr>
<th colaspan='2'>{$this->lang->words['a_formdata']}</th>
</tr>
<tr>
<td colspan='2' class='field_field'>
<div style='border:1px solid black;background-color:#FFF;padding:4px;white-space:pre;height:400px;overflow:auto'>
{$log['_api_log_query']}
</div>
</td>
</tr>
</table>
</div>
EOF;
//--endhtml--//
return $IPBHTML;
}
/**
* View API login logs
*
* @param array Rows
* @param string Page links
* @return string HTML
*/
public function api_login_view( $logs, $links ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<div class='section_title'>
<h2>{$this->lang->words['a_title']}</h2>
</div>
<div class='acp-box'>
<h3>{$this->lang->words['a_requestlog']}</h3>
<table class='ipsTable'>
<tr>
<th width='1%'>&nbsp;</th>
<th width='30%'>{$this->lang->words['a_key']}</th>
<th width='20%'>{$this->lang->words['a_ip']}</th>
<th width='44%' align='center'>{$this->lang->words['a_date']}</th>
<th width='5%' align='center'>{$this->lang->words['a_status']}</th>
<th width='5%' align='center'>{$this->lang->words['a_log']}</th>
</tr>
EOF;
if ( is_array( $logs ) AND count( $logs ) )
{
foreach( $logs as $r )
{
$IPBHTML .= <<<EOF
<tr>
<td width='1' valign='middle'>
<img src='{$this->settings['skin_acp_url']}/images/folder_components/xmlrpc/log_row.png' alt='-' />
</td>
<td><strong>{$r['api_log_key']}</strong></td>
<td><div class='desctext'>{$r['api_log_ip']}</div></td>
<td>{$r['_api_log_date']}</td>
<td><img src='{$this->settings['skin_acp_url']}/images/icons/{$r['_api_log_allowed']}' alt='-' /></td>
<td width='1' valign='middle'>
<a href='#' onclick="return acp.openWindow('{$this->settings['base_url']}{$this->form_code}&amp;do=log_view_detail&amp;api_log_id={$r['api_log_id']}', 800, 600)" title='{$this->lang->words['a_viewdetails']}'><img src='{$this->settings['skin_acp_url']}/images/folder_components/index/view.png' alt='-' /></a>
</td>
</tr>
EOF;
}
}
$IPBHTML .= <<<EOF
</table>
<div class='acp-actionbar'>
<div class="left">{$links}</div>
<br class='clear' />
</div>
</div>
EOF;
//--endhtml--//
return $IPBHTML;
}
/**
* List the api users
*
* @param array Rows
* @return string HTML
*/
public function api_list( $api_users ) {
$IPBHTML = "";
//--starthtml--//
if ( ! $this->settings['xmlrpc_enable'] ){
$status = "<a href='{$this->settings['base_url']}&amp;module=settings&amp;section=settings&amp;do=setting_view&amp;conf_title_keyword=xmlrpcapi'><span class='ipsBadge badge_red'>{$this->lang->words['perf_off']}</span></a>";
} else {
$status = "<span class='ipsBadge badge_green'>{$this->lang->words['perf_on']}</span>";
}
$IPBHTML .= <<<EOF
<div class='section_title'>
<h2>{$this->lang->words['a_users']}</h2>
<div class='ipsActionBar clearfix'>
<ul>
<li class='right non_button' style='margin-left: 15px; float: right !important;'>
{$status} &nbsp;<strong>{$this->lang->words['xmlrpc_status']}</strong>&nbsp;&nbsp;
</li>
<li class='ipsActionButton'>
<a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=api_add' style='text-decoration:none'><img src='{$this->settings['skin_acp_url']}/images/icons/add.png' alt='' /> {$this->lang->words['a_create']}</a>
</li>
</ul>
</div>
</div>
<div class='acp-box'>
<h3>{$this->lang->words['a_users']}</h3>
<table class='ipsTable'>
<tr>
<th width='40%'>{$this->lang->words['a_user']}</th>
<th width='30%'>{$this->lang->words['a_key']}</th>
<th width='20%'>{$this->lang->words['a_ip']}</th>
<th class='col_buttons'></th>
</tr>
EOF;
if ( count( $api_users ) )
{
foreach( $api_users as $user )
{
$IPBHTML .= <<<EOF
<tr class='ipsControlRow'>
<td><strong>{$user['api_user_name']}</strong>
<td><strong style='font-size:14px'>{$user['api_user_key']}</strong>
<td><strong>{$user['api_user_ip']}</strong>
<td class='col_buttons'>
<ul class='ipsControlStrip'>
<li class='i_edit'><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=api_edit&amp;api_user_id={$user['api_user_id']}'>{$this->lang->words['a_edit']}</a></li>
EOF;
if ( $this->registry->class_permissions->checkPermission( 'api_remove' ) )
{
$IPBHTML .= <<<EOF
<li class='i_delete'><a href='#' onclick='return acp.confirmDelete("{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=api_remove&amp;api_user_id={$user['api_user_id']}");'>{$this->lang->words['a_remove']}</a></li>
EOF;
}
$IPBHTML .= <<<EOF
</ul>
</td>
</tr>
EOF;
}
}
else
{
$IPBHTML .= <<<EOF
<tr>
<td colspan='5' class='no_messages'>
{$this->lang->words['a_nousers']} <a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=api_add' class='mini_button'>{$this->lang->words['a_createone']}</a></td>
</tr>
EOF;
}
$IPBHTML .= <<<EOF
</table>
</div>
EOF;
//--endhtml--//
return $IPBHTML;
}
/**
* Form to add/edit an API user
*
* @param array Form elements
* @param string Form title
* @param string Action code
* @param string Button text
* @param array API user record
* @param string Type (add|edit)
* @param array Permission types
* @return string HTML
*/
public function api_form( $form, $title, $formcode, $button, $api_user, $type, $permissions ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<form id='mainform' action='{$this->settings['base_url']}{$this->form_code}&amp;do={$formcode}&amp;api_user_id={$api_user['api_user_id']}' method='post'>
<div class='acp-box'>
<h3>{$title}</h3>
<table class='ipsTable double_pad'>
<tr>
<th colspan='2'>{$this->lang->words['a_userbasics']}</th>
</tr>
EOF;
if ( $type == 'add' )
{
$IPBHTML .= <<<EOF
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['a_userkey']}</strong>
</td>
<td class='field_field'>
<input type='hidden' name='api_user_key' value='{$form['_api_user_key']}' />
<strong>{$form['_api_user_key']}</strong><br />
<span class='desctext'>{$this->lang->words['a_key_info']}</span>
</td>
</tr>
EOF;
}
$IPBHTML .= <<<EOF
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['a_usertitle']}</strong>
</td>
<td class='field_field'>
{$form['api_user_name']}<br />
<span class='desctext'>{$this->lang->words['a_usertitle_info']}</span>
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['a_restrictip']}</strong>
</td>
<td class='field_field'>
{$form['api_user_ip']}<br />
<span class='desctext'>{$this->lang->words['a_restrictip_info']}</span>
</td>
</tr>
<tr>
<th colspan='2'>Select functions to which you grant access</th>
</tr>
</table>
EOF;
if ( is_array( $permissions ) AND count( $permissions ) )
{
$IPBHTML .= <<<HTML
<div id='tabstrip_api' class='ipsTabBar with_left with_right'>
<span class='tab_left'>&laquo;</span>
<span class='tab_right'>&raquo;</span>
<ul>
HTML;
foreach( $permissions as $key => $data )
{
$IPBHTML .= <<<EOF
<li id='tab_{$key}'>{$data['title']}</li>
EOF;
}
$IPBHTML .= <<<EOF
</ul>
</div>
<div id='tabstrip_api_content' class='ipsTabBar_content'>
EOF;
foreach( $permissions as $key => $data )
{
$IPBHTML .= <<<EOF
<div id='tab_{$key}_content'>
<table class='ipsTable'>
EOF;
if ( is_array( $permissions[ $key ]['form_perms'] ) AND ( $permissions[ $key ]['form_perms'] ) )
{
foreach( $permissions[ $key ]['form_perms'] as $perm => $_data )
{
$IPBHTML .= <<<EOF
<tr>
<td class='field_title'>
<strong class='title'><!--{$this->lang->words['a_allowaccess']} --></strong>
</td>
<td class='field_field'>
{$_data['form']} &nbsp;&nbsp;<strong>{$_data['title']}</strong>
</td>
</tr>
EOF;
}
}
$IPBHTML .= <<<EOF
</table>
</div>
EOF;
}
}
$IPBHTML .= <<<EOF
</div>
<script type='text/javascript'>
jQ("#tabstrip_api").ipsTabBar({tabWrap: "#tabstrip_api_content"});
</script>
</script>
<div class='acp-actionbar'>
<input type='submit' value='{$button}' class='button primary' />
</div>
</div>
</form>
EOF;
//--endhtml--//
return $IPBHTML;
}
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.3.4
* API users skin file
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @subpackage Core
* @link http://www.invisionpower.com
* @since Friday 19th May 2006 17:33
* @version $Revision: 10914 $
*/
class cp_skin_api
{
/**
* 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;
}
/**
* View api log details
*
* @param array Log record
* @return string HTML
*/
public function api_log_detail( $log ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<div class='acp-box'>
<h3>{$this->lang->words['a_detail']}</h3>
<table class='ipsTable'>
<tr>
<th colaspan='2'>{$this->lang->words['a_basics']}</th>
</tr>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['a_key']}</strong></td>
<td class='field_field'>{$log['api_log_key']}</td>
</tr>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['a_ip']}</strong></td>
<td class='field_field'>{$log['api_log_ip']}</td>
</tr>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['a_time']}</strong></td>
<td class='field_field'>{$log['_api_log_date']}</td>
</tr>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['a_success']}</strong></td>
<td class='field_field'><img src='{$this->settings['skin_acp_url']}/images/icons/{$log['_api_log_allowed']}' alt='-' /></td>
</tr>
<tr>
<th colaspan='2'>{$this->lang->words['a_formdata']}</th>
</tr>
<tr>
<td colspan='2' class='field_field'>
<div style='border:1px solid black;background-color:#FFF;padding:4px;white-space:pre;height:400px;overflow:auto'>
{$log['_api_log_query']}
</div>
</td>
</tr>
</table>
</div>
EOF;
//--endhtml--//
return $IPBHTML;
}
/**
* View API login logs
*
* @param array Rows
* @param string Page links
* @return string HTML
*/
public function api_login_view( $logs, $links ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<div class='section_title'>
<h2>{$this->lang->words['a_title']}</h2>
</div>
<div class='acp-box'>
<h3>{$this->lang->words['a_requestlog']}</h3>
<table class='ipsTable'>
<tr>
<th width='1%'>&nbsp;</th>
<th width='30%'>{$this->lang->words['a_key']}</th>
<th width='20%'>{$this->lang->words['a_ip']}</th>
<th width='44%' align='center'>{$this->lang->words['a_date']}</th>
<th width='5%' align='center'>{$this->lang->words['a_status']}</th>
<th width='5%' align='center'>{$this->lang->words['a_log']}</th>
</tr>
EOF;
if ( is_array( $logs ) AND count( $logs ) )
{
foreach( $logs as $r )
{
$IPBHTML .= <<<EOF
<tr>
<td width='1%' valign='middle'>
<img src='{$this->settings['skin_acp_url']}/images/folder_components/xmlrpc/log_row.png' alt='-' />
</td>
<td><strong>{$r['api_log_key']}</strong></td>
<td><div class='desctext'>{$r['api_log_ip']}</div></td>
<td>{$r['_api_log_date']}</td>
<td><img src='{$this->settings['skin_acp_url']}/images/icons/{$r['_api_log_allowed']}' alt='-' /></td>
<td width='1' valign='middle'>
<a href='#' onclick="return acp.openWindow('{$this->settings['base_url']}{$this->form_code}&amp;do=log_view_detail&amp;api_log_id={$r['api_log_id']}', 800, 600)" title='{$this->lang->words['a_viewdetails']}'><img src='{$this->settings['skin_acp_url']}/images/folder_components/index/view.png' alt='-' /></a>
</td>
</tr>
EOF;
}
}
$IPBHTML .= <<<EOF
</table>
<div class='acp-actionbar'>
<div class="left">{$links}</div>
<br class='clear' />
</div>
</div>
EOF;
//--endhtml--//
return $IPBHTML;
}
/**
* List the api users
*
* @param array Rows
* @return string HTML
*/
public function api_list( $api_users ) {
$IPBHTML = "";
//--starthtml--//
$status = $this->settings['xmlrpc_enable'] ? "<span class='ipsBadge badge_green'>{$this->lang->words['perf_on']}</span>" : "<a href='{$this->settings['base_url']}&amp;module=settings&amp;section=settings&amp;do=setting_view&amp;conf_title_keyword=xmlrpcapi'><span class='ipsBadge badge_red'>{$this->lang->words['perf_off']}</span></a>";
$IPBHTML .= <<<EOF
<div class='section_title'>
<h2>{$this->lang->words['a_users']}</h2>
<div class='ipsActionBar clearfix'>
<ul>
<li class='non_button' style='float: right !important;'>
{$status} &nbsp;<strong>{$this->lang->words['xmlrpc_status']}</strong>&nbsp;&nbsp;
</li>
<li class='ipsActionButton'>
<a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=api_add'><img src='{$this->settings['skin_acp_url']}/images/icons/add.png' alt='' /> {$this->lang->words['a_create']}</a>
</li>
</ul>
</div>
</div>
<div class='acp-box'>
<h3>{$this->lang->words['a_users']}</h3>
<table class='ipsTable'>
<tr>
<th width='40%'>{$this->lang->words['a_user']}</th>
<th width='30%'>{$this->lang->words['a_key']}</th>
<th width='20%'>{$this->lang->words['a_ip']}</th>
<th class='col_buttons'></th>
</tr>
EOF;
if ( count( $api_users ) )
{
foreach( $api_users as $user )
{
$IPBHTML .= <<<EOF
<tr class='ipsControlRow'>
<td><strong>{$user['api_user_name']}</strong>
<td><strong style='font-size:14px'>{$user['api_user_key']}</strong>
<td><strong>{$user['api_user_ip']}</strong>
<td class='col_buttons'>
<ul class='ipsControlStrip'>
<li class='i_edit'><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=api_edit&amp;api_user_id={$user['api_user_id']}'>{$this->lang->words['a_edit']}</a></li>
EOF;
if ( $this->registry->class_permissions->checkPermission( 'api_remove' ) )
{
$IPBHTML .= <<<EOF
<li class='i_delete'><a href='#' onclick='return acp.confirmDelete("{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=api_remove&amp;api_user_id={$user['api_user_id']}");'>{$this->lang->words['a_remove']}</a></li>
EOF;
}
$IPBHTML .= <<<EOF
</ul>
</td>
</tr>
EOF;
}
}
else
{
$IPBHTML .= <<<EOF
<tr>
<td colspan='5' class='no_messages'>
{$this->lang->words['a_nousers']} <a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=api_add' class='mini_button'>{$this->lang->words['a_createone']}</a>
</td>
</tr>
EOF;
}
$IPBHTML .= <<<EOF
</table>
</div>
EOF;
//--endhtml--//
return $IPBHTML;
}
/**
* Form to add/edit an API user
*
* @param array Form elements
* @param string Form title
* @param string Action code
* @param string Button text
* @param array API user record
* @param string Type (add|edit)
* @param array Permission types
* @return string HTML
*/
public function api_form( $form, $title, $formcode, $button, $api_user, $type, $permissions ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<form id='mainform' action='{$this->settings['base_url']}{$this->form_code}&amp;do={$formcode}&amp;api_user_id={$api_user['api_user_id']}' method='post'>
<div class='acp-box'>
<h3>{$title}</h3>
<table class='ipsTable double_pad'>
<tr>
<th colspan='2'>{$this->lang->words['a_userbasics']}</th>
</tr>
EOF;
if ( $type == 'add' )
{
$IPBHTML .= <<<EOF
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['a_userkey']}</strong>
</td>
<td class='field_field'>
<input type='hidden' name='api_user_key' value='{$form['_api_user_key']}' />
<strong>{$form['_api_user_key']}</strong><br />
<span class='desctext'>{$this->lang->words['a_key_info']}</span>
</td>
</tr>
EOF;
}
$IPBHTML .= <<<EOF
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['a_usertitle']}</strong>
</td>
<td class='field_field'>
{$form['api_user_name']}<br />
<span class='desctext'>{$this->lang->words['a_usertitle_info']}</span>
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['a_restrictip']}</strong>
</td>
<td class='field_field'>
{$form['api_user_ip']}<br />
<span class='desctext'>{$this->lang->words['a_restrictip_info']}</span>
</td>
</tr>
<tr>
<th colspan='2'>{$this->lang->words['a_grant_functions']}</th>
</tr>
</table>
EOF;
if ( is_array( $permissions ) AND count( $permissions ) )
{
$IPBHTML .= <<<HTML
<div id='tabstrip_api' class='ipsTabBar with_left with_right'>
<span class='tab_left'>&laquo;</span>
<span class='tab_right'>&raquo;</span>
<ul>
HTML;
foreach( $permissions as $key => $data )
{
$IPBHTML .= <<<EOF
<li id='tab_{$key}'>{$data['title']}</li>
EOF;
}
$IPBHTML .= <<<EOF
</ul>
</div>
<div id='tabstrip_api_content' class='ipsTabBar_content'>
EOF;
foreach( $permissions as $key => $data )
{
$IPBHTML .= <<<EOF
<div id='tab_{$key}_content'>
<table class='ipsTable'>
EOF;
if ( is_array( $permissions[ $key ]['form_perms'] ) AND ( $permissions[ $key ]['form_perms'] ) )
{
foreach( $permissions[ $key ]['form_perms'] as $perm => $_data )
{
$IPBHTML .= <<<EOF
<tr>
<td class='field_title'>
<!--<strong class='title'>{$this->lang->words['a_allowaccess']}</strong>-->
</td>
<td class='field_field'>
{$_data['form']} &nbsp;&nbsp;<strong>{$_data['title']}</strong>
</td>
</tr>
EOF;
}
}
$IPBHTML .= <<<EOF
</table>
</div>
EOF;
}
}
$IPBHTML .= <<<EOF
</div>
<script type='text/javascript'>
jQ("#tabstrip_api").ipsTabBar({tabWrap: "#tabstrip_api_content"});
</script>
</script>
<div class='acp-actionbar'>
<input type='submit' value='{$button}' class='button primary' />
</div>
</div>
</form>
EOF;
//--endhtml--//
return $IPBHTML;
}
}
File diff suppressed because it is too large. Load diff
@@ -1,227 +1,227 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.2.3
* Badwords skin file
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
* </pre>
*
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license This is NULLED!
* @package IP.Board
* @subpackage Core
* @link http://hatynka.in
* @since Friday 19th May 2006 17:33
* @version $Revision: 8644 $
*/
class cp_skin_badwords
{
/**
* 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;
}
/**
* Edit badwords
*
* @param int ID
* @param array Form elements
* @return string HTML
*/
public function badwordEditForm( $id, $form ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['bwl_title']}</h2>
</div>
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='theAdminForm' id='theAdminForm'>
<input type='hidden' name='do' value='badword_doedit' />
<input type='hidden' name='id' value='{$id}' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['bwl_edit_filter']}</h3>
<table class='ipsTable double_pad'>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['bwl_before']}</title></td>
<td class='field_field'>{$form['before']}</td>
</tr>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['bwl_after']}</strong></td>
<td class='field_field'>{$form['after']}</td>
</tr>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['bwl_method']}</strong></td>
<td class='field_field'>{$form['match']}</td>
</tr>
</table>
<div class="acp-actionbar">
<input type='submit' value='{$this->lang->words['bwl_edit_filter']}' class='button primary' accesskey='s'>
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* Badwords wrapper
*
* @param array Badword rows
* @return string HTML
*/
public function badwordsWrapper( $rows ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['bwl_title']}</h2>
<ul class='context_menu'>
<li>
<a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=badword_export'>
<img src='{$this->settings['skin_acp_url']}/images/icons/export.png' alt='' />
{$this->lang->words['bwl_export']}
</a>
</li>
</ul>
</div>
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='theAdminForm' id='theAdminForm'>
<input type='hidden' name='do' value='badword_add' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['bwl_current']}</h3>
<table class="ipsTable">
<tr>
<th width='40%'>{$this->lang->words['bwl_before']}</th>
<th width='40%'>{$this->lang->words['bwl_after']}</th>
<th width='15%'>{$this->lang->words['bwl_method']}</th>
<th width='5%'>{$this->lang->words['bwl_options']}</th>
</tr>
HTML;
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr class='ipsControlRow'>
<td>{$row['type']}</td>
<td>{$row['replace']}</td>
<td>{$row['method']}</td>
<td class='col_buttons'>
<ul class='ipsControlStrip'>
<li class='i_edit'><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=badword_edit&id={$row['wid']}' title='{$this->lang->words['bwl_filter_edit']}'>{$this->lang->words['bwl_filter_edit']}</a></li>
<li class='i_delete'><a href='#' onclick='return acp.confirmDelete("{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=badword_remove&id={$row['wid']}");' title='{$this->lang->words['bwl_filter_remove']}'>{$this->lang->words['bwl_filter_remove']}</a></li>
</ul>
</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
<br />
<div class="acp-box">
<h3>{$this->lang->words['bwl_filter_add']}</h3>
<table class="ipsTable">
<tr>
<th width="40%">{$this->lang->words['bwl_before']}</th>
<th width="40%">{$this->lang->words['bwl_after']}</th>
<th width="20%">{$this->lang->words['bwl_method']}</th>
</tr>
<tr>
<td width="40%"><input name="before" value="" size="30" class="textinput" type="text"></td>
<td width="40%"><input name="after" value="" size="30" class="textinput" type="text"></td>
<td width="20%">
<select name="match" class="dropdown">
<option value="1">{$this->lang->words['bwl_exact']}</option>
<option value="0">{$this->lang->words['bwl_loose']}</option>
</select>
</td>
</tr>
</table>
<div class="acp-actionbar">
<input value="{$this->lang->words['bwl_filter_add']}" class="button primary" accesskey="s" type="submit">
</div>
</div>
</form>
<br />
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='uploadform' enctype='multipart/form-data' id='uploadform'>
<input type='hidden' name='do' value='badword_import' />
<input type='hidden' name='MAX_FILE_SIZE' value='10000000000' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['bwl_import']}</h3>
<table class='ipsTable double_pad'>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['bwl_import_upload']}</strong></td>
<td class='field_field'><input class='textinput' type='file' size='30' name='FILE_UPLOAD'><br /><span class="desctext">{$this->lang->words['bwl_import_info']}</span></td>
</tr>
</table>
<div class="acp-actionbar">
<input type='submit' value='{$this->lang->words['bwl_import']}' class='button primary' accesskey='s'>
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.3.4
* Badwords skin file
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @subpackage Core
* @link http://www.invisionpower.com
* @since Friday 19th May 2006 17:33
* @version $Revision: 10914 $
*/
class cp_skin_badwords
{
/**
* 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;
}
/**
* Edit badwords
*
* @param int ID
* @param array Form elements
* @return string HTML
*/
public function badwordEditForm( $id, $form ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['bwl_title']}</h2>
</div>
<form action='{$this->settings['base_url']}{$this->form_code}' method='post'>
<input type='hidden' name='do' value='badword_doedit' />
<input type='hidden' name='id' value='{$id}' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['bwl_edit_filter']}</h3>
<table class='ipsTable double_pad'>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['bwl_before']}</title></td>
<td class='field_field'>{$form['before']}</td>
</tr>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['bwl_after']}</strong></td>
<td class='field_field'>{$form['after']}</td>
</tr>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['bwl_method']}</strong></td>
<td class='field_field'>{$form['match']}</td>
</tr>
</table>
<div class="acp-actionbar">
<input type='submit' value='{$this->lang->words['bwl_edit_filter']}' class='button primary' accesskey='s'>
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* Badwords wrapper
*
* @param array Badword rows
* @return string HTML
*/
public function badwordsWrapper( $rows ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['bwl_title']}</h2>
<ul class='context_menu'>
<li>
<a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=badword_export'>
<img src='{$this->settings['skin_acp_url']}/images/icons/export.png' alt='' />
{$this->lang->words['bwl_export']}
</a>
</li>
</ul>
</div>
<form action='{$this->settings['base_url']}{$this->form_code}' method='post'>
<input type='hidden' name='do' value='badword_add' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['bwl_current']}</h3>
<table class="ipsTable">
<tr>
<th width='40%'>{$this->lang->words['bwl_before']}</th>
<th width='40%'>{$this->lang->words['bwl_after']}</th>
<th width='15%'>{$this->lang->words['bwl_method']}</th>
<th width='5%'>{$this->lang->words['bwl_options']}</th>
</tr>
HTML;
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr class='ipsControlRow'>
<td>{$row['type']}</td>
<td>{$row['replace']}</td>
<td>{$row['method']}</td>
<td class='col_buttons'>
<ul class='ipsControlStrip'>
<li class='i_edit'><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=badword_edit&id={$row['wid']}' title='{$this->lang->words['bwl_filter_edit']}'>{$this->lang->words['bwl_filter_edit']}</a></li>
<li class='i_delete'><a href='#' onclick='return acp.confirmDelete("{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=badword_remove&id={$row['wid']}");' title='{$this->lang->words['bwl_filter_remove']}'>{$this->lang->words['bwl_filter_remove']}</a></li>
</ul>
</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
<br />
<div class="acp-box">
<h3>{$this->lang->words['bwl_filter_add']}</h3>
<table class="ipsTable">
<tr>
<th width="40%">{$this->lang->words['bwl_before']}</th>
<th width="40%">{$this->lang->words['bwl_after']}</th>
<th width="20%">{$this->lang->words['bwl_method']}</th>
</tr>
<tr>
<td width="40%"><input name="before" value="" size="30" class="textinput" type="text"></td>
<td width="40%"><input name="after" value="" size="30" class="textinput" type="text"></td>
<td width="20%">
<select name="match" class="dropdown">
<option value="1">{$this->lang->words['bwl_exact']}</option>
<option value="0">{$this->lang->words['bwl_loose']}</option>
</select>
</td>
</tr>
</table>
<div class="acp-actionbar">
<input value="{$this->lang->words['bwl_filter_add']}" class="button primary" accesskey="s" type="submit">
</div>
</div>
</form>
<br />
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='uploadform' enctype='multipart/form-data' id='uploadform'>
<input type='hidden' name='do' value='badword_import' />
<input type='hidden' name='MAX_FILE_SIZE' value='10000000000' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['bwl_import']}</h3>
<table class='ipsTable double_pad'>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['bwl_import_upload']}</strong></td>
<td class='field_field'><input class='textinput' type='file' size='30' name='FILE_UPLOAD'><br /><span class="desctext">{$this->lang->words['bwl_import_info']}</span></td>
</tr>
</table>
<div class="acp-actionbar">
<input type='submit' value='{$this->lang->words['bwl_import']}' class='button primary' accesskey='s'>
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -1,225 +1,225 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.2.3
* Email error logs
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
* </pre>
*
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license This is NULLED!
* @package IP.Board
* @subpackage Core
* @link http://hatynka.in
* @since Friday 19th May 2006 17:33
* @version $Revision: 8644 $
*/
class cp_skin_emailerrorlogs
{
/**
* Registry Object Shortcuts
*
* @var $registry
* @var $DB
* @var $settings
* @var $request
* @var $lang
* @var $member
* @var $memberData
* @var $cache
* @var $caches
*/
protected $registry;
protected $DB;
protected $settings;
protected $request;
protected $lang;
protected $member;
protected $memberData;
protected $cache;
protected $caches;
/**
* Constructor
*
* @param object $registry Registry object
* @return @e void
*/
public function __construct( ipsRegistry $registry )
{
$this->registry = $registry;
$this->DB = $this->registry->DB();
$this->settings =& $this->registry->fetchSettings();
$this->request =& $this->registry->fetchRequest();
$this->member = $this->registry->member();
$this->memberData =& $this->registry->member()->fetchMemberData();
$this->cache = $this->registry->cache();
$this->caches =& $this->registry->cache()->fetchCaches();
$this->lang = $this->registry->class_localization;
}
/**
* Show the splash screen for the email error logs
*
* @param array Records
* @param string Page links
* @return string HTML
*/
public function emailerrorlogsWrapper( $rows, $links ) {
$form_array = array(
0 => array( 'subject' , $this->lang->words['erlog_subject']),
2 => array( 'email_from', $this->lang->words['erlog_fromemail'] ),
3 => array( 'email_to' , $this->lang->words['erlog_toemail'] ),
4 => array( 'error' , $this->lang->words['erlog_error'] ),
);
$type_array = array(
0 => array( 'exact' , $this->lang->words['erlog_exact'] ),
1 => array( 'loose' , $this->lang->words['erlog_loose'] ),
);
$form = array();
$form['type'] = $this->registry->output->formDropdown( "type" , $form_array, $this->request['type'] );
$form['match'] = $this->registry->output->formDropdown( "match", $type_array, $this->request['match'] );
$form['string'] = $this->registry->output->formInput( "string", $this->request['string'] );
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<script type='text/javascript' src='{$this->settings['js_main_url']}acp.forms.js'></script>
<div class='section_title'>
<h2>{$this->lang->words['erlog_title']}</h2>
</div>
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='theAdminForm' id='theAdminForm'>
<input type='hidden' name='do' value='remove' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['erlog_thelogs']}</h3>
<table class="ipsTable">
<tr>
<th width='25%'>{$this->lang->words['erlog_to']}</th>
<th width='25%'>{$this->lang->words['erlog_subject']}</th>
<th width='27%'>{$this->lang->words['erlog_error']}</th>
<th width='20%'>{$this->lang->words['erlog_date']}</th>
<th width='3%'><input type='checkbox' title="{$this->lang->words['my_checkall']}" id='checkAll' /></th>
</tr>
HTML;
if( count($rows) AND is_array($rows) )
{
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td>{$row['mlog_to']}</td>
<td><a href='#' onclick='return acp.openWindow("{$this->settings['base_url']}&{$this->form_code_js}&do=viewemail&id={$row['mlog_id']}",400,350,"{$row['mlog_id']}")' title='{$this->lang->words['erlog_reademail']}'>{$row['mlog_subject']}</a></td>
<td>{$row['mlog_msg']}<br />{$row['mlog_code']}&nbsp;{$row['mlog_smtp_msg']}</td>
<td>{$row['_date']}</td>
<td><input type='checkbox' name='id_{$row['mlog_id']}' value='1' class='checkAll' /></td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='5' align='center'>{$this->lang->words['erlog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
<div class="acp-actionbar">
<div class="right">
<input type="checkbox" id="checkbox" name="type" value="all" />&nbsp;{$this->lang->words['erlog_removeall']}&nbsp;<input type="submit" value="{$this->lang->words['erlog_removechecked']}" class="button primary" />
</div>
<div class="left">{$links}</div>
<br class='clear' />
</div>
</div>
</form>
<br />
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='theAdminForm' id='theAdminForm'>
<input type='hidden' name='do' value='list' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['erlog_search']}</h3>
<table class='ipsTable double_pad'>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['erlog_searchwhere']}</strong></td>
<td class='field_field'>{$form['type']} {$form['match']} {$form['string']}</td>
</tr>
</table>
<div class="acp-actionbar">
<input value="{$this->lang->words['erlog_searchbutton']}" class="button primary" accesskey="s" type="submit" />
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* Record for an email error log entry
*
* @param array Email error log record
* @return string HTML
*/
public function emailerrorlogsEmail( $row ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class="acp-box">
<h3>{$row['mlog_subject']}</h3>
<table class="ipsTable">
<tr>
<td width='15%'>{$this->lang->words['erlog_log_from']}</td>
<td>&lt;{$row['mlog_from']}&gt;</td>
</tr>
<tr>
<td width='15%'>{$this->lang->words['erlog_log_to']}</td>
<td>&lt;{$row['mlog_to']}&gt;</td>
</tr>
<tr>
<td width='15%'>{$this->lang->words['erlog_log_sent']}</td>
<td>{$row['_date']}</td>
</tr>
<tr>
<td width='15%'>{$this->lang->words['erlog_log_subject']}</td>
<td>{$row['_subject']}</td>
</tr>
<tr>
<td colspan='2'>{$row['mlog_content']}...</td>
</tr>
<tr>
<td colspan='2'>{$this->lang->words['erlog_ipberror']} {$row['mlog_msg']}
<br />{$this->lang->words['erlog_smtpcode']} {$row['mlog_code']}
<br />{$this->lang->words['erlog_smtperror']} {$row['mlog_smtp_error']}
</td>
</tr>
</table>
</div>
<br />
HTML;
//--endhtml--//
return $IPBHTML;
}
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.3.4
* Email error logs
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @subpackage Core
* @link http://www.invisionpower.com
* @since Friday 19th May 2006 17:33
* @version $Revision: 10914 $
*/
class cp_skin_emailerrorlogs
{
/**
* Registry Object Shortcuts
*
* @var $registry
* @var $DB
* @var $settings
* @var $request
* @var $lang
* @var $member
* @var $memberData
* @var $cache
* @var $caches
*/
protected $registry;
protected $DB;
protected $settings;
protected $request;
protected $lang;
protected $member;
protected $memberData;
protected $cache;
protected $caches;
/**
* Constructor
*
* @param object $registry Registry object
* @return @e void
*/
public function __construct( ipsRegistry $registry )
{
$this->registry = $registry;
$this->DB = $this->registry->DB();
$this->settings =& $this->registry->fetchSettings();
$this->request =& $this->registry->fetchRequest();
$this->member = $this->registry->member();
$this->memberData =& $this->registry->member()->fetchMemberData();
$this->cache = $this->registry->cache();
$this->caches =& $this->registry->cache()->fetchCaches();
$this->lang = $this->registry->class_localization;
}
/**
* Show the splash screen for the email error logs
*
* @param array Records
* @param string Page links
* @return string HTML
*/
public function emailerrorlogsWrapper( $rows, $links ) {
$form_array = array(
0 => array( 'subject' , $this->lang->words['erlog_subject']),
2 => array( 'email_from', $this->lang->words['erlog_fromemail'] ),
3 => array( 'email_to' , $this->lang->words['erlog_toemail'] ),
4 => array( 'error' , $this->lang->words['erlog_error'] ),
);
$type_array = array(
0 => array( 'exact' , $this->lang->words['erlog_exact'] ),
1 => array( 'loose' , $this->lang->words['erlog_loose'] ),
);
$form = array();
$form['type'] = $this->registry->output->formDropdown( "type" , $form_array, $this->request['type'] );
$form['match'] = $this->registry->output->formDropdown( "match", $type_array, $this->request['match'] );
$form['string'] = $this->registry->output->formInput( "string", $this->request['string'] );
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<script type='text/javascript' src='{$this->settings['js_main_url']}acp.forms.js'></script>
<div class='section_title'>
<h2>{$this->lang->words['erlog_title']}</h2>
</div>
<form action='{$this->settings['base_url']}{$this->form_code}' method='post'>
<input type='hidden' name='do' value='remove' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['erlog_thelogs']}</h3>
<table class="ipsTable">
<tr>
<th width='25%'>{$this->lang->words['erlog_to']}</th>
<th width='25%'>{$this->lang->words['erlog_subject']}</th>
<th width='27%'>{$this->lang->words['erlog_error']}</th>
<th width='20%'>{$this->lang->words['erlog_date']}</th>
<th width='3%'><input type='checkbox' title="{$this->lang->words['my_checkall']}" id='checkAll' /></th>
</tr>
HTML;
if( count($rows) AND is_array($rows) )
{
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td>{$row['mlog_to']}</td>
<td><a href='#' onclick='return acp.openWindow("{$this->settings['base_url']}&{$this->form_code_js}&do=viewemail&id={$row['mlog_id']}",400,350,"{$row['mlog_id']}")' title='{$this->lang->words['erlog_reademail']}'>{$row['mlog_subject']}</a></td>
<td>{$row['mlog_msg']}<br />{$row['mlog_code']}&nbsp;{$row['mlog_smtp_msg']}</td>
<td>{$row['_date']}</td>
<td><input type='checkbox' name='id_{$row['mlog_id']}' value='1' class='checkAll' /></td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='5' align='center'>{$this->lang->words['erlog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
<div class="acp-actionbar">
<div class="right">
<input type="checkbox" id="checkbox" name="type" value="all" />&nbsp;{$this->lang->words['erlog_removeall']}&nbsp;<input type="submit" value="{$this->lang->words['erlog_removechecked']}" class="button primary" />
</div>
<div class="left">{$links}</div>
<br class='clear' />
</div>
</div>
</form>
<br />
<form action='{$this->settings['base_url']}{$this->form_code}' method='post'>
<input type='hidden' name='do' value='list' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['erlog_search']}</h3>
<table class='ipsTable double_pad'>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['erlog_searchwhere']}</strong></td>
<td class='field_field'>{$form['type']} {$form['match']} {$form['string']}</td>
</tr>
</table>
<div class="acp-actionbar">
<input value="{$this->lang->words['erlog_searchbutton']}" class="button primary" accesskey="s" type="submit" />
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* Record for an email error log entry
*
* @param array Email error log record
* @return string HTML
*/
public function emailerrorlogsEmail( $row ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class="acp-box">
<h3>{$row['mlog_subject']}</h3>
<table class="ipsTable">
<tr>
<td width='15%'>{$this->lang->words['erlog_log_from']}</td>
<td>&lt;{$row['mlog_from']}&gt;</td>
</tr>
<tr>
<td width='15%'>{$this->lang->words['erlog_log_to']}</td>
<td>&lt;{$row['mlog_to']}&gt;</td>
</tr>
<tr>
<td width='15%'>{$this->lang->words['erlog_log_sent']}</td>
<td>{$row['_date']}</td>
</tr>
<tr>
<td width='15%'>{$this->lang->words['erlog_log_subject']}</td>
<td>{$row['_subject']}</td>
</tr>
<tr>
<td colspan='2'>{$row['mlog_content']}...</td>
</tr>
<tr>
<td colspan='2'>{$this->lang->words['erlog_ipberror']} {$row['mlog_msg']}
<br />{$this->lang->words['erlog_smtpcode']} {$row['mlog_code']}
<br />{$this->lang->words['erlog_smtperror']} {$row['mlog_smtp_error']}
</td>
</tr>
</table>
</div>
<br />
HTML;
//--endhtml--//
return $IPBHTML;
}
}
@@ -1,440 +1,441 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.2.3
* Emoticon manager skin file
* Last Updated: $Date: 2011-09-27 21:33:45 -0400 (Tue, 27 Sep 2011) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license This is NULLED!
* @package IP.Board
* @subpackage Core
* @link http://hatynka.in
* @since Friday 19th May 2006 17:33
* @version $Revision: 9556 $
*/
class cp_skin_emoticons
{
/**
* 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;
}
/**
* Emoticon pack splash page
*
* @param array Form elements
* @return string HTML
*/
public function emoticonsPackSplash( $form )
{
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['emo_title']}</h2>
</div>
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='theAdminForm' id='theAdminForm'>
<input type='hidden' name='do' value='emo_packexport' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->_admin_auth_key}' />
<div class='acp-box'>
<h3>{$this->lang->words['emote_export']}</h3>
<table class='ipsTable double_pad'>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['emote_export_which']}</strong>
</td>
<td class='field_field'>
{$form['emo_set']}<br />
<span class='desctext'>{$this->lang->words['emote_xml_pack']}</span>
</td>
</tr>
</table>
<div class='acp-actionbar'>
<input type='submit' value='{$this->lang->words['emote_export_button']}' class='button primary' accesskey='s'>
</div>
</div>
</form><br />
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='uploadform' enctype='multipart/form-data' id='uploadform'>
<input type='hidden' name='do' value='emo_packimport' />
<input type='hidden' name='MAX_FILE_SIZE' value='10000000000' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->_admin_auth_key}' />
<div class='acp-box'>
<h3>{$this->lang->words['emote_import']}</h3>
<table class='ipsTable double_pad'>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['emote_import_which']}</strong>
</td>
<td class='field_field'>
{$form['emo_set']}<br />
<span class='desctext'>{$this->lang->words['emote_xml_export']}</span>
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['emote_import_newgroup']}</strong>
</td>
<td class='field_field'>
{$form['new_emo_set']}<br />
<span class='desctext'>{$this->lang->words['emote_import_name']}</span>
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['emote_import_over']}</strong>
</td>
<td class='field_field'>
{$form['overwrite']}<br />
<span class='desctext'>{$this->lang->words['emote_import_replace']}</span>
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['emote_import_upload']}</strong>
</td>
<td class='field_field'>
<input class='textinput' type='file' size='30' name='FILE_UPLOAD'><br />
<span class='desctext'>{$this->lang->words['emote_import_browse']}</span>
</td>
</tr>
</table>
<div class='acp-actionbar'>
<input type='submit' value='{$this->lang->words['emote_import_button']}' class='button primary' accesskey='s'>
</div>
</div>
</form>
HTML;
return $IPBHTML;
}
/**
* Show the splash screen for the logs
*
* @param array Db records
* @param array File records
* @param string Width for table cells
* @param int Number of emoticons per row
* @return string HTML
*/
public function emoticonsDirectoryManagement( $db_rows, $file_rows )
{
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['emo_control']}</h2>
</div>
<div class='acp-box'>
<h3>{$this->lang->words['emote_assigned']}'{$this->request['id']}'</h3>
<form action='{$this->settings['base_url']}{$this->form_code}do=emo_doedit&id={$this->request['id']}' method='post'>
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->_admin_auth_key}' />
<table class='ipsTable' id='emoticons_table'>
HTML;
/* Loop through the database emoticons */
$count = 0;
$_public = PUBLIC_DIRECTORY;
foreach( $db_rows as $r )
{
$IPBHTML .= <<<HTML
<tr class='ipsControlRow isDraggable' id='emoticons_{$r['id']}'>
<td class='col_drag'><div class='draghandle'>&nbsp;</div></td>
<td width='60%'>
<input type='hidden' name='emo_id_{$r['id']}' value='{$r['id']}' />
<img src='../{$_public}/style_emoticons/{$this->request['id']}/{$r['image']}' />
&nbsp; &nbsp; <span class='ipsBadge badge_grey'>{$r['image']}</span>
</td>
<td width='30%' align='right'>
HTML;
if( $this->request['id'] == 'default' )
{
$IPBHTML .= <<<HTML
<input type='textinput' class='input_text' size='20' name='emo_type_{$r['id']}' value='{$r['typed']}' />
HTML;
}
else
{
$IPBHTML .= <<<HTML
<span class='button'>{$r['typed']}</span>
HTML;
}
$IPBHTML .= <<<HTML
</td>
<td class='col_buttons'>
<ul class='ipsControlStrip'>
<li class='i_delete'><a href='{$this->settings['base_url']}{$this->form_code}do=emo_remove&eid={$r['id']}&id={$this->request['id']}' title='{$this->lang->words['emote_delete_title']}'>{$this->lang->words['emote_delete_title']}</a></li>
</ul>
</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
<div class='acp-actionbar'>
<input type='submit' class='button primary' value='{$this->lang->words['emote_update_button']}' />
</div>
</form>
</div>
<script type='text/javascript'>
jQ("#emoticons_table").ipsSortable('table', {
url: "{$this->settings['base_url']}{$this->form_code_js}do=reorder&md5check={$this->registry->adminFunctions->getSecurityKey()}&id={$this->request['id']}".replace( /&amp;/g, '&' ),
serializeOptions: { key: 'emoticons[]' }
} );
</script>
<br />
<div class='acp-box'>
<h3>{$this->lang->words['emote_unassigned']}'{$this->request['id']}'</h3>
<table class='ipsTable'>
HTML;
/* Display unassigned emoticons */
if( is_array( $file_rows ) && count( $file_rows ) )
{
foreach( $file_rows as $r )
{
$safeName = str_replace( '.', '---', $r['image'] );
$IPBHTML .= <<<HTML
<tr class='ipsControlRow'>
<td class='col_drag _amber'><div class='draghandle'>&nbsp;</div></td>
<td width='60%' class='_amber'>
<img src='../{$_public}/style_emoticons/{$this->request['id']}/{$r['image']}' />
&nbsp; &nbsp; <span class='ipsBadge badge_grey'>{$r['image']}</span>
</td>
<td width='30%' align='right' class='_amber'>
<input type='textinput' disabled="disabled" class='input_text' size='20' name='emo_type_{$safeName}' value='{$r['poss_name']}' />
</td>
<td class='col_buttons _amber'>
<ul class='ipsControlStrip'>
<li class='i_add'><a href='{$this->settings['base_url']}{$this->form_code}do=emo_doadd&id={$this->request['id']}&emo_image={$safeName}'>{$this->lang->words['emote_delete_title']}</a></li>
</ul>
</td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr class='ipsControlRow'>
<td class='no_messages'>{$this->lang->words['emote_unassigned_none']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
HTML;
return $IPBHTML;
}
/**
* Overview of emoticon packs
*
* @param array Records
* @return string HTML
*/
public function emoticonsOverview( $rows )
{
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<script type="text/javascript" src="{$this->settings['js_main_url']}acp.emoticons.js"></script>
<script type='text/javascript'>
ipb.templates['emo_manage'] = new Template( "<form action='{$this->settings['base_url']}{$this->form_code}' method='post'>" +
"<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->_admin_auth_key}' />" +
"<input type='hidden' name='do' value='#{form_do}' />" +
"<input type='hidden' name='id' value='#{form_id}' />" +
"<div class='acp-box'><h3>{$this->lang->words['emoticon_folder']}</h3><table class='ipsTable double_pad'><tr><td class='field_title'><strong class='title'>{$this->lang->words['emoticon_folder_name']}</strong></td><td class='field_field'><input type='text' size='30' class='input_text' id='name_#{form_id}' value='#{folder_name}' name='emoset'></td></tr></table><div class='acp-actionbar'><input type='submit' value='#{form_value}' class='realbutton' id='save_folder_#{id}' /></div></div>" +
"</form>" );
ipb.lang['emoticons'] = [];
ipb.lang['emoticons']['add'] = "{$this->lang->words['emote_addfolder']}";
ipb.lang['emoticons']['edit'] = "{$this->lang->words['emote_editfolder']}";
</script>
<div class='section_title'>
<h2>{$this->lang->words['emo_control']}</h2>
<ul class='context_menu'>
<li><a href='#' id='folder_edit_0'><img src='{$this->settings['skin_acp_url']}/images/icons/folder_add.png' alt='' /> {$this->lang->words['emote_createnew']}</a></li>
<li><a href='{$this->settings['base_url']}{$this->form_code}&amp;do=emo_packsplash'><img src='{$this->settings['skin_acp_url']}/images/icons/export.png' alt='' /> {$this->lang->words['emote_impexpo']}</a></li>
</ul>
<script type='text/javascript'>
$('folder_edit_0').observe('click', acp.emoticons.folder.bindAsEventListener( this, 0 ) );
</script>
</div>
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='uploadform' enctype='multipart/form-data' id='uploadform'>
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->_admin_auth_key}' />
<input type='hidden' name='do' value='emo_upload'>
<input type='hidden' name='MAX_FILE_SIZE' value='10000000000'>
<input type='hidden' name='dir_default' value='1'>
<div class='acp-box'>
<h3>{$this->lang->words['emote_current']}</h3>
<table class='ipsTable'>
<tr>
<th width='50%' align='center'>{$this->lang->words['emote_emofolder']}</th>
<th width='5%' align='center'>{$this->lang->words['emote_upload']}</th>
<th width='20%' align='center'>{$this->lang->words['emote_num_disk']}</th>
<th width='20%' align='center'>{$this->lang->words['emote_num_group']}</th>
<th width='5%' align='center'>{$this->lang->words['emote_options']}</th>
</tr>
HTML;
foreach( $rows as $data )
{
$IPBHTML .= <<<HTML
<tr class='ipsControlRow'>
<td valign='middle'>
<div style='width:auto;float:right;'><img src='{$this->settings['skin_acp_url']}/images/{$data['icon']}' title='{$data['title']}' alt='{$data['icon']}' /></div>
{$data['line_image']}<img src='{$this->settings['skin_acp_url']}/images/emoticon_folder.png' />&nbsp;
<a href='{$this->settings['base_url']}{$this->form_code}do=emo_manage&amp;id={$data['dir']}' title='{$this->lang->words['emote_manageset']}'><b>{$data['dir']}</b></a>
</td>
<td valign='middle'><center>{$data['checkbox']}</center></td>
<td valign='middle'><center>{$data['count']}</center></td>
<td valign='middle'><center>{$data['dir_count']}</td>
<td class='col_buttons'>
<ul class='ipsControlStrip'>
<li class='i_edit'>
<a href='{$this->settings['base_url']}{$this->form_code_js}do=emo_manage&amp;id={$data['dir']}' title='{$data['link_text']}'>{$data['link_text']}</a>
</li>
HTML;
if( $data['dir'] != 'default' OR IN_DEV == 1 )
{
$IPBHTML .= <<<HTML
<li class='i_new_folder'>
<a href='#' id="folder_edit_{$data['dir']}" title='{$this->lang->words['emote_editfolder']}'>{$this->lang->words['emote_editfolder']}</a>
<script type='text/javascript'>
$("folder_edit_{$data['dir']}").observe('click', acp.emoticons.folder.bindAsEventListener( this, "{$data['dir']}" ) );
</script>
</li>
<li class='i_delete'>
<a href='#' onclick='return acp.confirmDelete("{$this->settings['base_url']}{$this->form_code_js}do=emo_setremove&amp;id={$data['dir']}");' title='{$this->lang->words['emote_deletefolder']}'>{$this->lang->words['emote_deletefolder']}</a>
</li>
HTML;
}
else
{
$IPBHTML .= <<<HTML
<li class='i_delete disabled'><a title='{$this->lang->words['emote_dontdeletedef']}'><em>{$this->lang->words['emote_dontdeletedef']}</em></a></li>
HTML;
}
$IPBHTML .= <<<HTML
</ul>
</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div><br />
HTML;
if( SAFE_MODE_ON )
{
$IPBHTML .= <<<HTML
</form>
HTML;
}
else
{
$IPBHTML .= <<<HTML
<div class='acp-box'>
<h3>{$this->lang->words['emote_uploademos']}</h3>
<table class='ipsTable'>
<tr>
<td class='field_title'><input type='file' value='' name='upload_1' size='30' /></td>
<td class='field_field'><input type='file' name='upload_2' size='30' /></td>
</tr>
<tr>
<td class='field_title'><input type='file' name='upload_3' size='30' /></td>
<td class='field_field'><input type='file' name='upload_4' size='30' /></td>
</tr>
</table>
<div class='acp-actionbar'>
<input type='submit' value='{$this->lang->words['emote_uploadtofolders']}' class='button primary' />
</div>
</div>
</form>
HTML;
}
return $IPBHTML;
}
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.3.4
* Emoticon manager skin file
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @subpackage Core
* @link http://www.invisionpower.com
* @since Friday 19th May 2006 17:33
* @version $Revision: 10914 $
*/
class cp_skin_emoticons
{
/**
* 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;
}
/**
* Emoticon pack splash page
*
* @param array Form elements
* @return string HTML
*/
public function emoticonsPackSplash( $form )
{
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['emo_title']}</h2>
</div>
<form action='{$this->settings['base_url']}{$this->form_code}' method='post'>
<input type='hidden' name='do' value='emo_packexport' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->_admin_auth_key}' />
<div class='acp-box'>
<h3>{$this->lang->words['emote_export']}</h3>
<table class='ipsTable double_pad'>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['emote_export_which']}</strong>
</td>
<td class='field_field'>
{$form['emo_set']}<br />
<span class='desctext'>{$this->lang->words['emote_xml_pack']}</span>
</td>
</tr>
</table>
<div class='acp-actionbar'>
<input type='submit' value='{$this->lang->words['emote_export_button']}' class='button primary' accesskey='s'>
</div>
</div>
</form><br />
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='uploadform' enctype='multipart/form-data' id='uploadform'>
<input type='hidden' name='do' value='emo_packimport' />
<input type='hidden' name='MAX_FILE_SIZE' value='10000000000' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->_admin_auth_key}' />
<div class='acp-box'>
<h3>{$this->lang->words['emote_import']}</h3>
<table class='ipsTable double_pad'>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['emote_import_which']}</strong>
</td>
<td class='field_field'>
{$form['emo_set']}<br />
<span class='desctext'>{$this->lang->words['emote_xml_export']}</span>
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['emote_import_newgroup']}</strong>
</td>
<td class='field_field'>
{$form['new_emo_set']}<br />
<span class='desctext'>{$this->lang->words['emote_import_name']}</span>
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['emote_import_over']}</strong>
</td>
<td class='field_field'>
{$form['overwrite']}<br />
<span class='desctext'>{$this->lang->words['emote_import_replace']}</span>
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['emote_import_upload']}</strong>
</td>
<td class='field_field'>
<input class='textinput' type='file' size='30' name='FILE_UPLOAD'><br />
<span class='desctext'>{$this->lang->words['emote_import_browse']}</span>
</td>
</tr>
</table>
<div class='acp-actionbar'>
<input type='submit' value='{$this->lang->words['emote_import_button']}' class='button primary' accesskey='s'>
</div>
</div>
</form>
HTML;
return $IPBHTML;
}
/**
* Show the splash screen for the logs
*
* @param array Db records
* @param array File records
* @param string Width for table cells
* @param int Number of emoticons per row
* @return string HTML
*/
public function emoticonsDirectoryManagement( $db_rows, $file_rows )
{
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['emo_control']}</h2>
</div>
<div class='acp-box'>
<h3>{$this->lang->words['emote_assigned']}'{$this->request['id']}'</h3>
<form action='{$this->settings['base_url']}{$this->form_code}do=emo_doedit&id={$this->request['id']}' method='post'>
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->_admin_auth_key}' />
<table class='ipsTable' id='emoticons_table'>
HTML;
/* Loop through the database emoticons */
$count = 0;
$_public = PUBLIC_DIRECTORY;
foreach( $db_rows as $r )
{
$IPBHTML .= <<<HTML
<tr class='ipsControlRow isDraggable' id='emoticons_{$r['id']}'>
<td class='col_drag'><div class='draghandle'>&nbsp;</div></td>
<td width='60%'>
<input type='hidden' name='emo_id_{$r['id']}' value='{$r['id']}' />
<img src='../{$_public}/style_emoticons/{$this->request['id']}/{$r['image']}' />
&nbsp; &nbsp; <span class='ipsBadge badge_grey'>{$r['image']}</span>
</td>
<td width='30%' align='right'>
HTML;
if( $this->request['id'] == 'default' )
{
$IPBHTML .= <<<HTML
<input type='textinput' class='input_text' size='20' name='emo_type_{$r['id']}' value='{$r['typed']}' />
HTML;
}
else
{
$IPBHTML .= <<<HTML
<span class='button'>{$r['typed']}</span>
HTML;
}
$IPBHTML .= <<<HTML
</td>
<td class='col_buttons'>
<ul class='ipsControlStrip'>
<li class='i_delete'><a href='{$this->settings['base_url']}{$this->form_code}do=emo_remove&eid={$r['id']}&id={$this->request['id']}' title='{$this->lang->words['emote_delete_title']}'>{$this->lang->words['emote_delete_title']}</a></li>
</ul>
</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
<div class='acp-actionbar'>
<input type='submit' class='button primary' value='{$this->lang->words['emote_update_button']}' />
</div>
</form>
</div>
<script type='text/javascript'>
jQ("#emoticons_table").ipsSortable('table', {
url: "{$this->settings['base_url']}{$this->form_code_js}do=reorder&md5check={$this->registry->adminFunctions->getSecurityKey()}&id={$this->request['id']}".replace( /&amp;/g, '&' ),
serializeOptions: { key: 'emoticons[]' },
sendType: 'post'
} );
</script>
<br />
<div class='acp-box'>
<h3>{$this->lang->words['emote_unassigned']}'{$this->request['id']}'</h3>
<table class='ipsTable'>
HTML;
/* Display unassigned emoticons */
if( is_array( $file_rows ) && count( $file_rows ) )
{
foreach( $file_rows as $r )
{
$safeName = str_replace( '.', '---', $r['image'] );
$IPBHTML .= <<<HTML
<tr class='ipsControlRow'>
<td class='col_drag _amber'><div class='draghandle'>&nbsp;</div></td>
<td width='60%' class='_amber'>
<img src='../{$_public}/style_emoticons/{$this->request['id']}/{$r['image']}' />
&nbsp; &nbsp; <span class='ipsBadge badge_grey'>{$r['image']}</span>
</td>
<td width='30%' align='right' class='_amber'>
<input type='textinput' disabled="disabled" class='input_text' size='20' name='emo_type_{$safeName}' value='{$r['poss_name']}' />
</td>
<td class='col_buttons _amber'>
<ul class='ipsControlStrip'>
<li class='i_add'><a href='{$this->settings['base_url']}{$this->form_code}do=emo_doadd&id={$this->request['id']}&emo_image={$safeName}'>{$this->lang->words['emote_delete_title']}</a></li>
</ul>
</td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr class='ipsControlRow'>
<td class='no_messages'>{$this->lang->words['emote_unassigned_none']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
HTML;
return $IPBHTML;
}
/**
* Overview of emoticon packs
*
* @param array Records
* @return string HTML
*/
public function emoticonsOverview( $rows )
{
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<script type="text/javascript" src="{$this->settings['js_main_url']}acp.emoticons.js"></script>
<script type='text/javascript'>
ipb.templates['emo_manage'] = new Template( "<form action='{$this->settings['base_url']}{$this->form_code}' method='post'>" +
"<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->_admin_auth_key}' />" +
"<input type='hidden' name='do' value='#{form_do}' />" +
"<input type='hidden' name='id' value='#{form_id}' />" +
"<div class='acp-box'><h3>{$this->lang->words['emoticon_folder']}</h3><table class='ipsTable double_pad'><tr><td class='field_title'><strong class='title'>{$this->lang->words['emoticon_folder_name']}</strong></td><td class='field_field'><input type='text' size='30' class='input_text' id='name_#{form_id}' value='#{folder_name}' name='emoset'></td></tr></table><div class='acp-actionbar'><input type='submit' value='#{form_value}' class='realbutton' id='save_folder_#{id}' /></div></div>" +
"</form>" );
ipb.lang['emoticons'] = [];
ipb.lang['emoticons']['add'] = "{$this->lang->words['emote_addfolder']}";
ipb.lang['emoticons']['edit'] = "{$this->lang->words['emote_editfolder']}";
</script>
<div class='section_title'>
<h2>{$this->lang->words['emo_control']}</h2>
<ul class='context_menu'>
<li><a href='#' id='folder_edit_0'><img src='{$this->settings['skin_acp_url']}/images/icons/folder_add.png' alt='' /> {$this->lang->words['emote_createnew']}</a></li>
<li><a href='{$this->settings['base_url']}{$this->form_code}&amp;do=emo_packsplash'><img src='{$this->settings['skin_acp_url']}/images/icons/export.png' alt='' /> {$this->lang->words['emote_impexpo']}</a></li>
</ul>
<script type='text/javascript'>
$('folder_edit_0').observe('click', acp.emoticons.folder.bindAsEventListener( this, 0 ) );
</script>
</div>
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='uploadform' enctype='multipart/form-data' id='uploadform'>
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->_admin_auth_key}' />
<input type='hidden' name='do' value='emo_upload'>
<input type='hidden' name='MAX_FILE_SIZE' value='10000000000'>
<input type='hidden' name='dir_default' value='1'>
<div class='acp-box'>
<h3>{$this->lang->words['emote_current']}</h3>
<table class='ipsTable'>
<tr>
<th width='50%' align='center'>{$this->lang->words['emote_emofolder']}</th>
<th width='5%' align='center'>{$this->lang->words['emote_upload']}</th>
<th width='20%' align='center'>{$this->lang->words['emote_num_disk']}</th>
<th width='20%' align='center'>{$this->lang->words['emote_num_group']}</th>
<th width='5%' align='center'>{$this->lang->words['emote_options']}</th>
</tr>
HTML;
foreach( $rows as $data )
{
$IPBHTML .= <<<HTML
<tr class='ipsControlRow'>
<td valign='middle'>
<div style='width:auto;float:right;'><img src='{$this->settings['skin_acp_url']}/images/{$data['icon']}' title='{$data['title']}' alt='{$data['icon']}' /></div>
{$data['line_image']}<img src='{$this->settings['skin_acp_url']}/images/emoticon_folder.png' />&nbsp;
<a href='{$this->settings['base_url']}{$this->form_code}do=emo_manage&amp;id={$data['dir']}' title='{$this->lang->words['emote_manageset']}'><b>{$data['dir']}</b></a>
</td>
<td valign='middle'><center>{$data['checkbox']}</center></td>
<td valign='middle'><center>{$data['count']}</center></td>
<td valign='middle'><center>{$data['dir_count']}</td>
<td class='col_buttons'>
<ul class='ipsControlStrip'>
<li class='i_edit'>
<a href='{$this->settings['base_url']}{$this->form_code_js}do=emo_manage&amp;id={$data['dir']}' title='{$data['link_text']}'>{$data['link_text']}</a>
</li>
HTML;
if( $data['dir'] != 'default' OR IN_DEV == 1 )
{
$IPBHTML .= <<<HTML
<li class='i_new_folder'>
<a href='#' id="folder_edit_{$data['dir']}" title='{$this->lang->words['emote_editfolder']}'>{$this->lang->words['emote_editfolder']}</a>
<script type='text/javascript'>
$("folder_edit_{$data['dir']}").observe('click', acp.emoticons.folder.bindAsEventListener( this, "{$data['dir']}" ) );
</script>
</li>
<li class='i_delete'>
<a href='#' onclick='return acp.confirmDelete("{$this->settings['base_url']}{$this->form_code_js}do=emo_setremove&amp;id={$data['dir']}");' title='{$this->lang->words['emote_deletefolder']}'>{$this->lang->words['emote_deletefolder']}</a>
</li>
HTML;
}
else
{
$IPBHTML .= <<<HTML
<li class='i_delete disabled'><a title='{$this->lang->words['emote_dontdeletedef']}'><em>{$this->lang->words['emote_dontdeletedef']}</em></a></li>
HTML;
}
$IPBHTML .= <<<HTML
</ul>
</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div><br />
HTML;
if( SAFE_MODE_ON )
{
$IPBHTML .= <<<HTML
</form>
HTML;
}
else
{
$IPBHTML .= <<<HTML
<div class='acp-box'>
<h3>{$this->lang->words['emote_uploademos']}</h3>
<table class='ipsTable'>
<tr>
<td class='field_title'><input type='file' value='' name='upload_1' size='30' /></td>
<td class='field_field'><input type='file' name='upload_2' size='30' /></td>
</tr>
<tr>
<td class='field_title'><input type='file' name='upload_3' size='30' /></td>
<td class='field_field'><input type='file' name='upload_4' size='30' /></td>
</tr>
</table>
<div class='acp-actionbar'>
<input type='submit' value='{$this->lang->words['emote_uploadtofolders']}' class='button primary' />
</div>
</div>
</form>
HTML;
}
return $IPBHTML;
}
}
@@ -1,176 +1,176 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.2.3
* Error log skin file
* Last Updated: $Date: 2011-07-18 04:43:37 -0400 (Mon, 18 Jul 2011) $
* </pre>
*
* @author $Author: mark $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license This is NULLED!
* @package IP.Board
* @subpackage Core
* @link http://hatynka.in
* @since Friday 19th May 2006 17:33
* @version $Revision: 9261 $
*/
class cp_skin_errorlogs
{
/**
* 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;
}
/**
* Error log wrapper
*
* @param array Rows
* @param string Page links
* @return string HTML
*/
public function errorlogsWrapper( $rows, $links ) {
$form_array = array(
0 => array( 'log_error' , $this->lang->words['error_log_error']),
2 => array( 'log_error_code' , $this->lang->words['error_log_code'] ),
3 => array( 'log_request_uri', $this->lang->words['error_log_uri'] ),
4 => array( 'members_display_name', $this->lang->words['error_log_member'] ),
);
$type_array = array(
0 => array( 'exact' , $this->lang->words['erlog_exact'] ),
1 => array( 'loose' , $this->lang->words['erlog_loose'] ),
);
$form = array();
$form['type'] = $this->registry->output->formDropdown( "type" , $form_array, $this->request['type'] );
$form['match'] = $this->registry->output->formDropdown( "match", $type_array, $this->request['match'] );
$form['string'] = $this->registry->output->formInput( "string", $this->request['string'] );
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<script type='text/javascript' src='{$this->settings['js_main_url']}acp.forms.js'></script>
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='theAdminForm' id='theAdminForm'>
<input type='hidden' name='do' value='remove' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['error_log_thelogs']}</h3>
<table class='ipsTable'>
<tr>
<th width='10%'>{$this->lang->words['error_log_code']}</th>
<th width='30%'>{$this->lang->words['error_log_error']}</th>
<th width='15%'>{$this->lang->words['error_log_ip']}</th>
<th width='22%'>{$this->lang->words['error_log_uri']}</th>
<th width='10%'>{$this->lang->words['error_log_member']}</th>
<th width='10%'>{$this->lang->words['error_log_date']}</th>
<th width='3%'><input type='checkbox' title="{$this->lang->words['my_checkall']}" id='checkAll' /></th>
</tr>
HTML;
if( count( $rows ) AND is_array( $rows ) )
{
foreach( $rows as $row )
{
$row['log_request_uri'] = htmlentities( $row['log_request_uri'], ENT_QUOTES );
$IPBHTML .= <<<HTML
<tr>
<td>{$row['log_error_code']}</td>
<td>{$row['log_error']}</td>
<td>{$row['log_ip_address']}</td>
<td><textarea style='width: 100%'>{$row['log_request_uri']}</textarea></td>
<td>{$row['members_display_name']}</td>
<td>{$row['_date']}</td>
<td><input type='checkbox' name='id_{$row['log_id']}' value='1' class='checkAll' /></td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='7' align='center'>{$this->lang->words['error_log_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
<div class='acp-actionbar'>
<div class='right'>
<input type="checkbox" id="checkbox" name="type" value="all" />&nbsp;{$this->lang->words['erlog_removeall']}&nbsp;<input type="submit" value="{$this->lang->words['erlog_removechecked']}" class="button primary" />
</div>
<div class='left'>{$links}</div>
<br class='clear' />
</div>
</div>
</form>
<br />
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='theAdminForm' id='theAdminForm'>
<input type='hidden' name='do' value='list' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class='acp-box'>
<h3>{$this->lang->words['error_log_search']}</h3>
<table class='ipsTable double_pad'>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['erlog_searchwhere']}</td>
<td class='field_field'>{$form['type']} {$form['match']} {$form['string']}</td>
</tr>
</table>
<div class='acp-actionbar'>
<input value="{$this->lang->words['erlog_searchbutton']}" class="button primary" accesskey="s" type="submit" />
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.3.4
* Error log skin file
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @subpackage Core
* @link http://www.invisionpower.com
* @since Friday 19th May 2006 17:33
* @version $Revision: 10914 $
*/
class cp_skin_errorlogs
{
/**
* 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;
}
/**
* Error log wrapper
*
* @param array Rows
* @param string Page links
* @return string HTML
*/
public function errorlogsWrapper( $rows, $links ) {
$form_array = array(
0 => array( 'log_error' , $this->lang->words['error_log_error']),
2 => array( 'log_error_code' , $this->lang->words['error_log_code'] ),
3 => array( 'log_request_uri', $this->lang->words['error_log_uri'] ),
4 => array( 'members_display_name', $this->lang->words['error_log_member'] ),
);
$type_array = array(
0 => array( 'exact' , $this->lang->words['erlog_exact'] ),
1 => array( 'loose' , $this->lang->words['erlog_loose'] ),
);
$form = array();
$form['type'] = $this->registry->output->formDropdown( "type" , $form_array, $this->request['type'] );
$form['match'] = $this->registry->output->formDropdown( "match", $type_array, $this->request['match'] );
$form['string'] = $this->registry->output->formInput( "string", $this->request['string'] );
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<script type='text/javascript' src='{$this->settings['js_main_url']}acp.forms.js'></script>
<form action='{$this->settings['base_url']}{$this->form_code}' method='post'>
<input type='hidden' name='do' value='remove' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['error_log_thelogs']}</h3>
<table class='ipsTable'>
<tr>
<th width='10%'>{$this->lang->words['error_log_code']}</th>
<th width='30%'>{$this->lang->words['error_log_error']}</th>
<th width='15%'>{$this->lang->words['error_log_ip']}</th>
<th width='22%'>{$this->lang->words['error_log_uri']}</th>
<th width='10%'>{$this->lang->words['error_log_member']}</th>
<th width='10%'>{$this->lang->words['error_log_date']}</th>
<th width='3%'><input type='checkbox' title="{$this->lang->words['my_checkall']}" id='checkAll' /></th>
</tr>
HTML;
if( count( $rows ) AND is_array( $rows ) )
{
foreach( $rows as $row )
{
$row['log_request_uri'] = htmlentities( $row['log_request_uri'], ENT_QUOTES );
$IPBHTML .= <<<HTML
<tr>
<td>{$row['log_error_code']}</td>
<td>{$row['log_error']}</td>
<td>{$row['log_ip_address']}</td>
<td><textarea style='width: 100%'>{$row['log_request_uri']}</textarea></td>
<td>{$row['members_display_name']}</td>
<td>{$row['_date']}</td>
<td><input type='checkbox' name='id_{$row['log_id']}' value='1' class='checkAll' /></td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='7' align='center'>{$this->lang->words['error_log_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
<div class='acp-actionbar'>
<div class='right'>
<input type="checkbox" id="checkbox" name="type" value="all" />&nbsp;{$this->lang->words['erlog_removeall']}&nbsp;<input type="submit" value="{$this->lang->words['erlog_removechecked']}" class="button primary" />
</div>
<div class='left'>{$links}</div>
<br class='clear' />
</div>
</div>
</form>
<br />
<form action='{$this->settings['base_url']}{$this->form_code}' method='post'>
<input type='hidden' name='do' value='list' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class='acp-box'>
<h3>{$this->lang->words['error_log_search']}</h3>
<table class='ipsTable double_pad'>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['erlog_searchwhere']}</td>
<td class='field_field'>{$form['type']} {$form['match']} {$form['string']}</td>
</tr>
</table>
<div class='acp-actionbar'>
<input value="{$this->lang->words['erlog_searchbutton']}" class="button primary" accesskey="s" type="submit" />
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
}
@@ -1,142 +1,142 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.2.3
* Group plugin skin functions
* Last Updated: $LastChangedDate: 2011-09-01 08:16:37 -0400 (Thu, 01 Sep 2011) $
* </pre>
*
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license This is NULLED!
* @package IP.Board
* @subpackage Forums
* @link http://hatynka.in
* @since 14th May 2003
* @version $Rev: 9439 $
*/
class cp_skin_group_core
{
/**
* 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
*
* @param array Group data
* @param string Tab ID
* @param array Plugins
* @param array Plugins we can view
* @param array Plugins we can send
* @return string HTML
*/
public function acp_group_form_main( $group, $tabId, $plugins, $canView, $canSend ) {
$IPBHTML = "";
$IPBHTML .= <<<EOF
<div id='tab_GROUPS_{$tabId}_content'>
<div>
<table class='ipsTable double_pad'>
EOF;
foreach( $plugins as $id => $data )
{
$formSend = $this->registry->output->formYesNo( "rc_send_" . $id, in_array( $id, $canSend ) );
$formView = $this->registry->output->formYesNo( "rc_view_" . $id, in_array( $id, $canView ) );
$IPBHTML .= <<<EOF
<tr>
<th colspan='2' class='head'><strong>{$this->lang->words['gf_rc_perms_for']} {$data['class_title']}</strong></th>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['gf_can_send_report']}</strong>
</td>
<td class='field_field'>
{$formSend}
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['gf_can_view_report']}</strong>
</td>
<td class='field_field'>
{$formView}
</td>
</tr>
EOF;
}
$IPBHTML .= <<<EOF
</table>
</div>
</div>
EOF;
return $IPBHTML;
}
/**
* Display forum group form tabs
*
* @param array Group data
* @param string Tab id
* @return string HTML
*/
public function acp_group_form_tabs( $group, $tabId ) {
$IPBHTML = "";
$IPBHTML .= <<<EOF
<li id='tab_GROUPS_{$tabId}'>{$this->lang->words['tab_groupform_rc']}</li>
EOF;
return $IPBHTML;
}
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.3.4
* Group plugin skin functions
* Last Updated: $LastChangedDate: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @subpackage Forums
* @link http://www.invisionpower.com
* @since 14th May 2003
* @version $Rev: 10914 $
*/
class cp_skin_group_core
{
/**
* 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
*
* @param array Group data
* @param string Tab ID
* @param array Plugins
* @param array Plugins we can view
* @param array Plugins we can send
* @return string HTML
*/
public function acp_group_form_main( $group, $tabId, $plugins, $canView, $canSend ) {
$IPBHTML = "";
$IPBHTML .= <<<EOF
<div id='tab_GROUPS_{$tabId}_content'>
<div>
<table class='ipsTable double_pad'>
EOF;
foreach( $plugins as $id => $data )
{
$formSend = $this->registry->output->formYesNo( "rc_send_" . $id, in_array( $id, $canSend ) );
$formView = $this->registry->output->formYesNo( "rc_view_" . $id, in_array( $id, $canView ) );
$IPBHTML .= <<<EOF
<tr>
<th colspan='2' class='head'><strong>{$this->lang->words['gf_rc_perms_for']} {$data['class_title']}</strong></th>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['gf_can_send_report']}</strong>
</td>
<td class='field_field'>
{$formSend}
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['gf_can_view_report']}</strong>
</td>
<td class='field_field'>
{$formView}
</td>
</tr>
EOF;
}
$IPBHTML .= <<<EOF
</table>
</div>
</div>
EOF;
return $IPBHTML;
}
/**
* Display forum group form tabs
*
* @param array Group data
* @param string Tab id
* @return string HTML
*/
public function acp_group_form_tabs( $group, $tabId ) {
$IPBHTML = "";
$IPBHTML .= <<<EOF
<li id='tab_GROUPS_{$tabId}'>{$this->lang->words['tab_groupform_rc']}</li>
EOF;
return $IPBHTML;
}
}
@@ -1,245 +1,245 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.2.3
* Manage help files skin file
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
* </pre>
*
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license This is NULLED!
* @package IP.Board
* @subpackage Core
* @link http://hatynka.in
* @since Friday 19th May 2006 17:33
* @version $Revision: 8644 $
*/
class cp_skin_help_files
{
/**
* 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 a help file
*
* @param string Action
* @param int ID
* @param array Form elements
* @param string Button text
* @return string HTML
*/
public function helpFileForm( $do, $id, $form, $button )
{
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['h_title']}</h2>
</div>
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='theAdminForm' id='postingform'>
<input type='hidden' name='do' value='{$do}' />
<input type='hidden' name='id' value='{$id}' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class='acp-box'>
<h3>{$button}</h3>
<table class='ipsTable double_pad'>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['h_filetitle']}</strong>
</td>
<td class='field_field'>
{$form['title']}
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['h_filedesc']}</strong>
</td>
<td class='field_field'>
{$form['description']}
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['h_fileapp']}</strong>
</td>
<td class='field_field'>
{$form['appDir']}
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['h_filetext']}</strong>
</td>
<td class='field_field'>
<textarea id='editor_main' name='editor_main' style='width: 100%; height: 300px;'>{$form['text']}</textarea>
</td>
</tr>
</table>
<div class='acp-actionbar'>
<input type='submit' value='{$button}' class='button primary' accesskey='s'>
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* List the current help files
*
* @param array Rows
* @return string HTML
*/
public function helpFilesList( $rows )
{
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['h_title']}</h2>
<div class='ipsActionBar clearfix'>
<ul>
HTML;
if ( $this->registry->class_permissions->checkPermission( 'help_manage' ) )
{
$IPBHTML .= <<<HTML
<li class='ipsActionButton'>
<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=new' title='{$this->lang->words['h_addnew']}'>
<img src='{$this->settings['skin_acp_url']}/images/icons/help_add.png' alt='' />
{$this->lang->words['h_addnew']}
</a>
</li>
HTML;
}
$IPBHTML .= <<<HTML
<li class='ipsActionButton inDev'>
<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=exportXml' title='{$this->lang->words['h_export']}'>
<img src='{$this->settings['skin_acp_url']}/images/icons/export.png' alt='' />
{$this->lang->words['h_export']}
</a>
</li>
<li class='ipsActionButton inDev'>
<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=importXml' title='{$this->lang->words['h_import']}'>
<img src='{$this->settings['skin_acp_url']}/images/icons/import.png' alt='' />
{$this->lang->words['h_import']}
</a>
</li>
</ul>
</div>
</div>
HTML;
$IPBHTML .= <<<HTML
<div class='acp-box'>
<h3>{$this->lang->words['h_current']}</h3>
<table class='ipsTable' id='helpfiles_list'>
HTML;
foreach( $rows as $r )
{
$IPBHTML .= <<<HTML
<tr id='faq_{$r['id']}' class='ipsControlRow isDraggable'>
<td class='col_drag'>
<span class='draghandle'>&nbsp;</span>
</td>
<td>
<strong class='larger_text'><a href='{$this->settings['base_url']}{$this->form_code}&amp;do=edit&amp;id={$r['id']}'>{$r['title']}</a></strong><br />
<span class='desctext'>{$r['description']}</span>
</td>
<td class='col_buttons'>
<ul class='ipsControlStrip'>
HTML;
if ( $this->registry->class_permissions->checkPermission( 'help_manage' ) )
{
$IPBHTML .= <<<HTML
<li class='i_edit'>
<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=edit&amp;id={$r['id']}' title='{$this->lang->words['h_edit']}'>{$this->lang->words['h_edit']}</a>
</li>
HTML;
}
if ( $this->registry->class_permissions->checkPermission( 'help_remove' ) )
{
$IPBHTML .= <<<HTML
<li class='i_delete'>
<a href='#' onclick='return acp.confirmDelete("{$this->settings['base_url']}{$this->form_code}&amp;do=remove&amp;id={$r['id']}");' title='{$this->lang->words['h_remove']}'>{$this->lang->words['h_remove']}</a>
</li>
HTML;
}
$IPBHTML .= <<<HTML
</ul>
</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
<br />
</form>
<script type='text/javascript'>
jQ("#helpfiles_list").ipsSortable( 'table', {
url: "{$this->settings['base_url']}&{$this->form_code_js}&do=doreorder&md5check={$this->registry->adminFunctions->getSecurityKey()}".replace( /&amp;/g, '&' )
});
</script>
HTML;
//--endhtml--//
return $IPBHTML;
}
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.3.4
* Manage help files skin file
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @subpackage Core
* @link http://www.invisionpower.com
* @since Friday 19th May 2006 17:33
* @version $Revision: 10914 $
*/
class cp_skin_help_files
{
/**
* 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 a help file
*
* @param string Action
* @param int ID
* @param array Form elements
* @param string Button text
* @return string HTML
*/
public function helpFileForm( $do, $id, $form, $button )
{
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['h_title']}</h2>
</div>
<form action='{$this->settings['base_url']}{$this->form_code}' method='post'>
<input type='hidden' name='do' value='{$do}' />
<input type='hidden' name='id' value='{$id}' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class='acp-box'>
<h3>{$button}</h3>
<table class='ipsTable double_pad'>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['h_filetitle']}</strong>
</td>
<td class='field_field'>
{$form['title']}
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['h_filedesc']}</strong>
</td>
<td class='field_field'>
{$form['description']}
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['h_fileapp']}</strong>
</td>
<td class='field_field'>
{$form['appDir']}
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['h_filetext']}</strong>
</td>
<td class='field_field'>
<textarea id='editor_main' name='editor_main' style='width: 100%; height: 300px;'>{$form['text']}</textarea>
</td>
</tr>
</table>
<div class='acp-actionbar'>
<input type='submit' value='{$button}' class='button primary' accesskey='s'>
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* List the current help files
*
* @param array Rows
* @return string HTML
*/
public function helpFilesList( $rows )
{
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['h_title']}</h2>
<div class='ipsActionBar clearfix'>
<ul>
HTML;
if ( $this->registry->class_permissions->checkPermission( 'help_manage' ) )
{
$IPBHTML .= <<<HTML
<li class='ipsActionButton'>
<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=new' title='{$this->lang->words['h_addnew']}'>
<img src='{$this->settings['skin_acp_url']}/images/icons/help_add.png' alt='' />
{$this->lang->words['h_addnew']}
</a>
</li>
HTML;
}
$IPBHTML .= <<<HTML
<li class='ipsActionButton inDev'>
<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=exportXml' title='{$this->lang->words['h_export']}'>
<img src='{$this->settings['skin_acp_url']}/images/icons/export.png' alt='' />
{$this->lang->words['h_export']}
</a>
</li>
<li class='ipsActionButton inDev'>
<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=importXml' title='{$this->lang->words['h_import']}'>
<img src='{$this->settings['skin_acp_url']}/images/icons/import.png' alt='' />
{$this->lang->words['h_import']}
</a>
</li>
</ul>
</div>
</div>
HTML;
$IPBHTML .= <<<HTML
<div class='acp-box'>
<h3>{$this->lang->words['h_current']}</h3>
<table class='ipsTable' id='helpfiles_list'>
HTML;
foreach( $rows as $r )
{
$IPBHTML .= <<<HTML
<tr id='faq_{$r['id']}' class='ipsControlRow isDraggable'>
<td class='col_drag'>
<span class='draghandle'>&nbsp;</span>
</td>
<td>
<strong class='larger_text'><a href='{$this->settings['base_url']}{$this->form_code}&amp;do=edit&amp;id={$r['id']}'>{$r['title']}</a></strong><br />
<span class='desctext'>{$r['description']}</span>
</td>
<td class='col_buttons'>
<ul class='ipsControlStrip'>
HTML;
if ( $this->registry->class_permissions->checkPermission( 'help_manage' ) )
{
$IPBHTML .= <<<HTML
<li class='i_edit'>
<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=edit&amp;id={$r['id']}' title='{$this->lang->words['h_edit']}'>{$this->lang->words['h_edit']}</a>
</li>
HTML;
}
if ( $this->registry->class_permissions->checkPermission( 'help_remove' ) )
{
$IPBHTML .= <<<HTML
<li class='i_delete'>
<a href='#' onclick='return acp.confirmDelete("{$this->settings['base_url']}{$this->form_code}&amp;do=remove&amp;id={$r['id']}");' title='{$this->lang->words['h_remove']}'>{$this->lang->words['h_remove']}</a>
</li>
HTML;
}
$IPBHTML .= <<<HTML
</ul>
</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
<br />
</form>
<script type='text/javascript'>
jQ("#helpfiles_list").ipsSortable( 'table', {
url: "{$this->settings['base_url']}&{$this->form_code_js}&do=doreorder&md5check={$this->registry->adminFunctions->getSecurityKey()}".replace( /&amp;/g, '&' )
});
</script>
HTML;
//--endhtml--//
return $IPBHTML;
}
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,185 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.3.4
* Look and feel skin file
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @subpackage Core
* @link http://www.invisionpower.com
* @since Friday 19th May 2006 17:33
* @version $Revision: 10914 $
*/
class cp_skin_mobileapp
{
/**
* 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;
}
/**
* Main display form to upload new images, etc
*
* @param array Current Images
* @param array Form data
* @param array Warnings
* @return string HTML
*/
public function overview( $currentImages, $defaultImages, $imagePath='', $imgErrors, $canImport ) {
$IPBHTML = "";
//--starthtml--//
$information = sprintf( $this->lang->words['mi_information'], $imagePath );
$IPBHTML .= <<<EOF
<script type="text/javascript" src="{$this->settings['js_app_url']}acp.mobileimages.js"></script>
<script type='text/javascript'>
ipb.templates['import_xml'] = new Template("<div class='acp-box'><h3 class='ipsBlock_title'>{$this->lang->words['mi_import_title']}</h3><form action='{$this->settings['base_url']}{$this->form_code}do=importXml' method='post' enctype='multipart/form-data'><table class='ipsTable double_pad'><tr><td class='field_title'><strong class='title'>{$this->lang->words['mi_select_xml']}</strong></td><td class='field_field'><input type='file' name='FILE_UPLOAD' /></td></tr></table><div class='acp-actionbar'><input type='submit' value='{$this->lang->words['mi_upload']}' class='button primary' /></div></form></div>");
</script>
<style type="text/css">
.ios_image { max-height: 40px; width auto; }
</style>
<div class='section_title'>
<h2>{$this->lang->words['mi_title']}</h2>
<div class='section_info'>
{$information}
</div>
<div class='ipsActionBar clearfix'>
<ul>
<li class='ipsActionButton'>
<a href='{$this->settings['base_url']}{$this->form_code}do=refresh'><img src='{$this->settings['skin_acp_url']}/images/icons/arrow_refresh.png' alt='' /> {$this->lang->words['mi_recache']}</a>
</li>
EOF;
if ( $canImport )
{
$IPBHTML .= <<<EOF
<li class='ipsActionButton' id='importXml'>
<a href='javascript:void(0);'><img src='{$this->settings['skin_acp_url']}/images/icons/add.png' alt='' /> {$this->lang->words['mi_import_title']}</a>
</li>
EOF;
}
else
{
$IPBHTML .= <<<EOF
<li class='ipsActionButton'>
<a href='javascript:void(0);'>{$this->lang->words['mi_cant_import']}</a>
</li>
EOF;
}
$IPBHTML .= <<<EOF
<li class='ipsActionButton right'>
<a href='{$this->settings['base_url']}{$this->form_code}do=exportXml'><img src='{$this->settings['skin_acp_url']}/images/icons/cog.png' /> {$this->lang->words['mi_exportxml']}</a>
</li>
</ul>
</div>
</div>
<div class='acp-box'>
<h3>{$this->lang->words['mi_current_title']}</h3>
<table class="ipsTable">
<tr>
<th width='1%'>&nbsp;</td>
<th width='35%'>{$this->lang->words['mi_tt_filename']}</th>
<th width='40%'>{$this->lang->words['mi_tt_modified']}</th>
<th width='10%'>{$this->lang->words['mi_tt_size']}</th>
</tr>
EOF;
foreach( $currentImages as $image )
{
$modified = $this->registry->class_localization->getDate( $image['mtime'], 'long' );
$size = IPSLib::sizeFormat( $image['size'] );
$errors = array();
$errorBox = '';
if ( $imgErrors['writeable'] !== false && in_array( $image['filename'], $imgErrors['writeable'] ) )
{
$errors[] = $this->lang->words['mi_img_not_writable'];
}
if ( $imgErrors['dimensions'] !== false && in_array( $image['filename'], $imgErrors['dimensions'] ) )
{
foreach( $defaultImages as $def )
{
if ( $image['filename'] == $def['filename'] )
{
$rDims = $def['dimensions'][0] . ' x ' . $def['dimensions'][1];
break;
}
}
$errors[] = sprintf( $this->lang->words['mi_img_not_dims'], $rDims );
}
if ( count( $errors ) )
{
$errorBox = "<div class='warning'>" . implode( "<br />\n", $errors ) . "</div>";
}
$IPBHTML .= <<<EOF
<tr class='ipsControlRow'>
<td><img src="{$image['imgsrc']}" class='ios_image' /></td>
<td>{$image['filename']}<p class='desctext'>{$image['dimensions'][0]}px x {$image['dimensions'][1]}px</p>{$errorBox}</td>
<td>{$modified}</td>
<td>{$size}</td>
</tr>
EOF;
}
$IPBHTML .= <<<EOF
</table>
</div>
EOF;
//--endhtml--//
return $IPBHTML;
}
}
@@ -1,136 +1,136 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.2.3
* Error log skin file
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
* </pre>
*
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license This is NULLED!
* @package IP.Board
* @subpackage Core
* @link http://hatynka.in
* @since Friday 19th May 2006 17:33
* @version $Revision: 8644 $
*/
class cp_skin_mobilelogs
{
/**
* 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;
}
/**
* Mobile log wrapper
*
* @param array Rows
* @param string Page links
* @return string HTML
*/
public function mobileLogsWrapper( $rows, $links ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<script type='text/javascript' src='{$this->settings['js_main_url']}acp.forms.js'></script>
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='theAdminForm' id='theAdminForm'>
<input type='hidden' name='do' value='remove' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['mlog_mobilelogs']}</h3>
<table class='ipsTable'>
<tr>
<th width='5%'>{$this->lang->words['mlog_list_id']}</th>
<th width='20%'>{$this->lang->words['mlog_list_date']}</th>
<th width='35%'>{$this->lang->words['mlog_list_notification']}</th>
<th width='25%'>{$this->lang->words['mlog_list_member']}</th>
<th width='10%'>{$this->lang->words['mlog_list_sent']}</th>
<th width='3%'><input type='checkbox' title="{$this->lang->words['my_checkall']}" id='checkAll' /></th>
</tr>
HTML;
if( count( $rows ) AND is_array( $rows ) )
{
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td>{$row['id']}</td>
<td>{$row['_time']}</td>
<td>{$row['notify_title']}</td>
<td>{$row['members_display_name']}</td>
<td><img src='{$this->settings['skin_acp_url']}/images/{$row['_sent']}' alt='-' /></td>
<td><input type='checkbox' name='id_{$row['id']}' value='1' class='checkAll' /></td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='7' align='center'><strong>{$this->lang->words['mobilog_noresults']}</strong></td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
<div class='acp-actionbar'>
<div class='right'>
<input type="checkbox" id="checkbox" name="type" value="all" />&nbsp;{$this->lang->words['erlog_removeall']}&nbsp;<input type="submit" value="{$this->lang->words['erlog_removechecked']}" class="button primary" />
</div>
<div class='left'>{$links}</div>
<br class='clear' />
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.3.4
* Error log skin file
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @subpackage Core
* @link http://www.invisionpower.com
* @since Friday 19th May 2006 17:33
* @version $Revision: 10914 $
*/
class cp_skin_mobilelogs
{
/**
* 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;
}
/**
* Mobile log wrapper
*
* @param array Rows
* @param string Page links
* @return string HTML
*/
public function mobileLogsWrapper( $rows, $links ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<script type='text/javascript' src='{$this->settings['js_main_url']}acp.forms.js'></script>
<form action='{$this->settings['base_url']}{$this->form_code}' method='post'>
<input type='hidden' name='do' value='remove' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['mlog_mobilelogs']}</h3>
<table class='ipsTable'>
<tr>
<th width='5%'>{$this->lang->words['mlog_list_id']}</th>
<th width='20%'>{$this->lang->words['mlog_list_date']}</th>
<th width='35%'>{$this->lang->words['mlog_list_notification']}</th>
<th width='25%'>{$this->lang->words['mlog_list_member']}</th>
<th width='10%'>{$this->lang->words['mlog_list_sent']}</th>
<th width='3%'><input type='checkbox' title="{$this->lang->words['my_checkall']}" id='checkAll' /></th>
</tr>
HTML;
if( count( $rows ) AND is_array( $rows ) )
{
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td>{$row['id']}</td>
<td>{$row['_time']}</td>
<td>{$row['notify_title']}</td>
<td>{$row['members_display_name']}</td>
<td><img src='{$this->settings['skin_acp_url']}/images/{$row['_sent']}' alt='-' /></td>
<td><input type='checkbox' name='id_{$row['id']}' value='1' class='checkAll' /></td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='7' align='center'><strong>{$this->lang->words['mobilog_noresults']}</strong></td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
<div class='acp-actionbar'>
<div class='right'>
<input type="checkbox" id="checkbox" name="type" value="all" />&nbsp;{$this->lang->words['erlog_removeall']}&nbsp;<input type="submit" value="{$this->lang->words['erlog_removechecked']}" class="button primary" />
</div>
<div class='left'>{$links}</div>
<br class='clear' />
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
}
@@ -1,279 +1,279 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.2.3
* Moderator log skin file
* Last Updated: $Date: 2011-09-16 17:49:58 -0400 (Fri, 16 Sep 2011) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license This is NULLED!
* @package IP.Board
* @subpackage Core
* @link http://hatynka.in
* @since Friday 19th May 2006 17:33
* @version $Revision: 9505 $
*/
class cp_skin_modlogs
{
/**
* 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;
}
/**
* Moderator logs wrapper
*
* @param array Rows
* @param array Moderators
* @return string HTML
*/
public function modlogsWrapper( $rows, $admins ) {
$form_array = array(
0 => array( 'topic_title' , $this->lang->words['mlog_topictitle'] ),
1 => array( 'ip_address' , $this->lang->words['mlog_ip'] ),
2 => array( 'member_name' , $this->lang->words['mlog_name'] ),
3 => array( 'topic_id' , $this->lang->words['mlog_tid'] ),
4 => array( 'forum_id' , $this->lang->words['mlog_fid'] ),
5 => array( 'action' , $this->lang->words['mlog_action'] )
);
$form = array();
$form['search_for'] = $this->registry->output->formInput( "search_string" );
$form['search_in'] = $this->registry->output->formDropdown( "search_type", $form_array );
$IPBHTML = "";
//--starthtml--//
$this->registry->output->setMessage( $this->lang->words['stop_being_alarmed'], true );
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['mlog_title']}</h2>
</div>
<div class="acp-box">
<h3>{$this->lang->words['mlog_last5']}</h3>
<table class="ipsTable">
<tr>
<th width='15%'>{$this->lang->words['mlog_member']}</th>
<th width='15%'>{$this->lang->words['mlog_action']}</th>
<th width='15%'>{$this->lang->words['mlog_forum']}</th>
<th width='25%'>{$this->lang->words['mlog_topictitle']}</th>
<th width='20%'>{$this->lang->words['mlog_date']}</th>
<th width='10%'>{$this->lang->words['mlog_ip']}</th>
</tr>
HTML;
if( count($rows) AND is_array($rows) )
{
foreach( $rows as $row )
{
$row['members_display_name'] = $row['members_display_name'] ? $row['members_display_name'] : $this->lang->words['noname_availablm'];
$IPBHTML .= <<<HTML
<tr>
<td><span class='larger_text'>{$row['members_display_name']}</span></td>
<td><span style='font-weight:bold;color:red'>{$row['action']}</span></td>
<td><b>{$row['name']}</b></td>
<td>{$row['topic_title']}{$row['topic']}</td>
<td>{$row['_time']}</td>
<td>{$row['ip_address']}</td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='6' align='center'>{$this->lang->words['mlog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
<br />
<div class="acp-box">
<h3>{$this->lang->words['mlog_thelogs']}</h3>
<table class="ipsTable">
<tr>
<th width='30%'>{$this->lang->words['mlog_member']}</th>
<th width='20%'>{$this->lang->words['mlog_action']}</th>
<th width='20%'>{$this->lang->words['mlog_viewall']}</th>
<th width='30%'>{$this->lang->words['mlog_removeall']}</th>
</tr>
HTML;
if( count($admins) AND is_array($admins) )
{
foreach( $admins as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td><span class='larger_text'>{$row['members_display_name']}</span></td>
<td>{$row['act_count']}</td>
<td><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=view&amp;mid={$row['member_id']}'>{$this->lang->words['mlog_view']}</a></td>
<td><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=remove&amp;mid={$row['member_id']}'>{$this->lang->words['mlog_remove']}</a></td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='4' align='center'>{$this->lang->words['mlog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
<br />
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='theAdminForm' id='theAdminForm'>
<input type='hidden' name='do' value='view' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['mlog_search']}</h3>
<table class="ipsTable double_pad">
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['mlog_searchfor']}</strong></td>
<td class='field_field'>{$form['search_for']}</td>
</tr>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['mlog_searchin']}</strong></td>
<td class='field_field'>{$form['search_in']}</td>
</tr>
</table>
<div class="acp-actionbar">
<input value="{$this->lang->words['mlog_searchbutton']}" class="button primary" accesskey="s" type="submit" />
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* View a single moderator log entry
*
* @param array Records
* @param string Page links
* @return string HTML
*/
public function modlogsView( $rows, $pages ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['mlog_title']}</h2>
</div>
<div class="acp-box">
<h3>{$this->lang->words['mlog_thelogs']}</h3>
<table class="ipsTable">
<tr>
<th width='15%'>{$this->lang->words['mlog_member']}</th>
<th width='15%'>{$this->lang->words['mlog_action']}</th>
<th width='15%'>{$this->lang->words['mlog_forum']}</th>
<th width='25%'>{$this->lang->words['mlog_topictitle']}</th>
<th width='20%'>{$this->lang->words['mlog_date']}</th>
<th width='10%'>{$this->lang->words['mlog_ip']}</th>
</tr>
HTML;
if( count($rows) AND is_array($rows) )
{
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td><span class='larger_text'>{$row['members_display_name']}</span></td>
<td><span style='font-weight:bold;color:red'>{$row['action']}</span></td>
<td><b>{$row['name']}</b></td>
<td>{$row['topic_title']}{$row['topic']}</td>
<td>{$row['_time']}</td>
<td>{$row['ip_address']}</td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='6' align='center'>{$this->lang->words['mlog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
<div class='acp-actionbar'>
<div class="left">{$pages}</div>
<br class='clear' />
</div>
</div>
<br />
HTML;
//--endhtml--//
return $IPBHTML;
}
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.3.4
* Moderator log skin file
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @subpackage Core
* @link http://www.invisionpower.com
* @since Friday 19th May 2006 17:33
* @version $Revision: 10914 $
*/
class cp_skin_modlogs
{
/**
* 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;
}
/**
* Moderator logs wrapper
*
* @param array Rows
* @param array Moderators
* @return string HTML
*/
public function modlogsWrapper( $rows, $admins ) {
$form_array = array(
0 => array( 'topic_title' , $this->lang->words['mlog_topictitle'] ),
1 => array( 'ip_address' , $this->lang->words['mlog_ip'] ),
2 => array( 'member_name' , $this->lang->words['mlog_name'] ),
3 => array( 'topic_id' , $this->lang->words['mlog_tid'] ),
4 => array( 'forum_id' , $this->lang->words['mlog_fid'] ),
5 => array( 'action' , $this->lang->words['mlog_action'] )
);
$form = array();
$form['search_for'] = $this->registry->output->formInput( "search_string" );
$form['search_in'] = $this->registry->output->formDropdown( "search_type", $form_array );
$IPBHTML = "";
//--starthtml--//
$this->registry->output->setMessage( $this->lang->words['stop_being_alarmed'], true );
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['mlog_title']}</h2>
</div>
<div class="acp-box">
<h3>{$this->lang->words['mlog_last5']}</h3>
<table class="ipsTable">
<tr>
<th width='15%'>{$this->lang->words['mlog_member']}</th>
<th width='15%'>{$this->lang->words['mlog_action']}</th>
<th width='15%'>{$this->lang->words['mlog_forum']}</th>
<th width='25%'>{$this->lang->words['mlog_topictitle']}</th>
<th width='20%'>{$this->lang->words['mlog_date']}</th>
<th width='10%'>{$this->lang->words['mlog_ip']}</th>
</tr>
HTML;
if( count($rows) AND is_array($rows) )
{
foreach( $rows as $row )
{
$row['members_display_name'] = $row['members_display_name'] ? $row['members_display_name'] : $this->lang->words['noname_availablm'];
$IPBHTML .= <<<HTML
<tr>
<td><span class='larger_text'>{$row['members_display_name']}</span></td>
<td><span style='font-weight:bold;color:red'>{$row['action']}</span></td>
<td><b>{$row['name']}</b></td>
<td>{$row['topic_title']}{$row['topic']}</td>
<td>{$row['_time']}</td>
<td>{$row['ip_address']}</td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='6' align='center'>{$this->lang->words['mlog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
<br />
<div class="acp-box">
<h3>{$this->lang->words['mlog_thelogs']}</h3>
<table class="ipsTable">
<tr>
<th width='30%'>{$this->lang->words['mlog_member']}</th>
<th width='20%'>{$this->lang->words['mlog_action']}</th>
<th width='20%'>{$this->lang->words['mlog_viewall']}</th>
<th width='30%'>{$this->lang->words['mlog_removeall']}</th>
</tr>
HTML;
if( count($admins) AND is_array($admins) )
{
foreach( $admins as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td><span class='larger_text'>{$row['members_display_name']}</span></td>
<td>{$row['act_count']}</td>
<td><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=view&amp;mid={$row['member_id']}'>{$this->lang->words['mlog_view']}</a></td>
<td><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=remove&amp;mid={$row['member_id']}'>{$this->lang->words['mlog_remove']}</a></td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='4' align='center'>{$this->lang->words['mlog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
<br />
<form action='{$this->settings['base_url']}{$this->form_code}' method='post'>
<input type='hidden' name='do' value='view' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['mlog_search']}</h3>
<table class="ipsTable double_pad">
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['mlog_searchfor']}</strong></td>
<td class='field_field'>{$form['search_for']}</td>
</tr>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['mlog_searchin']}</strong></td>
<td class='field_field'>{$form['search_in']}</td>
</tr>
</table>
<div class="acp-actionbar">
<input value="{$this->lang->words['mlog_searchbutton']}" class="button primary" accesskey="s" type="submit" />
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* View a single moderator log entry
*
* @param array Records
* @param string Page links
* @return string HTML
*/
public function modlogsView( $rows, $pages ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['mlog_title']}</h2>
</div>
<div class="acp-box">
<h3>{$this->lang->words['mlog_thelogs']}</h3>
<table class="ipsTable">
<tr>
<th width='15%'>{$this->lang->words['mlog_member']}</th>
<th width='15%'>{$this->lang->words['mlog_action']}</th>
<th width='15%'>{$this->lang->words['mlog_forum']}</th>
<th width='25%'>{$this->lang->words['mlog_topictitle']}</th>
<th width='20%'>{$this->lang->words['mlog_date']}</th>
<th width='10%'>{$this->lang->words['mlog_ip']}</th>
</tr>
HTML;
if( count($rows) AND is_array($rows) )
{
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td><span class='larger_text'>{$row['members_display_name']}</span></td>
<td><span style='font-weight:bold;color:red'>{$row['action']}</span></td>
<td><b>{$row['name']}</b></td>
<td>{$row['topic_title']}{$row['topic']}</td>
<td>{$row['_time']}</td>
<td>{$row['ip_address']}</td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='6' align='center'>{$this->lang->words['mlog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
<div class='acp-actionbar'>
<div class="left">{$pages}</div>
<br class='clear' />
</div>
</div>
<br />
HTML;
//--endhtml--//
return $IPBHTML;
}
}
File diff suppressed because it is too large. Load diff
@@ -1,160 +1,160 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.2.3
* Performance mode skin file
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
* </pre>
*
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license This is NULLED!
* @package IP.Board
* @subpackage Core
* @link http://hatynka.in
* @since Friday 19th May 2006 17:33
* @version $Revision: 8644 $
*/
class cp_skin_performance
{
/**
* Registry Object Shortcuts
*
* @var $registry
* @var $DB
* @var $settings
* @var $request
* @var $lang
* @var $member
* @var $memberData
* @var $cache
* @var $caches
*/
protected $registry;
protected $DB;
protected $settings;
protected $request;
protected $lang;
protected $member;
protected $memberData;
protected $cache;
protected $caches;
/**
* Constructor
*
* @param object $registry Registry object
* @return @e void
*/
public function __construct( ipsRegistry $registry )
{
$this->registry = $registry;
$this->DB = $this->registry->DB();
$this->settings =& $this->registry->fetchSettings();
$this->request =& $this->registry->fetchRequest();
$this->member = $this->registry->member();
$this->memberData =& $this->registry->member()->fetchMemberData();
$this->cache = $this->registry->cache();
$this->caches =& $this->registry->cache()->fetchCaches();
$this->lang = $this->registry->class_localization;
}
/**
* Show the results from toggling the mode
*
* @param bool Currently on or off
* @param array Actions that were taken
* @return string HTML
*/
public function toggleResults( $current, $actions=array() )
{
$IPBHTML = "";
//--starthtml--//
$text = $current ? "<div style='font-weight: bold; color: red; font-size: 22px;'>" . $this->lang->words['perf_on'] . "</div>" : "<div style='font-weight: bold; color: green; font-size: 22px;'>" . $this->lang->words['perf_off'] . "</div>";
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['perf_help_title']}</h2>
</div>
<div class='section_info'>
{$this->lang->words['perf_help_information']}
</div>
<div class='acp-box'>
<h3>{$this->lang->words['perf_current']}</h3>
<div class='acp-row_off' style='padding: 10px;'>
{$text}
</div>
HTML;
if( count($actions) )
{
$IPBHTML .= "<ul style='list-style: disc; margin-left: 40px'>";
foreach( $actions as $action )
{
$IPBHTML .= <<<HTML
<li style='padding: 3px 5px'>
{$action}
</li>
HTML;
}
$IPBHTML .= "</ul>";
}
$IPBHTML .= <<<HTML
<div class='acp-actionbar' style='padding-top: 12px'><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=toggle' class='button'>{$this->lang->words['perf_toggle']}</a></div>
</div>
<br />
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* Show the overview page
*
* @param string Content
* @return string HTML
*/
public function overview( $current )
{
$IPBHTML = "";
//--starthtml--//
$text = $current ? "<div style='font-weight: bold; color: red; font-size: 22px;'>" . $this->lang->words['perf_on'] . "</div>" : "<div style='font-weight: bold; color: green; font-size: 22px;'>" . $this->lang->words['perf_off'] . "</div>";
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['perf_help_title']}</h2>
</div>
<div class='section_info'>
{$this->lang->words['perf_help_information']}
</div>
<div class='acp-box'>
<h3>{$this->lang->words['perf_current']}</h3>
<div class='acp-row_off' style='padding: 10px;'>
{$text}
</div>
<div class='acp-actionbar' style='padding-top: 12px'><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=toggle' class='button'>{$this->lang->words['perf_toggle']}</a></div>
</div>
<br />
HTML;
//--endhtml--//
return $IPBHTML;
}
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.3.4
* Performance mode skin file
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @subpackage Core
* @link http://www.invisionpower.com
* @since Friday 19th May 2006 17:33
* @version $Revision: 10914 $
*/
class cp_skin_performance
{
/**
* Registry Object Shortcuts
*
* @var $registry
* @var $DB
* @var $settings
* @var $request
* @var $lang
* @var $member
* @var $memberData
* @var $cache
* @var $caches
*/
protected $registry;
protected $DB;
protected $settings;
protected $request;
protected $lang;
protected $member;
protected $memberData;
protected $cache;
protected $caches;
/**
* Constructor
*
* @param object $registry Registry object
* @return @e void
*/
public function __construct( ipsRegistry $registry )
{
$this->registry = $registry;
$this->DB = $this->registry->DB();
$this->settings =& $this->registry->fetchSettings();
$this->request =& $this->registry->fetchRequest();
$this->member = $this->registry->member();
$this->memberData =& $this->registry->member()->fetchMemberData();
$this->cache = $this->registry->cache();
$this->caches =& $this->registry->cache()->fetchCaches();
$this->lang = $this->registry->class_localization;
}
/**
* Show the results from toggling the mode
*
* @param bool Currently on or off
* @param array Actions that were taken
* @return string HTML
*/
public function toggleResults( $current, $actions=array() )
{
$IPBHTML = "";
//--starthtml--//
$text = $current ? "<div style='font-weight: bold; color: red; font-size: 22px;'>" . $this->lang->words['perf_on'] . "</div>" : "<div style='font-weight: bold; color: green; font-size: 22px;'>" . $this->lang->words['perf_off'] . "</div>";
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['perf_help_title']}</h2>
</div>
<div class='section_info'>
{$this->lang->words['perf_help_information']}
</div>
<div class='acp-box'>
<h3>{$this->lang->words['perf_current']}</h3>
<div class='acp-row_off' style='padding: 10px;'>
{$text}
</div>
HTML;
if( count($actions) )
{
$IPBHTML .= "<ul style='list-style: disc; margin-left: 40px'>";
foreach( $actions as $action )
{
$IPBHTML .= <<<HTML
<li style='padding: 3px 5px'>
{$action}
</li>
HTML;
}
$IPBHTML .= "</ul>";
}
$IPBHTML .= <<<HTML
<div class='acp-actionbar' style='padding-top: 12px'><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=toggle' class='button'>{$this->lang->words['perf_toggle']}</a></div>
</div>
<br />
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* Show the overview page
*
* @param string Content
* @return string HTML
*/
public function overview( $current )
{
$IPBHTML = "";
//--starthtml--//
$text = $current ? "<div style='font-weight: bold; color: red; font-size: 22px;'>" . $this->lang->words['perf_on'] . "</div>" : "<div style='font-weight: bold; color: green; font-size: 22px;'>" . $this->lang->words['perf_off'] . "</div>";
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['perf_help_title']}</h2>
</div>
<div class='section_info'>
{$this->lang->words['perf_help_information']}
</div>
<div class='acp-box'>
<h3>{$this->lang->words['perf_current']}</h3>
<div class='acp-row_off' style='padding: 10px;'>
{$text}
</div>
<div class='acp-actionbar' style='padding-top: 12px'><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=toggle' class='button'>{$this->lang->words['perf_toggle']}</a></div>
</div>
<br />
HTML;
//--endhtml--//
return $IPBHTML;
}
}
@@ -1,242 +1,239 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.2.3
* Question and answer skin file
* Last Updated: $Date: 2011-08-01 17:58:16 -0400 (Mon, 01 Aug 2011) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license This is NULLED!
* @package IP.Board
* @subpackage Core
* @link http://hatynka.in
* @since Friday 19th May 2006 17:33
* @version $Revision: 9346 $
*/
class cp_skin_qanda
{
/**
* Registry Object Shortcuts
*
* @var $registry
* @var $DB
* @var $settings
* @var $request
* @var $lang
* @var $member
* @var $memberData
* @var $cache
* @var $caches
*/
protected $registry;
protected $DB;
protected $settings;
protected $request;
protected $lang;
protected $member;
protected $memberData;
protected $cache;
protected $caches;
/**
* Constructor
*
* @param object $registry Registry object
* @return @e void
*/
public function __construct( ipsRegistry $registry )
{
$this->registry = $registry;
$this->DB = $this->registry->DB();
$this->settings =& $this->registry->fetchSettings();
$this->request =& $this->registry->fetchRequest();
$this->member = $this->registry->member();
$this->memberData =& $this->registry->member()->fetchMemberData();
$this->cache = $this->registry->cache();
$this->caches =& $this->registry->cache()->fetchCaches();
$this->lang = $this->registry->class_localization;
}
/**
* Show the q&a form
*
* @param string Action
* @param int ID
* @param array Form elements
* @param string Button text
* @return string HTML
*/
public function showForm( $do, $id, $form, $button )
{
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['qa_help_title']}</h2>
</div>
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='theAdminForm' id='postingform'>
<input type='hidden' name='do' value='{$do}' />
<input type='hidden' name='id' value='{$id}' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class='acp-box'>
<h3>{$button}</h3>
<table class='ipsTable double_pad'>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['qa_form_question']}</strong>
</td>
<td class='field_field'>
{$form['question']}
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['qa_form_answers']}</strong>
</td>
<td class='field_field'>
{$form['answers']}<br />
<span class='desctext'>{$this->lang->words['qa_form_answers_extra']}</span>
</td>
</tr>
</table>
<div class='acp-actionbar'>
<input type='submit' value='{$button}' class='realbutton' accesskey='s'>
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* Show the overview page
*
* @param array Rows
* @return string HTML
*/
public function overview( $rows )
{
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['qa_help_title']}</h2>
<div class='section_info'>
{$this->lang->words['qahelp_infos']}
</div>
<div class='ipsActionBar clearfix'>
<ul>
HTML;
if ( $this->registry->class_permissions->checkPermission( 'qa_manage' ) )
{
$IPBHTML .= <<<HTML
<li class='ipsActionButton'>
<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=new' title='{$this->lang->words['qa_addlink']}'>
<img src='{$this->settings['skin_acp_url']}/images/icons/help_add.png' alt='' />
{$this->lang->words['qa_addlink']}
</a>
</li>
HTML;
}
$IPBHTML .= <<<HTML
</ul>
</div>
</div>
HTML;
$IPBHTML .= <<<HTML
<div class='acp-box'>
<h3>{$this->lang->words['qa_current']}</h3>
<table class='ipsTable alternate_rows'>
HTML;
if( count($rows) )
{
$IPBHTML .= <<<HTML
<tr>
<th>{$this->lang->words['qa_form_question']}</th>
<th class='col_buttons'>&nbsp;</th>
</tr>
HTML;
foreach( $rows as $r )
{
$r['_answers'] = IPSText::truncate( str_replace("\r", ", ", $r['qa_answers']), 50 );
$IPBHTML .= <<<HTML
<tr class='ipsControlRow'>
<td>
<p class='larger_text'>
{$r['qa_question']}
</p>
<span class='desctext'>{$r['_answers']}</span>
</td>
<td>
HTML;
if ( $this->registry->class_permissions->checkPermission( 'qa_manage' ) )
{
$IPBHTML .= <<<HTML
<ul class='ipsControlStrip'>
<li class='i_edit'>
<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=edit&amp;id={$r['qa_id']}'>{$this->lang->words['qa_edit']}</a>
</li>
<li class='i_delete'>
<a href='#' onclick='return acp.confirmDelete("{$this->settings['base_url']}{$this->form_code}&amp;do=remove&amp;id={$r['qa_id']}");'>{$this->lang->words['qa_delete']}</a>
</li>
</ul>
HTML;
}
$IPBHTML .= <<<HTML
</td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr><td class='no_messages'>{$this->lang->words['qa_none']}.
HTML;
if ( $this->registry->class_permissions->checkPermission( 'qa_manage' ) )
{
$IPBHTML .= <<<HTML
<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=new' title='{$this->lang->words['qa_addlink']}' class='mini_button'>{$this->lang->words['qa_createonenow']}</a>
HTML;
}
$IPBHTML .= <<<HTML
</td></tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
<br />
HTML;
//--endhtml--//
return $IPBHTML;
}
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.3.4
* Question and answer skin file
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @subpackage Core
* @link http://www.invisionpower.com
* @since Friday 19th May 2006 17:33
* @version $Revision: 10914 $
*/
class cp_skin_qanda
{
/**
* Registry Object Shortcuts
*
* @var $registry
* @var $DB
* @var $settings
* @var $request
* @var $lang
* @var $member
* @var $memberData
* @var $cache
* @var $caches
*/
protected $registry;
protected $DB;
protected $settings;
protected $request;
protected $lang;
protected $member;
protected $memberData;
protected $cache;
protected $caches;
/**
* Constructor
*
* @param object $registry Registry object
* @return @e void
*/
public function __construct( ipsRegistry $registry )
{
$this->registry = $registry;
$this->DB = $this->registry->DB();
$this->settings =& $this->registry->fetchSettings();
$this->request =& $this->registry->fetchRequest();
$this->member = $this->registry->member();
$this->memberData =& $this->registry->member()->fetchMemberData();
$this->cache = $this->registry->cache();
$this->caches =& $this->registry->cache()->fetchCaches();
$this->lang = $this->registry->class_localization;
}
/**
* Show the q&a form
*
* @param string Action
* @param int ID
* @param array Form elements
* @param string Button text
* @return string HTML
*/
public function showForm( $do, $id, $form, $button )
{
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['qa_help_title']}</h2>
</div>
<form action='{$this->settings['base_url']}{$this->form_code}' method='post'>
<input type='hidden' name='do' value='{$do}' />
<input type='hidden' name='id' value='{$id}' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class='acp-box'>
<h3>{$button}</h3>
<table class='ipsTable double_pad'>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['qa_form_question']}</strong>
</td>
<td class='field_field'>
{$form['question']}
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['qa_form_answers']}</strong>
</td>
<td class='field_field'>
{$form['answers']}<br />
<span class='desctext'>{$this->lang->words['qa_form_answers_extra']}</span>
</td>
</tr>
</table>
<div class='acp-actionbar'>
<input type='submit' value='{$button}' class='button primary' accesskey='s'>
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* Show the overview page
*
* @param array Rows
* @return string HTML
*/
public function overview( $rows )
{
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['qa_help_title']}</h2>
<div class='section_info'>
{$this->lang->words['qahelp_infos']}
</div>
<div class='ipsActionBar clearfix'>
<ul>
HTML;
if ( $this->registry->class_permissions->checkPermission( 'qa_manage' ) )
{
$IPBHTML .= <<<HTML
<li class='ipsActionButton'>
<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=new' title='{$this->lang->words['qa_addlink']}'>
<img src='{$this->settings['skin_acp_url']}/images/icons/help_add.png' alt='' />
{$this->lang->words['qa_addlink']}
</a>
</li>
HTML;
}
$IPBHTML .= <<<HTML
</ul>
</div>
</div>
HTML;
$IPBHTML .= <<<HTML
<div class='acp-box'>
<h3>{$this->lang->words['qa_current']}</h3>
<table class='ipsTable'>
HTML;
if( count($rows) )
{
$IPBHTML .= <<<HTML
<tr>
<th>{$this->lang->words['qa_form_question']}</th>
<th class='col_buttons'>&nbsp;</th>
</tr>
HTML;
foreach( $rows as $r )
{
$r['_answers'] = IPSText::truncate( str_replace("\r", ", ", $r['qa_answers']), 50 );
$IPBHTML .= <<<HTML
<tr class='ipsControlRow'>
<td>
<span class='larger_text'>{$r['qa_question']}</span>
<br /><span class='desctext'>{$r['_answers']}</span>
</td>
<td>
HTML;
if ( $this->registry->class_permissions->checkPermission( 'qa_manage' ) )
{
$IPBHTML .= <<<HTML
<ul class='ipsControlStrip'>
<li class='i_edit'>
<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=edit&amp;id={$r['qa_id']}'>{$this->lang->words['qa_edit']}</a>
</li>
<li class='i_delete'>
<a href='#' onclick='return acp.confirmDelete("{$this->settings['base_url']}{$this->form_code}&amp;do=remove&amp;id={$r['qa_id']}");'>{$this->lang->words['qa_delete']}</a>
</li>
</ul>
HTML;
}
$IPBHTML .= <<<HTML
</td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td class='no_messages'>{$this->lang->words['qa_none']}.
HTML;
if ( $this->registry->class_permissions->checkPermission( 'qa_manage' ) )
{
$IPBHTML .= <<<HTML
<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=new' title='{$this->lang->words['qa_addlink']}' class='mini_button'>{$this->lang->words['qa_createonenow']}</a>
HTML;
}
$IPBHTML .= <<<HTML
</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
HTML;
//--endhtml--//
return $IPBHTML;
}
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -1,286 +1,286 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.2.3
* Setup skin file
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
* </pre>
*
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license This is NULLED!
* @package IP.Board
* @subpackage Core
* @link http://hatynka.in
* @since Friday 19th May 2006 17:33
* @version $Revision: 8644 $
*/
class cp_skin_setup
{
/**
* 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;
}
/**
* Redirect screen for app setup
*
* @param array Output pieces
* @param array Error pieces
* @param string Next URL to redirect to
* @return string HTML
*/
public function setup_redirectScreen( $output, $errors, $next_url ) {
$IPBHTML = "";
//--starthtml--//
$text = ( strtolower($this->request['type']) == 'install' ) ? $this->lang->words['type__installation'] : $this->lang->words['type__upgradet'];
$this->lang->words['type__text'] = sprintf( $this->lang->words['type__text'], $text );
$IPBHTML .= <<<EOF
<div class='information-box'>
<h2>{$this->lang->words['ipboard_setup_title']}</h2>
<p style='font-size:12px'>
<br />
<strong>{$this->lang->words['ipboard_welcome_setup']}</strong>
<br />
{$this->lang->words['type__text']}
<br />
<br />
EOF;
if ( is_array( $errors ) AND count( $errors ) )
{
$IPBHTML .= "<strong>{$this->lang->words['error__display']}</strong><br /><br />";
foreach( $errors as $msg )
{
$IPBHTML .= "<span style='color:red'>&middot; " . $msg . "</span><br />";
}
$IPBHTML .= <<<EOF
<div class='input-ok-content' style='margin-left:60px;padding:15px;width:300px'>
<strong><a href='{$next_url}'>{$this->lang->words['error__continue']}</a></strong>
</div>
EOF;
}
else
{
if ( is_array( $output ) AND count( $output ) )
{
$IPBHTML .= "<strong>{$this->lang->words['progress_report']}</strong><br /><br />";
foreach( $output as $msg )
{
$IPBHTML .= "<span style='color:green'>&middot; " . $msg . "</span><br />";
}
}
$IPBHTML .= <<<EOF
<script type='text/javascript'>
setTimeout("redirect()",1500);
function redirect()
{
var url_bit = "{$next_url}";
acp.redirect( url_bit.replace( new RegExp( "&amp;", "g" ) , '&' ), true );
}
//>
</script>
<div class='input-ok-content' style='margin-left:60px;padding:15px;width:300px'>
<strong><a href='$next_url'>{$this->lang->words['redir__continue']}</a></strong>
</div>
EOF;
}
$IPBHTML .= <<<EOF
</p>
</div>
EOF;
//--endhtml--//
return $IPBHTML;
}
/**
* Show the finished screen for app setup
*
* @param array Data
* @param string Type of setup
* @return string HTML
*/
public function setup_completed_screen( $data, $type ) {
$IPBHTML = "";
//--starthtml--//
$text = ( $type == 'install' ) ? $this->lang->words['type__installation'] : $this->lang->words['type__upgradet'];
$lang = sprintf( $this->lang->words['type__text_finished'], $text );
$IPBHTML .= <<<EOF
<div class='information-box'>
<h2>{$data['title']} {$text}</h2>
<p style='font-size:12px'>
<br />
<strong>{$this->lang->words['ipboard_welcome_setup']}</strong>
<br />
{$lang}
<br /><br />
<a href='{$this->settings['base_url']}app=core&amp;module=applications'><b>{$this->lang->words['return_to_overview']}</b></a>
</p>
</div>
EOF;
//--endhtml--//
return $IPBHTML;
}
/**
* Show the splash start screen for app setup
*
* @param array Data
* @param array Errors
* @param string Setup type
* @return string HTML
*/
public function setup_splash_screen( $data, $errors, $type ) {
$IPBHTML = "";
//--starthtml--//
$has_errors = 0;
$text = ( $type == 'install' ) ? $this->lang->words['install_latest'] : $this->lang->words['upgrade_latest'];
$prefix = ( $type == 'install' ) ? $this->lang->words['type__install'] : $this->lang->words['type__upgrade'];
$IPBHTML .= <<<EOF
<div class='section_title'>
<h2>{$this->lang->words['ipboard_setup_title']}</h2>
</div>
EOF;
if ( is_array( $errors ) AND count( $errors ) )
{
$has_errors = 1;
$IPBHTML .= <<<EOF
<div class='warning'>
<h4>{$this->lang->words['please_correct_errors']}</h4>
EOF;
foreach( $errors as $msg )
{
$IPBHTML .= $msg . "<br />";
}
$IPBHTML .= "</div><br />";
}
$IPBHTML .= <<<EOF
<form action="{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=sql&amp;app_directory={$data['app_directory']}&amp;type={$type}&amp;version={$data['next_version']}" method='post'>
<div class='acp-box'>
<h3>{$prefix} {$data['title']} {$this->lang->words['applications_title']}</h3>
<table class='ipsTable'>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['current_version']}</strong>
</td>
<td class='field_field'>
{$data['current_version']}
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$prefix} {$this->lang->words['version_suffix']}</strong>
</td>
<td class='field_field'>
{$data['latest_version']}
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['author_suffix']}</strong>
</td>
<td class='field_field'>
{$data['author']}
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['duplicate_tables']}</strong>
</td>
<td class='field_field'>
<select name='dupe_tables' id='dupeTables'>
<option value='skip'>{$this->lang->words['dup__skip']}</option>
<option value='drop'>{$this->lang->words['dup__drop']}</option>
</select>
</td>
</tr>
</table>
EOF;
if( !$has_errors )
{
$IPBHTML .= <<<EOF
<div class='acp-actionbar'>
<input type='submit' value='{$this->lang->words['continue_button']}' class='button primary' />
</div>
EOF;
}
$IPBHTML .= <<<EOF
</div>
</form>
EOF;
//--endhtml--//
return $IPBHTML;
}
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.3.4
* Setup skin file
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @subpackage Core
* @link http://www.invisionpower.com
* @since Friday 19th May 2006 17:33
* @version $Revision: 10914 $
*/
class cp_skin_setup
{
/**
* 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;
}
/**
* Redirect screen for app setup
*
* @param array Output pieces
* @param array Error pieces
* @param string Next URL to redirect to
* @return string HTML
*/
public function setup_redirectScreen( $output, $errors, $next_url ) {
$IPBHTML = "";
//--starthtml--//
$text = ( strtolower($this->request['type']) == 'install' ) ? $this->lang->words['type__installation'] : $this->lang->words['type__upgradet'];
$this->lang->words['type__text'] = sprintf( $this->lang->words['type__text'], $text );
$IPBHTML .= <<<EOF
<div class='information-box'>
<h2>{$this->lang->words['ipboard_setup_title']}</h2>
<p style='font-size:12px'>
<br />
<strong>{$this->lang->words['ipboard_welcome_setup']}</strong>
<br />
{$this->lang->words['type__text']}
<br />
<br />
EOF;
if ( is_array( $errors ) AND count( $errors ) )
{
$IPBHTML .= "<strong>{$this->lang->words['error__display']}</strong><br /><br />";
foreach( $errors as $msg )
{
$IPBHTML .= "<span style='color:red'>&middot; " . $msg . "</span><br />";
}
$IPBHTML .= <<<EOF
<div class='input-ok-content' style='margin-left:60px;padding:15px;width:300px'>
<strong><a href='{$next_url}'>{$this->lang->words['error__continue']}</a></strong>
</div>
EOF;
}
else
{
if ( is_array( $output ) AND count( $output ) )
{
$IPBHTML .= "<strong>{$this->lang->words['progress_report']}</strong><br /><br />";
foreach( $output as $msg )
{
$IPBHTML .= "<span style='color:green'>&middot; " . $msg . "</span><br />";
}
}
$IPBHTML .= <<<EOF
<script type='text/javascript'>
setTimeout("redirect()",1500);
function redirect()
{
var url_bit = "{$next_url}";
acp.redirect( url_bit.replace( new RegExp( "&amp;", "g" ) , '&' ), true );
}
//>
</script>
<div class='input-ok-content' style='margin-left:60px;padding:15px;width:300px'>
<strong><a href='$next_url'>{$this->lang->words['redir__continue']}</a></strong>
</div>
EOF;
}
$IPBHTML .= <<<EOF
</p>
</div>
EOF;
//--endhtml--//
return $IPBHTML;
}
/**
* Show the finished screen for app setup
*
* @param array Data
* @param string Type of setup
* @return string HTML
*/
public function setup_completed_screen( $data, $type ) {
$IPBHTML = "";
//--starthtml--//
$text = ( $type == 'install' ) ? $this->lang->words['type__installation'] : $this->lang->words['type__upgradet'];
$lang = sprintf( $this->lang->words['type__text_finished'], $text );
$IPBHTML .= <<<EOF
<div class='information-box'>
<h2>{$data['title']} {$text}</h2>
<p style='font-size:12px'>
<br />
<strong>{$this->lang->words['ipboard_welcome_setup']}</strong>
<br />
{$lang}
<br /><br />
<a href='{$this->settings['base_url']}app=core&amp;module=applications'><b>{$this->lang->words['return_to_overview']}</b></a>
</p>
</div>
EOF;
//--endhtml--//
return $IPBHTML;
}
/**
* Show the splash start screen for app setup
*
* @param array Data
* @param array Errors
* @param string Setup type
* @return string HTML
*/
public function setup_splash_screen( $data, $errors, $type ) {
$IPBHTML = "";
//--starthtml--//
$has_errors = 0;
$text = ( $type == 'install' ) ? $this->lang->words['install_latest'] : $this->lang->words['upgrade_latest'];
$prefix = ( $type == 'install' ) ? $this->lang->words['type__install'] : $this->lang->words['type__upgrade'];
$IPBHTML .= <<<EOF
<div class='section_title'>
<h2>{$this->lang->words['ipboard_setup_title']}</h2>
</div>
EOF;
if ( is_array( $errors ) AND count( $errors ) )
{
$has_errors = 1;
$IPBHTML .= <<<EOF
<div class='warning'>
<h4>{$this->lang->words['please_correct_errors']}</h4>
EOF;
foreach( $errors as $msg )
{
$IPBHTML .= $msg . "<br />";
}
$IPBHTML .= "</div><br />";
}
$IPBHTML .= <<<EOF
<form action="{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=sql&amp;app_directory={$data['app_directory']}&amp;type={$type}&amp;version={$data['next_version']}" method='post'>
<div class='acp-box'>
<h3>{$prefix} {$data['title']} {$this->lang->words['applications_title']}</h3>
<table class='ipsTable'>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['current_version']}</strong>
</td>
<td class='field_field'>
{$data['current_version']}
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$prefix} {$this->lang->words['version_suffix']}</strong>
</td>
<td class='field_field'>
{$data['latest_version']}
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['author_suffix']}</strong>
</td>
<td class='field_field'>
{$data['author']}
</td>
</tr>
<tr>
<td class='field_title'>
<strong class='title'>{$this->lang->words['duplicate_tables']}</strong>
</td>
<td class='field_field'>
<select name='dupe_tables' id='dupeTables'>
<option value='skip'>{$this->lang->words['dup__skip']}</option>
<option value='drop'>{$this->lang->words['dup__drop']}</option>
</select>
</td>
</tr>
</table>
EOF;
if( !$has_errors )
{
$IPBHTML .= <<<EOF
<div class='acp-actionbar'>
<input type='submit' value='{$this->lang->words['continue_button']}' class='button primary' />
</div>
EOF;
}
$IPBHTML .= <<<EOF
</div>
</form>
EOF;
//--endhtml--//
return $IPBHTML;
}
}
@@ -1,166 +1,166 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.2.3
* Error log skin file
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
* </pre>
*
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license This is NULLED!
* @package IP.Board
* @subpackage Core
* @link http://hatynka.in
* @since Friday 19th May 2006 17:33
* @version $Revision: 8644 $
*/
class cp_skin_spamlogs
{
/**
* 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;
}
public function spamServiceTest( $result )
{
$IPBHTML = "";
if( $result == 'DEBUG_MODE_SUCCESFUL_API_TEST' )
{
$IPBHTML .= <<<HTML
<div class='information-box'>
<b>{$this->lang->words['slog_api_connected']}</b>
</div>
HTML;
}
else
{
$IPBHTML .= <<<HTML
<div class='information-box warning'>
<b>{$this->lang->words['slog_api_failed']}: {$result}</b>
</div>
HTML;
}
return $IPBHTML;
}
/**
* Spam log wrapper
*
* @param array Rows
* @param string Page links
* @return string HTML
*/
public function spamlogsWrapper( $rows, $links ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' class='information-box'>
<p><label for="search_term">{$this->lang->words['spamlog_searchlabel']}</label> <input type='text' name='search_term' id='search_term' class='input_text' value='{$this->request['search_term']}' /> <input type='submit' class='input_submit' value='{$this->lang->words['spamlog_searchbutton']}' /></p>
</form>
<br />
<script type='text/javascript' src='{$this->settings['js_main_url']}acp.forms.js'></script>
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='theAdminForm' id='theAdminForm'>
<input type='hidden' name='do' value='remove' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['slog_spamlogs']}</h3>
<table class='ipsTable'>
<tr>
<th width='5%'>{$this->lang->words['slog_list_id']}</th>
<th width='25%'>{$this->lang->words['slog_list_date']}</th>
<th width='15%'>{$this->lang->words['slog_list_code']}</th>
<th width='25%'>{$this->lang->words['slog_list_msg']}</th>
<th width='15%'>{$this->lang->words['slog_list_email']}</th>
<th width='10%'>{$this->lang->words['slog_list_ip']}</th>
<th width='3%'><input type='checkbox' title="{$this->lang->words['my_checkall']}" id='checkAll' /></th>
</tr>
HTML;
if( count( $rows ) AND is_array( $rows ) )
{
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td>{$row['id']}</td>
<td>{$row['_time']}</td>
<td>{$row['log_code']}: {$this->lang->words['slog_response_'.$row['log_code']]}</td>
<td>{$row['log_msg']}</td>
<td>{$row['email_address']}</td>
<td>{$row['ip_address']}</td>
<td><input type='checkbox' name='id_{$row['id']}' value='1' class='checkAll' /></td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='7' align='center'>{$this->lang->words['sslog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
<div class='acp-actionbar'>
<div class='right'>
<input type="checkbox" id="checkbox" name="type" value="all" />&nbsp;{$this->lang->words['erlog_removeall']}&nbsp;<input type="submit" value="{$this->lang->words['erlog_removechecked']}" class="button primary" />
</div>
<div class='left'>{$links}</div>
<br class='clear' />
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.3.4
* Error log skin file
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @subpackage Core
* @link http://www.invisionpower.com
* @since Friday 19th May 2006 17:33
* @version $Revision: 10914 $
*/
class cp_skin_spamlogs
{
/**
* 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;
}
public function spamServiceTest( $result )
{
$IPBHTML = "";
if( $result == 'DEBUG_MODE_SUCCESFUL_API_TEST' )
{
$IPBHTML .= <<<HTML
<div class='information-box'>
<b>{$this->lang->words['slog_api_connected']}</b>
</div>
HTML;
}
else
{
$IPBHTML .= <<<HTML
<div class='information-box warning'>
<b>{$this->lang->words['slog_api_failed']}: {$result}</b>
</div>
HTML;
}
return $IPBHTML;
}
/**
* Spam log wrapper
*
* @param array Rows
* @param string Page links
* @return string HTML
*/
public function spamlogsWrapper( $rows, $links ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' class='information-box'>
<p><label for="search_term">{$this->lang->words['spamlog_searchlabel']}</label> <input type='text' name='search_term' id='search_term' class='input_text' value='{$this->request['search_term']}' /> <input type='submit' class='input_submit' value='{$this->lang->words['spamlog_searchbutton']}' /></p>
</form>
<br />
<script type='text/javascript' src='{$this->settings['js_main_url']}acp.forms.js'></script>
<form action='{$this->settings['base_url']}{$this->form_code}' method='post'>
<input type='hidden' name='do' value='remove' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['slog_spamlogs']}</h3>
<table class='ipsTable'>
<tr>
<th width='5%'>{$this->lang->words['slog_list_id']}</th>
<th width='25%'>{$this->lang->words['slog_list_date']}</th>
<th width='15%'>{$this->lang->words['slog_list_code']}</th>
<th width='25%'>{$this->lang->words['slog_list_msg']}</th>
<th width='15%'>{$this->lang->words['slog_list_email']}</th>
<th width='10%'>{$this->lang->words['slog_list_ip']}</th>
<th width='3%'><input type='checkbox' title="{$this->lang->words['my_checkall']}" id='checkAll' /></th>
</tr>
HTML;
if( count( $rows ) AND is_array( $rows ) )
{
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td>{$row['id']}</td>
<td>{$row['_time']}</td>
<td>{$row['log_code']}: {$this->lang->words['slog_response_'.$row['log_code']]}</td>
<td>{$row['log_msg']}</td>
<td>{$row['email_address']}</td>
<td>{$row['ip_address']}</td>
<td><input type='checkbox' name='id_{$row['id']}' value='1' class='checkAll' /></td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='7' align='center'>{$this->lang->words['sslog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
<div class='acp-actionbar'>
<div class='right'>
<input type="checkbox" id="checkbox" name="type" value="all" />&nbsp;{$this->lang->words['erlog_removeall']}&nbsp;<input type="submit" value="{$this->lang->words['erlog_removechecked']}" class="button primary" />
</div>
<div class='left'>{$links}</div>
<br class='clear' />
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
}
@@ -1,214 +1,214 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.2.3
* Spiderlogs skin file
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
* </pre>
*
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license This is NULLED!
* @package IP.Board
* @subpackage Core
* @link http://hatynka.in
* @since Friday 19th May 2006 17:33
* @version $Revision: 8644 $
*/
class cp_skin_spiderlogs
{
/**
* 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;
}
/**
* Spider logs wrapper
*
* @param array Spider log rows
* @return string HTML
*/
public function spiderlogsWrapper( $rows ) {
$form = array();
$form['search_for'] = $this->registry->output->formInput( "search_string" );
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['slog_title']}</h2>
</div>
<div class="acp-box">
<h3>{$this->lang->words['slog_thelogs']}</h3>
<table class="ipsTable">
<tr>
<th width='20%'>{$this->lang->words['slog_botname']}</th>
<th width='20%'>{$this->lang->words['slog_hits']}</th>
<th width='20%'>{$this->lang->words['slog_last']}</th>
<th width='20%'>{$this->lang->words['slog_viewall']}</th>
<th width='20%'>{$this->lang->words['slog_removeall']}</th>
</tr>
HTML;
if( count($rows) AND is_array($rows) )
{
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td><span class='larger_text'>{$row['_bot_name']}</span></td>
<td>{$row['cnt']}</td>
<td>{$row['_time']}</td>
<td><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=view&amp;bid={$row['_bot_url']}'>{$this->lang->words['slog_view']}</a></td>
<td><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=remove&amp;bid={$row['_bot_url']}'>{$this->lang->words['slog_remove']}</a></td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='6' align='center'>{$this->lang->words['slog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
<br />
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='theAdminForm' id='theAdminForm'>
<input type='hidden' name='do' value='view' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['slog_search']}</h3>
<table class='ipsTable double_pad'>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['slog_searchfor']}</strong></td>
<td class='field_field'>{$form['search_for']} <br />{$this->lang->words['slog_searchquery']}</td>
</tr>
</table>
<div class="acp-actionbar">
<input value="{$this->lang->words['slog_searchbutton']}" class="button primary" accesskey="s" type="submit" />
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* View a single spider's log entry
*
* @param array Rows
* @param string Page links
* @return string HTML
*/
public function spiderlogsView( $rows, $pages ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['slog_title']}</h2>
</div>
<div class="acp-box">
<h3>{$this->lang->words['slog_thelogs']}</h3>
<table class="ipsTable">
<tr>
<th width='25%'>{$this->lang->words['slog_botname']}</th>
<th width='25%'>{$this->lang->words['slog_querystring']}</th>
<th width='25%'>{$this->lang->words['slog_time']}</th>
<th width='25%'>{$this->lang->words['slog_ip']}</th>
</tr>
HTML;
if( count($rows) AND is_array($rows) )
{
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td><span class='larger_text'>{$row['_bot_name']}</span></td>
<td>{$row['_query_string']}</td>
<td>{$row['_time']}</td>
<td>{$row['ip_address']}</td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='6' align='center'>{$this->lang->words['slog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
<div class='acp-actionbar'>
<div class="left">{$pages}</div>
<br class='clear' />
</div>
</div>
<br />
HTML;
//--endhtml--//
return $IPBHTML;
}
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.3.4
* Spiderlogs skin file
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @subpackage Core
* @link http://www.invisionpower.com
* @since Friday 19th May 2006 17:33
* @version $Revision: 10914 $
*/
class cp_skin_spiderlogs
{
/**
* 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;
}
/**
* Spider logs wrapper
*
* @param array Spider log rows
* @return string HTML
*/
public function spiderlogsWrapper( $rows ) {
$form = array();
$form['search_for'] = $this->registry->output->formInput( "search_string" );
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['slog_title']}</h2>
</div>
<div class="acp-box">
<h3>{$this->lang->words['slog_thelogs']}</h3>
<table class="ipsTable">
<tr>
<th width='20%'>{$this->lang->words['slog_botname']}</th>
<th width='20%'>{$this->lang->words['slog_hits']}</th>
<th width='20%'>{$this->lang->words['slog_last']}</th>
<th width='20%'>{$this->lang->words['slog_viewall']}</th>
<th width='20%'>{$this->lang->words['slog_removeall']}</th>
</tr>
HTML;
if( count($rows) AND is_array($rows) )
{
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td><span class='larger_text'>{$row['_bot_name']}</span></td>
<td>{$row['cnt']}</td>
<td>{$row['_time']}</td>
<td><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=view&amp;bid={$row['_bot_url']}'>{$this->lang->words['slog_view']}</a></td>
<td><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=remove&amp;bid={$row['_bot_url']}'>{$this->lang->words['slog_remove']}</a></td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='6' align='center'>{$this->lang->words['slog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
<br />
<form action='{$this->settings['base_url']}{$this->form_code}' method='post'>
<input type='hidden' name='do' value='view' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['slog_search']}</h3>
<table class='ipsTable double_pad'>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['slog_searchfor']}</strong></td>
<td class='field_field'>{$form['search_for']} <br /> {$this->lang->words['slog_searchquery']}</td>
</tr>
</table>
<div class="acp-actionbar">
<input value="{$this->lang->words['slog_searchbutton']}" class="button primary" accesskey="s" type="submit" />
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* View a single spider's log entry
*
* @param array Rows
* @param string Page links
* @return string HTML
*/
public function spiderlogsView( $rows, $pages ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['slog_title']}</h2>
</div>
<div class="acp-box">
<h3>{$this->lang->words['slog_thelogs']}</h3>
<table class="ipsTable">
<tr>
<th width='25%'>{$this->lang->words['slog_botname']}</th>
<th width='25%'>{$this->lang->words['slog_querystring']}</th>
<th width='25%'>{$this->lang->words['slog_time']}</th>
<th width='25%'>{$this->lang->words['slog_ip']}</th>
</tr>
HTML;
if( count($rows) AND is_array($rows) )
{
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td><span class='larger_text'>{$row['_bot_name']}</span></td>
<td>{$row['_query_string']}</td>
<td>{$row['_time']}</td>
<td>{$row['ip_address']}</td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='6' align='center'>{$this->lang->words['slog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
<div class='acp-actionbar'>
<div class="left">{$pages}</div>
<br class='clear' />
</div>
</div>
<br />
HTML;
//--endhtml--//
return $IPBHTML;
}
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -2,19 +2,19 @@
/**
* <pre>
* Invision Power Services
* IP.Board v3.2.3
* IP.Board v3.3.4
* Look and feel skin file
* Last Updated: $Date: 2011-10-14 09:43:08 -0400 (Fri, 14 Oct 2011) $
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* </pre>
*
* @author $Author: mmecham $
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license This is NULLED!
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @subpackage Core
* @link http://hatynka.in
* @link http://www.invisionpower.com
* @since Friday 19th May 2006 17:33
* @version $Revision: 9617 $
* @version $Revision: 10914 $
*/
class cp_skin_templates
@@ -759,7 +759,7 @@ EOF;
$_icon = $report['change_data_type'] == 'css' ? 'text_rich_colored.png' : 'text.png';
$_diffIcon = ( $report['_is'] == 'new' ) ? 'page_add.png' : 'page_red.png';
$_diffTitle = ( $report['_is'] == 'new' ) ? $this->lang->words['mergereportnewitem'] : sprintf( $this->lang->words['mergereportdifferences'], $report['_diffs'] );
$_mergeIcon = ( $report['_is'] == 'new' OR ! $report['change_can_merge'] ) ? '../../blank.gif' : ( ( intval( $report['_conflicts'] ) > 0 ) ? 'exclamation.png' : '../../blank.gif' );//'shape_move_front.png' );
$_mergeIcon = ( $report['_is'] == 'new' OR ! $report['change_can_merge'] ) ? 'blank.gif' : ( ( intval( $report['_conflicts'] ) > 0 ) ? 'icons/exclamation.png' : 'blank.gif' );//'shape_move_front.png' );
$_mergeTitle = ( intval( $report['_conflicts'] ) > 0 ) ? sprintf( $this->lang->words['mergereportconflicts'], $report['_conflicts'] ) : $this->lang->words['mergereportnoconflict'];
$_mergeClass = ( intval( $report['_conflicts'] ) > 0 ) ? '__conflicts' : '';
$_comIcon = ( $report['_is'] == 'new' OR ( ! $report['change_can_merge'] OR ( $report['change_final_content'] ) ) ) ? 'bullet_black.png' : ( ( $report['change_changes_applied'] ) ? 'bullet_green.png' : 'bullet_red.png' );
@@ -793,7 +793,7 @@ EOF;
if ( $report['change_is_conflict'] AND $report['change_final_content'] )
{
/* Conflicts resolved */
$_mergeIcon = '../../blank.gif';//'shape_ungroup.png';
$_mergeIcon = 'blank.gif';//'shape_ungroup.png';
}
if ( $report['_is'] == 'new' )
@@ -833,7 +833,7 @@ EOF;
<img src='{$this->settings['skin_acp_url']}/images/icons/{$_comIcon}' /> <strong>{$report['change_data_title']}</strong>
<div class='desctext' style='font-size:0.8em' id='mDesc-{$report['change_id']}'>{$_desc}</div>
</td>
<td width='1%' nowrap='nowrap' align='center'><img src='{$this->settings['skin_acp_url']}/images/icons/{$_mergeIcon}' title='{$_mergeTitle}' id='mMergeImage-{$report['change_id']}' class='__whenHasMerge{$report['change_id']}' /></td>
<td width='1%' nowrap='nowrap' align='center'><img src='{$this->settings['skin_acp_url']}/images/{$_mergeIcon}' title='{$_mergeTitle}' id='mMergeImage-{$report['change_id']}' class='__whenHasMerge{$report['change_id']}' /></td>
<td width='1%' nowrap='nowrap' align='center'><img src='{$this->settings['skin_acp_url']}/images/icons/{$_diffIcon}' title='{$_diffTitle}' /></td>
<td width='5%' nowrap='nowrap' align='center'>{$report['_size']}</td>
<td width='1%' nowrap='nowrap' align='center'><input type='checkbox' value='1' class='__cBox{$report['change_id']} __xBox' name='changeIds[{$report['change_id']}]' {$_cbExtra} /></td>
@@ -1364,6 +1364,7 @@ EOF;
</td>
<td class='field_field'>
<em>{$this->lang->words['sk_defaultalready']}</em>
<input type='hidden' name='set_is_default' value='1' />
</td>
</tr>
EOF;
@@ -1408,6 +1409,12 @@ EOF;
</tr>
EOF;
}
else {
$IPBHTML .= <<<EOF
<input type='hidden' name='set_key' value='{$skinSet['set_key']}' />
EOF;
}
$IPBHTML .= <<<EOF
<tr>
<td class='field_title'>
@@ -1641,8 +1648,8 @@ $IPBHTML .= <<<EOF
<strong class='title'>{$this->lang->words['sk_clean_caches']}</strong>
</td>
<td class='field_field'>
<form action='{$this->settings['base_url']}module=templates&amp;section=tools&amp;do=toolCacheClean' method='POST'>
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->_admin_auth_key}' />
<form action='{$this->settings['base_url']}module=templates&amp;section=tools&amp;do=toolCacheClean' method='POST'>
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->_admin_auth_key}' />
<p style='float: left; margin-right: 10px;'>
<input type='checkbox' name='cleanCss' value='1' /> {$this->lang->words['sk_clean_caches_cb_css']}<br />
<input type='checkbox' name='cleanTemplates' value='1' /> {$this->lang->words['sk_clean_caches_cb_tem']}
@@ -1752,7 +1759,7 @@ $IPBHTML .= <<<EOF
<td class='field_field'><a class='realbutton' href='{$this->settings['base_url']}module=templates&amp;section=tools&amp;do=importAPPTemplates'>{$this->lang->words['sk_run']}</a></td>
</tr>
</table>
</div>
</div>
EOF;
}
@@ -1833,18 +1840,28 @@ $IPBHTML .= <<<EOF
<td>
<p>
<p>{$this->lang->words['sk_revert_desc']}</p>
<p><input type='checkbox' name='templates' value='1' /> <strong>{$counts['templates']}</strong> {$this->lang->words['sk_revert_templates']}</p>
<p><input type='checkbox' name='css' value='1' /> <strong>{$counts['css']}</strong> {$this->lang->words['sk_revert_css']}</p>
<p><input type='checkbox' name='replacements' value='1' /> <strong>{$counts['replacements']}</strong> {$this->lang->words['sk_revert_replacements']}</p>
<p><input type='checkbox' id='cbTemplates' name='templates' value='1' /> <strong>{$counts['templates']}</strong> {$this->lang->words['sk_revert_templates']}</p>
<p><input type='checkbox' id='cbCss' name='css' value='1' /> <strong>{$counts['css']}</strong> {$this->lang->words['sk_revert_css']}</p>
<p><input type='checkbox' id='cbReplacements' name='replacements' value='1' /> <strong>{$counts['replacements']}</strong> {$this->lang->words['sk_revert_replacements']}</p>
</p>
</td>
</tr>
</table>
<div class='acp-actionbar'>
<input type='submit' value='{$this->lang->words['sk_revert_button']}' class='realbutton redbutton' />
<input type='submit' value='{$this->lang->words['sk_revert_button']}' id='doRevertSubmit' class='realbutton redbutton' />
</div>
</div>
</form>
<script type="text/javascript">
$('doRevertSubmit').on('click', function( e )
{
if ( ! $('cbTemplates').checked && ! $('cbCss').checked && ! $('cbReplacements').checked )
{
Event.stop(e);
alert( ipb.lang['skin_revert_none'] );
}
} );
</script>
EOF;
@@ -1896,7 +1913,9 @@ return $IPBHTML;
* @param array Caching data
* @return string HTML
*/
public function skinsets_listSkinSets( $sets, $cacheData, $hasData, $canMerge, $skinGenSessions, $html ) {
public function skinsets_listSkinSets( $sets, $cacheData, $hasData, $canMerge, $skinGenSessions, $html, $skinGenIsSupported=FALSE ) {
$addButtonId = $skinGenIsSupported ? 'ipsNewSkin' : '';
$IPBHTML = "";
//--starthtml--//
@@ -1907,8 +1926,8 @@ $IPBHTML .= <<<EOF
<div class='section_title'>
<h2>{$this->lang->words['sk_skinmanagement']}</h2>
<ul class='context_menu'>
<li><a href='{$this->settings['base_url']}{$this->form_code}&amp;do=setAdd' id='ipsNewSkin' style='text-decoration:none'><img src='{$this->settings['skin_acp_url']}/images/icons/add.png' alt='' /> {$this->lang->words['sk_addnewrootskin']}</a></li>
<li><a href='{$this->settings['base_url']}module=templates&amp;section=importexport&amp;do=overview' style='text-decoration:none'><img src='{$this->settings['skin_acp_url']}/images/icons/add.png' alt='' /> {$this->lang->words['sk_importnewskin']}</a></li>
<li><a href='{$this->settings['base_url']}{$this->form_code}&amp;do=setAdd' id='{$addButtonId}'><img src='{$this->settings['skin_acp_url']}/images/icons/add.png' alt='' /> {$this->lang->words['sk_addnewrootskin']}</a></li>
<li><a href='{$this->settings['base_url']}module=templates&amp;section=importexport&amp;do=overview'><img src='{$this->settings['skin_acp_url']}/images/icons/add.png' alt='' /> {$this->lang->words['sk_importnewskin']}</a></li>
</ul>
</div>
<div class='acp-box' id="forum_wrapper">
@@ -1916,9 +1935,8 @@ $IPBHTML .= <<<EOF
<table class='ipsTable double_pad'>
<tr>
<th width='3px'>&nbsp;</th>
<th style='width: 81%'>{$this->lang->words['sk_setname']}</th>
<th>{$this->lang->words['sk_setname']}</th>
<th style='width: 3%'>&nbsp;</th>
<th style='width: 12%; text-align: center;'>{$this->lang->words['sk_outputformat']}</th>
<th style='width: 3%'>&nbsp;</th>
</tr>
</table>
@@ -1931,33 +1949,39 @@ EOF;
foreach( $sets as $idx => $data )
{
if ( $data['set_output_format'] == 'xml' && $data['set_key'] == 'xmlskin' )
{
continue;
}
$subskin = ( $data['depthguide'] ) ? 'subforum' : '';
/* on off stuffs */
$isVisEditSkin = ( $data['set_by_skin_gen'] ) ? true : false;
$preOFImage = 'off_';
$titleOFImage = $this->lang->words['tt_ss_of_off'];
$formatImage = '';
$badge = '';
$desc = '';
$hiddenImage = "<img title='{$this->lang->words['ss_canttoggle']}' src='{$this->settings['skin_acp_url']}/images/folder_components/templates/skinset_canthide.png' />";
$canDelete = true;
if ( $data['set_is_default'] )
{
$formatImage = "<img title='{$this->lang->words['tt_ss_of']}' src='{$this->settings['skin_acp_url']}/images/folder_components/templates/output_{$data['set_output_format']}.png' />";
$badge = "<span class='ipsBadge badge_purple'>{$this->lang->words['skin_default']}</span>";
}
else
{
$formatImage = "<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=makeDefault&amp;set_id={$data['set_id']}' title='{$this->lang->words['tt_ss_of_off']}'><img title='{$this->lang->words['tt_ss_of_off']}' src='{$this->settings['skin_acp_url']}/images/folder_components/templates/output_off_{$data['set_output_format']}.png' /></a>";
}
if ( $data['set_hide_from_list'] )
{
$hiddenImage = "<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=toggleHidden&amp;set_id={$data['set_id']}' title='{$this->lang->words['ss_hidden']}'><img title='{$this->lang->words['ss_hidden']}' src='{$this->settings['skin_acp_url']}/images/folder_components/templates/skinset_hidden.png' /></a>";
}
else if ( ! $data['set_is_default'] )
{
$hiddenImage = "<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=toggleHidden&amp;set_id={$data['set_id']}' title='{$this->lang->words['ss_not_hidden']}'><img title='{$this->lang->words['ss_not_hidden']}' src='{$this->settings['skin_acp_url']}/images/folder_components/templates/skinset_visible.png' /></a>";
if ( $data['set_hide_from_list'] )
{
$badge = "<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=toggleHidden&amp;set_id={$data['set_id']}' title='{$this->lang->words['ss_hidden']}'><span class='ipsBadge badge_red'>{$this->lang->words['skin_hidden']}</span></a>";
}
else if ( ! $data['set_is_default'] )
{
$badge = "<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=toggleHidden&amp;set_id={$data['set_id']}' title='{$this->lang->words['ss_not_hidden']}'><span class='ipsBadge badge_green'>{$this->lang->words['skin_visible']}</span></a>";
}
else
{
$badge = "<span class='ipsBadge badge_green'>{$this->lang->words['skin_visible']}</span>";
}
}
if ( $data['set_by_skin_gen'] )
@@ -1967,11 +1991,11 @@ EOF;
if ( ! empty( $skinGenSessions[ $data['set_id'] ] ) )
{
$canDelete = false;
$desc .= "<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=cancelVisualEditor&amp;set_id={$data['set_id']}' class='mini_button secondary right ipsCancelEditor'>Закрыть визуальный редактор</a>";
$desc .= "<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=cancelVisualEditor&amp;set_id={$data['set_id']}' class='mini_button secondary right ipsCancelEditor'>Cancel Visual Editor</a>";
}
else
{
$desc .= "<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=launchVisualEditor&amp;set_id={$data['set_id']}' target='_blank' class='mini_button right'>Запустить визуальный редактор</a>";
$desc .= "<a href='{$this->settings['base_url']}{$this->form_code}&amp;do=launchVisualEditor&amp;set_id={$data['set_id']}' target='_blank' class='mini_button right'>Launch visual editor</a>";
}
}
@@ -2028,10 +2052,7 @@ EOF;
$IPBHTML .= <<<EOF
</td>
<td class='forum_row {$subskin}' style='text-align: center' style='width: 3%'>
{$hiddenImage}
</td>
<td class='forum_row {$subskin}' style='text-align: center' style='width: 12%'>
{$formatImage}
{$badge}
</td>
<td class='forum_row {$subskin} col_buttons' style='width: 3%'>
<ul class='ipsControlStrip'>
@@ -2141,7 +2162,7 @@ EOF;
$IPBHTML .= <<<EOF
</ul>
<script type="text/javascript">
var cancelEditorDialogue = new Template("<div class='acp-box'><h3>Закрыть визуальный редактор</h3><div class='pad'><p>Данное действие закроет активную сессию визуального редактора, при этом будут потеряны все несохраненные изменения в стиле.<br /><br /><a href='#{url}' class='button'>Закрыть</a></p></div></div>" );
var cancelEditorDialogue = new Template("<div class='acp-box'><h3>Close Visual Editor</h3><div class='pad'><p>This will cancel the open session and revert any unsaved changes.<br /><br /><a href='#{url}' class='button'>Close Editor</a></p></div></div>" );
dropItLikeItsHotroot = function( draggableObject, mouseObject )
{
var options = {
@@ -2193,9 +2214,9 @@ $IPBHTML .= <<<EOF
<div class='section_title'>
<h2>{$this->lang->words['sk_replaceinset']}: {$setData['set_name']}</h2>
<ul class='context_menu'>
<li><a href='#' id='add_replacement'><img src='{$this->settings['skin_acp_url']}/images/icons/add.png' alt='{$this->lang->words['sk_icon']}' /> {$this->lang->words['sk_replacementadd']}</a></li>
<li><a href='{$this->settings['base_url']}app=core&amp;module=templates&amp;section=skinsets&amp;do=setEdit&amp;set_id={$setData['set_id']}'><img src='{$this->settings['skin_acp_url']}/images/icons/palette_edit.png' alt='{$this->lang->words['sk_icon']}' /> {$this->lang->words['sk_editskinsettings']}</a></li>
<li><a href='{$this->settings['base_url']}app=core&amp;module=templates&amp;section=templates&amp;do=list&amp;setID={$setData['set_id']}'><img src='{$this->settings['skin_acp_url']}/images/icons/folder_palette.png' alt='{$this->lang->words['sk_icon']}' /> {$this->lang->words['sk_edittempcss']}</a></li>
<li><a href='#' id='add_replacement'><img src='{$this->settings['skin_acp_url']}/images/icons/add.png' alt='' /> {$this->lang->words['sk_replacementadd']}</a></li>
<li><a href='{$this->settings['base_url']}app=core&amp;module=templates&amp;section=skinsets&amp;do=setEdit&amp;set_id={$setData['set_id']}'><img src='{$this->settings['skin_acp_url']}/images/icons/palette_edit.png' alt='' /> {$this->lang->words['sk_editskinsettings']}</a></li>
<li><a href='{$this->settings['base_url']}app=core&amp;module=templates&amp;section=templates&amp;do=list&amp;setID={$setData['set_id']}'><img src='{$this->settings['skin_acp_url']}/images/icons/folder_palette.png' alt='' /> {$this->lang->words['sk_edittempcss']}</a></li>
</ul>
</div>
<div class='information-box'>
@@ -2217,7 +2238,7 @@ $IPBHTML .= <<<EOF
ipb.templates['add_replacement'] = "<div class='acp-box'><h3>{$this->lang->words['add_repl_f_tpl']}</h3><table class='ipsTable'><tr><td class='field_title'><strong class='title'>{$this->lang->words['rep_key_f_tpl']}</strong></td><td class='field_field'><input type='text' class='input_text' id='popup_key' /></td></tr><tr><td class='field_title'><strong class='title'>{$this->lang->words['rep_ctn_f_tpl']}</strong></td><td class='field_field'><textarea id='popup_content' style='width: 45%' rows='7' class='input_text'></textarea></td></tr></table><div class='acp-actionbar'><input type='submit' class='realbutton' value='{$this->lang->words['addrep_btn_f_tpl']}' id='popup_submit' /></div></div>";
ipb.templates['revert_button'] = new Template("<a href='#' onclick='return false;' title='{$this->lang->words['sk_revertreplace']}' id='r_#{id}_revert'><img src='{$this->settings['skin_acp_url']}/images/icons/arrow_rotate_anticlockwise.png' alt='{$this->lang->words['sk_icon']}' /></a>");
ipb.templates['revert_button'] = new Template("<a href='#' onclick='return false;' title='{$this->lang->words['sk_revertreplace']}' id='r_#{id}_revert'><img src='{$this->settings['skin_acp_url']}/images/icons/arrow_rotate_anticlockwise.png' alt='' /></a>");
$('add_replacement').observe( 'click', acp.replacements.addReplacement );
</script>
@@ -2229,8 +2250,8 @@ $IPBHTML .= <<<EOF
<tr>
<th width='2%'>&nbsp;</td>
<th width='20%'>{$this->lang->words['sk_replacekey']}</th>
<th width='66%' style='text-align: center'>{$this->lang->words['sk_replacecontent']}</th>
<th width='12%'>&nbsp;</th>
<th width='68%' class='center'>{$this->lang->words['sk_replacecontent']}</th>
<th class='col_buttons'>&nbsp;</th>
</tr>
EOF;
@@ -2241,17 +2262,20 @@ foreach( $replacementsData as $replacement )
if ( ! $setData['_isMaster'] )
{
if( $replacement['replacement_added_to'] == $setData['set_id'] ){
if ( $replacement['replacement_added_to'] == $setData['set_id'] )
{
$status = 'new';
$revert = "<li class='i_refresh' id='r_revert_wrap_{$replacement['replacement_key']}'><a href='#' onclick='return false;' title='{$this->lang->words['sk_removereplace']}' id='r_{$replacement['replacement_key']}_delete'><img src='{$this->settings['skin_acp_url']}/images/icons/cross.png' alt='{$this->lang->words['sk_icon']}' /></a></li>";
$revert = "<li class='i_delete' id='r_revert_wrap_{$replacement['replacement_key']}'><a href='#' onclick='return false;' title='{$this->lang->words['sk_removereplace']}' id='r_{$replacement['replacement_key']}_delete'>{$this->lang->words['sk_removereplace']}</a></li>";
}
elseif( $replacement['replacement_set_id'] == $setData['set_id'] ){
elseif ( $replacement['replacement_set_id'] == $setData['set_id'] )
{
$status = 'modified';
$revert = "<li class='i_refresh' id='r_revert_wrap_{$replacement['replacement_key']}'><a href='#' onclick='return false;' title='{$this->lang->words['sk_revertreplace']}' id='r_{$replacement['replacement_key']}_revert'><img src='{$this->settings['skin_acp_url']}/images/icons/arrow_rotate_anticlockwise.png' alt='{$this->lang->words['sk_icon']}' /></a></li>";
$revert = "<li class='i_refresh' id='r_revert_wrap_{$replacement['replacement_key']}'><a href='#' onclick='return false;' title='{$this->lang->words['sk_revertreplace']}' id='r_{$replacement['replacement_key']}_revert'>{$this->lang->words['sk_revertreplace']}</a></li>";
}
elseif( in_array( $replacement['replacement_set_id'], array_values( $setData['_parentTree'] ) ) ){
elseif ( in_array( $replacement['replacement_set_id'], array_values( $setData['_parentTree'] ) ) )
{
$status = 'inherit';
$revert = "<li class='i_refresh' id='r_revert_wrap_{$replacement['replacement_key']}'><a href='#' onclick='return false;' title='{$this->lang->words['sk_revertreplace']}' id='r_{$replacement['replacement_key']}_revert'><img src='{$this->settings['skin_acp_url']}/images/icons/arrow_rotate_anticlockwise.png' alt='{$this->lang->words['sk_icon']}' /></a></li>";
$revert = "<li class='i_refresh' id='r_revert_wrap_{$replacement['replacement_key']}'><a href='#' onclick='return false;' title='{$this->lang->words['sk_revertreplace']}' id='r_{$replacement['replacement_key']}_revert'>{$this->lang->words['sk_revertreplace']}</a></li>";
}
else
{
@@ -2264,13 +2288,13 @@ foreach( $replacementsData as $replacement )
$IPBHTML .= <<<EOF
<tr class='ipsControlRow'>
<td style='vertical-align: top'><img id='r_status_{$replacement['replacement_key']}' src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/{$status}.png' alt='{$this->lang->words['sk_icon']}' /></td>
<td style='vertical-align: top'><img id='r_status_{$replacement['replacement_key']}' src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/{$status}.png' alt='' /></td>
<td style='vertical-align: top'><strong>{$replacement['replacement_key']}</strong></td>
<td style='text-align: center' id='r_{$replacement['replacement_key']}_content'>{$replacement['real_content']}</td>
<td class='center' id='r_{$replacement['replacement_key']}_content'>{$replacement['real_content']}</td>
<td class='col_buttons'>
<ul class='ipsControlStrip'>
{$revert}
<li class='i_edit'><a href='#' onclick='return false;' title='{$this->lang->words['sk_editreplace']}' id='r_{$replacement['replacement_key']}_edit'><img src='{$this->settings['skin_acp_url']}/images/icons/pencil.png' alt='{$this->lang->words['sk_icon']}' /></a></li>
<li class='i_edit'><a href='#' onclick='return false;' title='{$this->lang->words['sk_editreplace']}' id='r_{$replacement['replacement_key']}_edit'>{$this->lang->words['sk_editreplace']}</a></li>
</ul>
<script type='text/javascript'>
acp.replacements.register('{$replacement['replacement_key']}');
@@ -2283,10 +2307,10 @@ EOF;
$IPBHTML .= <<<EOF
</table>
<div class='acp-actionbar'>
<strong>{$this->lang->words['sk_legend']}:</strong> <img src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/default.png' alt='{$this->lang->words['sk_icon']}' title='{$this->lang->words['sk_l_default']}' />{$this->lang->words['sk_l_default_full']}&nbsp;&nbsp;&nbsp;
<img src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/modified.png' alt='{$this->lang->words['sk_icon']}' title='{$this->lang->words['sk_l_modified']}' />{$this->lang->words['sk_l_modified_full']}&nbsp;&nbsp;&nbsp;
<img src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/inherit.png' alt='{$this->lang->words['sk_icon']}' title='{$this->lang->words['sk_l_inherited']}' />{$this->lang->words['sk_l_inherited_full']}&nbsp;&nbsp;&nbsp;
<img src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/new.png' alt='{$this->lang->words['sk_icon']}' title='{$this->lang->words['sk_l_new']}' />{$this->lang->words['sk_l_new_full']}
<strong>{$this->lang->words['sk_legend']}:</strong> <img src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/default.png' alt='' title='{$this->lang->words['sk_l_default']}' />{$this->lang->words['sk_l_default_full']}&nbsp;&nbsp;&nbsp;
<img src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/modified.png' alt='' title='{$this->lang->words['sk_l_modified']}' />{$this->lang->words['sk_l_modified_full']}&nbsp;&nbsp;&nbsp;
<img src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/inherit.png' alt='' title='{$this->lang->words['sk_l_inherited']}' />{$this->lang->words['sk_l_inherited_full']}&nbsp;&nbsp;&nbsp;
<img src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/new.png' alt='' title='{$this->lang->words['sk_l_new']}' />{$this->lang->words['sk_l_new_full']}
</div>
</div>
@@ -2320,8 +2344,8 @@ $IPBHTML .= <<<EOF
<div class='section_title'>
<h2>{$this->lang->words['sk_editingset']}: {$setData['set_name']}</h2>
<ul class='context_menu'>
<li><a href='{$this->settings['base_url']}app=core&amp;module=templates&amp;section=skinsets&amp;do=setEdit&amp;set_id={$setData['set_id']}'><img src='{$this->settings['skin_acp_url']}/images/icons/palette_edit.png' alt='{$this->lang->words['sk_icon']}' /> {$this->lang->words['sk_editskinsettings']}</a></li>
<li><a href='{$this->settings['base_url']}app=core&amp;module=templates&amp;section=replacements&amp;do=list&amp;setID={$setData['set_id']}'><img src='{$this->settings['skin_acp_url']}/images/icons/arrow_switch.png' alt='{$this->lang->words['sk_icon']}' /> {$this->lang->words['sk_editreplacevar']}</a></li>
<li><a href='{$this->settings['base_url']}app=core&amp;module=templates&amp;section=skinsets&amp;do=setEdit&amp;set_id={$setData['set_id']}'><img src='{$this->settings['skin_acp_url']}/images/icons/palette_edit.png' alt='' /> {$this->lang->words['sk_editskinsettings']}</a></li>
<li><a href='{$this->settings['base_url']}app=core&amp;module=templates&amp;section=replacements&amp;do=list&amp;setID={$setData['set_id']}'><img src='{$this->settings['skin_acp_url']}/images/icons/arrow_switch.png' alt='' /> {$this->lang->words['sk_editreplacevar']}</a></li>
</ul>
</div>
@@ -2402,18 +2426,18 @@ $IPBHTML .= <<<EOF
</div>
<div id='template_footer' class='acp-actionbar'>
<strong>{$this->lang->words['sk_legend']}:</strong> <img src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/default.png' alt='{$this->lang->words['sk_icon']}' title='{$this->lang->words['sk_l_default']}' />{$this->lang->words['sk_l_default_full']}&nbsp;&nbsp;&nbsp;
<img src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/modified.png' alt='{$this->lang->words['sk_icon']}' title='{$this->lang->words['sk_l_modified']}' />{$this->lang->words['sk_l_modified_full']}&nbsp;&nbsp;&nbsp;
<img src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/inherit.png' alt='{$this->lang->words['sk_icon']}' title='{$this->lang->words['sk_l_inherited']}' />{$this->lang->words['sk_l_inherited_full']}&nbsp;&nbsp;&nbsp;
<img src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/new.png' alt='{$this->lang->words['sk_icon']}' title='{$this->lang->words['sk_l_new']}' />{$this->lang->words['sk_l_new_full']}
<strong>{$this->lang->words['sk_legend']}:</strong> <img src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/default.png' alt='' title='{$this->lang->words['sk_l_default']}' />{$this->lang->words['sk_l_default_full']}&nbsp;&nbsp;&nbsp;
<img src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/modified.png' alt='' title='{$this->lang->words['sk_l_modified']}' />{$this->lang->words['sk_l_modified_full']}&nbsp;&nbsp;&nbsp;
<img src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/inherit.png' alt='' title='{$this->lang->words['sk_l_inherited']}' />{$this->lang->words['sk_l_inherited_full']}&nbsp;&nbsp;&nbsp;
<img src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/new.png' alt='' title='{$this->lang->words['sk_l_new']}' />{$this->lang->words['sk_l_new_full']}
</div>
</div>
<script type='text/javascript'>
ipb.templates['template_group'] = new Template("<li id='#{id}'>#{title}</li>");
ipb.templates['template_bit'] = new Template("<li id='#{id}'><img src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/#{icon}.png' alt='{$this->lang->words['sk_icon']}' title='#{icon}' /> #{title} <img src='{$this->settings['skin_acp_url']}/images/icons/bullet_delete.png' alt='{$this->lang->words['sk_icon']}' class='delete_icon' style='display: none' id='delete_bit_#{id}' /></li>");
ipb.templates['css_file'] = new Template("<li id='#{id}'><img src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/#{icon}.png' alt='{$this->lang->words['sk_icon']}' title='#{icon}' /> #{name} <img src='{$this->settings['skin_acp_url']}/images/icons/bullet_delete.png' alt='{$this->lang->words['sk_icon']}' class='delete_icon' style='display: none' id='delete_css_#{id}' /></li>");
ipb.templates['template_bit'] = new Template("<li id='#{id}'><img src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/#{icon}.png' alt='' title='#{icon}' /> #{title} <img src='{$this->settings['skin_acp_url']}/images/icons/bullet_delete.png' alt='' class='delete_icon' style='display: none' id='delete_bit_#{id}' /></li>");
ipb.templates['css_file'] = new Template("<li id='#{id}'><img src='{$this->settings['skin_acp_url']}/images/folder_components/templates/templates/#{icon}.png' alt='' title='#{icon}' /> #{name} <img src='{$this->settings['skin_acp_url']}/images/icons/bullet_delete.png' alt='' class='delete_icon' style='display: none' id='delete_css_#{id}' /></li>");
/* TEMPLATES FOR POPUPS */
ipb.templates['form_add_bit'] = "<div class='acp-box'><h3>{$this->lang->words['sk_addbit']}</h3><table class='ipsTable'><tr><td class='field_title'><strong class='title'>{$this->lang->words['sk_bitname']}:</strong></td><td class='field_field'><input type='text' class='input_text' id='add_bit_name' /><br /><span class='desctext'>{$this->lang->words['sk_alphanumericonly']}</span></td></tr><tr><td class='field_title'><strong class='title'>{$this->lang->words['sk_group']}:</strong></td><td class='field_field'><select id='add_bit_group' class='input_select'></select></td></tr><tr><td class='field_title'><strong class='title'>{$this->lang->words['sk_newgroup']}:</strong></td><td class='field_field'>skin_<input type='text' class='input_text' id='add_bit_new_group' /></td></tr><tr><td class='field_title'><strong class='title'>{$this->lang->words['sk_datavariables']}</strong></td><td class='field_field'><input type='text' id='add_bit_variables' class='input_text' /></td></tr></table><div class='acp-actionbar'><input type='submit' value='{$this->lang->words['sk_add']}' class='realbutton' id='add_bit_submit' /></div></div>";
@@ -2701,7 +2725,7 @@ $IPBHTML .= <<<EOF
<strong class='title'>{$this->lang->words['sk_imageset']}</strong>
</td>
<td class='field_field'>
<select name='setID'>{$sets}</select><br />
{$form['exportImgDirs']}<br />
<span class='desctext'>{$this->lang->words['sk_xr_info']}</span>
</td>
</tr>
File diff suppressed because it is too large. Load diff
@@ -1,355 +1,306 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.2.3
* Warn log skin file
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
* </pre>
*
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license This is NULLED!
* @package IP.Board
* @subpackage Core
* @link http://hatynka.in
* @since Friday 19th May 2006 17:33
* @version $Revision: 8644 $
*/
class cp_skin_warnlogs
{
/**
* 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;
}
/**
* Warn logs wrapper
*
* @param array Records
* @param array Members
* @return string HTML
*/
public function warnlogsWrapper( $rows, $members ) {
$form_array = array(
0 => array( 'notes' , $this->lang->words['wlog_notes'] ),
1 => array( 'contact' , $this->lang->words['wlog_emailpm'] ),
);
$form = array();
$form['search_for'] = $this->registry->output->formInput( "search_string" );
$form['search_in'] = $this->registry->output->formDropdown( "search_type", $form_array );
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['wlog_title']}</h2>
</div>
<div class="acp-box">
<h3>{$this->lang->words['wlog_last10']}</h3>
<table class="ipsTable">
<tr>
<th width='10%'>{$this->lang->words['wlog_type']}</th>
<th width='25%'>{$this->lang->words['wlog_warned']}</th>
<th width='15%' style='text-align: center'>{$this->lang->words['wlog_wascontacted']}</th>
<th width='25%'>{$this->lang->words['wlog_date']}</th>
<th width='25%'>{$this->lang->words['wlog_warnedby']}</th>
</tr>
HTML;
if( count($rows) AND is_array($rows) )
{
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td><span class='larger_text'>{$row['_type']}</span></td>
<td>{$row['_a_name']}</td>
<td style='text-align: center'>{$row['_cont']}</td>
<td>{$row['_date']}</td>
<td>{$row['p_name']}</td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='6' align='center'>{$this->lang->words['wlog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
<br />
<div class="acp-box">
<h3>{$this->lang->words['wlog_thelogs']}</h3>
<table class="ipsTable">
<tr>
<th width='30%'>{$this->lang->words['wlog_member']}</th>
<th width='20%'>{$this->lang->words['wlog_times']}</th>
<th width='20%'>{$this->lang->words['wlog_viewall']}</th>
<th width='30%'>{$this->lang->words['wlog_removeall']}</th>
</tr>
HTML;
if( count($members) AND is_array($members) )
{
foreach( $members as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td><span class='larger_text'>{$row['members_display_name']}</span></td>
<td>{$row['act_count']}</td>
<td><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=view&amp;mid={$row['member_id']}'>{$this->lang->words['wlog_viewlog']}</a></td>
<td><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=remove&amp;mid={$row['member_id']}'>{$this->lang->words['wlog_remove']}</a></td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='4' align='center'>{$this->lang->words['wlog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
<br />
<form action='{$this->settings['base_url']}{$this->form_code}' method='post' name='theAdminForm' id='theAdminForm'>
<input type='hidden' name='do' value='view' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['wlog_search']}</h3>
<table class="ipsTable double_pad">
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['wlog_searchfor']}</strong></td>
<td class='field_field'>{$form['search_for']}</td>
</tr>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['wlog_searchin']}</strong></td>
<td class='field_field'>{$form['search_in']}</td>
</tr>
</table>
<div class="acp-actionbar">
<input value="{$this->lang->words['wlog_searchbutton']}" class="button primary" accesskey="s" type="submit" />
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* View an individual member's log
*
* @param array Log rows
* @param string Page links
* @return string HTML
*/
public function warnlogsView( $rows, $pages ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['wlog_title']}</h2>
</div>
<div class="acp-box">
<h3>{$this->lang->words['wlog_thelogs']}</h3>
<table class="ipsTable">
<tr>
<th width='5%'>{$this->lang->words['wlog_type']}</th>
<th width='15%'>{$this->lang->words['wlog_member']}</th>
<th width='10%'>{$this->lang->words['wlog_wascontacted']}</th>
<th width='10%'>{$this->lang->words['wlog_modq']}</th>
<th width='10%'>{$this->lang->words['wlog_susp']}</th>
<th width='10%'>{$this->lang->words['wlog_nopost']}</th>
<th width='15%'>{$this->lang->words['wlog_date']}</th>
<th width='15%'>{$this->lang->words['wlog_warnedby']}</th>
<th width='10%'>{$this->lang->words['wlog_viewnotes']}</th>
</tr>
HTML;
if( count($rows) AND is_array($rows) )
{
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td>{$row['_type']}</td>
<td>{$row['_a_name']}</td>
<td>{$row['_cont']}</td>
<td>{$row['_mod']}</td>
<td>{$row['_susp']}</td>
<td>{$row['_post']}</td>
<td>{$row['_date']}</td>
<td>{$row['p_name']}</td>
<td><a href='#' onclick='return acp.openWindow("{$this->settings['base_url']}&{$this->form_code}&do=viewnote&id={$row['wlog_id']}",400,400,"{$this->lang->words['wlog_log']}"); return false;'>{$this->lang->words['wlog_viewlog']}</a></td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='9' align='center'>{$this->lang->words['wlog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
<div class='acp-actionbar'>
<div class="left">{$pages}</div>
<br class='clear' />
</div>
</div>
<br />
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* View a member's warn log note
*
* @param array Note data
* @return string HTML
*/
public function warnlogsNote( $row ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class="acp-box">
<h3>{$this->lang->words['wlog_warnnotes']}</h3>
<table class="ipsTable">
<tr>
<td width='15%'>{$this->lang->words['wlog_log_from']}</td>
<td>{$row['p_name']}</td>
</tr>
<tr>
<td width='15%'>{$this->lang->words['wlog_log_to']}</td>
<td>{$row['a_name']}</td>
</tr>
<tr>
<td width='15%'>{$this->lang->words['wlog_log_sent']}</td>
<td>{$row['_date']}</td>
</tr>
<tr>
<td colspan='2'>{$row['_text']}</td>
</tr>
</table>
</div>
<br />
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* View contact information for a warn log
*
* @param array Warn log details
* @return string HTML
*/
public function warnlogsContact( $row ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class="acp-box">
<h3>{$row['_type']}: {$row['_subject']}</h3>
<table class="ipsTable">
<tr>
<td width='15%'><strong>{$this->lang->words['wlog_log_from']}</strong></td>
<td>{$row['p_name']}</td>
</tr>
<tr>
<td width='15%'>{$this->lang->words['wlog_log_to']}</td>
<td>{$row['a_name']}</td>
</tr>
<tr>
<td width='15%'>{$this->lang->words['wlog_log_sent']}</td>
<td>{$row['_date']}</td>
</tr>
<tr>
<td width='15%'>{$this->lang->words['wlog_log_subject']}</td>
<td>{$row['_subject']}</td>
</tr>
<tr>
<td colspan='2'>{$row['_text']}</td>
</tr>
</table>
</div>
<br />
HTML;
//--endhtml--//
return $IPBHTML;
}
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.3.4
* Warn log skin file
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @subpackage Core
* @link http://www.invisionpower.com
* @since Friday 19th May 2006 17:33
* @version $Revision: 10914 $
*/
class cp_skin_warnlogs
{
/**
* 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;
}
/**
* Warn logs wrapper
*
* @param array Records
* @param array Members
* @return string HTML
*/
public function warnlogsWrapper( $rows, $members, $pagination ) {
$form = array();
$form['search_for'] = $this->registry->output->formInput( "search_string" );
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['wlog_title']}</h2>
</div>
<div class="acp-box">
<h3>{$this->lang->words['wlog_last10']}</h3>
<table class="ipsTable">
<tr>
<th width='25%'>{$this->lang->words['wlog_warned']}</th>
<th width='25%'>{$this->lang->words['wlog_date']}</th>
<th width='25%'>{$this->lang->words['wlog_warnedby']}</th>
</tr>
HTML;
if( count($rows) AND is_array($rows) )
{
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td>{$row['_a_name']}</td>
<td>{$row['_date']}</td>
<td>{$row['p_name']}</td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='6' align='center'>{$this->lang->words['wlog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
<br />
<div class="acp-box">
<h3>{$this->lang->words['wlog_thelogs']}</h3>
<table class="ipsTable">
<tr>
<th width='30%'>{$this->lang->words['wlog_member']}</th>
<th width='20%'>{$this->lang->words['wlog_times']}</th>
<th width='20%'>{$this->lang->words['wlog_viewall']}</th>
<th width='30%'>{$this->lang->words['wlog_removeall']}</th>
</tr>
HTML;
if( count($members) AND is_array($members) )
{
foreach( $members as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td><span class='larger_text'>{$row['members_display_name']}</span></td>
<td>{$row['act_count']}</td>
<td><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=view&amp;mid={$row['member_id']}'>{$this->lang->words['wlog_viewlog']}</a></td>
<td><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=remove&amp;mid={$row['member_id']}'>{$this->lang->words['wlog_remove']}</a></td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='4' align='center'>{$this->lang->words['wlog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
</div>
<br />
{$pagination}
<br />
<form action='{$this->settings['base_url']}{$this->form_code}' method='post'>
<input type='hidden' name='do' value='view' />
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->generated_acp_hash}' />
<div class="acp-box">
<h3>{$this->lang->words['wlog_search']}</h3>
<table class="ipsTable double_pad">
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['wlog_searchin']}</strong></td>
<td class='field_field'>{$form['search_for']}</td>
</tr>
</table>
<div class="acp-actionbar">
<input value="{$this->lang->words['wlog_searchbutton']}" class="button primary" accesskey="s" type="submit" />
</div>
</div>
</form>
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* View an individual member's log
*
* @param array Log rows
* @param string Page links
* @return string HTML
*/
public function warnlogsView( $rows, $pages ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class='section_title'>
<h2>{$this->lang->words['wlog_title']}</h2>
</div>
<div class="acp-box">
<h3>{$this->lang->words['wlog_thelogs']}</h3>
<table class="ipsTable">
<tr>
<th>{$this->lang->words['wlog_member']}</th>
<th>{$this->lang->words['wlog_points']}</th>
<th>{$this->lang->words['wlog_modq']}</th>
<th>{$this->lang->words['wlog_susp']}</th>
<th>{$this->lang->words['wlog_nopost']}</th>
<th>{$this->lang->words['wlog_date']}</th>
<th>{$this->lang->words['wlog_warnedby']}</th>
<th>{$this->lang->words['wlog_reason']}</th>
<th>{$this->lang->words['wlog_viewnotes']}</th>
</tr>
HTML;
if( count($rows) AND is_array($rows) )
{
foreach( $rows as $row )
{
$IPBHTML .= <<<HTML
<tr>
<td>{$row['_a_name']}</td>
<td>{$row['wl_points']}</td>
<td>{$row['_mod']}</td>
<td>{$row['_susp']}</td>
<td>{$row['_post']}</td>
<td>{$row['_date']}</td>
<td>{$row['p_name']}</td>
<td>{$row['wl_reason']}</td>
<td><a href='#' onclick='return acp.openWindow("{$this->settings['base_url']}&{$this->form_code}&do=viewnote&id={$row['wl_id']}",700,400,"{$this->lang->words['wlog_log']}"); return false;'>{$this->lang->words['wlog_viewlog']}</a></td>
</tr>
HTML;
}
}
else
{
$IPBHTML .= <<<HTML
<tr>
<td colspan='9' align='center'>{$this->lang->words['wlog_noresults']}</td>
</tr>
HTML;
}
$IPBHTML .= <<<HTML
</table>
<div class='acp-actionbar'>
<div class="left">{$pages}</div>
<br class='clear' />
</div>
</div>
<br />
HTML;
//--endhtml--//
return $IPBHTML;
}
/**
* View a member's warn log note
*
* @param array Note data
* @return string HTML
*/
public function warnlogsNote( $row ) {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<HTML
<div class="acp-box">
<h3>{$this->lang->words['wlog_warnnotes']}</h3>
<table class="ipsTable">
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['wlog_log_to']}</strong></td>
<td class='field_field'>{$row['a_name']}</td>
</tr>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['wlog_log_from']}</strong></td>
<td>{$row['p_name']}</td>
</tr>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['wlog_log_sent']}</strong></td>
<td class='field_field'>{$row['_date']}</td>
</tr>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['wlog_log_note_member']}</strong></td>
<td class='field_field'>{$row['wl_note_member']}</td>
</tr>
<tr>
<td class='field_title'><strong class='title'>{$this->lang->words['wlog_log_note_mods']}</strong></td>
<td class='field_field'>{$row['wl_note_mods']}</td>
</tr>
</table>
</div>
<br />
HTML;
//--endhtml--//
return $IPBHTML;
}
}
@@ -1,10 +1,10 @@
<html>
<head><title>IP.Board - Bulletin Board System</title></head>
<body>
<h1>403: IP.Board -&gt; Forbidden</h1>
<hr>
You have reached this page in error, please use your back button to return to the forum.
<hr>
<a href="http://www.invisionpower.com">IP.Board</a>
</body>
<html>
<head><title>IP.Board - Bulletin Board System</title></head>
<body>
<h1>403: IP.Board -&gt; Forbidden</h1>
<hr>
You have reached this page in error, please use your back button to return to the forum.
<hr>
<a href="http://www.invisionpower.com">IP.Board</a>
</body>
</html>