Version 2.2.0 RC-1
No files matched your search
@@ -1,5 +1,5 @@
|
||||
//------------------------------------------
|
||||
// Invision Power Board v2.1.7
|
||||
// Invision Power Board v2.1
|
||||
// ACP Specific JS File
|
||||
// (c) 2005 Invision Power Services, Inc.
|
||||
//
|
||||
@@ -136,7 +136,8 @@ components.prototype.add_menu_row = function()
|
||||
}
|
||||
}
|
||||
|
||||
maxid += 1;
|
||||
maxid = parseInt(maxid);
|
||||
maxid = parseInt( maxid + 1 );
|
||||
|
||||
this.update_form_array();
|
||||
|
||||
@@ -159,7 +160,7 @@ function bbedit_components_remove_menu_row() {}
|
||||
|
||||
components.prototype.remove_menu_row = function( id )
|
||||
{
|
||||
if ( confirm( "Âû óâåðåíû, ÷òî æåëàåòå óäàëèòü ýòîò ïóíêò ìåíþ?" ) )
|
||||
if ( confirm( "Are you sure you wish to remove this menu row?" ) )
|
||||
{
|
||||
//-------------------------------
|
||||
// Delete All bits
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//------------------------------------------
|
||||
// Invision Power Board v2.1.7
|
||||
// Invision Power Board v2.0
|
||||
// ACP Specific JS File
|
||||
// (c) 2003 Invision Power Services, Inc.
|
||||
//
|
||||
@@ -10,7 +10,6 @@
|
||||
// IE TWEAKS
|
||||
/*--------------------------------------------*/
|
||||
|
||||
|
||||
//==========================================
|
||||
// AJAX REFRESH
|
||||
//==========================================
|
||||
@@ -291,31 +290,31 @@ function no_specialchars(type)
|
||||
if (type == 'sets')
|
||||
{
|
||||
var field = document.theAdminForm.sname;
|
||||
name = 'Íàçâàíèå ñòèëÿ';
|
||||
name = 'Skin Set Title';
|
||||
}
|
||||
|
||||
if (type == 'wrapper')
|
||||
{
|
||||
var field = document.theAdminForm.name;
|
||||
name = 'Íàçâàíèå îáùåãî øàáëîíà';
|
||||
name = 'Wrapper Title';
|
||||
}
|
||||
|
||||
if (type == 'csssheet')
|
||||
{
|
||||
var field = document.theAdminForm.name;
|
||||
name = 'Íàçâàíèå CSS';
|
||||
name = 'StyleSheet Title';
|
||||
}
|
||||
|
||||
if (type == 'templates')
|
||||
{
|
||||
var field = document.theAdminForm.skname;
|
||||
name = 'Íàçâàíèå íàáîðà øàáëîíîâ';
|
||||
name = 'Template Set Name';
|
||||
}
|
||||
|
||||
if (type == 'images')
|
||||
{
|
||||
var field = document.theAdminForm.setname;
|
||||
name = 'Íàçâàíèå ìàêðîñîâ';
|
||||
name = 'Image & Macro Set Title';
|
||||
}
|
||||
|
||||
var valid = 'abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890.()[]:;~+-_';
|
||||
@@ -334,7 +333,7 @@ function no_specialchars(type)
|
||||
|
||||
if (ok == 0)
|
||||
{
|
||||
alert('Íåêîððåêòíàÿ çàïèñü: ' + name + ', âû ìîæåòå èñïîëüçîâàòü òîëüêî ÷èñëà è ñëåäóþùèå ñïåöèàëüíûå ñèìâîëû.\n. ( ) : ; ~ + - _');
|
||||
alert('Invalid entry for: ' + name + ', you can only use alphanumerics and the following special characters.\n. ( ) : ; ~ + - _');
|
||||
return false;
|
||||
}
|
||||
else
|
||||
@@ -369,7 +368,7 @@ function maincheckdelete(url, msg)
|
||||
{
|
||||
if ( ! msg )
|
||||
{
|
||||
msg = 'Ïîæàëóéñòà ïîäòâåðäèòå óäàëåíèå.';
|
||||
msg = 'PLEASE CONFIRM:\nOK to proceed?';
|
||||
}
|
||||
|
||||
if (confirm( msg ))
|
||||
@@ -378,7 +377,7 @@ function maincheckdelete(url, msg)
|
||||
}
|
||||
else
|
||||
{
|
||||
alert ( 'Äåéñòâèå îòìåíåíî!' );
|
||||
alert ( 'OK, action cancelled!' );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -16,8 +16,16 @@ var css_menusep_last = 'menuseplast';
|
||||
// INIT some images
|
||||
//----------------------------------
|
||||
|
||||
var img_item = "<img src='" + ipb_skin_url + "/images/menu_item.gif' border='0' alt='V' class='ipd' />";
|
||||
var img_action = "<img src='" + ipb_skin_url + "/images/menu_item2.gif' border='0' alt='V' class='ipd' />";
|
||||
var img_add = "<img src='" + ipb_skin_url + "/images/icons_menu/add.gif' border='0' alt='V' class='ipd' /> ";
|
||||
var img_edit = "<img src='" + ipb_skin_url + "/images/icons_menu/edit.gif' border='0' alt='V' class='ipd' /> ";
|
||||
var img_view = "<img src='" + ipb_skin_url + "/images/icons_menu/view.gif' border='0' alt='V' class='ipd' /> ";
|
||||
var img_delete = "<img src='" + ipb_skin_url + "/images/icons_menu/delete.gif' border='0' alt='V' class='ipd' /> ";
|
||||
var img_info = "<img src='" + ipb_skin_url + "/images/icons_menu/info.gif' border='0' alt='V' class='ipd' /> ";
|
||||
var img_action = "<img src='" + ipb_skin_url + "/images/icons_menu/manage.gif' border='0' alt='V' class='ipd' /> ";
|
||||
var img_item = "<img src='" + ipb_skin_url + "/images/icons_menu/manage.gif' border='0' alt='V' class='ipd' /> ";
|
||||
var img_newfolder = "<img src='" + ipb_skin_url + "/images/icons_menu/new-folder.gif' border='0' alt='V' class='ipd' /> ";
|
||||
var img_password = "<img src='" + ipb_skin_url + "/images/icons_menu/password.gif' border='0' alt='V' class='ipd' /> ";
|
||||
var img_export = "<img src='" + ipb_skin_url + "/images/icons_menu/export.png' border='0' alt='V' class='ipd' /> ";
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Return formed image
|
||||
@@ -25,7 +33,7 @@ var img_action = "<img src='" + ipb_skin_url + "/images/menu_item2.gif' border='
|
||||
|
||||
function make_image( img )
|
||||
{
|
||||
return "<img src='" + ipb_skin_url + "/images/" + img + "' border='0' alt='-' class='ipd' />";
|
||||
return "<img src='" + ipb_skin_url + "/" + img + "' border='0' alt='-' class='ipd' />";
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
@@ -37,7 +45,7 @@ function make_image( img )
|
||||
|
||||
function menu_build_menu(cid, menuinput, complexmenu)
|
||||
{
|
||||
var html = "\n<div class='" + css_mainwrap + "' id='" + cid + "_menu' style='display:none;z-index:100'>\n";
|
||||
var html = "\n<div class='" + css_mainwrap + "' id='" + cid + "_menu' style='display:none;'>\n";
|
||||
|
||||
if ( ! complexmenu )
|
||||
{
|
||||
@@ -84,18 +92,12 @@ function menu_build_menu(cid, menuinput, complexmenu)
|
||||
// Write the html
|
||||
//----------------------------------
|
||||
|
||||
if ( html != '' )
|
||||
{
|
||||
document.open();
|
||||
document.writeln( html );
|
||||
document.close();
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// Register and init
|
||||
//----------------------------------
|
||||
|
||||
menu_register( cid );
|
||||
document.open();
|
||||
document.writeln( html );
|
||||
document.close();
|
||||
|
||||
//ipsmenu.dynamic_html += html;
|
||||
ipsmenu.dynamic_register[ ipsmenu.dynamic_register.length + 1 ] = cid;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//------------------------------------------
|
||||
// Invision Power Board v2.1.7
|
||||
// Invision Power Board v2.1
|
||||
// ACP Specific JS File
|
||||
// (c) 2005 Invision Power Services, Inc.
|
||||
//
|
||||
@@ -28,7 +28,7 @@ function acpperms()
|
||||
this.save_cache = new Array();
|
||||
this.perm_main = '';
|
||||
this.perm_child = '';
|
||||
this.reg_tabs = new Array( 'content', 'lookandfeel', 'tools', 'components', 'admin' );
|
||||
this.reg_tabs = new Array( 'content', 'lookandfeel', 'tools', 'components', 'admin', 'help' );
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
@@ -68,7 +68,7 @@ acpperms.prototype.save_group = function( perm_main, perm_child, member_id, resu
|
||||
|
||||
if ( ! _this.xmlobj.readystate_ready_and_ok() )
|
||||
{
|
||||
_this.show_loading( 'Ñîõðàíåíèå...' );
|
||||
_this.show_loading( 'Saving...' );
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -182,7 +182,7 @@ acpperms.prototype.clicked = function( perm_bit, onoff )
|
||||
|
||||
if ( perm_bit != 'mainbit' && ( ! document.getElementById( 'pb_mainbit' ).value || document.getElementById( 'pb_mainbit' ).value == 0 ) )
|
||||
{
|
||||
alert( "Äëÿ âêëþ÷åíèÿ èíäèâèäóàëüíûõ íàñòðîåê äîñòóïà ïîæàëóéñòà âêëþ÷èòå 'ÐÀÇÐÅØÈÒÜ ÄÎÑÒÓÏ Ê ÝÒÎÉ ÔÓÍÊÖÈÈ'" );
|
||||
alert( "To enabled individual access permissions, please enable 'ALLOW ACCESS TO THIS FUNCTION'" );
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -347,7 +347,7 @@ acpperms.prototype.save_bits = function( doreturn )
|
||||
try
|
||||
{
|
||||
document.getElementById( 'perms-save-box' ).className = 'input-ok-content';
|
||||
document.getElementById( 'perms-save-box' ).innerHTML = "Àâòî-ñîõðàíåíèå...";
|
||||
document.getElementById( 'perms-save-box' ).innerHTML = "Auto-saving...";
|
||||
}
|
||||
catch(e) { }
|
||||
|
||||
@@ -366,7 +366,7 @@ acpperms.prototype.save_bits = function( doreturn )
|
||||
|
||||
if ( ! _this.xmlobj.readystate_ready_and_ok() )
|
||||
{
|
||||
_this.show_loading( 'Ñîõðàíåíèå...' );
|
||||
_this.show_loading( 'Saving...' );
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -429,7 +429,7 @@ acpperms.prototype.save_mainbit = function( result )
|
||||
|
||||
if ( ! _this.xmlobj.readystate_ready_and_ok() )
|
||||
{
|
||||
_this.show_loading( 'Ñîõðàíåíèå...' );
|
||||
_this.show_loading( 'Saving...' );
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -497,7 +497,7 @@ acpperms.prototype.save_tab = function( perm_main, member_id, result )
|
||||
|
||||
if ( ! _this.xmlobj.readystate_ready_and_ok() )
|
||||
{
|
||||
_this.show_loading( 'Ñîõðàíåíèå...' );
|
||||
_this.show_loading( 'Saving...' );
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -586,7 +586,7 @@ acpperms.prototype.init = function( tab, member_id, perm_child )
|
||||
|
||||
if ( ! _this.xmlobj.readystate_ready_and_ok() )
|
||||
{
|
||||
_this.show_loading( 'Çàãðóçêà...' );
|
||||
_this.show_loading( 'Loading...' );
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -605,7 +605,7 @@ acpperms.prototype.init = function( tab, member_id, perm_child )
|
||||
|
||||
if ( is_ie )
|
||||
{
|
||||
html = "<iframe id='perm-shim' src='javascript:;' class='iframshim' scrolling='no' frameborder='0' style='position:absolute; top:0px; left:0px; display:none;'></iframe>" + html;
|
||||
html = "<iframe id='perm-shim' src='" + ipb_skin_url + "/iframe.html' class='iframshim' scrolling='no' frameborder='0' style='position:absolute; top:0px; left:0px; display:none;'></iframe>" + html;
|
||||
}
|
||||
|
||||
_this.div_content.innerHTML = html;
|
||||
@@ -785,7 +785,7 @@ acpperms.prototype.show_loading = function( status_msg )
|
||||
|
||||
acpperms.prototype.hide_loading = function()
|
||||
{
|
||||
this.div_status_msg.innerHTML = '<div style="width:auto" class="input-ok-content">Ïðèìåíèòü</span>';
|
||||
this.div_status_msg.innerHTML = '<div style="width:auto" class="input-ok-content">Ready</span>';
|
||||
|
||||
this.loading_fired = 0;
|
||||
|
||||
|
||||
@@ -5,253 +5,146 @@ class cp_skin_admin {
|
||||
var $ipsclass;
|
||||
|
||||
//===========================================================================
|
||||
// DIAGNOSTICS
|
||||
// Index
|
||||
//===========================================================================
|
||||
function deep_scan_bad_files_wrapper($content) {
|
||||
function acp_last_logins_detail( $log ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=deep_scan' method='POST'>
|
||||
<div style='padding-bottom:10px'>Ïîêàçàòü:
|
||||
<select name='filter'>
|
||||
<option value='all'>Âñå</option>
|
||||
<option value='score-5'>Ðåéòèíã 5 èëè áîëåå</option>
|
||||
<option value='score-6'>Ðåéòèíã 6 èëè áîëåå</option>
|
||||
<option value='score-7'>Ðåéòèíã 7 èëè áîëåå</option>
|
||||
<option value='score-8'>Ðåéòèíã 8 èëè áîëåå</option>
|
||||
<option value='score-9'>Ðåéòèíã 9 èëè áîëåå</option>
|
||||
<option value='large'>Ðàçìåð 55k èëè áîëüøå</option>
|
||||
<option value='recent'>Èçìåíåííûå çà ïîñëåäíèå 30 äíåé</option>
|
||||
</select>
|
||||
<input type='submit' value=' Ôèëüòðîâàòü ' />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Log in Detail</div>
|
||||
<table width='100%' cellpadding='4' cellspacing='0'>
|
||||
<tr>
|
||||
<td class='tablerow2'>
|
||||
<fieldset>
|
||||
<legend><strong>Basics</strong></legend>
|
||||
<table width='100%' cellpadding='4' cellspacing='0'>
|
||||
<tr>
|
||||
<td width='30%' class='tablerow1'>Username</td>
|
||||
<td width='70%' class='tablerow1'>{$log['admin_username']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'>IP Address</td>
|
||||
<td class='tablerow1'>{$log['admin_ip_address']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'>Log in Time</td>
|
||||
<td class='tablerow1'>{$log['_admin_time']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'>Success</td>
|
||||
<td class='tablerow1'><img src='{$this->ipsclass->skin_acp_url}/images/{$log['_admin_img']}' border='0' alt='-' class='ipd' /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<br />
|
||||
<fieldset>
|
||||
<legend><strong>POST Data (Form Data)</strong></legend>
|
||||
<table width='100%' cellpadding='4' cellspacing='0'>
|
||||
EOF;
|
||||
if ( is_array( $log['_admin_post_details']['post'] ) AND count( $log['_admin_post_details']['post'] ) )
|
||||
{
|
||||
foreach( $log['_admin_post_details']['post'] as $k => $v )
|
||||
{
|
||||
$IPBHTML .= "<tr>
|
||||
<td width='30%' class='tablerow1'>{$k}</td>
|
||||
<td width='70%' class='tablerow1'>{$v}</td>
|
||||
</tr>";
|
||||
}
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
</table>
|
||||
</fieldset>
|
||||
<br />
|
||||
<fieldset>
|
||||
<legend><strong>GET Data (URL Data)</strong></legend>
|
||||
<table width='100%' cellpadding='4' cellspacing='0'>
|
||||
EOF;
|
||||
if ( is_array( $log['_admin_post_details']['get'] ) AND count( $log['_admin_post_details']['get'] ) )
|
||||
{
|
||||
foreach( $log['_admin_post_details']['get'] as $k => $v )
|
||||
{
|
||||
$IPBHTML .= "<tr>
|
||||
<td width='30%' class='tablerow1'>{$k}</td>
|
||||
<td width='70%' class='tablerow1'>{$v}</td>
|
||||
</tr>";
|
||||
}
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function acp_last_logins_row( $r ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1' width='1' valign='middle'>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/folder_components/index/user.png' border='0' alt='-' class='ipd' />
|
||||
</td>
|
||||
<td class='tablerow1'> <strong>{$r['admin_username']}</strong></td>
|
||||
<td class='tablerow2'><div class='desctext'>IP: {$r['admin_ip_address']}</div></td>
|
||||
<td class='tablerow2' align='center'>{$r['_admin_time']}</td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_acp_url}/images/{$r['_admin_img']}' border='0' alt='-' class='ipd' /></td>
|
||||
<td class='tablerow1' width='1' valign='middle'>
|
||||
<a href='#' onclick="return ipsclass.pop_up_window('{$this->ipsclass->base_url}section=admin&act=loginlog&code=view_detail&detail={$r['admin_id']}', 400, 400)" title='View Details'><img src='{$this->ipsclass->skin_acp_url}/images/folder_components/index/view.png' border='0' alt='-' class='ipd' /></a>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function acp_last_logins_wrapper($content, $links) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>ACP Log in Attempts</div>
|
||||
<table width='100%' cellpadding='4' cellspacing='0'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='1%'> </td>
|
||||
<td class='tablesubheader' width='30%'>Name</td>
|
||||
<td class='tablesubheader' width='20%'>IP Address</td>
|
||||
<td class='tablesubheader' width='44%' align='center'>Date</td>
|
||||
<td class='tablesubheader' width='5%' align='center'>Status</td>
|
||||
<td class='tablesubheader' width='5%' align='center'>Log</td>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
<div class='tablefooter' align='right'>
|
||||
$links
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Èñïîëíÿåìûå ôàéëû</div>
|
||||
<div class='tablesubheader' style='padding-right:0px'>
|
||||
<div align='right' style='padding-right:10px'>
|
||||
(Ðàçìåð) Èçìåíåí
|
||||
</div>
|
||||
</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
$content
|
||||
</table>
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// DIAGNOSTICS
|
||||
//===========================================================================
|
||||
function list_admin_overview($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Ïîëüçîâàòåëè ñ äîñòóïîì â àäìèíöåíòð</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='30%'>Èìÿ</td>
|
||||
<td class='tablesubheader' width='30%'>Îñíîâíàÿ ãðóïïà</td>
|
||||
<td class='tablesubheader' width='30%'>Âòîðîñòåïåííûå ãðóïïû</td>
|
||||
<td class='tablesubheader' width='30%'>IP-àäðåñ</td>
|
||||
<td class='tablesubheader' width='30%'>Email àäðåñ</td>
|
||||
<td class='tablesubheader' width='30%'>Ñîîáùåíèé</td>
|
||||
<td class='tablesubheader' width='30%'> </td>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// DIAGNOSTICS
|
||||
//===========================================================================
|
||||
function list_admin_row( $member ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<strong>{$member['members_display_name']}</strong>
|
||||
<div class='desctext'>{$member['_joined']}</div>
|
||||
</td>
|
||||
<td class='tablerow1'>
|
||||
{$member['_mgroup']}
|
||||
</td>
|
||||
<td class='tablerow2'>
|
||||
{$member['_mgroup_others']}
|
||||
</td>
|
||||
<td class='tablerow1'>
|
||||
<div class='desctext'>{$member['ip_address']}</div>
|
||||
</td>
|
||||
<td class='tablerow2'>
|
||||
{$member['email']}
|
||||
</td>
|
||||
<td class='tablerow2'>
|
||||
{$member['posts']}
|
||||
</td>
|
||||
<td class='tablerow1'>
|
||||
<a href='{$this->ipsclass->base_url}&section=content&act=mem&code=doform&mid={$member['id']}'>Èçìåíèòü</a>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// DIAGNOSTICS
|
||||
//===========================================================================
|
||||
function deep_scan_bad_files_row( $file_path, $file_name, $data ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<div style='float:right'>
|
||||
<div class='desctext'>({$data['human']}k) {$data['mtime']}</div>
|
||||
</div>
|
||||
<img src='{$this->ipsclass->skin_url}/images/file.gif' border='0' alt='-' class='ipd' />
|
||||
<span style='border:1px solid #555;background-color:#FFFFFF'>
|
||||
<span style='width:{$data['left_width']}px;background-color:{$data['color']}'>
|
||||
<img src='{$this->ipsclass->skin_url}/images/blank.gif' height='20' width='{$data['left_width']}' alt='' />
|
||||
</span>
|
||||
<img src='{$this->ipsclass->skin_url}/images/blank.gif' height='20' width='{$data['right_width']}' alt='' />
|
||||
</span>
|
||||
<span class='desctext'>[ {$data['score']} ]</span> <a target='_blank' href='{$this->ipsclass->vars['board_url']}/{$file_path}'>$file_path</a>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// DIAGNOSTICS
|
||||
//===========================================================================
|
||||
function anti_virus_checked_wrapper($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<br />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Ïðîâåðåííûå àíòèâèðóñîì ôàéëû</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
$content
|
||||
</table>
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// DIAGNOSTICS
|
||||
//===========================================================================
|
||||
function anti_virus_checked_row( $file_path ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<img src='{$this->ipsclass->skin_url}/images/folder.gif' border='0' alt='-' class='ipd' />
|
||||
$file_path
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// DIAGNOSTICS
|
||||
//===========================================================================
|
||||
function anti_virus_bad_files_wrapper($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Ïîäîçðèòåëüíûå ôàéëû</div>
|
||||
<div class='tablesubheader' style='padding-right:0px'>
|
||||
<div align='right' style='padding-right:10px'>
|
||||
(Ðàçìåð) Èçìåíåí
|
||||
</div>
|
||||
</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
$content
|
||||
</table>
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// DIAGNOSTICS
|
||||
//===========================================================================
|
||||
function anti_virus_bad_files_row( $file_path, $file_name, $data ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<div style='float:right'>
|
||||
<div class='desctext'>({$data['human']}k) {$data['mtime']}</div>
|
||||
</div>
|
||||
<img src='{$this->ipsclass->skin_url}/images/file.gif' border='0' alt='-' class='ipd' />
|
||||
<span style='border:1px solid #555;background-color:#FFFFFF'>
|
||||
<span style='width:{$data['left_width']}px;background-color:{$data['color']}'>
|
||||
<img src='{$this->ipsclass->skin_url}/images/blank.gif' height='20' width='{$data['left_width']}' alt='' />
|
||||
</span>
|
||||
<img src='{$this->ipsclass->skin_url}/images/blank.gif' height='20' width='{$data['right_width']}' alt='' />
|
||||
</span>
|
||||
<span class='desctext'>[ {$data['score']} ]</span> <a target='_blank' href='{$this->ipsclass->vars['board_url']}/{$file_path}'>$file_path</a>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// RSS
|
||||
//===========================================================================
|
||||
@@ -263,17 +156,18 @@ $IPBHTML = "";
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type="text/javascript" src='jscripts/ipb_xhr_findnames.js'></script>
|
||||
<form id='postingform' style='display:block' action="{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=acpperms-member-add-complete" method="post" name="REPLIER">
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<div id='ipb-get-members' style='border:1px solid #000; background:#FFF; padding:2px;position:absolute;width:210px;display:none;z-index:100'></div>
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Îãðàíè÷åíèÿ äîñòóïà â àäìèíöåíòð: Íàéòè àäìèíèñòðàòîðà</div>
|
||||
<div class='tableheaderalt'>ACP Permissions: Find an administrator</div>
|
||||
<div class='tablesubheader'> </div>
|
||||
<table width='100%' cellspacing='0' cellpadding='5' align='center' border='0'>
|
||||
<tr>
|
||||
<td class='tdrow1' width='50%' valign='middle'><b>Ââåäèòå îòîáðàæàåìîå èìÿ àäìèíèñòðàòîðà</b><div style='color:gray'>Àäìèíèñòðàòîð - ïîëüçîâàòåëü, èìåþùèé äîñòóï â àäìèíöåíòð, èñïîëüçóÿ îñíîâíóþ èëè âòîðè÷íóþ ãðóïïó è íå èñïîëüçóÿ ãðóïïó ÃËÀÂÍÛÕ àäìèíèñòðàòîðîâ.</div></td>
|
||||
<td class='tdrow2' width='50%' valign='middle'><input type="text" id='entered_name' name="entered_name" size="30" autocomplete='off' style='width:210px' value="" tabindex="1" /></td>
|
||||
<td class='tablerow1' width='50%' valign='middle'><b>Enter an administrator's display name</b><div style='color:gray'>An administrator is someone that has access to the ACP via their primary or secondary groups and is NOT in the Root Admin group.</div></td>
|
||||
<td class='tablerow2' width='50%' valign='middle'><input type="text" id='entered_name' name="entered_name" size="30" autocomplete='off' style='width:210px' value="" tabindex="1" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='center' class='pformstrip' colspan='2' ><input type='submit' value='Äàëåå >>' id='button' accesskey='s'></td>
|
||||
<td align='center' class='tablesubheader' colspan='2' ><input type='submit' value='Proceed >>' class='realbutton' accesskey='s'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@@ -302,12 +196,12 @@ $IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type="text/javascript" src='jscripts/dom-drag.js'></script>
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_url}/acp_perms.js'></script>
|
||||
<div id='perms-wrapper' style='display:none;width:700px;text-align:left'>
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_acp_url}/acp_perms.js'></script>
|
||||
<div id='perms-wrapper' style='display:none;width:800px;text-align:left'>
|
||||
<div class="tableborder" style='border-width:2px'>
|
||||
<div class='maintitle' id='perms-drag' title='{$this->ipsclass->lang['myass_drag']}'>
|
||||
<div class='tableheaderalt' id='perms-drag' title='{$this->ipsclass->lang['myass_drag']}'>
|
||||
<div style='float:right'><a href='#' onclick='document.getElementById("perms-wrapper").style.display="none"'>[X]</a></div>
|
||||
<div>Îãðàíè÷åíèÿ äîñòóïà â àäìèíöåíòð</div>
|
||||
<div>ACP Restriction Permissions</div>
|
||||
</div>
|
||||
<div id='perms-content'></div>
|
||||
<div id='perms-status' class='tablerow4' style='height:30px;padding:0px'><div style='width:100px;float:left' id='perms-status-msg'></div></div>
|
||||
@@ -315,13 +209,13 @@ $IPBHTML .= <<<EOF
|
||||
</div>
|
||||
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Îãðàíè÷åíèÿ äîñòóïà â àäìèíöåíòð</div>
|
||||
<div class='tableheaderalt'>ACP Restriction Permissions</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='40%'>Ïîëüçîâàòåëü</td>
|
||||
<td class='tablesubheader' width='20%' align='center'>Îñíîâíàÿ ãðóïïà</td>
|
||||
<td class='tablesubheader' width='20%' align='center'>Îáíîâëåíî</td>
|
||||
<td class='tablesubheader' width='5%'><img id="menumainone" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' /></td>
|
||||
<td class='tablesubheader' width='40%'>Member</td>
|
||||
<td class='tablesubheader' width='20%' align='center'>Primary Group</td>
|
||||
<td class='tablesubheader' width='20%' align='center'>Updated</td>
|
||||
<td class='tablesubheader' width='5%'><img id="menumainone" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
@@ -329,20 +223,21 @@ $IPBHTML .= <<<EOF
|
||||
</div>
|
||||
<br />
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=accperms-xml-import' method='post' name='uploadform' enctype='multipart/form-data' id='uploadform'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<input type='hidden' name='MAX_FILE_SIZE' value='10000000000'>
|
||||
<div class='tableborder'>
|
||||
<div class='maintitle'>Èìïîðòèðîâàíèå XML ôàéëà ñ äàííûìè ïî îãðàíè÷åíèÿì</div>
|
||||
<div class='tableheaderalt'>Import an XML Permissions file</div>
|
||||
<table width='100%' cellspacing='0' cellpadding='5' align='center' border='0'>
|
||||
<tr>
|
||||
<td class='tdrow1' width='50%' valign='middle'><b>Çàãðóçêà XML ôàéëà ñ äàííûìè ïî îãðàíè÷åíèÿì ñ âàøåãî êîìïüþòåðà</b><div style='color:gray'>Ýòîò ôàéë äîëæåí íà÷èíàòüñÿ ñ 'ipb_' è çàêàí÷èâàòüñÿ '.xml' èëè '.xml.gz'.<br />Ñóùåñòâóþùèå íàñòðîéêè áóäóò îáíîâëåíû, äðóãèå æå äîáàâëåíû.</div></td>
|
||||
<td class='tdrow2' width='50%' valign='middle'><input class='textinput' type='file' size='30' name='FILE_UPLOAD'></td>
|
||||
<td class='tablerow1' width='50%' valign='middle'><b>Upload XML permissions file from your computer</b><div style='color:gray'>Duplicate entries will not be overwritten. The file must begin with 'ipb_' and end with either '.xml' or '.xml.gz'</div></td>
|
||||
<td class='tablerow2' width='50%' valign='middle'><input class='textinput' type='file' size='30' name='FILE_UPLOAD'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tdrow1' width='50%' valign='middle'><b><u>ÈËÈ</u> ââåäèòå íàçâàíèå XML ôàéëà-àðõèâà</b><div style='color:gray'>Ýòîò ôàéë äîëæåí áûòü çàãðóæåí â êîðíåâóþ ïàïêó âàøåãî ôîðóìà.</div></td>
|
||||
<td class='tdrow2' width='50%' valign='middle'><input type='text' name='file_location' value='ipb_acpperms.xml' size='30' class='textinput'></td>
|
||||
<td class='tablerow1' width='50%' valign='middle'><b><u>OR</u> enter the filename of the XML permissions file</b><div style='color:gray'>The file must be uploaded into the forum's root folder</div></td>
|
||||
<td class='tablerow2' width='50%' valign='middle'><input type='text' name='file_location' value='ipb_acpperms.xml' size='30' class='textinput'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='center' class='pformstrip' colspan='2' ><input type='submit' value='Èìïîðòèðîâàòü äàííûå' id='button' accesskey='s'></td>
|
||||
<td align='center' class='tablesubheader' colspan='2' ><input type='submit' value='Import XML settings Set' class='realbutton' accesskey='s'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@@ -354,20 +249,20 @@ if ( IN_DEV )
|
||||
$IPBHTML .= <<<EOF
|
||||
<br />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Óòèëèòû ðàçðàáîò÷èêà</div>
|
||||
<div class='tablerow1'><strong>Ñãåíåðèðîâàòü XML èç èñõîäíèêîâ</strong>
|
||||
<div class='desctext'>Âûáðàòü ÷åðåç /sources/action_admin/ íàñòðîéêè îãðàíè÷åíèÿ äîñòóïà íà ïðîâåðêó è ñîçäàíèå XML äîêóìåíòà äëÿ èìïîðòèðîâàíèÿ</div>
|
||||
<div align='right'><strong><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=acpperms-dev-source-to-xml'>ÇÀÏÓÑÒÈÒÜ ÓÒÈËÈÒÓ</a> >></strong></div>
|
||||
<div class='tableheaderalt'>Developer Tools</div>
|
||||
<div class='tablerow1'><strong>Generate XML from source files</strong>
|
||||
<div class='desctext'>Pick through /sources/action_admin for permission check rows and build an XML document ready for import</div>
|
||||
<div align='right'><strong><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=acpperms-dev-source-to-xml'>RUN TOOL</a> >></strong></div>
|
||||
</div>
|
||||
|
||||
<div class='tablerow1'><strong>Ñãåíåðèðîâàòü äîêëàä: Íåçàâåðøåííûå ôàéëû</strong>
|
||||
<div class='desctext'>Âûáðàòü ÷åðåç /sources/action_admin/ ôàéëû, ê êîòîðûì íå èìååòñÿ íàñòðîåê îãðàíè÷åíèÿ äîñòóïà</div>
|
||||
<div align='right'><strong><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=acpperms-dev-report-missing'>ÇÀÏÓÑÒÈÒÜ ÓÒÈËÈÒÓ</a> >></strong></div>
|
||||
<div class='tablerow1'><strong>Generate Report: Uncompleted Files</strong>
|
||||
<div class='desctext'>Pick through /sources/action_admin for files that don't have any permission rows</div>
|
||||
<div align='right'><strong><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=acpperms-dev-report-missing'>RUN TOOL</a> >></strong></div>
|
||||
</div>
|
||||
|
||||
<div class='tablerow1'><strong>Ñãåíåðèðîâàòü äîêëàä: ßçûêîâûå ôàéëû</strong>
|
||||
<div class='desctext'>Âûáðàòü ÷åðåç /sources/action_admin/ è ñîçäàòü ÿçûêîâîé ôàéë</div>
|
||||
<div align='right'><strong><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=acpperms-dev-report-language'>ÇÀÏÓÑÒÈÒÜ ÓÒÈËÈÒÓ</a> >></strong></div>
|
||||
<div class='tablerow1'><strong>Generate Report: Language File</strong>
|
||||
<div class='desctext'>Pick through /sources/action_admin and generate the language file basics</div>
|
||||
<div align='right'><strong><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=acpperms-dev-report-language'>RUN TOOL</a> >></strong></div>
|
||||
</div>
|
||||
</div>
|
||||
EOF;
|
||||
@@ -379,7 +274,7 @@ $IPBHTML .= <<<EOF
|
||||
menu_build_menu(
|
||||
"menumainone",
|
||||
new Array(
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=acpperms-member-add'>Íàéòè è äîáàâèòü àäìèíèñòðàòîðà...</a>"
|
||||
img_add + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=acpperms-member-add'>Find and add administrator...</a>"
|
||||
) );
|
||||
//]]>
|
||||
</script>
|
||||
@@ -400,19 +295,19 @@ $IPBHTML = "";
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<img src='{$this->ipsclass->skin_url}/images/lock_close.gif' border='0' alt='@' style='vertical-align:top' /></a>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/lock_close.gif' border='0' alt='@' style='vertical-align:top' />
|
||||
<strong>{$data['members_display_name']}</strong>
|
||||
</td>
|
||||
<td class='tablerow2' align='center'>{$data['_group_name']}</td>
|
||||
<td class='tablerow2' align='center'>{$data['_date']}</td>
|
||||
<td class='tablerow1'><img id="menu{$data['id']}" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' /></td>
|
||||
<td class='tablerow1'><img id="menu{$data['id']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$data['id']}",
|
||||
new Array(
|
||||
img_item + " <a href='#' onclick='maincheckdelete(\"{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=accperms-member-remove&mid={$data['id']}\");'>Óäàëèòü âñå îãðàíè÷åíèÿ äîñòóïà...</a>",
|
||||
img_item + " <a href='#' onclick='permobj.init(\"\",{$data['id']})'>Óïðàâëåíèå îãðàíè÷åíèÿìè äîñòóïà...</a>"
|
||||
img_delete + " <a href='#' onclick='maincheckdelete(\"{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=accperms-member-remove&mid={$data['id']}\");'>Remove all member's restrictions...</a>",
|
||||
img_item + " <a href='#' onclick='permobj.init(\"\",{$data['id']})'>Manage member's restrictions...</a>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
@@ -425,7 +320,7 @@ return $IPBHTML;
|
||||
// ACP Perms
|
||||
//===========================================================================
|
||||
function acp_xml_welcome($member=array()) {
|
||||
global $ibforums;
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
@@ -433,11 +328,12 @@ $IPBHTML = "";
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tablerow2'>
|
||||
<input type='hidden' id='perms-perm-child-id' value=' ' />
|
||||
Îãðàíè÷åíèÿ äîñòóïà â àäìèíöåíòð äëÿ <strong>{$member['members_display_name']}</strong>
|
||||
ACP permission restrictions for <strong>{$member['members_display_name']}</strong>
|
||||
<br />
|
||||
<br />
|
||||
Íàæìèòå íà òàáëèöó âûøå, ÷òîáû óñòàíîâèòü óðîâåíü äîñòóïà äî âñåõ ôóíêöèé â ýòîé òàáëèöå.
|
||||
Åñëè âû õîòèòå âûáðàòü óðîâåíü äîñòóïà ê êàæäîé ôóíêöèè, íàæìèòå íà ññûëêó, ïîêàçûâàþùåéñÿ â îïöèÿõ ýòèõ ôóíêöèé.
|
||||
Simply click on one of the tabs above to set the access level for all functions in this
|
||||
tab. If you want to choose access on a per-function level, click on the relevant link
|
||||
to be shown this function's options.
|
||||
</div>
|
||||
EOF;
|
||||
//--endhtml--//
|
||||
@@ -448,7 +344,7 @@ return $IPBHTML;
|
||||
// ACP Perms
|
||||
//===========================================================================
|
||||
function acp_xml_tab_no_access($member=array()) {
|
||||
global $ibforums;
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
@@ -456,14 +352,14 @@ $IPBHTML = "";
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tablerow2'>
|
||||
<input type='hidden' id='perms-perm-child-id' value='' />
|
||||
Îãðàíè÷åíèÿ äîñòóïà â àäìèíöåíòð äëÿ <strong>{$member['members_display_name']}</strong>
|
||||
ACP permission restritctions for <strong>{$member['members_display_name']}</strong>
|
||||
<br />
|
||||
<br />
|
||||
Äîñòóï ê ýòîé òàáëèöå åùå íå âêëþ÷åí. Äëÿ âêëþ÷åíèÿ èíäèâèäóàëüíûõ íàñòðîåê äîñòóïà äëÿ ýòîé òàáëèöû
|
||||
ïðîñòî íàæìèòå íà çåëåíóþ èêîíêó, êîòîðàÿ íàõîäèòñÿ çà çàãîëîâêîì òàáëèöû.
|
||||
Access to this tab has not yet been enabled. To enable individual access permissions for this tab
|
||||
simply click the green cross icon next to the tab title.
|
||||
<br />
|
||||
<br />
|
||||
Çàòåì âû ñìîæåòå óñòàíàâëèâàòü èíäèâèäóàëüíûå íàñòðîéêè äîñòóïà äëÿ êàæäîé ôóíêöèè, êîòîðàÿ ñãðóïïèðîâàíà ïîä ýòîé òàáëèöåé.
|
||||
You can then set individual permissions for each function which is grouped under this tab.
|
||||
</div>
|
||||
EOF;
|
||||
//--endhtml--//
|
||||
@@ -473,44 +369,50 @@ return $IPBHTML;
|
||||
//===========================================================================
|
||||
// ACP Perms
|
||||
//===========================================================================
|
||||
function acp_xml_tabs($onoff="", $member_id=0, $tabinit="") {
|
||||
global $ibforums;
|
||||
function acp_xml_tabs($onoff=array(), $member_id=0, $tabinit=array()) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div style='height:34px;margin-left:1px'>
|
||||
<div style='height:36px;margin-left:1px'>
|
||||
<div class='{$onoff['content']}' style='padding:7px'>
|
||||
<input type='hidden' id='tab_content' value='{$tabinit['content']}' />
|
||||
<a href='#' id='href_content' onclick='permobj.init("content", $member_id)'>ÓÏÐÀÂËÅÍÈÅ</a>
|
||||
<img src='{$this->ipsclass->skin_url}/images/aff_tick_small.png' id='img-content-tick' onclick="return permobj.save_tab('content', $member_id, 1 );" title='Ðàçðåøèòü äîñòóï ê ýòîé òàáëèöå' style='cursor:pointer' border='0' alt='Ðàçðåøèòü' class='img-boxed-off' />
|
||||
<img src='{$this->ipsclass->skin_url}/images/aff_cross_small.png' id='img-content-cross' onclick="return permobj.save_tab('content', $member_id, 0 );" title='Çàïðåòèòü äîñòóï ê ýòîé òàáëèöå' style='cursor:pointer' border='0' alt='Çàïðåòèòü' class='img-boxed-off' />
|
||||
<a href='#' id='href_content' onclick='permobj.init("content", $member_id)'>MANAGEMENT</a>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/aff_tick_small.png' id='img-content-tick' onclick="return permobj.save_tab('content', $member_id, 1 );" title='Allow Access to this tab' style='cursor:pointer' border='0' alt='Allow' class='img-boxed-off' />
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/aff_cross_small.png' id='img-content-cross' onclick="return permobj.save_tab('content', $member_id, 0 );" title='Deny Access to this tab' style='cursor:pointer' border='0' alt='Deny' class='img-boxed-off' />
|
||||
</div>
|
||||
<div class='{$onoff['lookandfeel']}' style='padding:7px'>
|
||||
<input type='hidden' id='tab_lookandfeel' value='{$tabinit['lookandfeel']}' />
|
||||
<a href='#' id='href_lookandfeel' onclick='permobj.init("lookandfeel", $member_id)'>ÂÍÅØÍÈÉ ÂÈÄ</a>
|
||||
<img src='{$this->ipsclass->skin_url}/images/aff_tick_small.png' id='img-lookandfeel-tick' onclick="return permobj.save_tab('lookandfeel', $member_id, 1 );" title='Ðàçðåøèòü äîñòóï ê ýòîé òàáëèöå' style='cursor:pointer' border='0' alt='*' class='img-boxed-off' />
|
||||
<img src='{$this->ipsclass->skin_url}/images/aff_cross_small.png' id='img-lookandfeel-cross' onclick="return permobj.save_tab('lookandfeel', $member_id, 0 );" title='Çàïðåòèòü äîñòóï ê ýòîé òàáëèöå' style='cursor:pointer' border='0' alt='*' class='img-boxed-off' />
|
||||
<a href='#' id='href_lookandfeel' onclick='permobj.init("lookandfeel", $member_id)'>LOOK & FEEL</a>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/aff_tick_small.png' id='img-lookandfeel-tick' onclick="return permobj.save_tab('lookandfeel', $member_id, 1 );" title='Allow Access to this tab' style='cursor:pointer' border='0' alt='*' class='img-boxed-off' />
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/aff_cross_small.png' id='img-lookandfeel-cross' onclick="return permobj.save_tab('lookandfeel', $member_id, 0 );" title='Deny Access to this tab' style='cursor:pointer' border='0' alt='*' class='img-boxed-off' />
|
||||
</div>
|
||||
<div class='{$onoff['tools']}' style='padding:7px'>
|
||||
<input type='hidden' id='tab_tools' value='{$tabinit['tools']}' />
|
||||
<a href='#' id='href_tools' onclick='permobj.init("tools", $member_id )'>ÍÀÑÒÐÎÉÊÈ</a>
|
||||
<img src='{$this->ipsclass->skin_url}/images/aff_tick_small.png' id='img-tools-tick' onclick="return permobj.save_tab('tools', $member_id, 1 );" title='Ðàçðåøèòü äîñòóï ê ýòîé òàáëèöå' style='cursor:pointer' border='0' alt='*' class='img-boxed-off' />
|
||||
<img src='{$this->ipsclass->skin_url}/images/aff_cross_small.png' id='img-tools-cross' onclick="return permobj.save_tab('tools', $member_id, 0 );" title='Çàïðåòèòü äîñòóï ê ýòîé òàáëèöå' style='cursor:pointer' border='0' alt='*' class='img-boxed-off' />
|
||||
<a href='#' id='href_tools' onclick='permobj.init("tools", $member_id )'>TOOLS & SETTINGS</a>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/aff_tick_small.png' id='img-tools-tick' onclick="return permobj.save_tab('tools', $member_id, 1 );" title='Allow Access to this tab' style='cursor:pointer' border='0' alt='*' class='img-boxed-off' />
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/aff_cross_small.png' id='img-tools-cross' onclick="return permobj.save_tab('tools', $member_id, 0 );" title='Deny Access to this tab' style='cursor:pointer' border='0' alt='*' class='img-boxed-off' />
|
||||
</div>
|
||||
<div class='{$onoff['components']}' style='padding:7px'>
|
||||
<input type='hidden' id='tab_components' value='{$tabinit['components']}' />
|
||||
<a href='#' id='href_components' onclick='permobj.init("components", $member_id)'>ÊÎÌÏÎÍÅÍÒÛ</a>
|
||||
<img src='{$this->ipsclass->skin_url}/images/aff_tick_small.png' id='img-components-tick' onclick="return permobj.save_tab('components', $member_id, 1 );" title='Ðàçðåøèòü äîñòóï ê ýòîé òàáëèöå' style='cursor:pointer' border='0' alt='*' class='img-boxed-off' />
|
||||
<img src='{$this->ipsclass->skin_url}/images/aff_cross_small.png' id='img-components-cross' onclick="return permobj.save_tab('components', $member_id, 0 );" title='Çàïðåòèòü äîñòóï ê ýòîé òàáëèöå' style='cursor:pointer' border='0' alt='*' class='img-boxed-off' />
|
||||
<a href='#' id='href_components' onclick='permobj.init("components", $member_id)'>COMPONENTS</a>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/aff_tick_small.png' id='img-components-tick' onclick="return permobj.save_tab('components', $member_id, 1 );" title='Allow Access to this tab' style='cursor:pointer' border='0' alt='*' class='img-boxed-off' />
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/aff_cross_small.png' id='img-components-cross' onclick="return permobj.save_tab('components', $member_id, 0 );" title='Deny Access to this tab' style='cursor:pointer' border='0' alt='*' class='img-boxed-off' />
|
||||
</div>
|
||||
<div class='{$onoff['admin']}' style='padding:7px'>
|
||||
<input type='hidden' id='tab_admin' value='{$tabinit['admin']}' />
|
||||
<a href='#' id='href_admin' onclick='permobj.init("admin", $member_id)'>ÏÐÎ×ÅÅ</a>
|
||||
<img src='{$this->ipsclass->skin_url}/images/aff_tick_small.png' id='img-admin-tick' onclick="return permobj.save_tab('admin', $member_id, 1 );" title='Ðàçðåøèòü äîñòóï ê ýòîé òàáëèöå' style='cursor:pointer' border='0' alt='*' class='img-boxed-off' />
|
||||
<img src='{$this->ipsclass->skin_url}/images/aff_cross_small.png' id='img-admin-cross' onclick="return permobj.save_tab('admin', $member_id, 0 );" title='Çàïðåòèòü äîñòóï ê ýòîé òàáëèöå' style='cursor:pointer' border='0' alt='*' class='img-boxed-off' />
|
||||
<a href='#' id='href_admin' onclick='permobj.init("admin", $member_id)'>ADMIN</a>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/aff_tick_small.png' id='img-admin-tick' onclick="return permobj.save_tab('admin', $member_id, 1 );" title='Allow Access to this tab' style='cursor:pointer' border='0' alt='*' class='img-boxed-off' />
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/aff_cross_small.png' id='img-admin-cross' onclick="return permobj.save_tab('admin', $member_id, 0 );" title='Deny Access to this tab' style='cursor:pointer' border='0' alt='*' class='img-boxed-off' />
|
||||
</div>
|
||||
<div class='{$onoff['help']}' style='padding:7px'>
|
||||
<input type='hidden' id='tab_help' value='{$tabinit['help']}' />
|
||||
<a href='#' id='href_help' onclick='permobj.init("help", $member_id)'>HELP & SUPPORT</a>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/aff_tick_small.png' id='img-help-tick' onclick="return permobj.save_tab('help', $member_id, 1 );" title='Allow Access to this tab' style='cursor:pointer' border='0' alt='*' class='img-boxed-off' />
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/aff_cross_small.png' id='img-help-cross' onclick="return permobj.save_tab('help', $member_id, 0 );" title='Deny Access to this tab' style='cursor:pointer' border='0' alt='*' class='img-boxed-off' />
|
||||
</div>
|
||||
</div>
|
||||
EOF;
|
||||
//--endhtml--//
|
||||
@@ -521,7 +423,7 @@ return $IPBHTML;
|
||||
// ACP Perms
|
||||
//===========================================================================
|
||||
function acp_xml_wrap($tabs, $content) {
|
||||
global $ibforums;
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
@@ -530,7 +432,8 @@ $IPBHTML .= <<<EOF
|
||||
<div class='body-bg'>
|
||||
{$tabs}
|
||||
</div>
|
||||
<div style='background-color:#FFF'>
|
||||
|
||||
<div style='background-color:#FFF;clear: both;'>
|
||||
$content
|
||||
</div>
|
||||
EOF;
|
||||
@@ -542,40 +445,86 @@ return $IPBHTML;
|
||||
// ACP Perms
|
||||
//===========================================================================
|
||||
function acp_xml_global_main_wrap($content, $class_name, $perm_value, $main_img_classes) {
|
||||
global $ibforums;
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div id='perms-child-wrap'>
|
||||
<table width='100%' cellpadding='0' cellspacing='0'>
|
||||
<tr>
|
||||
<td width='1%' nowrap='nowrap' id='td_mainbit_a' class='{$class_name}'><div style='padding:6px'><img src='{$this->ipsclass->skin_url}/images/mainmenu.png' border='0' alt='*' class='ipd' /></div></td>
|
||||
<td width='60%' id='td_mainbit_b' class='{$class_name}'><div style='padding:6px'><input type='hidden' id='pb_mainbit' name='mainbit' value='{$perm_value}' /><strong>ÐÀÇÐÅØÈÒÜ ÄÎÑÒÓÏ Ê ÝÒÎÉ ÔÓÍÊÖÈÈ </strong></div></td>
|
||||
<td width='5%' id='td_mainbit_c' class='{$class_name}'><div style='cursor:pointer' onclick='return permobj.clicked("mainbit", 1 );'><img src='{$this->ipsclass->skin_url}/images/aff_tick.png' border='0' alt='*' class='{$main_img_classes['tick']}' /></div></td>
|
||||
<td width='5%' id='td_mainbit_d' class='{$class_name}'><div style='cursor:pointer' onclick='return permobj.clicked("mainbit", 0 );'><img src='{$this->ipsclass->skin_url}/images/aff_cross.png' border='0' alt='*' class='{$main_img_classes['cross']}' /></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='4' style='padding:1px;height:12px'><!-- ta --></td>
|
||||
</tr>
|
||||
$content
|
||||
<table width='100%' cellpadding='0' cellspacing='0'>
|
||||
<tr>
|
||||
<td width='1%' nowrap='nowrap' id='td_mainbit_a' class='{$class_name}'>
|
||||
<div style='padding:6px'>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/mainmenu.png' border='0' alt='*' class='ipd' />
|
||||
</div>
|
||||
</td>
|
||||
<td width='60%' id='td_mainbit_b' class='{$class_name}'>
|
||||
<div style='padding:6px'>
|
||||
<input type='hidden' id='pb_mainbit' name='mainbit' value='{$perm_value}' />
|
||||
<strong>ALLOW ACCESS TO THIS FUNCTION</strong>
|
||||
</div>
|
||||
</td>
|
||||
<td width='5%' id='td_mainbit_c' class='{$class_name}'>
|
||||
<div style='cursor:pointer' onclick='return permobj.clicked("mainbit", 1 );'>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/aff_tick.png' border='0' alt='*' class='{$main_img_classes['tick']}' />
|
||||
</div>
|
||||
</td>
|
||||
<td width='5%' id='td_mainbit_d' class='{$class_name}'>
|
||||
<div style='cursor:pointer' onclick='return permobj.clicked("mainbit", 0 );'>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/aff_cross.png' border='0' alt='*' class='{$main_img_classes['cross']}' />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='4' style='padding:1px;height:12px'>
|
||||
<!-- ta -->
|
||||
</td>
|
||||
</tr>
|
||||
{$content}
|
||||
EOF;
|
||||
if ( $perm_value != 0 )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td colspan='4' style='height:25px' align='right'>
|
||||
<div style='width:80px;float:right;text-align:center;cursor:pointer' onclick='return permobj.save_bits(1);' class='input-ok-content' id='perms-save-box'>Ñîõðàíèòü</div>
|
||||
<div style='width:80px;float:right;text-align:center;cursor:pointer' onclick='return permobj.undo_bits();' class='input-ok-content' id='perms-undo-box'>Îòìåíèòü</div>
|
||||
<div style='width:80px;float:right;text-align:center;cursor:pointer' onclick='return permobj.save_bits(1);' class='input-ok-content' id='perms-save-box'>Save</div>
|
||||
<div style='width:80px;float:right;text-align:center;cursor:pointer' onclick='return permobj.undo_bits();' class='input-ok-content' id='perms-undo-box'>UNDO</div>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
</table>
|
||||
</table>
|
||||
</div>
|
||||
<div class='desctext' style='padding:4px'>
|
||||
Êîãäà "ÐÀÇÐÅØÈÒÜ ÄÎÑÒÓÏ Ê ÝÒÎÉ ÔÓÍÊÖÈÈ" âêëþ÷åí, âû ìîæåòå óñòàíàâëèâàòü èíäèâèäóàëüíûå íàñòðîéêè äîñòóïà äëÿ ïîä-ôóíêöèé ýòîé îñíîâíîé ôóíêöèè. Èíà÷å, èçìåíåíèÿ èíäèâèäóàëüíûõ íàñòðîåê äîñòóïà íå áóäóò ðàáîòàòü.</div>
|
||||
When "ALLOW ACCESS TO THIS FUNCTION" is enabled you may set the individual access permissions for the sub-features of this particular function. Otherwise, changes to the individual access permission will have no effect.
|
||||
</div>
|
||||
EOF;
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function acp_xml_global_main_nocomponents($class_name) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div id='perms-child-wrap'>
|
||||
<input type='hidden' id='perms-perm-child-id' value='' />
|
||||
<table width='100%' cellpadding='0' cellspacing='0'>
|
||||
<tr>
|
||||
<td width='100%' nowrap='nowrap' id='td_mainbit_a' class='{$class_name}' colspan='4'>There are either no components enabled, or none of the components enabled have permission settings.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='4' style='padding:1px;height:12px'><!-- ta --></td>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
</div>
|
||||
EOF;
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
@@ -585,21 +534,21 @@ return $IPBHTML;
|
||||
// ACP Perms
|
||||
//===========================================================================
|
||||
function acp_xml_global_main_row($lang_bit, $perm_bit, $perm_value, $class_name, $img_classes) {
|
||||
global $ibforums;
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td width='1%' nowrap='nowrap' id='td_{$perm_bit}_a' class='{$class_name}'><div style='padding:6px'><img src='{$this->ipsclass->skin_url}/images/content.png' border='0' alt='*' class='ipd' /></div></td>
|
||||
<td width='1%' nowrap='nowrap' id='td_{$perm_bit}_a' class='{$class_name}'><div style='padding:6px'><img src='{$this->ipsclass->skin_acp_url}/images/content.png' border='0' alt='*' class='ipd' /></div></td>
|
||||
<td width='60%' id='td_{$perm_bit}_b' class='{$class_name}'><div style='padding:6px'><input type='hidden' id='pb_{$perm_bit}' name='{$perm_bit}' value='{$perm_value}' /><strong>{$lang_bit}</strong></div></td>
|
||||
EOF;
|
||||
if ( $class_name != 'perms-gray' )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<td width='5%' id='td_{$perm_bit}_c' class='{$class_name}'><div style='cursor:pointer' onclick='return permobj.clicked("$perm_bit", 1 );'><img src='{$this->ipsclass->skin_url}/images/aff_tick.png' id='img-{$perm_bit}-tick' border='0' alt='*' class='{$img_classes['tick']}' /></div></td>
|
||||
<td width='5%' id='td_{$perm_bit}_d' class='{$class_name}'><div style='cursor:pointer' onclick='return permobj.clicked("$perm_bit", 0 );'><img src='{$this->ipsclass->skin_url}/images/aff_cross.png' id='img-{$perm_bit}-cross' border='0' alt='*' class='{$img_classes['cross']}' /></div></td>
|
||||
<td width='5%' id='td_{$perm_bit}_c' class='{$class_name}'><div style='cursor:pointer' onclick='return permobj.clicked("$perm_bit", 1 );'><img src='{$this->ipsclass->skin_acp_url}/images/aff_tick.png' id='img-{$perm_bit}-tick' border='0' alt='*' class='{$img_classes['tick']}' /></div></td>
|
||||
<td width='5%' id='td_{$perm_bit}_d' class='{$class_name}'><div style='cursor:pointer' onclick='return permobj.clicked("$perm_bit", 0 );'><img src='{$this->ipsclass->skin_acp_url}/images/aff_cross.png' id='img-{$perm_bit}-cross' border='0' alt='*' class='{$img_classes['cross']}' /></div></td>
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
@@ -623,11 +572,10 @@ return $IPBHTML;
|
||||
// ACP Perms
|
||||
//===========================================================================
|
||||
function acp_xml_global_sidebar_wrap($content) {
|
||||
global $ibforums;
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div>
|
||||
$content
|
||||
@@ -641,16 +589,16 @@ return $IPBHTML;
|
||||
// ACP Perms
|
||||
//===========================================================================
|
||||
function acp_xml_global_sidebar_link($lang_bit, $member_id, $perm_main, $perm_child, $allow=0, $img_classes=array()) {
|
||||
global $ibforums;
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tablerow1' onclick='permobj.init("{$perm_main}",{$member_id}, "{$perm_child}")' style='cursor:pointer'>
|
||||
<img src='{$this->ipsclass->skin_url}/images/folder.gif' border='0' alt='*' class='ipd' />
|
||||
<img src='{$this->ipsclass->skin_url}/images/aff_tick_small.png' id='img-content-tick' onclick='return permobj.save_group("{$perm_main}","{$perm_child}", $member_id, 1 );' title='Ðàçðåøèòü äîñòóï êî ÂÑÅÌ ôóíêöèÿì ýòîé âîçìîæíîñòè' style='cursor:pointer' border='0' alt='Ðàçðåøèòü' class='img-boxed-off' />
|
||||
<img src='{$this->ipsclass->skin_url}/images/aff_cross_small.png' id='img-content-cross' onclick='return permobj.save_group("{$perm_main}","{$perm_child}", $member_id, 0 );' title='Çàïðåòèòü äîñòóï êî ÂÑÅÌ ôóíêöèÿì ýòîé âîçìîæíîñòè' style='cursor:pointer' border='0' alt='Çàïðåòèòü' class='img-boxed-off' />
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/folder.gif' border='0' alt='*' class='ipd' />
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/aff_tick_small.png' id='img-content-tick' onclick='return permobj.save_group("{$perm_main}","{$perm_child}", $member_id, 1 );' title='Allow Access to ALL functions of this feature' style='cursor:pointer' border='0' alt='Allow' class='img-boxed-off' />
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/aff_cross_small.png' id='img-content-cross' onclick='return permobj.save_group("{$perm_main}","{$perm_child}", $member_id, 0 );' title='Deny Access to ALL functions of this feature' style='cursor:pointer' border='0' alt='Deny' class='img-boxed-off' />
|
||||
|
||||
EOF;
|
||||
if ( $allow != 0 )
|
||||
@@ -676,7 +624,7 @@ return $IPBHTML;
|
||||
// ACP Perms
|
||||
//===========================================================================
|
||||
function acp_xml_global_sidebar_link_chosen($lang_bit, $member_id, $perm_main, $perm_child, $allow=0, $img_classes=array()) {
|
||||
global $ibforums;
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
@@ -684,9 +632,9 @@ $IPBHTML = "";
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tablerow3' onclick='permobj.init("{$perm_main}",{$member_id}, "{$perm_child}")' style='cursor:pointer'>
|
||||
<input type='hidden' id='perms-perm-child-id' value='$perm_child' />
|
||||
<img src='{$this->ipsclass->skin_url}/images/folder.gif' border='0' alt='*' class='ipd' />
|
||||
<img src='{$this->ipsclass->skin_url}/images/aff_tick_small.png' id='img-content-tick' onclick='return permobj.save_group("{$perm_main}","{$perm_child}", $member_id, 1 );' title='Ðàçðåøèòü äîñòóï êî ÂÑÅÌ ôóíêöèÿì ýòîé âîçìîæíîñòè' style='cursor:pointer' border='0' alt='Ðàçðåøèòü' class='img-boxed-off' />
|
||||
<img src='{$this->ipsclass->skin_url}/images/aff_cross_small.png' id='img-content-cross' onclick='return permobj.save_group("{$perm_main}","{$perm_child}", $member_id, 0 );' title='Çàïðåòèòü äîñòóï êî ÂÑÅÌ ôóíêöèÿì ýòîé âîçìîæíîñòè' style='cursor:pointer' border='0' alt='Çàïðåòèòü' class='img-boxed-off' />
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/folder.gif' border='0' alt='*' class='ipd' />
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/aff_tick_small.png' id='img-content-tick' onclick='return permobj.save_group("{$perm_main}","{$perm_child}", $member_id, 1 );' title='Allow Access to ALL functions of this feature' style='cursor:pointer' border='0' alt='Allow' class='img-boxed-off' />
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/aff_cross_small.png' id='img-content-cross' onclick='return permobj.save_group("{$perm_main}","{$perm_child}", $member_id, 0 );' title='Deny Access to ALL functions of this feature' style='cursor:pointer' border='0' alt='Deny' class='img-boxed-off' />
|
||||
|
||||
EOF;
|
||||
if ( $allow != 0 )
|
||||
@@ -712,7 +660,7 @@ return $IPBHTML;
|
||||
// ACP Perms
|
||||
//===========================================================================
|
||||
function acp_xml_main_wrap($sidebar="", $content="") {
|
||||
global $ibforums;
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
@@ -724,7 +672,7 @@ $IPBHTML .= <<<EOF
|
||||
<td width='220' valign='top' class='tablerow1' style='padding:0px;border:0px'>{$sidebar}</td>
|
||||
<td width='*' valign='top' class='tablerow3'>{$content}</td>
|
||||
</tr>
|
||||
<table>
|
||||
</table>
|
||||
</div>
|
||||
EOF;
|
||||
//--endhtml--//
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
class cp_skin_attachments {
|
||||
|
||||
var $ipsclass;
|
||||
|
||||
//===========================================================================
|
||||
// Attachments: Wrapper
|
||||
//===========================================================================
|
||||
function attach_wrapper($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
|
||||
<div class="tableborder">
|
||||
<div class="tableheaderalt">
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td align='left' width='100%' style='font-weight:bold;font-size:11px;color:#FFF'>Your Attachment Types</td>
|
||||
<td align='right' nowrap='nowrap' style='padding-right:6px'><img id='menumainone' src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
</table> </div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='1%'> </td>
|
||||
<td class='tablesubheader' width='20%'>Extension</td>
|
||||
<td class='tablesubheader' width='40%'>Mime-Type</td>
|
||||
<td class='tablesubheader' width='10%'>+Post</td>
|
||||
<td class='tablesubheader' width='10%'>+Avatar</td>
|
||||
<td class='tablesubheader' width='5%'>Options</td>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
<div align='center' class='tablefooter'><div class='fauxbutton-wrapper'><span class='fauxbutton'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=attach_add'>Add New Attachment Type</a></span></div></div>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menumainone",
|
||||
new Array( img_export + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=attach_export'>Export Attachment Types...</a>" ) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Attachments: Row
|
||||
//===========================================================================
|
||||
function attach_row( $row ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'><img src='{$this->ipsclass->vars['board_url']}/style_images/{$row['_imagedir']}/{$row['atype_img']}' border='0' /></td>
|
||||
<td class='tablerow1'>.<strong>{$row['atype_extension']}</strong></td>
|
||||
<td class='tablerow1'>{$row['atype_mimetype']}</td>
|
||||
<td class='tablerow1'>{$row['apost_checked']}</td>
|
||||
<td class='tablerow1'>{$row['aphoto_checked']}</td>
|
||||
<td class='tablerow2'><img id="menu{$row['atype_id']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$row['atype_id']}",
|
||||
new Array( img_edit + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=attach_edit&id={$row['atype_id']}'>Edit Attachment Type...</a>",
|
||||
img_delete + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=attach_delete&id={$row['atype_id']}'>Delete Attachment Type...</a>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,170 @@
|
||||
<?php
|
||||
|
||||
class cp_skin_bbcode_badword {
|
||||
|
||||
var $ipsclass;
|
||||
|
||||
//===========================================================================
|
||||
// BBCODE: Wrapper
|
||||
//===========================================================================
|
||||
function bbcode_wrapper($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
|
||||
<div class="tableborder">
|
||||
<div class="tableheaderalt">
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td align='left' width='100%' style='font-weight:bold;font-size:11px;color:#FFF'>Your Custom BBCodes</td>
|
||||
<td align='right' nowrap='nowrap' style='padding-right:6px'><img id='menumainone' src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
</table> </div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='45%'>Title</td>
|
||||
<td class='tablesubheader' width='50%'>Tag</td>
|
||||
<td class='tablesubheader' width='5%'>Options</td>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
<div align='center' class='tablefooter'><div class='fauxbutton-wrapper'><span class='fauxbutton'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=bbcode_add'>Add New BBCode</a></span></div></div>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menumainone",
|
||||
new Array( img_export + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=bbcode_export'>Export BBCode...</a>" ) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// BBCODE: Row
|
||||
//===========================================================================
|
||||
function bbcode_row( $row ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>{$row['bbcode_title']}</td>
|
||||
<td class='tablerow1'>{$row['bbcode_fulltag']}</td>
|
||||
<td class='tablerow2'><img id="menu{$row['bbcode_id']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$row['bbcode_id']}",
|
||||
new Array( img_edit + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=bbcode_edit&id={$row['bbcode_id']}'>Edit BBCode...</a>",
|
||||
img_delete + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=bbcode_delete&id={$row['bbcode_id']}'>Delete BBCode...</a>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// BADWORD: Wrapper
|
||||
//===========================================================================
|
||||
function badword_wrapper($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
|
||||
<div class="tableborder">
|
||||
<div class="tableheaderalt">
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td align='left' width='100%' style='font-weight:bold;font-size:11px;color:#FFF'>Current Filters</td>
|
||||
<td align='right' nowrap='nowrap' style='padding-right:6px'><img id='menumainone' src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
</table> </div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='40%'>Before</td>
|
||||
<td class='tablesubheader' width='40%'>After</td>
|
||||
<td class='tablesubheader' width='15%'>Method</td>
|
||||
<td class='tablesubheader' width='5%'>Options</td>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
<div class="tableborder">
|
||||
<div class="tableheaderalt">Add a new filter</div>
|
||||
|
||||
<table align="center" border="0" cellpadding="5" cellspacing="0" width="100%"><tbody><tr>
|
||||
<td class="tablesubheader" align="center" width="40%">Before</td>
|
||||
<td class="tablesubheader" align="center" width="40%">After</td>
|
||||
<td class="tablesubheader" align="center" width="20%">Method</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td class="tablerow1" valign="middle" width="40%"><input name="before" value="" size="30" class="textinput" type="text"></td>
|
||||
<td class="tablerow2" valign="middle" width="40%"><input name="after" value="" size="30" class="textinput" type="text"></td>
|
||||
<td class="tablerow1" valign="middle" width="20%"><select name="match" class="dropdown">
|
||||
<option value="1">Exact</option>
|
||||
<option value="0">Loose</option>
|
||||
</select>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="tablesubheader" colspan="3" align="center"><input value="Add Filter" class="realbutton" accesskey="s" type="submit"></form></td></tr>
|
||||
</table></div><br />
|
||||
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menumainone",
|
||||
new Array( img_export + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=badword_export'>Export Badword Filters...</a>" ) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// BADWORD: Row
|
||||
//===========================================================================
|
||||
function badword_row( $row ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>{$row['type']}</td>
|
||||
<td class='tablerow1'>{$row['replace']}</td>
|
||||
<td class='tablerow1'>{$row['method']}</td>
|
||||
<td class='tablerow2'><img id="menu{$row['wid']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$row['wid']}",
|
||||
new Array( img_edit + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=badword_edit&id={$row['wid']}'>Edit Badword Filter...</a>",
|
||||
img_delete + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=badword_remove&id={$row['wid']}'>Remove Badword Filter...</a>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -14,9 +14,9 @@ $IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tablesubheader'>IPB Èíôîðìàöèÿ</div>
|
||||
<div class='tablesubheader'>Invision Power Board Information</div>
|
||||
<div class='tablerow1'>
|
||||
Ýòà ñåêöèÿ ñîçäàíà äëÿ ëþáûõ êîìïîíåíòîâ, òàêèõ êàê Invision Gallery, Invision Chat è Invision Community Blog.
|
||||
This section is reserved for any components, such as Invision Gallery, Invision Chat and Invision Blog
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
class cp_skin_diagnostics {
|
||||
|
||||
var $ipsclass;
|
||||
|
||||
function dbchecker_javascript()
|
||||
{
|
||||
$IPBHTML = "";
|
||||
$IPBHTML = <<<EOF
|
||||
|
||||
<script type='text/javascript'>
|
||||
var all_queries = new Array();
|
||||
|
||||
function fix_all_dberrors()
|
||||
{
|
||||
var url = ipb_var_base_url + 'section=help&act=diag&code=dbchecker';
|
||||
|
||||
for( var i=0; i<all_queries.length; i++ )
|
||||
{
|
||||
url += '&query'+i+'='+all_queries[i];
|
||||
}
|
||||
|
||||
window.location = url;
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,471 @@
|
||||
<?php
|
||||
|
||||
class cp_skin_editors {
|
||||
|
||||
var $ipsclass;
|
||||
|
||||
//===========================================================================
|
||||
// <ips:ips_editor:desc::trigger:>
|
||||
//===========================================================================
|
||||
function ips_editor($form_field="",$initial_content="",$images_path="",$inc_path="",$rte_mode=0,$editor_id='ed-0',$smilies='', $bbcode='') {
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
$IPBHTML .= <<<EOF
|
||||
<!--top-->
|
||||
EOF;
|
||||
if ( $editor_id == 'ed-0' )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type="text/javascript" src="jscripts/ips_text_editor.js"></script>
|
||||
<script type="text/javascript" src="jscripts/ips_text_editor_func.js"></script>
|
||||
<style type='text/css'>
|
||||
@import url( "{$images_path}css_rte.css" );
|
||||
</style>
|
||||
EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
<input type='hidden' name='{$editor_id}_wysiwyg_used' id='{$editor_id}_wysiwyg_used' value='{$rte_mode}' />
|
||||
<input type='hidden' name='editor_ids[]' value='{$editor_id}' />
|
||||
<!-- Extended options wrapper -->
|
||||
<div id='{$editor_id}_options-bar' class="rte-option-panel"></div>
|
||||
<!-- Main editor wrapper -->
|
||||
<div id='{$editor_id}_main-bar' class="rte-buttonbar">
|
||||
<div id='{$editor_id}_controls' style='display:none;padding:6px;text-align:left'>
|
||||
<table cellpadding="2" cellspacing="0" width='100%'>
|
||||
<tr>
|
||||
<td width='1%' align='left' nowrap='nowrap'>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td><div class='rte-normal' id="{$editor_id}_cmd_removeformat"><img src="{$images_path}rte-remove-formatting.gif" alt="{$this->ipsclass->lang['js_tt_noformat']}" title="{$this->ipsclass->lang['js_tt_noformat']}" ></div></td>
|
||||
<td><div class='rte-normal' id="{$editor_id}_cmd_togglesource"><img src="{$images_path}rte-toggle-html.gif" alt="{$this->ipsclass->lang['js_tt_htmlsource']}" title="{$this->ipsclass->lang['js_tt_htmlsource']}" ></div></td>
|
||||
<td><img class="rteVertSep" src="{$images_path}" width="1" height="20" border="0" alt=""></td>
|
||||
<td>
|
||||
<div class='rte-menu-button' id='{$editor_id}_popup_special' title='{$this->ipsclass->lang['js_tt_insert_item']}' style='margin-right:2px;width:148px'>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><div id='{$editor_id}_out_special' style='width:130px'>{$this->ipsclass->lang['js_tt_insert_item']}</div></td>
|
||||
<td align='right'><img class="ipd" src="{$images_path}icon_open.gif" border="0" alt=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class='rte-menu-button' id='{$editor_id}_popup_fontname' title='{$this->ipsclass->lang['box_font']}' style='margin-right:2px;width:148px'>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><div id='{$editor_id}_out_fontname' style='width:130px'> </div></td>
|
||||
<td align='right'><img class="ipd" src="{$images_path}icon_open.gif" border="0" alt=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class='rte-menu-button' id='{$editor_id}_popup_fontsize' title='{$this->ipsclass->lang['box_size']}' style='width:78px'>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><div id='{$editor_id}_out_fontsize' style='width:60px'> </div></td>
|
||||
<td align='right'><img class="ipd" src="{$images_path}icon_open.gif" border="0" alt=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width='98%'> </td>
|
||||
<td width='1%' nowrap='nowrap' align='right'>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_spellcheck"><img src="{$images_path}spellcheck.gif" width="25" height="24" alt="{$this->ipsclass->lang['js_tt_spellcheck']}" title="{$this->ipsclass->lang['js_tt_spellcheck']}" ></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_undo" style='padding:5px'><img src="{$images_path}rte-undo.png" style="width:16px;height:16px" alt="{$this->ipsclass->lang['js_tt_undo']}" title="{$this->ipsclass->lang['js_tt_undo']}" ></div></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_redo" style='padding:5px'><img src="{$images_path}rte-redo.png" style="width:16px;height:16px" alt="{$this->ipsclass->lang['js_tt_redo']}" title="{$this->ipsclass->lang['js_tt_redo']}" ></div></td>
|
||||
<td>
|
||||
<div class="rte-normal" style='padding:0px;margin:0px;' id="{$editor_id}_cmd_resize_up"><img src="{$images_path}rte-resize-up.gif" alt="{$this->ipsclass->lang['js_tt_smaller']}" title="{$this->ipsclass->lang['js_tt_smaller']}"></div>
|
||||
<div class="rte-normal" style='padding:0px;margin:0px;padding-top:1px' id="{$editor_id}_cmd_resize_down"><img src="{$images_path}rte-resize-down.gif" alt="{$this->ipsclass->lang['js_tt_larger']}" title="{$this->ipsclass->lang['js_tt_larger']}"></div>
|
||||
</td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_switcheditor"><img src="{$images_path}rte-switch-editor.png" alt="{$this->ipsclass->lang['js_tt_switcheditor']}" title="{$this->ipsclass->lang['js_tt_switcheditor']}" ></div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="2" cellspacing="0" id="Buttons2" width='100%'>
|
||||
<tr>
|
||||
<td width='1%' align='left' nowrap='nowrap'>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_bold"><img src="{$images_path}rte-bold.png" alt="{$this->ipsclass->lang['js_tt_bold']}" title="{$this->ipsclass->lang['js_tt_bold']}"></div></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_italic"><img src="{$images_path}rte-italic.png" alt="{$this->ipsclass->lang['js_tt_italic']}" title="{$this->ipsclass->lang['js_tt_italic']}" ></div></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_underline"><img src="{$images_path}rte-underlined.png" alt="{$this->ipsclass->lang['js_tt_underline']}" title="{$this->ipsclass->lang['js_tt_underline']}" ></div></td>
|
||||
<td>
|
||||
<div class='rte-menu-button' id='{$editor_id}_popup_format' title='{$this->ipsclass->lang['js_text_formatting']}' style='margin-right:4px;margin-left:3px;width:41px'>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><div id='{$editor_id}_out_format'> </div></td>
|
||||
<td nowrap="nowrap"><img class="ipd" src="{$images_path}rte-extra.png" alt="{$this->ipsclass->lang['js_extra_formatting']}" title="{$this->ipsclass->lang['js_extra_formatting']}" >
|
||||
<img class="ipd" src="{$images_path}icon_open.gif" border="0" alt="">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class='rte-menu-button' id='{$editor_id}_popup_forecolor' title='{$this->ipsclass->lang['js_tt_font_col']}' style='margin-right:4px;width:41px'>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><div id='{$editor_id}_out_color'> </div></td>
|
||||
<td nowrap="nowrap">
|
||||
<img class='ipd' src="{$images_path}rte-textcolor.gif" alt="{$this->ipsclass->lang['js_tt_font_col']}" title="{$this->ipsclass->lang['js_tt_font_col']}" >
|
||||
<img class="ipd" src="{$images_path}icon_open.gif" border="0" alt="">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class='rte-menu-button' id='{$editor_id}_popup_backcolor' title='{$this->ipsclass->lang['js_tt_back_col']}' style='margin-right:4px;width:41px;display:none'>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><div id='{$editor_id}_out_bgcolor'> </div></td>
|
||||
<td nowrap="nowrap">
|
||||
<img class='ipd' src="{$images_path}rte-bgcolor.gif" alt="Text Color" title="{$this->ipsclass->lang['js_tt_back_col']}" >
|
||||
<img class="ipd" src="{$images_path}icon_open.gif" border="0" alt="">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class='rte-menu-button' id='{$editor_id}_popup_emoticons' title='{$this->ipsclass->lang['js_tt_emoticons']}' style='margin-right:4px;width:41px'>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><div id='{$editor_id}_out_emoticons'> </div></td>
|
||||
<td nowrap="nowrap">
|
||||
<img class='ipd' src="{$images_path}rte-emoticon.gif" alt="Emoticons" title="{$this->ipsclass->lang['js_tt_back_col']}" >
|
||||
<img class="ipd" src="{$images_path}icon_open.gif" border="0" alt="">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width='98%'> </td>
|
||||
<td width='1%' nowrap='nowrap' align='right'>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_outdent"><img src="{$images_path}rte-outdent.gif" alt="{$this->ipsclass->lang['js_tt_outdent']}" title="{$this->ipsclass->lang['js_tt_outdent']}" ></div></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_indent"><img src="{$images_path}rte-indent.gif" alt="{$this->ipsclass->lang['js_tt_outdent']}" title="{$this->ipsclass->lang['js_tt_outdent']}" ></div></td>
|
||||
<td><img class="rteVertSep" src="{$images_path}rte_dots.gif" width="1" height="20" border="0" alt=""></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_justifyleft"><img src="{$images_path}rte-align-left.png" alt="{$this->ipsclass->lang['js_tt_left']}" title="{$this->ipsclass->lang['js_tt_left']}" ></div></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_justifycenter"><img src="{$images_path}rte-align-center.png" alt="{$this->ipsclass->lang['js_tt_center']}" title="{$this->ipsclass->lang['js_tt_center']}" ></div></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_justifyright"><img src="{$images_path}rte-align-right.png" alt="{$this->ipsclass->lang['js_tt_right']}" title="{$this->ipsclass->lang['js_tt_right']}" ></div></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_justifyfull"><img src="{$images_path}rte-justify.png" alt="{$this->ipsclass->lang['js_tt_jfull']}" title="{$this->ipsclass->lang['js_tt_jfull']}" ></div></td>
|
||||
<td><img class="rteVertSep" src="{$images_path}rte_dots.gif" width="1" height="20" border="0" alt=""></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_insertorderedlist"><img src="{$images_path}rte-list-numbered.gif" alt="{$this->ipsclass->lang['js_tt_list']}" title="{$this->ipsclass->lang['js_tt_list']}" ></div></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_insertunorderedlist"><img src="{$images_path}rte-list.gif" alt="{$this->ipsclass->lang['js_tt_list']}" title="{$this->ipsclass->lang['js_tt_list']}" ></div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div style='padding:6px'>
|
||||
<textarea name="{$form_field}" class="rte-iframe" id="{$editor_id}_textarea" rows="10" cols="60" style="width:98%; height:250px" tabindex="1">$initial_content</textarea>
|
||||
</div>
|
||||
<div style='float:right;padding:1px 8px 4px 8px'>
|
||||
<div class='rte-menu-button' style='width:100px;font-size:10px;padding-right:8px;'><a href="javascript:bbc_pop()" style='text-decoration:none;text-align:left;'><img src="{$images_path}rte-bbcode-help-sm.png" style='vertical-align:middle' alt='Help' border='0' /> {$this->ipsclass->lang['bbc_help']}</a></div>
|
||||
</div>
|
||||
<div align='left' style='padding:1px 8px 4px 8px; height:28px'>
|
||||
<div id='rte-toggle-side-panel-button' class='rte-menu-button' style='width:130px;font-size:10px;padding-right:8px'><a href='#' onclick="return show_options_panel('{$editor_id}')" style='text-decoration:none'><img src="{$images_path}rte-toggle-options.png" alt='Help' border='0' /> Toggle Side Panel</a></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<br />
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
var MessageMax = parseInt("{$this->ipsclass->lang['the_max_length']}");
|
||||
var Override = "{$this->ipsclass->lang['override']}";
|
||||
// Update URL
|
||||
ipb_var_base_url = "{$this->ipsclass->vars['board_url']}/index.php?";
|
||||
// Global paths and data
|
||||
var global_rte_remove_side_panel = parseInt("{$this->ipsclass->vars['_remove_side_panel']}");
|
||||
var global_rte_side_panel_open = parseInt("{$this->ipsclass->vars['rte_side_panel_open']}");
|
||||
var global_rte_images_url = '$images_path';
|
||||
var global_rte_includes_url = '$inc_path';
|
||||
var global_rte_emoticons_url = '{$this->ipsclass->vars['EMOTICONS_URL']}';
|
||||
var global_rte_char_set = '{$this->ipsclass->vars['gb_char_set']}';
|
||||
// Lang array
|
||||
ips_language_array =
|
||||
{
|
||||
'js_rte_link' : "{$this->ipsclass->lang['js_rte_link']}",
|
||||
'js_rte_unlink' : "{$this->ipsclass->lang['js_rte_unlink']}",
|
||||
'js_rte_image' : "{$this->ipsclass->lang['js_rte_image']}",
|
||||
'js_rte_email' : "{$this->ipsclass->lang['js_rte_email']}",
|
||||
'js_rte_erroriespell' : "{$this->ipsclass->lang['js_rte_erroriespell']}",
|
||||
'js_rte_errorliespell' : "{$this->ipsclass->lang['js_rte_errorliespell']}",
|
||||
'js_rte_code' : "{$this->ipsclass->lang['js_rte_code']}",
|
||||
'js_rte_quote' : "{$this->ipsclass->lang['js_rte_quote']}"
|
||||
};
|
||||
// Smilies array
|
||||
ips_smilie_items =
|
||||
{
|
||||
$smilies
|
||||
};
|
||||
// BBcode items
|
||||
ips_bbcode_items =
|
||||
{
|
||||
$bbcode
|
||||
};
|
||||
// INIT item
|
||||
IPS_editor['{$editor_id}'] = new ips_text_editor( '{$editor_id}', parseInt($rte_mode), parseInt($rte_mode) == 1 ? 0 : 1 );
|
||||
// Set up defaults
|
||||
IPS_editor['{$editor_id}'].allow_advanced = 0;
|
||||
IPS_editor['{$editor_id}'].forum_fix_ie_newlines = 1;
|
||||
// Remove items from the RTE list
|
||||
IPS_editor['{$editor_id}'].module_remove_item( 'table' );
|
||||
IPS_editor['{$editor_id}'].module_remove_item( 'div' );
|
||||
// Add items
|
||||
IPS_editor['{$editor_id}'].module_add_item( 'ipbcode' , "{$this->ipsclass->lang['js_rte_code']}" , 'rte-ipb-code.png', "IPS_editor['{$editor_id}'].wrap_tags_lite( '[code]' , '[/code]', 0)" );
|
||||
IPS_editor['{$editor_id}'].module_add_item( 'ipbquote', "{$this->ipsclass->lang['js_rte_quote']}", 'rte-ipb-quote.png', "IPS_editor['{$editor_id}'].wrap_tags_lite( '[quote]', '[/quote]', 0)" );
|
||||
// Check side panel
|
||||
check_side_panel( '{$editor_id}' );
|
||||
|
||||
//]]>
|
||||
</script>
|
||||
EOF;
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
//===========================================================================
|
||||
// RTE: INIT
|
||||
//===========================================================================
|
||||
/*function ips_editor( $form_field, $initial_content, $images_path="", $inc_path="", $rte_mode=0, $editor_id='ed-0', $smilies='' ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<!--top-->
|
||||
EOF;
|
||||
//startif
|
||||
if ( $editor_id == 'ed-0' )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type="text/javascript" src="jscripts/ips_text_editor.js"></script>
|
||||
<style type='text/css'>
|
||||
@import url( "{$images_path}css_rte.css" );
|
||||
</style>
|
||||
EOF;
|
||||
}//endif
|
||||
$IPBHTML .= <<<EOF
|
||||
<input type='hidden' name='{$editor_id}_wysiwyg_used' id='{$editor_id}_wysiwyg_used' value='{$rte_mode}' />
|
||||
<input type='hidden' name='editor_ids[]' value='{$editor_id}' />
|
||||
<div id='{$editor_id}_main-bar' class="rte-buttonbar">
|
||||
<div id='{$editor_id}_controls' style='display:none;padding:6px;text-align:left'>
|
||||
<table cellpadding="2" cellspacing="0" width='100%'>
|
||||
<tr>
|
||||
<td width='1%' align='left' nowrap='nowrap'>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td><div class='rte-normal' id="{$editor_id}_cmd_removeformat"><img src="{$images_path}rte-remove-formatting.gif" alt="{$this->ipsclass->lang['js_tt_noformat']}" title="{$this->ipsclass->lang['js_tt_noformat']}" ></div></td>
|
||||
<td><div class='rte-normal' id="{$editor_id}_cmd_togglesource"><img src="{$images_path}rte-toggle-html.gif" alt="{$this->ipsclass->lang['js_tt_htmlsource']}" title="{$this->ipsclass->lang['js_tt_htmlsource']}" ></div></td>
|
||||
<td><img class="rteVertSep" src="{$images_path}" width="1" height="20" border="0" alt=""></td>
|
||||
<td>
|
||||
<div class='rte-menu-button' id='{$editor_id}_popup_special' title='{$this->ipsclass->lang['js_tt_insert_item']}' style='margin-right:2px;width:148px'>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><div id='{$editor_id}_out_special' style='width:130px'>{$this->ipsclass->lang['js_tt_insert_item']}</div></td>
|
||||
<td align='right'><img class="ipd" src="{$images_path}icon_open.gif" border="0" alt=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class='rte-menu-button' id='{$editor_id}_popup_fontname' title='{$this->ipsclass->lang['box_font']}' style='margin-right:2px;width:148px'>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><div id='{$editor_id}_out_fontname' style='width:130px'> </div></td>
|
||||
<td align='right'><img class="ipd" src="{$images_path}icon_open.gif" border="0" alt=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class='rte-menu-button' id='{$editor_id}_popup_fontsize' title='{$this->ipsclass->lang['box_size']}' style='width:78px'>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><div id='{$editor_id}_out_fontsize' style='width:60px'> </div></td>
|
||||
<td align='right'><img class="ipd" src="{$images_path}icon_open.gif" border="0" alt=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width='98%'> </td>
|
||||
<td width='1%' nowrap='nowrap' align='right'>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_spellcheck"><img src="{$images_path}spellcheck.gif" width="25" height="24" alt="{$this->ipsclass->lang['js_tt_spellcheck']}" title="{$this->ipsclass->lang['js_tt_spellcheck']}" ></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_undo" style='padding:5px'><img src="{$images_path}rte-undo.png" style="width:16px;height:16px" alt="{$this->ipsclass->lang['js_tt_undo']}" title="{$this->ipsclass->lang['js_tt_undo']}" ></div></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_redo" style='padding:5px'><img src="{$images_path}rte-redo.png" style="width:16px;height:16px" alt="{$this->ipsclass->lang['js_tt_redo']}" title="{$this->ipsclass->lang['js_tt_redo']}" ></div></td>
|
||||
<td>
|
||||
<div class="rte-normal" style='padding:0px;margin:0px;' id="{$editor_id}_cmd_resize_up"><img src="{$images_path}rte-resize-up.gif" alt="{$this->ipsclass->lang['js_tt_smaller']}" title="{$this->ipsclass->lang['js_tt_smaller']}"></div>
|
||||
<div class="rte-normal" style='padding:0px;margin:0px;padding-top:1px' id="{$editor_id}_cmd_resize_down"><img src="{$images_path}rte-resize-down.gif" alt="{$this->ipsclass->lang['js_tt_larger']}" title="{$this->ipsclass->lang['js_tt_larger']}"></div>
|
||||
</td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_switcheditor"><img src="{$images_path}rte-switch-editor.png" alt="{$this->ipsclass->lang['js_tt_switcheditor']}" title="{$this->ipsclass->lang['js_tt_switcheditor']}" ></div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="2" cellspacing="0" id="Buttons2" width='100%'>
|
||||
<tr>
|
||||
<td width='1%' align='left' nowrap='nowrap'>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_bold"><img src="{$images_path}rte-bold.png" alt="{$this->ipsclass->lang['js_tt_bold']}" title="{$this->ipsclass->lang['js_tt_bold']}"></div></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_italic"><img src="{$images_path}rte-italic.png" alt="{$this->ipsclass->lang['js_tt_italic']}" title="{$this->ipsclass->lang['js_tt_italic']}" ></div></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_underline"><img src="{$images_path}rte-underlined.png" alt="{$this->ipsclass->lang['js_tt_underline']}" title="{$this->ipsclass->lang['js_tt_underline']}" ></div></td>
|
||||
<td>
|
||||
<div class='rte-menu-button' id='{$editor_id}_popup_format' title='{$this->ipsclass->lang['js_text_formatting']}' style='margin-right:4px;margin-left:3px;width:41px'>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><div id='{$editor_id}_out_format'> </div></td>
|
||||
<td nowrap="nowrap"><img class="ipd" src="{$images_path}rte-extra.png" alt="{$this->ipsclass->lang['js_extra_formatting']}" title="{$this->ipsclass->lang['js_extra_formatting']}" >
|
||||
<img class="ipd" src="{$images_path}icon_open.gif" border="0" alt="">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class='rte-menu-button' id='{$editor_id}_popup_forecolor' title='{$this->ipsclass->lang['js_tt_font_col']}' style='margin-right:4px;width:41px'>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><div id='{$editor_id}_out_color'> </div></td>
|
||||
<td nowrap="nowrap">
|
||||
<img class='ipd' src="{$images_path}rte-textcolor.gif" alt="{$this->ipsclass->lang['js_tt_font_col']}" title="{$this->ipsclass->lang['js_tt_font_col']}" >
|
||||
<img class="ipd" src="{$images_path}icon_open.gif" border="0" alt="">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class='rte-menu-button' id='{$editor_id}_popup_backcolor' title='{$this->ipsclass->lang['js_tt_back_col']}' style='margin-right:4px;width:41px;display:none'>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><div id='{$editor_id}_out_bgcolor'> </div></td>
|
||||
<td nowrap="nowrap">
|
||||
<img class='ipd' src="{$images_path}rte-bgcolor.gif" alt="Text Color" title="{$this->ipsclass->lang['js_tt_back_col']}" >
|
||||
<img class="ipd" src="{$images_path}icon_open.gif" border="0" alt="">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class='rte-menu-button' id='{$editor_id}_popup_emoticons' title='{$this->ipsclass->lang['js_tt_back_col']}' style='margin-right:4px;width:41px'>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><div id='{$editor_id}_out_emoticons'> </div></td>
|
||||
<td nowrap="nowrap">
|
||||
<img class='ipd' src="{$images_path}rte-emoticon.gif" alt="Emoticons" title="{$this->ipsclass->lang['js_tt_back_col']}" >
|
||||
<img class="ipd" src="{$images_path}icon_open.gif" border="0" alt="">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width='98%'> </td>
|
||||
<td width='1%' nowrap='nowrap' align='right'>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_outdent"><img src="{$images_path}rte-outdent.gif" alt="{$this->ipsclass->lang['js_tt_outdent']}" title="{$this->ipsclass->lang['js_tt_outdent']}" ></div></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_indent"><img src="{$images_path}rte-indent.gif" alt="{$this->ipsclass->lang['js_tt_outdent']}" title="{$this->ipsclass->lang['js_tt_outdent']}" ></div></td>
|
||||
<td><img class="rteVertSep" src="{$images_path}rte_dots.gif" width="1" height="20" border="0" alt=""></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_justifyleft"><img src="{$images_path}rte-align-left.png" alt="{$this->ipsclass->lang['js_tt_left']}" title="{$this->ipsclass->lang['js_tt_left']}" ></div></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_justifycenter"><img src="{$images_path}rte-align-center.png" alt="{$this->ipsclass->lang['js_tt_center']}" title="{$this->ipsclass->lang['js_tt_center']}" ></div></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_justifyright"><img src="{$images_path}rte-align-right.png" alt="{$this->ipsclass->lang['js_tt_right']}" title="{$this->ipsclass->lang['js_tt_right']}" ></div></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_justifyfull"><img src="{$images_path}rte-justify.png" alt="{$this->ipsclass->lang['js_tt_jfull']}" title="{$this->ipsclass->lang['js_tt_jfull']}" ></div></td>
|
||||
<td><img class="rteVertSep" src="{$images_path}rte_dots.gif" width="1" height="20" border="0" alt=""></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_insertorderedlist"><img src="{$images_path}rte-list-numbered.gif" alt="{$this->ipsclass->lang['js_tt_list']}" title="{$this->ipsclass->lang['js_tt_list']}" ></div></td>
|
||||
<td><div class="rte-normal" id="{$editor_id}_cmd_insertunorderedlist"><img src="{$images_path}rte-list.gif" alt="{$this->ipsclass->lang['js_tt_list']}" title="{$this->ipsclass->lang['js_tt_list']}" ></div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div style='padding:6px'>
|
||||
<textarea name="{$form_field}" class="rte-iframe" id="{$editor_id}_textarea" rows="10" cols="60" style="width:98%; height:250px" tabindex="1">$initial_content</textarea>
|
||||
</div>
|
||||
<div align='right' style='padding:1px 8px 4px 8px'>
|
||||
<div class='rte-menu-button' style='width:100px;font-size:10px;padding-right:8px'><a href="javascript:bbc_pop()" style='text-decoration:none'><img src="{$images_path}rte-bbcode-help-sm.png" alt='Help' border='0' /> {$this->ipsclass->lang['bbc_help']}</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
var MessageMax = parseInt("{$this->ipsclass->lang['the_max_length']}");
|
||||
var Override = "{$this->ipsclass->lang['override']}";
|
||||
// Global paths and data
|
||||
var global_rte_images_url = '$images_path';
|
||||
var global_rte_includes_url = '$inc_path';
|
||||
var global_rte_emoticons_url = '{$this->ipsclass->vars['EMOTICONS_URL']}';
|
||||
var global_rte_char_set = '{$this->ipsclass->vars['gb_char_set']}';
|
||||
// Lang array
|
||||
ips_language_array =
|
||||
{
|
||||
'js_rte_link' : "{$this->ipsclass->lang['js_rte_link']}",
|
||||
'js_rte_unlink' : "{$this->ipsclass->lang['js_rte_unlink']}",
|
||||
'js_rte_image' : "{$this->ipsclass->lang['js_rte_image']}",
|
||||
'js_rte_email' : "{$this->ipsclass->lang['js_rte_email']}",
|
||||
'js_rte_erroriespell' : "{$this->ipsclass->lang['js_rte_erroriespell']}",
|
||||
'js_rte_errorliespell' : "{$this->ipsclass->lang['js_rte_errorliespell']}",
|
||||
'js_rte_code' : "{$this->ipsclass->lang['js_rte_code']}",
|
||||
'js_rte_quote' : "{$this->ipsclass->lang['js_rte_quote']}"
|
||||
};
|
||||
// Smilies array
|
||||
ips_smilie_items =
|
||||
{
|
||||
$smilies
|
||||
};
|
||||
// INIT item
|
||||
IPS_editor['{$editor_id}'] = new ips_text_editor( '{$editor_id}', parseInt($rte_mode), parseInt($rte_mode) == 1 ? 0 : 1 );
|
||||
// Set up defaults
|
||||
IPS_editor['{$editor_id}'].allow_advanced = 0;
|
||||
IPS_editor['{$editor_id}'].forum_fix_ie_newlines = 1;
|
||||
// Remove items from the RTE list
|
||||
IPS_editor['{$editor_id}'].module_remove_item( 'table' );
|
||||
IPS_editor['{$editor_id}'].module_remove_item( 'div' );
|
||||
// Add items
|
||||
IPS_editor['{$editor_id}'].module_add_item( 'ipbcode' , "{$this->ipsclass->lang['js_rte_code']}" , 'rte-ipb-code.png', "IPS_editor['{$editor_id}'].wrap_tags_lite( '[code]' , '[/code]', 0)" );
|
||||
IPS_editor['{$editor_id}'].module_add_item( 'ipbquote', "{$this->ipsclass->lang['js_rte_quote']}", 'rte-ipb-quote.png', "IPS_editor['{$editor_id}'].wrap_tags_lite( '[quote]', '[/quote]', 0)" );
|
||||
//]]>
|
||||
</script>
|
||||
EOF;
|
||||
//startif
|
||||
if ( $editor_id == 'ed-0' )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type="text/javascript" src="jscripts/ips_text_editor_func.js"></script>
|
||||
EOF;
|
||||
}
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -25,7 +25,7 @@ $IPBHTML .= <<<EOF
|
||||
<td align='left' width='95%' style='font-size:12px; vertical-align:middle;font-weight:bold; color:#FFF;' title='ID: {$r['id']}'>{$r['name']}</td>
|
||||
<td align='right' width='5%' nowrap='nowrap'>
|
||||
$reorder
|
||||
<img id="menum-{$r['id']}" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' />
|
||||
<img id="menum-{$r['id']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -38,7 +38,7 @@ $IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td align='left' width='40%' style='font-size:12px; vertical-align:middle;font-weight:bold; color:#FFF;' title='ID: {$r['id']}'>{$r['name']}</td>
|
||||
<td align='right' width='60%'>
|
||||
<input type='button' value='Îòñîðòèðîâàòü ïîäôîðóì' class='realdarkbutton' onclick='locationjump( "&{$this->ipsclass->form_code}&code=reorder&f={$r['id']}&sub=1" )' />
|
||||
<input type='button' value='Re-order Children' class='realdarkbutton' onclick='locationjump( "&{$this->ipsclass->form_code}&code=reorder&f={$r['id']}&sub=1" )' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -59,11 +59,10 @@ $IPBHTML .= <<<EOF
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menum-{$r['id']}",
|
||||
new Array( img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=new&p={$r['id']}'>Äîáàâèòü íîâûé Ôîðóì...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=pedit&f={$r['id']}'>Ïðàâà äîñòóïà...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=edit&f={$r['id']}'>Ðåäàêòèðîâàòü êàòåãîðèþ...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=delete&f={$r['id']}'>Óäàëèòü êàòåãîðèþ...</a>",
|
||||
make_image( 'acp_edit.gif' ) + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=skinedit&f={$r['id']}'>Íàñòðîéêè ñòèëÿ...</a>"
|
||||
new Array( img_add + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=new&p={$r['id']}'>New Forum...</a>",
|
||||
img_edit + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=edit&f={$r['id']}'>Edit Settings...</a>",
|
||||
img_delete + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=delete&f={$r['id']}'>Delete Category...</a>",
|
||||
img_view + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=skinedit&f={$r['id']}'>Skin Options...</a>"
|
||||
) );
|
||||
</script>
|
||||
<br />
|
||||
@@ -129,29 +128,28 @@ function toggle_mod_settings()
|
||||
}
|
||||
}
|
||||
|
||||
document.getElementById( 'togglemod' ).innerHTML = modshown ? 'Ïîêàçàòü ìîäåðàòîðñêèå Îïöèè' : 'Ñêðûòü ìîäåðàòîðñêèå Îïöèè';
|
||||
document.getElementById( 'togglemod' ).innerHTML = modshown ? 'Show Moderator Options' : 'Hide Moderator Options';
|
||||
modshown = modshown == 1 ? 0 : 1;
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
<div class='topbutton'>
|
||||
<div class='taboff'>
|
||||
EOF;
|
||||
if ( $this->ipsclass->input['showall'] )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&showall=0'>Ïîêàçàòü èåðàðõèþ ôîðóìîâ</a>
|
||||
<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&showall=0'>Show Tieried</a>
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&showall=1'>Ïîêàçàòü ôîðóìû áåç èåðàðõèè</a>
|
||||
<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&showall=1'>Show All</a>
|
||||
EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
</div>
|
||||
<div class='topbuttonnext'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=new'>Ñîçäàòü ôîðóì</a></div>
|
||||
<div class='topbuttonnext'><a href='#' onclick='toggle_mod_settings()' id='togglemod'>Ïîêàçàòü ìîäåðàòîðñêèå îïöèè</a></div>
|
||||
<div class='taboff'><a href='#' onclick='toggle_mod_settings()' id='togglemod'>Show Moderator Options</a></div>
|
||||
<br clear='all' />
|
||||
<div id='mainforumwrapper'>
|
||||
EOF;
|
||||
@@ -169,12 +167,12 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tablerow1' style='white-space:nowrap;font-weight:bold;float:left' id='modmenu{$data['mid']}'>{$data['_fullname']} <img src='{$this->ipsclass->skin_url}/images/icon_open.gif' border='0' style='vertical-align:top'/></div>
|
||||
<div class='tablerow1' style='white-space:nowrap;font-weight:bold;float:left' id='modmenu{$data['mid']}'>{$data['_fullname']} <img src='{$this->ipsclass->skin_acp_url}/images/icon_open.gif' border='0' style='vertical-align:top'/></div>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"modmenu{$data['mid']}",
|
||||
new Array( img_item + " <a href='{$this->ipsclass->base_url}§ion=content&act=mod&code=remove&mid={$data['mid']}'>Óäàëèòü...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}§ion=content&act=mod&code=edit&mid={$data['mid']}'>Èçìåíèòü...</a>"
|
||||
new Array( img_item + " <a href='{$this->ipsclass->base_url}§ion=content&act=mod&code=remove&mid={$data['mid']}'>Remove...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}§ion=content&act=mod&code=edit&mid={$data['mid']}'>Edit...</a>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
@@ -232,24 +230,25 @@ function gomodform()
|
||||
<div class='tableborder'>
|
||||
<table cellpadding='4' cellspacing='0' width='100%' border='0' class='tablerow1'>
|
||||
<tr>
|
||||
<td align='left' valign='middle'>{$choose} <input type='button' class='realbutton' value='Îòñîðòèðîâàòü ïîäôîðóìû' onclick='gochildrenofthecorn()'/></td>
|
||||
<td align='right'><input type='button' class='realbutton' value='Ñîçäàòü êàòåãîðèþ' onclick='locationjump("&{$this->ipsclass->form_code}&code=new&c=1")' />
|
||||
<input type='submit' value='Îòñîðòèðîâàòü êàòåãîðèè' class='realbutton' /></form>
|
||||
<td align='left' valign='middle'>{$choose} <input type='button' class='realbutton' value='Reorder Children' onclick='gochildrenofthecorn()'/></td>
|
||||
<td align='right'><input type='button' class='realbutton' value='Add New Category' onclick='locationjump("&{$this->ipsclass->form_code}&code=new&type=category")' />
|
||||
<input type='submit' value='Reorder Categories' class='realbutton' /></form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
<form method='post' action='{$this->ipsclass->base_url}&section={$this->ipsclass->section_code}&act=mod&code=add' id='modform'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<input type='hidden' name='modforumids' id='modforumids' />
|
||||
<div class='tableborder'>
|
||||
<table cellpadding='2' cellspacing='0' width='100%' border='0' class='tablerow1'>
|
||||
<tr>
|
||||
<td valign='middle'><strong>Äîáàâèòü ìîäåðàòîðà ê îòìå÷åííûì ôîðóìàì:</strong></td>
|
||||
<td valign='middle'><strong>Add a moderator to all checked forum(s):</strong></td>
|
||||
<td>
|
||||
Èìÿ ïîëüçîâàòåëÿ <input class='realbutton' type='text' name='name' size='20' value='' /> <strong><i>ÈËÈ</i></strong> Ãðóïïà {$mem_group}
|
||||
Name <input class='realbutton' type='text' name='name' size='20' value='' /> <strong><i>OR</i></strong> Group {$mem_group}
|
||||
</td>
|
||||
<td width='1%' valign='middle'><input type='button' class='realbutton' value='Äîáàâèòü' onclick='gomodform()' /></td>
|
||||
<td width='1%' valign='middle'><input type='button' class='realbutton' value='Go >>' onclick='gomodform()' /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
@@ -265,7 +264,7 @@ return $IPBHTML;
|
||||
//===========================================================================
|
||||
// Forum: Render normal row
|
||||
//===========================================================================
|
||||
function render_forum_row( $desc, $r, $depthguide, $skin ) {
|
||||
function render_forum_row( $desc, $r, $depth_guide, $skin ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
@@ -278,7 +277,7 @@ EOF;
|
||||
if ( $r['id'] == $this->ipsclass->vars['forum_trash_can_id'] )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<img src='{$this->ipsclass->adskin->img_url}/images/acp_trashcan.gif' border='0' title='Ýòîò ôîðóì - Êîðçèíà' />
|
||||
<img src='{$this->ipsclass->adskin->img_url}/images/acp_trashcan.gif' border='0' title='This is the trashcan forum' />
|
||||
EOF;
|
||||
}
|
||||
|
||||
@@ -286,10 +285,10 @@ $IPBHTML .= <<<EOF
|
||||
<strong style='font-size:11px'>{$r['name']}</strong>
|
||||
EOF;
|
||||
|
||||
if ( ($r['skin_id'] != "") and ($r['skin_id'] >= 0) )
|
||||
if ( ($r['skin_id'] != "") and ($r['skin_id'] > 0) )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<br>[ Èñïîëüçóåò Ñòèëü: {$skin} ]
|
||||
<br>[ Using Skin Set: {$skin} ]
|
||||
EOF;
|
||||
}
|
||||
|
||||
@@ -300,24 +299,24 @@ EOF;
|
||||
if ( $r['_modstring'] != "" )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<div style='display:none' id='moddiv-{$r['id']}'><fieldset style='padding:4px;height:45px'><legend>Ìîäåðàòîðû</legend>{$r['_modstring']}</fieldset></div>
|
||||
<div style='display:none' id='moddiv-{$r['id']}'><fieldset style='padding:4px;height:45px'><legend>Moderators</legend>{$r['_modstring']}</fieldset></div>
|
||||
EOF;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
</td>
|
||||
<td class='tablerow1' align='right' width='5%' nowrap='nowrap'><input type='checkbox' title='Îòìåòüòå ýòî ïîëå äëÿ âñòàâêè ýòîãî ôîðóìà â ñïèñîê ôîðóìîâ äëÿ äîáàâëåíèÿ ìîäåðàòîðà ê ' id='id_{$r['id']}' value='1' /> <img id="menu{$r['id']}" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' /></td>
|
||||
<td class='tablerow1' align='right' width='5%' nowrap='nowrap'><input type='checkbox' title='Check this box to include this forum in the list of forums to add a moderator to' id='id_{$r['id']}' value='1' /> <img id="menu{$r['id']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$r['id']}",
|
||||
new Array( img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=edit&f={$r['id']}'>Ðåäàêòèðîâàòü Ôîðóì...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=pedit&f={$r['id']}'>Ïðàâà äîñòóïà...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=empty&f={$r['id']}'>Î÷èñòèòü Ôîðóì...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=delete&f={$r['id']}'>Óäàëèòü Ôîðóì...</a>",
|
||||
make_image( 'acp_rules.gif' ) + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=frules&f={$r['id']}'>Ïðàâèëà Ôîðóìà...</a>",
|
||||
make_image( 'acp_edit.gif' ) + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=skinedit&f={$r['id']}'>Íàñòðîéêè Ñòèëÿ...</a>",
|
||||
make_image( 'acp_resync.gif' ) + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=recount&f={$r['id']}'>Ïåðåñ÷åò Ñòàòèñòèêè...</a>"
|
||||
new Array( img_edit + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=edit&f={$r['id']}'>Edit Settings...</a>",
|
||||
img_info + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=pedit&f={$r['id']}'>Permissions...</a>",
|
||||
img_delete + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=empty&f={$r['id']}'>Empty Forum...</a>",
|
||||
img_delete + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=delete&f={$r['id']}'>Delete Forum...</a>",
|
||||
img_edit + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=frules&f={$r['id']}'>Forum Rules...</a>",
|
||||
img_view + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=skinedit&f={$r['id']}'>Skin Options...</a>",
|
||||
img_info + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=recount&f={$r['id']}'>Resynchronise...</a>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
@@ -326,10 +325,32 @@ EOF;
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Forum: Render category no forums
|
||||
//===========================================================================
|
||||
function render_no_forums( $parent_id ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1' width='100%' colspan='2'>
|
||||
<strong style='font-size:11px;color:red;'>You have not created any forums in this category yet.<br /> It will not be displayed on the site, regardless of permission settings, until it contains at least one forum.</strong>
|
||||
<div class='graytext'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=new&p={$parent_id}'>Click here to create a forum in this category</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Forum: Build Permissions
|
||||
//===========================================================================
|
||||
function render_forum_permissions( $global=array(), $content="", $title='Îãðàíè÷åíèÿ óðîâíåé äîñòóïà' ) {
|
||||
function render_forum_permissions( $global=array(), $content="", $title='Permission Access Levels' ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
@@ -352,7 +373,7 @@ function check_all( permtype )
|
||||
{
|
||||
var e = checkboxes[i];
|
||||
|
||||
if ( e && (e.id != 'UPLOAD_ALL') && (e.id != 'READ_ALL') && (e.id != 'REPLY_ALL') && (e.id != 'START_ALL') && (e.id != 'SHOW_ALL') && (e.type == 'checkbox') && (! e.disabled) )
|
||||
if ( e && (e.id != 'UPLOAD_ALL') && (e.id != 'DOWNLOAD_ALL') && (e.id != 'READ_ALL') && (e.id != 'REPLY_ALL') && (e.id != 'START_ALL') && (e.id != 'SHOW_ALL') && (e.type == 'checkbox') && (! e.disabled) )
|
||||
{
|
||||
var s = e.id;
|
||||
var a = s.replace( /^(.+?)_.+?$/, "$1" );
|
||||
@@ -396,7 +417,7 @@ function obj_checked( permtype, pid )
|
||||
{
|
||||
var e = checkboxes[i];
|
||||
|
||||
if ( e && (e.id != 'UPLOAD_ALL') && (e.id != 'READ_ALL') && (e.id != 'REPLY_ALL') && (e.id != 'START_ALL') && (e.id != 'SHOW_ALL') && (e.type == 'checkbox') && (! e.disabled) )
|
||||
if ( e && (e.id != 'UPLOAD_ALL') && (e.id != 'DOWNLOAD_ALL') && (e.id != 'READ_ALL') && (e.id != 'REPLY_ALL') && (e.id != 'START_ALL') && (e.id != 'SHOW_ALL') && (e.type == 'checkbox') && (! e.disabled) )
|
||||
{
|
||||
var s = e.id;
|
||||
var a = s.replace( /^(.+?)_.+?$/, "$1" );
|
||||
@@ -437,7 +458,7 @@ function checkcol( permtype ,status)
|
||||
{
|
||||
var e = checkboxes[i];
|
||||
|
||||
if ( e && (e.id != 'UPLOAD_ALL') && (e.id != 'READ_ALL') && (e.id != 'REPLY_ALL') && (e.id != 'START_ALL') && (e.id != 'SHOW_ALL') && (e.type == 'checkbox') && (! e.disabled) )
|
||||
if ( e && (e.id != 'UPLOAD_ALL') && (e.id != 'DOWNLOAD_ALL') && (e.id != 'READ_ALL') && (e.id != 'REPLY_ALL') && (e.id != 'START_ALL') && (e.id != 'SHOW_ALL') && (e.type == 'checkbox') && (! e.disabled) )
|
||||
{
|
||||
var s = e.id;
|
||||
var a = s.replace( /^(.+?)_.+?$/, "$1" );
|
||||
@@ -519,45 +540,50 @@ function init_perms()
|
||||
|
||||
function checkrow( permid, status )
|
||||
{
|
||||
document.getElementById( "READ" + '_' + permid ).checked = status ? true : false;
|
||||
document.getElementById( "REPLY" + '_' + permid ).checked = status ? true : false;
|
||||
document.getElementById( "START" + '_' + permid ).checked = status ? true : false;
|
||||
document.getElementById( "UPLOAD" + '_' + permid ).checked = status ? true : false;
|
||||
document.getElementById( "SHOW" + '_' + permid ).checked = status ? true : false;
|
||||
document.getElementById( "READ" + '_' + permid ).checked = status ? true : false;
|
||||
document.getElementById( "REPLY" + '_' + permid ).checked = status ? true : false;
|
||||
document.getElementById( "START" + '_' + permid ).checked = status ? true : false;
|
||||
document.getElementById( "UPLOAD" + '_' + permid ).checked = status ? true : false;
|
||||
document.getElementById( "DOWNLOAD" + '_' + permid ).checked = status ? true : false;
|
||||
document.getElementById( "SHOW" + '_' + permid ).checked = status ? true : false;
|
||||
|
||||
obj_checked("READ");
|
||||
obj_checked("REPLY");
|
||||
obj_checked("START");
|
||||
obj_checked("UPLOAD");
|
||||
obj_checked("DOWNLOAD");
|
||||
obj_checked("SHOW");
|
||||
|
||||
return false;
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt' id='perm-header'>{$title}</div>
|
||||
<table cellpadding='4' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td class='titlemedium' width='16%'> </td>
|
||||
<td class='titlemedium' width='16%' align='center'>Ïðîñìîòð ôîðóìà</td>
|
||||
<td class='titlemedium' width='16%' align='center'>×òåíèå òåì</td>
|
||||
<td class='titlemedium' width='16%' align='center'>Îòâåò â òåìàõ</td>
|
||||
<td class='titlemedium' width='16%' align='center'>Ñîçäàíèå òåì</td>
|
||||
<td class='titlemedium' width='16%' align='center'>Çàãðóçêà ôàéëîâ</td>
|
||||
<td class='tablesubheader' width='13%'> </td>
|
||||
<td class='tablesubheader' width='14%' align='center'>Show Forum</td>
|
||||
<td class='tablesubheader' width='14%' align='center'>Read Topics</td>
|
||||
<td class='tablesubheader' width='14%' align='center'>Reply Topics</td>
|
||||
<td class='tablesubheader' width='14%' align='center'>Start Topics</td>
|
||||
<td class='tablesubheader' width='14%' align='center'>Upload</td>
|
||||
<td class='tablesubheader' width='14%' align='center'>Download</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='6' class='tablerow1'>
|
||||
<td colspan='7' class='tablerow1'>
|
||||
<fieldset>
|
||||
<legend><strong>Ãëîáàëüíûå íàñòðîéêè äîñòóïà</strong> (Âñå òåêóùèå è áóäóùèå ìàñêè äîñòóïà)</legend>
|
||||
<table cellpadding='4' cellspacing='0' border='0' class='tdrow1' width='100%'>
|
||||
<legend><strong>Global Permissions</strong> (All current and future permission sets)</legend>
|
||||
<table cellpadding='4' cellspacing='0' border='0' class='tablerow1' width='100%'>
|
||||
<tr>
|
||||
<td class='tdrow2' width='16%'> </td>
|
||||
<td class='tdrow1' width='16%' onclick='check_all("SHOW")'><center id='mgyellow'><span class='desctext'>Ïðîñìîòð ôîðóìà</span> {$global['html_show']}</center></td>
|
||||
<td class='tdrow1' width='16%' onclick='check_all("READ")'><center id='mgblue'><span class='desctext'>×òåíèå òåì</span> {$global['html_read']}</center></td>
|
||||
<td class='tdrow1' width='16%' onclick='check_all("REPLY")'><center id='mggreen'><span class='desctext'>Îòâåò â òåìàõ</span> {$global['html_reply']}</center></td>
|
||||
<td class='tdrow1' width='16%' onclick='check_all("START")'><center id='mgred'><span class='desctext'>Ñîçäàíèå Òåì</span> {$global['html_start']}</center></td>
|
||||
<td class='tdrow1' width='16%' onclick='check_all("UPLOAD")'><center id='memgroup'><span class='desctext'>Çàãðóçêà ôàéëîâ</span> {$global['html_upload']}</center></td>
|
||||
<td class='tablerow2' width='13%'> </td>
|
||||
<td class='tablerow1' width='14%' style='background-color:#ecd5d8' onclick='check_all("SHOW")'><center><div class='red-perm'>Show Forum</div> {$global['html_show']}</center></td>
|
||||
<td class='tablerow1' width='14%' style='background-color:#dbe2de' onclick='check_all("READ")'><center><div class='green-perm'>Read Topics</div> {$global['html_read']}</center></td>
|
||||
<td class='tablerow1' width='14%' style='background-color:#dbe6ea' onclick='check_all("REPLY")'><center><div class='yellow-perm'>Reply Topics</div> {$global['html_reply']}</center></td>
|
||||
<td class='tablerow1' width='14%' style='background-color:#d2d5f2' onclick='check_all("START")'><center><div class='blue-perm'>Start Topics</div> {$global['html_start']}</center></td>
|
||||
<td class='tablerow1' width='14%' style='background-color:#ece6d8' onclick='check_all("UPLOAD")'><center><div class='orange-perm'>Upload</div> {$global['html_upload']}</center></td>
|
||||
<td class='tablerow1' width='14%' style='background-color:#dfdee9' onclick='check_all("DOWNLOAD")'><center><div class='purple-perm'>Download</div> {$global['html_download']}</center></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
@@ -565,12 +591,13 @@ function checkrow( permid, status )
|
||||
</tr>
|
||||
{$content}
|
||||
<tr>
|
||||
<td class='tdrow2'> </td>
|
||||
<td class='tdrow1'><center><input type='button' id='button' value='+' onclick='checkcol("SHOW",1)' /> <input type='button' id='button' value='-' onclick='checkcol("SHOW",0)' /></center></td>
|
||||
<td class='tdrow1'><center><input type='button' id='button' value='+' onclick='checkcol("READ",1)' /> <input type='button' id='button' value='-' onclick='checkcol("READ",0)' /></center></td>
|
||||
<td class='tdrow1'><center><input type='button' id='button' value='+' onclick='checkcol("REPLY",1)' /> <input type='button' id='button' value='-' onclick='checkcol("REPLY",0)' /></center></td>
|
||||
<td class='tdrow1'><center><input type='button' id='button' value='+' onclick='checkcol("START",1)' /> <input type='button' id='button' value='-' onclick='checkcol("START",0)' /></center></td>
|
||||
<td class='tdrow1'><center><input type='button' id='button' value='+' onclick='checkcol("UPLOAD",1)' /> <input type='button' id='button' value='-' onclick='checkcol("UPLOAD",0)' /></center></td>
|
||||
<td class='tablerow2'> </td>
|
||||
<td class='tablerow1'><center><input type='button' id='button' value='+' onclick='checkcol("SHOW",1)' /> <input type='button' id='button' value='-' onclick='checkcol("SHOW",0)' /></center></td>
|
||||
<td class='tablerow1'><center><input type='button' id='button' value='+' onclick='checkcol("READ",1)' /> <input type='button' id='button' value='-' onclick='checkcol("READ",0)' /></center></td>
|
||||
<td class='tablerow1'><center><input type='button' id='button' value='+' onclick='checkcol("REPLY",1)' /> <input type='button' id='button' value='-' onclick='checkcol("REPLY",0)' /></center></td>
|
||||
<td class='tablerow1'><center><input type='button' id='button' value='+' onclick='checkcol("START",1)' /> <input type='button' id='button' value='-' onclick='checkcol("START",0)' /></center></td>
|
||||
<td class='tablerow1'><center><input type='button' id='button' value='+' onclick='checkcol("UPLOAD",1)' /> <input type='button' id='button' value='-' onclick='checkcol("UPLOAD",0)' /></center></td>
|
||||
<td class='tablerow1'><center><input type='button' id='button' value='+' onclick='checkcol("DOWNLOAD",1)' /> <input type='button' id='button' value='-' onclick='checkcol("DOWNLOAD",0)' /></center></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@@ -595,17 +622,18 @@ $IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td colspan='6' class='tablerow1'>
|
||||
<td colspan='7' class='tablerow1'>
|
||||
<fieldset>
|
||||
<legend><strong>{$data['perm_name']}</strong></legend>
|
||||
<table cellpadding='4' cellspacing='0' border='0' class='tdrow1' width='100%'>
|
||||
<tr>
|
||||
<td class='tdrow2' width='16%'><input type='button' id='button' value='+' onclick='checkrow({$data['perm_id']},1)' /> <input type='button' id='button' value='-' onclick='checkrow({$data['perm_id']},0)' /></td>
|
||||
<td class='tdrow1' width='16%' id='clickable_{$data['perm_id']}' onclick="toggle_box('SHOW_{$data['perm_id']}')"><center id='mgyellow'><span class='desctext'>Ïðîñìîòð</span> {$perm['html_show']}</center></td>
|
||||
<td class='tdrow1' width='16%' id='clickable_{$data['perm_id']}' onclick="toggle_box('READ_{$data['perm_id']}')"><center id='mgblue'><span class='desctext'>×òåíèå</span> {$perm['html_read']}</center></td>
|
||||
<td class='tdrow1' width='16%' id='clickable_{$data['perm_id']}' onclick="toggle_box('REPLY_{$data['perm_id']}')"><center id='mggreen'><span class='desctext'>Îòâåò</span> {$perm['html_reply']}</center></td>
|
||||
<td class='tdrow1' width='16%' id='clickable_{$data['perm_id']}' onclick="toggle_box('START_{$data['perm_id']}')"><center id='mgred'><span class='desctext'>Ñîçäàíèå</span> {$perm['html_start']}</center></td>
|
||||
<td class='tdrow1' width='16%' id='clickable_{$data['perm_id']}' onclick="toggle_box('UPLOAD_{$data['perm_id']}')"><center id='memgroup'><span class='desctext'>Çàãðóçêà</span> {$perm['html_upload']}</center></td>
|
||||
<table cellpadding='4' cellspacing='0' border='0' class='tablerow1' width='100%'>
|
||||
<tr>
|
||||
<td class='tablerow2' width='13%'><input type='button' id='button' value='+' onclick='checkrow({$data['perm_id']},1)' /> <input type='button' id='button' value='-' onclick='checkrow({$data['perm_id']},0)' /></td>
|
||||
<td class='tablerow1' width='14%' style='background-color:#ecd5d8' id='clickable_{$data['perm_id']}' onclick="toggle_box('SHOW_{$data['perm_id']}')"><center><div class='red-perm'>Show Forum</div> {$perm['html_show']}</center></td>
|
||||
<td class='tablerow1' width='14%' style='background-color:#dbe2de' id='clickable_{$data['perm_id1']}' onclick="toggle_box('READ_{$data['perm_id']}')"><center><div class='green-perm'>Read Topics</div> {$perm['html_read']}</center></td>
|
||||
<td class='tablerow1' width='14%' style='background-color:#dbe6ea' id='clickable_{$data['perm_id2']}' onclick="toggle_box('REPLY_{$data['perm_id']}')"><center><div class='yellow-perm'>Reply Topics</div> {$perm['html_reply']}</center></td>
|
||||
<td class='tablerow1' width='14%' style='background-color:#d2d5f2' id='clickable_{$data['perm_id3']}' onclick="toggle_box('START_{$data['perm_id']}')"><center><div class='blue-perm'>Start Topics</div> {$perm['html_start']}</center></td>
|
||||
<td class='tablerow1' width='14%' style='background-color:#ece6d8' id='clickable_{$data['perm_id4']}' onclick="toggle_box('UPLOAD_{$data['perm_id']}')"><center><div class='orange-perm'>Upload</div> {$perm['html_upload']}</center></td>
|
||||
<td class='tablerow1' width='14%' style='background-color:#dfdee9' id='clickable_{$data['perm_id5']}' onclick="toggle_box('DOWNLOAD_{$data['perm_id']}')"><center><div class='purple-perm'>Download</div> {$perm['html_download']}</center></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
@@ -629,23 +657,24 @@ $IPBHTML .= <<<EOF
|
||||
<script type='text/javascript' language='javascript'>
|
||||
</script>
|
||||
<form name='theAdminForm' id='adminform' action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=pdoedit&f={$this->ipsclass->input['f']}&name={$forum['name']}&nextid={$relative['next']}&previd={$relative['previous']}' method='post'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
{$perm_matrix }
|
||||
<div class='tableborder'><div class='pformstrip' align='center'>
|
||||
<div class='tableborder'><div class='tablesubheader' align='center'>
|
||||
EOF;
|
||||
if ( $relative['next'] > 0 )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<input type='submit' name='donext' value='Ñîõðàíèòü è èçìåíèòü ñëåä.' class='realdarkbutton' />
|
||||
<input type='submit' name='donext' value='Save and Edit Next' class='realdarkbutton' />
|
||||
EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
<input type='submit' value='Ñîõðàíèòü' class='realbutton' />
|
||||
<input type='submit' name='reload' value='Ñîõðàíèòü è ïåðåçàãðóçèòü îêíî' class='realbutton' />
|
||||
<input type='submit' value='Save Only' class='realbutton' />
|
||||
<input type='submit' name='reload' value='Save and Reload' class='realbutton' />
|
||||
EOF;
|
||||
if ( $relative['next'] > 0 )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<input type='submit' name='doprevious' value='Ñîõðàíèòü è èçìåíèòü ïðåä.' class='realdarkbutton' />
|
||||
<input type='submit' name='doprevious' value='Save and Edit Previous' class='realdarkbutton' />
|
||||
EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
@@ -668,6 +697,7 @@ $IPBHTML .= <<<EOF
|
||||
<script type='text/javascript' language='javascript'>
|
||||
</script>
|
||||
<form name='theAdminForm' id='adminform' action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code={$code}&f={$this->ipsclass->input['f']}&name={$forum['name']}' method='post'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>
|
||||
<div style='float:left'>$title</div>
|
||||
@@ -678,26 +708,32 @@ $IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1' colspan='2'>
|
||||
<fieldset>
|
||||
<legend><strong>Îñíîâíûå íàñòðîéêè</strong></legend>
|
||||
<legend><strong>Basic Settings</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Íàçâàíèå ôîðóìà</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>{$form['addnew_type_upper']} Name</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['name']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
if( $form['addnew_type'] != 'category' )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Îïèñàíèå</strong><div class='desctext'>HTML ðàçðåøåí.<br />Ïåðåíîñû ñòðîê àâòîìàòè÷åñêè çàìåíÿþòñÿ íà <br>.</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Forum Description</strong><div class='desctext'>You may use HTML - linebreaks automatically converted to <br></div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['description']}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âûáåðèòå ðîäèòåëüñêèé ôîðóì èëè êàòåãîðèþ</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Forum Parent</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['parent_id']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ñîñòîÿíèå ôîðóìà</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Forum State</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['status']}</td>
|
||||
</tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ýòî îáû÷íûé ôîðóì (íå êàòåãîðèÿ)?</strong><div class='desctext'>Åñëè âû âûáåðèòå «<b>Äà</b>», òî ôîðóì áóäåò îáû÷íûì, â íåì áóäóò ðàçðåøåíî îòêðûòèå òåì, ïóáëèêàöèÿ ñîîáùåíèé (åñëè ýòî ðàçðåøåíî).<br><br>Åñëè âûáåðèòå «<b>Íåò</b>», òî ôîðóì áóäåò êàòåãîðèåé, â íåì áóäóò çàïðåùåíî îòêðûòèå òåì è ïóáëèêàöèÿ ñîîáùåíèé, ñîîòâåòñòâåííî, âñå íèæåñëåäóþùèå íàñòðîéêè íå áóäóò èìåòü ñèëû.</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Do you wish to allow posting in this forum?</strong><div class='desctext'>You may wish to set this to no if you will be creating sub-forums underneath this forum. If this is set to no, the rest of the settings will have no effect.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['sub_can_post']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -708,18 +744,18 @@ $IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1' colspan='2'>
|
||||
<fieldset>
|
||||
<legend><strong>Íàñòðîéêè ïåðåàäðåñàöèè</strong></legend>
|
||||
<legend><strong>Forum Redirect Settings</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>URL àäðåñ äëÿ ïåðåìåùåíèÿ</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Redirection URL</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['redirect_url']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ïåðåêëþ÷èòü ôîðóì íà ïåðåìåùåíèå?</strong><div class='desctext'>Ïðè âûáîðå «Äà» íèæåñëåäóþùèå áëîêè íàñòðîåê íå áóäóò èìåòü ñèëû, òàê êàê ôîðóì ñòàíåò ëèøü ññûëêîé. Óæå ñóùåñòâóþùèå òåìû â ôîðóìå áóäóò íåäîñòóïíû!</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Enable URL redirection</strong><div class='desctext'>If 'yes' you can skip the rest of this form as the settings will have no effect and this forum will act like as a redirect link. Current posts will not be accessible when enabled.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['redirect_on']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Êîëè÷åñòâî íàæàòèé íà ññûëêó (ïåðåìåùåíèé)</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Number of redirect clicks</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['redirect_hits']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -730,14 +766,14 @@ $IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1' colspan='2'>
|
||||
<fieldset>
|
||||
<legend><strong>Íàñòðîéêè äîñòóïà</strong></legend>
|
||||
<legend><strong>Permission Settings</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ðàçðåøèòü ïîëüçîâàòåëÿì âèäåòü íàçâàíèÿ òåì â ñïèñêå, íî çàïðåòèòü èì ïðîñìîòð ñîäåðæèìîãî ýòèõ òåì?</strong><div class='desctext'>Ïðè âûáîðå «Äà» ïîëüçîâàòåëè ñìîãóò âèäåòü òîëüêî ñïèñîê íàçâàíèé òåì, íî íå ñìîãóò â íèõ âîéòè.</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Allow members who can see the forum but cannot read topics to see the topic list</strong><div class='desctext'>If yes, the member will be able to see the topic titles but will not be able to read the topic posts when clicked.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['permission_showtopic']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ñïåöèàëüíîå ñîîáùåíèå, âûâîäèìîå ïîëüçîâàòåëÿì ïðè ïîïûòêå çàéòè â òåìó (åñëè âêëþ÷åí ïóíêò âûøå)</strong><div class='desctext'>HTML ðàçðåøåí.<br />Ïåðåíîñû ñòðîê àâòîìàòè÷åñêè çàìåíÿþòñÿ íà òýã <br>.<br />Åñëè îñòàâèòü ýòî ïîëå ïóñòûì, òî (ïðè âêëþ÷åííîì ïóíêòå âûøå, êîíå÷íî) ïîëüçîâàòåëÿì, ïûòàþùèìñÿ çàéòè â òåìó áóäåò âûâîäèòüñÿ ñòàíäàðòíîå ñîîáùåíèå ôîðóìà...</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Custom 'Permission Denied' Message</strong><div class='desctext'>You may use HTML - linebreaks automatically converted to <br>.<br />If left blank, a default 'permission denied' error is used.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['permission_custom_error']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -748,34 +784,34 @@ $IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1' colspan='2'>
|
||||
<fieldset>
|
||||
<legend><strong>Íàñòðîéêè ñîîáùåíèé</strong></legend>
|
||||
<legend><strong>Postable Forum Settings: Options</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ðàçðåøèòü èñïîëüçîâàíèå HTML (åñëè ðàçðåøàåò ìàñêà äîñòóïà ãðóïïû)?</strong><div class='desctext'>Äàííàÿ îïöèÿ âêëþ÷èò âûïîëíåíèå HTML òýãîâ â ïóáëèêóåìûõ ñîîáùåíèÿõ.</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Enable HTML Posting (where allowed)</strong><div class='desctext'>This will allow HTML to be posted and executed.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['use_html']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ðàçðåøèòü èñïîëüçîâàíèå BB-êîäîâ ôîðóìà?</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Enable BBCode Posting</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['use_ibc']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âêëþ÷èòü ôîðìó áûñòðîãî îòâåòà äëÿ ýòîãî ôîðóìà?</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Enable Quick Reply</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['quick_reply']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ðàçðåøèòü ñîçäàíèå ãîëîñîâàíèé (åñëè ýòî ðàçðåøåíî ãðóïïå)?</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Enable Polls (per user group option)</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['allow_poll']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ðàçðåøèòü ïîäíÿòèå òåì â ñïèñêå ïðè íîâûõ ãîëîñàõ?</strong><div class='desctext'>Åñëè âêëþ÷åíî, òî íîâûé ãîëîñ â îïðîñå ïîäíèìåò ñîîòâåòñòâóþùóþ òåìó íàâåðõ ñïèñêà òåì (êîãäà ñîðòèðîâêà èäåò ïî äàòå).</td>
|
||||
<td width='40%' class='tablerow1'><strong>Enable Poll Bump</strong><div class='desctext'>If enabled, a poll vote will move the topic to the top of the list when sorted by date.</td>
|
||||
<td width='60%' class='tablerow2'>{$form['allow_pollbump']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âêëþ÷èòü ðåéòèíã òåì (åñëè ýòî ðàçðåøåíî ãðóïïå)</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Enable Topic Rating (per user group option)</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['forum_allow_rating']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âêëþ÷èòü ñ÷åò÷èê ñîîáùåíèé ïîëüçîâàòåëåé?</strong><div class='desctext'>Åñëè ýòî ïóíêò îòêëþ÷èòü, òî çà êàæäîå ñîîáùåíèå, îñòàâëåííîå ïîëüçîâàòåëåì, åãî ñ÷åò÷èê ñîîáùåíèé íå áóäåò óâåëè÷èâàòüñÿ!</td>
|
||||
<td width='40%' class='tablerow1'><strong>Enable Post Count Incrementation</strong><div class='desctext'>If enabled, posts in this forum increase member's cumulative post count.</td>
|
||||
<td width='60%' class='tablerow2'>{$form['inc_postcount']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -786,20 +822,24 @@ $IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1' colspan='2'>
|
||||
<fieldset>
|
||||
<legend><strong>Íàñòðîéêè ôîðóìà: Ìîäåðàöèÿ</strong></legend>
|
||||
<legend><strong>Postable Forum Settings: Moderation</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ïðîâåðÿòü ñîîáùåíèÿ ìîäåðàòîðîì ïåðåä ïóáëèêàöèåé?</strong><div class='desctext'>(Åñëè ýòîò ïóíêò âêëþ÷èòü, òî êàæäîå ïóáëèêóåìîå ñîîáùåíèå äîëæíî áóäåò ïðîéòè ïðîâåðêó ìîäåðàòîðîì ïåðåä íåïîñðåäñòâåííîé ïóáëèêàöèåé íà ôîðóì)</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Enable Posting Moderation</strong><div class='desctext'>Requires a moderator to manually add posts/topics to the forum.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['preview_posts']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Óêàæèòå e-mail àäðåñà, êóäà áóäóò îòïðàâëÿòüñÿ óâåäîìëåíèÿ ïðè ïîÿâëåíèè íîâûõ òåì?</b><br /></strong><div class='desctext'>(Îñòàâüòå ïîëå ïóñòûì, åñëè âàì íå òðåáóþòñÿ óâåäîìëåíèÿ)<br />Ðàçäåëÿéòå çàïÿòîé (ïðèìåð: ivanov@mail.ru,petrov@mail.ru)</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Email addresses to send new topic awaiting approval notification</strong><div class='desctext'>This can be left blank</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['notify_modq_emails']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Òðåáîâàòü ïàðîëü ïðè çàõîäå íà ôîðóì?</strong><div class='desctext'>Âû ìîæåòå çàáëîêèðîâàòü ôîðóì è ïóñêàòü íà íåãî òîëüêî ïî ïàðîëþ<br>Âû ìîæåòå îñòàâèòü ïîëå ïóñòûì, ÷òîáû íå èñïîëüçîâàòü ïàðîëü âîîáùå<strong>Åñëè ýòî êàòåãîðèÿ - òî äàííûé ïóíêò íå áóäåò ðàáîòàòü</strong></div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Forum Password</strong><div class='desctext'>Leave this box empty if you do not require this.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['password']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Exempt Groups</strong><div class='desctext'>If you require a password to access this forum, you can select groups who will not need to enter the password in.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['password_override']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
@@ -808,22 +848,22 @@ $IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1' colspan='2'>
|
||||
<fieldset>
|
||||
<legend><strong>Íàñòðîéêè ôîðóìà: Ñîðòèðîâêà</strong></legend>
|
||||
<legend><strong>Postable Forum Settings: Sorting and Ordering</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ïî óìîë÷àíèþ âûâîäèòü òåìû çà</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Default date cut off for topic display</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['prune']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ïî óìîë÷àíèþ ñîðòèðîâàòü ïî</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Default sort key</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['sort_key']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ïîðÿäîê ñîðòèðîâêè ïî óìîë÷àíèþ</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Default sort order</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['sort_order']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ôèëüòð ñîðòèðîâêè ïî óìîë÷àíèþ</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Default sort filter</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['topicfilter']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -833,6 +873,22 @@ $IPBHTML .= <<<EOF
|
||||
</table>
|
||||
</div>
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type='hidden' name='parent_id' value='-1' />
|
||||
<input type='hidden' name='sub_can_post' value='0' />
|
||||
<input type='hidden' name='permission_showtopic' value='1' />
|
||||
</div>
|
||||
EOF;
|
||||
}
|
||||
|
||||
if ( $perm_matrix )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
@@ -852,6 +908,108 @@ EOF;
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Forum: Build Permissions
|
||||
//===========================================================================
|
||||
function render_cat_permissions( $data=array(), $select_all='', $title='Permission Access Levels' ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type='text/javascript'>
|
||||
//<![CDATA[
|
||||
|
||||
var formobj = document.getElementById('adminform');
|
||||
|
||||
function perm_check( obj )
|
||||
{
|
||||
var real_obj = document.getElementById( obj );
|
||||
var total_options = real_obj.options.length;
|
||||
var total_checked = 0;
|
||||
|
||||
for( var i = 0 ; i < real_obj.options.length ; i++ )
|
||||
{
|
||||
if ( real_obj.options[i].selected )
|
||||
{
|
||||
total_checked++;
|
||||
}
|
||||
}
|
||||
|
||||
if ( total_checked == total_options )
|
||||
{
|
||||
document.getElementById( 'show_all' ).checked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById( 'show_all' ).checked = false;
|
||||
}
|
||||
}
|
||||
|
||||
function perm_check_all( obj )
|
||||
{
|
||||
var real_obj = document.getElementById( obj );
|
||||
var isselected = document.getElementById( 'show_all').checked ? true : false;
|
||||
|
||||
for( var i = 0 ; i < real_obj.options.length ; i++ )
|
||||
{
|
||||
real_obj.options[i].selected = isselected;
|
||||
}
|
||||
|
||||
document.getElementById( 'show_all').checked = isselected;
|
||||
}
|
||||
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt' id='perm-header'>{$title}</div>
|
||||
<table cellpadding='4' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='100%' align='center'>Show Category</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<fieldset>
|
||||
<legend><strong>Show Permissions</strong></legend>
|
||||
<table cellpadding='4' cellspacing='0' border='0' class='tablerow1' width='100%'>
|
||||
<tr>
|
||||
<td class='tablerow2' width='40%' valign='middle' align='right' ><span class='desctext'>Show Forum</span></td>
|
||||
<td class='tablerow1' width='60%'>
|
||||
<input type='checkbox' name='show_all' id='show_all' value='1' onclick='perm_check_all("show")' {$select_all} /> Select All Current and Future Sets
|
||||
<br /><select onchange='perm_check("show")' id='show' name='show_permissions[]' size='6' multiple='true'>
|
||||
EOF;
|
||||
|
||||
if( count($data) )
|
||||
{
|
||||
foreach( $data as $perm_row )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<option value='{$perm_row['perm_id']}' {$perm_row['perm_selected']}>{$perm_row['perm_name']}</option>
|
||||
EOF;
|
||||
}
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -14,29 +14,30 @@ $IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Óïðàâëåíèå ïîëüçîâàòåëüñêèìè ãðóïïàìè</div>
|
||||
<div class='tableheaderalt'>User Group Management</div>
|
||||
<table cellpadding='4' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='titlemedium' width='40%'>Íàçâàíèå</td>
|
||||
<td class='titlemedium' width='10%' align='center'>Äîñòóï â àäìèíöåíòð</td>
|
||||
<td class='titlemedium' width='10%' align='center'>Ñóïåðìîäåðàòîð</td>
|
||||
<td class='titlemedium' width='10%' align='center'>Ïîëüçîâàòåëåé</td>
|
||||
<td class='titlemedium' width='1%'> </td>
|
||||
<td class='tablesubheader' width='40%'>Group Title</td>
|
||||
<td class='tablesubheader' width='10%' align='center'>Can Access ACP</td>
|
||||
<td class='tablesubheader' width='10%' align='center'>Is Super Mod</td>
|
||||
<td class='tablesubheader' width='10%' align='center'>Members</td>
|
||||
<td class='tablesubheader' width='1%'> </td>
|
||||
</tr>
|
||||
{$content}
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=add' method='POST' >
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Ñîçäàòü ãðóïïó ïîëüçîâàòåëåé</div>
|
||||
<div class='tableheaderalt'>Create a User Group</div>
|
||||
<table cellpadding='4' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablerow2' width='40%'><strong>Îñíîâàííóþ íà...</strong></td>
|
||||
<td class='tablerow2' width='40%'><strong>Base new group on...</strong></td>
|
||||
<td class='tablerow1' width='60%'>{$form['_new_dd']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' class='tablesubheader' align='center'><input type='submit' value='Ñîçäàòü...' class='realbutton' /></td>
|
||||
<td colspan='2' class='tablesubheader' align='center'><input type='submit' value='Create...' class='realbutton' /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@@ -56,12 +57,12 @@ $IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tdrow2' style='font-weight:bold'>
|
||||
<td class='tablerow2' style='font-weight:bold'>
|
||||
EOF;
|
||||
if ( $r['g_id'] != 1 and $r['g_id'] != 2 )
|
||||
if ( $r['g_id'] != $this->ipsclass->vars['auth_group'] and $r['g_id'] != $this->ipsclass->vars['guest_group'] )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<a href='{$this->ipsclass->vars['board_url']}/index.{$this->ipsclass->vars['php_ext']}?act=Members&max_results=30&filter={$r['g_id']}&sort_order=asc&sort_key=members_display_name&st=0' target='_blank' title='Ñïèñîê ïîëüçîâàòåëåé'>{$r['_title']}</a>
|
||||
<a href='{$this->ipsclass->vars['board_url']}/index.{$this->ipsclass->vars['php_ext']}?act=Members&max_results=30&showall=1&filter={$r['g_id']}&sort_order=asc&sort_key=members_display_name&st=0' target='_blank' title='List Users'>{$r['_title']}</a>
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
@@ -72,26 +73,26 @@ EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
</td>
|
||||
<td class='tdrow1' align='center'><img src='{$this->ipsclass->skin_url}/images/{$r['_can_acp_img']}' border='0' alt='-' class='ipd' /></td>
|
||||
<td class='tdrow1' align='center'><img src='{$this->ipsclass->skin_url}/images/{$r['_can_supmod_img']}' border='0' alt='-' class='ipd' /></td>
|
||||
<td class='tdrow1' align='center'>{$r['count']}</td>
|
||||
<td class='tdrow1' align='center'><img id="menu{$r['g_id']}" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' /></td>
|
||||
<td class='tablerow1' align='center'><img src='{$this->ipsclass->skin_acp_url}/images/{$r['_can_acp_img']}' border='0' alt='-' class='ipd' /></td>
|
||||
<td class='tablerow1' align='center'><img src='{$this->ipsclass->skin_acp_url}/images/{$r['_can_supmod_img']}' border='0' alt='-' class='ipd' /></td>
|
||||
<td class='tablerow1' align='center'>{$r['count']}</td>
|
||||
<td class='tablerow1' align='center'><img id="menu{$r['g_id']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$r['g_id']}",
|
||||
new Array( img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=edit&id={$r['g_id']}'>Ðåäàêòèðîâàòü</a>",
|
||||
new Array( img_edit + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=edit&id={$r['g_id']}'>Edit Group</a>",
|
||||
EOF;
|
||||
if ( $r['g_id'] > 4 )
|
||||
if ( ! in_array( $r['g_id'], array( $this->ipsclass->vars['auth_group'], $this->ipsclass->vars['guest_group'], $this->ipsclass->vars['member_group'], $this->ipsclass->vars['admin_group'] ) ) )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=delete&id={$r['g_id']}'>Óäàëèòü</a>"
|
||||
img_delete + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=delete&_admin_auth_key={$this->ipsclass->_admin_auth_key}&id={$r['g_id']}'>Delete</a>"
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
img_item + " <em>Óäàëèòü íåâîçìîæíî</em>"
|
||||
img_delete + " <em>Cannot Delete</em>"
|
||||
EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
@@ -113,22 +114,22 @@ $IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tablesubheader'>IPB Èíôîðìàöèÿ</div>
|
||||
<div class='tablesubheader'>Invision Power Board Information</div>
|
||||
<div class='tablerow1'>
|
||||
<b>Èñïîëüçîâàíî ãðóïïàìè</b> - óêàçûâàåò íà ãðóïïû ïîëüçîâàòåëåé, èñïîëüçóþùèå äàííóþ ìàñêó äîñòóïà.
|
||||
<br /><b>Èñïîëüçóåòñÿ ïîëüçîâàòåëÿìè</b> - óêàçûâàåò êîëè÷åñòâî ïîëüçîâàòåëåé, èñïîëüçóþùèõ äàííóþ ìàñêó äîñòóïà.
|
||||
<br /><b>Ïðåäïðîñìîòð</b> äàåò âîçìîæíîñòü ïðîòåñòèðîâàòü äàííóþ ìàñêó äîñòóïà.
|
||||
<b>Used by Groups</b> relates to the member groups that use this set of permissions
|
||||
<br /><b>Used by Members</b> relates to the number of members that are using this set of permissions rather than the set of permissions assigned to their group
|
||||
<br /><b>Preview</b> the forums this set of permissions would provide access to in a quick, convenient format.
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Ìàñêè äîñòóïà ê ôîðóìàì</div>
|
||||
<div class='tableheaderalt'>Forum Permission Sets</div>
|
||||
<table cellpadding='4' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='titlemedium' width='20%'>Íàçâàíèå</td>
|
||||
<td class='titlemedium' width='15%'>Èñïîëüçóåòñÿ ãðóïïàìè</td>
|
||||
<td class='titlemedium' width='20%' align='center'>Èñïîëüçóåòñÿ ïîëüçîâàòåëÿìè</td>
|
||||
<td class='titlemedium' width='1%'> </td>
|
||||
<td class='tablesubheader' width='20%'>Name</td>
|
||||
<td class='tablesubheader' width='15%'>Used by Group(s)</td>
|
||||
<td class='tablesubheader' width='20%' align='center'>Used by Member(s)</td>
|
||||
<td class='tablesubheader' width='1%'> </td>
|
||||
</tr>
|
||||
{$content}
|
||||
</table>
|
||||
@@ -136,19 +137,20 @@ $IPBHTML .= <<<EOF
|
||||
</div>
|
||||
<br />
|
||||
<form name='theAdminForm' id='adminform' action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=dopermadd' method='post'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<div class='tableborder'>
|
||||
<div class='maintitle'>Ñîçäàíèå íîâîé ìàñêè äîñòóïà</div>
|
||||
<div class='tableheaderalt'>Create a new permission set</div>
|
||||
<table cellpadding='4' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>Íàçâàíèå ìàñêè äîñòóïà</strong></td>
|
||||
<td class='tablerow1'><strong>Permission Set Name</strong></td>
|
||||
<td class='tablerow2'><input type='text' class='input' size='30' name='new_perm_name' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>Çàïîëíèòü ìàñêó äîñòóïà ïðàâàìè èç óæå ñóùåñòâóþùåé ìàñêè:</strong></td>
|
||||
<td class='tablerow1'><strong>Base this permission set on which existing set...</strong></td>
|
||||
<td class='tablerow2'><select name='new_perm_copy' class='dropdown'>{$dlist}</select></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class='tablefooter' align='center'><input type='submit' value='Ñîçäàòü' class='realbutton' /></div>
|
||||
<div class='tablefooter' align='center'><input type='submit' value='Create' class='realbutton' /></div>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
@@ -167,14 +169,14 @@ $IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tdrow2'><strong>{$r['name']}</strong>{$coppa}</td>
|
||||
<td class='tdrow1'>{$r['groups']}</td>
|
||||
<td class='tdrow1' align='center'>
|
||||
<td class='tablerow2'><strong>{$r['name']}</strong></td>
|
||||
<td class='tablerow1'>{$r['groups']}</td>
|
||||
<td class='tablerow1' align='center'>
|
||||
EOF;
|
||||
if ( $r['mems'] > 0 )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
{$r['mems']} (<a href='javascript:pop_win("&{$this->ipsclass->form_code}&code=view_perm_users&id={$r['id']}", "User", "500","350");' title='Îòêðûòü íîâîå îêíî, â êîòîðîì âûâåñòè âñåõ ïîëüçîâàòåëåé, èñïîëüçóþùèõ äàííóþ ìàñêó äîñòóïà!'>Ïðîñìîòðåòü</a>)
|
||||
{$r['mems']} (<a href='javascript:pop_win("&{$this->ipsclass->form_code}&code=view_perm_users&id={$r['id']}", "User", "500","350");' title='View the member names of those using this permission set in a new window'>View</a>)
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
@@ -185,24 +187,24 @@ EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
</td>
|
||||
<td class='tdrow1' align='center'><img id="menu{$r['id']}" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' /></td>
|
||||
<td class='tablerow1' align='center'><img id="menu{$r['id']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$r['id']}",
|
||||
new Array( img_item + " <a href='javascript:pop_win(\"&{$this->ipsclass->form_code}&code=preview_forums&id={$r['id']}&t=read\", \"400\",\"350\");' title='Ïîñìîòðåòü, ÷òî ìîæåò äåëàòü ýòó ãðóïïà..'>Ïðåäïðîñìîòð...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=fedit&id={$r['id']}'>Èçìåíèòü...</a>",
|
||||
new Array( img_view + " <a href='javascript:pop_win(\"&{$this->ipsclass->form_code}&code=preview_forums&id={$r['id']}&t=read\", \"Preview\", \"400\",\"350\");' title='See what this group can see..'>Preview...</a>",
|
||||
img_edit + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=fedit&id={$r['id']}'>Edit...</a>",
|
||||
EOF;
|
||||
if ( ! $r['isactive'] )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=pdelete&id={$r['id']}'>Óäàëèòü...</a>"
|
||||
img_delete + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=pdelete&id={$r['id']}'>Delete...</a>"
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
img_item + " <em>Èñïîëüçóåòñÿ!</em>"
|
||||
img_delete + " <em>In Use</em>"
|
||||
EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
@@ -215,6 +217,186 @@ return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
function permissions_js()
|
||||
{
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
|
||||
<script type='text/javascript'>
|
||||
//<![CDATA[
|
||||
|
||||
//----------------------------------
|
||||
// Check column
|
||||
//----------------------------------
|
||||
|
||||
function checkcol( permtype ,status )
|
||||
{
|
||||
var formobj = document.getElementById('theAdminForm');
|
||||
var checkboxes = formobj.getElementsByTagName('input');
|
||||
|
||||
for ( var i = 0 ; i <= checkboxes.length ; i++ )
|
||||
{
|
||||
var e = checkboxes[i];
|
||||
|
||||
if ( e && (e.id != 'upload') && (e.id != 'download') && (e.id != 'read') && (e.id != 'reply') && (e.id != 'start') && (e.id != 'show') && (e.type == 'checkbox') && (! e.disabled) )
|
||||
{
|
||||
var s = e.id;
|
||||
var a = s.replace( /^(.+?)_.+?$/, "$1" );
|
||||
|
||||
if ( a == permtype )
|
||||
{
|
||||
if ( status == 1 )
|
||||
{
|
||||
e.checked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
e.checked = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function checkrow( permid, status )
|
||||
{
|
||||
document.getElementById( "read" + '_' + permid ).checked = status;
|
||||
document.getElementById( "reply" + '_' + permid ).checked = status;
|
||||
document.getElementById( "start" + '_' + permid ).checked = status;
|
||||
document.getElementById( "upload" + '_' + permid ).checked = status;
|
||||
document.getElementById( "download" + '_' + permid ).checked = status;
|
||||
document.getElementById( "show" + '_' + permid ).checked = status;
|
||||
|
||||
obj_checked( "read", permid );
|
||||
obj_checked( "reply", permid );
|
||||
obj_checked( "start", permid );
|
||||
obj_checked( "show", permid );
|
||||
obj_checked( "upload", permid );
|
||||
obj_checked( "download", permid );
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
function obj_checked( permtype, pid )
|
||||
{
|
||||
var formobj = document.getElementById('theAdminForm');
|
||||
|
||||
var totalboxes = 0;
|
||||
var total_on = 0;
|
||||
|
||||
if ( pid )
|
||||
{
|
||||
document.getElementById( permtype+'_'+pid ).checked = document.getElementById( permtype+'_'+pid ).checked ? true : false;
|
||||
}
|
||||
|
||||
var checkboxes = formobj.getElementsByTagName('input');
|
||||
|
||||
for ( var i = 0 ; i <= checkboxes.length ; i++ )
|
||||
{
|
||||
var e = checkboxes[i];
|
||||
|
||||
if ( e && (e.id != 'upload') && (e.id != 'download') && (e.id != 'read') && (e.id != 'reply') && (e.id != 'start') && (e.id != 'show') && (e.type == 'checkbox') && (! e.disabled) )
|
||||
{
|
||||
var s = e.id;
|
||||
var a = s.replace( /^(.+?)_.+?$/, "$1" );
|
||||
|
||||
if ( a == permtype )
|
||||
{
|
||||
totalboxes++;
|
||||
|
||||
if ( e.checked )
|
||||
{
|
||||
total_on++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( totalboxes == total_on )
|
||||
{
|
||||
document.getElementById( permtype ).checked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById( permtype ).checked = false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
function init_perms( )
|
||||
{
|
||||
var formobj = document.getElementById('theAdminForm');
|
||||
var checkboxes = formobj.getElementsByTagName('input');
|
||||
|
||||
var totalboxes = new Array();
|
||||
totalboxes['upload'] = 0;
|
||||
totalboxes['download'] = 0;
|
||||
totalboxes['read'] = 0;
|
||||
totalboxes['reply'] = 0;
|
||||
totalboxes['start'] = 0;
|
||||
totalboxes['show'] = 0;
|
||||
|
||||
var total_on = new Array();
|
||||
total_on['upload'] = 0;
|
||||
total_on['download'] = 0;
|
||||
total_on['read'] = 0;
|
||||
total_on['reply'] = 0;
|
||||
total_on['start'] = 0;
|
||||
total_on['show'] = 0;
|
||||
|
||||
for ( var i = 0 ; i <= checkboxes.length ; i++ )
|
||||
{
|
||||
var e = checkboxes[i];
|
||||
|
||||
if ( e && (e.id != 'upload') && (e.id != 'download') && (e.id != 'read') && (e.id != 'reply') && (e.id != 'start') && (e.id != 'show') && (e.type == 'checkbox') && (! e.disabled) )
|
||||
{
|
||||
var s = e.id;
|
||||
var a = s.replace( /^(.+?)_.+?$/, "$1" );
|
||||
var b = s.replace( /^(.+?)_(.+?)$/, "$2" );
|
||||
|
||||
totalboxes[a]++;
|
||||
|
||||
if ( e.checked )
|
||||
{
|
||||
total_on[a]++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for ( key in totalboxes )
|
||||
{
|
||||
if ( totalboxes[key] == total_on[key] )
|
||||
{
|
||||
document.getElementById( key ).checked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById( key ).checked = false;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
init_perms();
|
||||
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
EOF;
|
||||
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -14,7 +14,7 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<img id='img-item-{$id}' src='{$this->ipsclass->skin_url}/images/{$image}' border='0' alt='' />
|
||||
<img id='img-item-{$id}' src='{$this->ipsclass->skin_acp_url}/images/{$image}' border='0' alt='' />
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
@@ -35,8 +35,8 @@ $IPBHTML .= <<<EOF
|
||||
($count_string) {$group['easy_preview']}
|
||||
</div>
|
||||
<div align='left'>
|
||||
<img src='{$this->ipsclass->skin_url}/images/folder.gif' alt='Template Group' style='vertical-align:middle' />
|
||||
{$folder_blob} <a style='font-size:11px' id='gn-{$group['group_name']}' onclick='template_load_bits("{$group['group_name']}", event)' title='{$group['easy_desc']}' href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=template-bits-list&id={$group['_id']}&p={$group['_p']}&group_name={$group['group_name']}'>{$group['easy_name']}</a>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/folder.gif' alt='Template Group' style='vertical-align:middle' />
|
||||
{$folder_blob} <a style='font-size:11px' id='gn-{$group['group_name']}' onclick='template_load_bits("{$group['group_name']}", event)' title='{$group['easy_desc']}' href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=template-bits-list&id={$group['_id']}&p={$group['_p']}&group_name={$group['group_name']}&'>{$group['easy_name']}</a>
|
||||
<span id='match-{$group['group_name']}'></span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -55,16 +55,16 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tablerow1' id='dvb-{$sec['func_name']}' title='Âûáåðèòå íóæíûå ÿ÷åéêè äëÿ ðåäàêòèðîâàíèÿ ñðàçó íåñêîëüêèõ øàáëîíîâ' onclick='parent.template_toggle_bit_row("{$sec['func_name']}")' >
|
||||
<div class='tablerow1' id='dvb-{$sec['func_name']}' title='Click this row and others to edit multiple templates at once' onclick='parent.template_toggle_bit_row("{$sec['func_name']}")' >
|
||||
<div style='float:right;width:auto;'>
|
||||
$remove_button
|
||||
<a style='text-decoration:none' title='Ïðåäïðîñìîòð â âèäå òåêñòà' href='#' onclick='pop_win("act=rtempl&code=preview&suid={$sec['suid']}&type=text"); parent.template_cancel_bubble( event, true );'><img src='{$this->ipsclass->skin_url}/images/te_text.gif' border='0' alt='Ïðåäïðîñìîòð â âèäå òåêñòà'></a>
|
||||
<a style='text-decoration:none' title='Ïðåäïðîñìîòð â âèäå HTML' href='#' onclick='pop_win("act=rtempl&code=preview&suid={$sec['suid']}&type=css"); parent.template_cancel_bubble( event, true );'><img src='{$this->ipsclass->skin_url}/images/te_html.gif' border='0' alt='Ïðåäïðîñìîòð â âèäå HTML'> </a>
|
||||
<a style='text-decoration:none' title='Preview template bit as text' href='#' onclick='pop_win("act=rtempl&code=preview&suid={$sec['suid']}&type=text"); parent.template_cancel_bubble( event, true );'><img src='{$this->ipsclass->skin_acp_url}/images/te_text.gif' border='0' alt='Text Preview'></a>
|
||||
<a style='text-decoration:none' title='Preview template bit as HTML' href='#' onclick='pop_win("act=rtempl&code=preview&suid={$sec['suid']}&type=css"); parent.template_cancel_bubble( event, true );'><img src='{$this->ipsclass->skin_acp_url}/images/te_html.gif' border='0' alt='HTML Preview'> </a>
|
||||
</div>
|
||||
<div align='left'>
|
||||
<img src='{$this->ipsclass->skin_url}/images/file.gif' title='Template Set:{$sec['set_id']}' alt='Øàáëîí' style='vertical-align:middle' />
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/file.gif' title='Template Set:{$sec['set_id']}' alt='Template' style='vertical-align:middle' />
|
||||
{$altered_image}
|
||||
<a id='bn-{$sec['func_name']}' onclick='parent.template_load_editor("{$sec['func_name']}", event)' href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=template-edit-bit&bitname={$sec['func_name']}&p={$sec['_p']}&id={$sec['_id']}&group_name={$sec['group_name']}&type=single' title='íàçâàíèå øàáëîíà: {$sec['func_name']}'>{$sec['easy_name']}</a>
|
||||
<a id='bn-{$sec['func_name']}' onclick='parent.template_load_editor("{$sec['func_name']}", event)' href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=template-edit-bit&bitname={$sec['func_name']}&p={$sec['_p']}&id={$sec['_id']}&group_name={$sec['group_name']}&type=single' title='template bit name: {$sec['func_name']}'>{$sec['easy_name']}</a>
|
||||
{$custom_bit}
|
||||
</div>
|
||||
</div>
|
||||
@@ -86,8 +86,8 @@ $IPBHTML .= <<<EOF
|
||||
<div class='tablerow3'>
|
||||
<div style='float:right;padding-top:3px'><strong>{$group['easy_name']}</strong></div>
|
||||
<div>
|
||||
<a href='#' onclick="parent.template_close_bits(); return false;" title='Çàêðûòü áëîê'><img src='{$this->ipsclass->skin_url}/images/skineditor_close.gif' border='0' alt='Çàêðûòü' /></a>
|
||||
<!--<a href='#' onclick="toggleselectall(); return false;" title='Ïîìåòèòü âñå/Ñíÿòü îòìåòêó ñî âñåõ'><img src='{$this->ipsclass->skin_url}/images/skineditor_tick.gif' border='0' alt='Ïîìåòèòü/Ñíÿòü îòìåòêó' /></a>-->
|
||||
<a href='#' onclick="parent.template_close_bits(); return false;" title='Close Window'><img src='{$this->ipsclass->skin_acp_url}/images/skineditor_close.gif' border='0' alt='Close' /></a>
|
||||
<!--<a href='#' onclick="toggleselectall(); return false;" title='Check/Uncheck all'><img src='{$this->ipsclass->skin_acp_url}/images/skineditor_tick.gif' border='0' alt='Check/Uncheck all' /></a>-->
|
||||
</div>
|
||||
</div>
|
||||
<div id='template-bits-container'>
|
||||
@@ -96,7 +96,7 @@ $IPBHTML .= <<<EOF
|
||||
<div style='background:#CCC'>
|
||||
<div align='left' style='padding:5px;margin-left:25px'>
|
||||
<div style='float:right'>$add_button</div>
|
||||
<div><input type='button' onclick='parent.template_load_bits_to_edit("{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=template-edit-bit&id={$this->ipsclass->input['id']}&p={$this->ipsclass->input['p']}&group_name={$group['group_name']}&type=multiple")' class='realbutton' value='Èçìåíèòü âûáðàííîå' /></div>
|
||||
<div><input type='button' onclick='parent.template_load_bits_to_edit("{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=template-edit-bit&id={$this->ipsclass->input['id']}&p={$this->ipsclass->input['p']}&group_name={$group['group_name']}&type=multiple")' class='realbutton' value='Edit Selected' /></div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
@@ -125,8 +125,8 @@ var lang_matches = "matches";
|
||||
$javascript
|
||||
//]]>
|
||||
</script>
|
||||
<script type="text/javascript" src='jscripts/ipb_xhr_findnames.js'></script>
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_url}/acp_template.js'></script>
|
||||
<script type="text/javascript" src='{$this->ipsclass->vars['board_url']}/jscripts/ipb_xhr_findnames.js'></script>
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_acp_url}/acp_template.js'></script>
|
||||
<div id='ipb-get-members' style='border:1px solid #000; background:#FFF; padding:2px;position:absolute;width:210px;display:none;z-index:10'></div>
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>
|
||||
@@ -135,7 +135,7 @@ $javascript
|
||||
<td align='left' width='100%'>
|
||||
<div id='quick-search-box'>
|
||||
<form id='quick-search-form'>
|
||||
<input type='text' size='20' class='realwhitebutton' style='width:210px' name='searchkeywords' id='entered_template' autocomplete="off" value='' /> <input type='button' onclick='template_find_bits(event)' class='realbutton' value='Èñêàòü â øàáëîíàõ' />
|
||||
<input type='text' size='20' class='realwhitebutton' style='width:210px' name='searchkeywords' id='entered_template' autocomplete="off" value='' /> <input type='button' onclick='template_find_bits(event)' class='realbutton' value='Find Template Bit' />
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
@@ -153,16 +153,16 @@ $javascript
|
||||
</div>
|
||||
<br clear='all' />
|
||||
<br />
|
||||
<div><strong>Èíôîðìàöèÿ:</strong><br />
|
||||
<img id='img-altered' src='{$this->ipsclass->skin_url}/images/skin_item_altered.gif' border='0' alt='+' title='Èçìåíåí îò íà÷àëüíîãî âàðèàíòà øàáëîíà' /> Èçìåíåí îò íà÷àëüíîãî âàðèàíòà øàáëîíà.
|
||||
<br /><img id='img-unaltered' src='{$this->ipsclass->skin_url}/images/skin_item_unaltered.gif' border='0' alt='-' title='Íå èçìåíåí îò íà÷àëüíîãî âàðèàíòà øàáëîíà' /> Íå èçìåíåí îò íà÷àëüíîãî âàðèàíòà øàáëîíà.
|
||||
<br /><img id='img-inherited' src='{$this->ipsclass->skin_url}/images/skin_item_inherited.gif' border='0' alt='|' title='Óíàñëåäîâàííûé îò íà÷àëüíîãî âàðèàíòà øàáëîíà' /> Óíàñëåäîâàííûé îò íà÷àëüíîãî âàðèàíòà øàáëîíà.
|
||||
<div><strong>Child skin set pop-up menu legend:</strong><br />
|
||||
<img id='img-altered' src='{$this->ipsclass->skin_acp_url}/images/skin_item_altered.gif' border='0' alt='+' title='Altered from parent skin set' /> This item has been customized for this skin set.
|
||||
<br /><img id='img-unaltered' src='{$this->ipsclass->skin_acp_url}/images/skin_item_unaltered.gif' border='0' alt='-' title='Unaltered from parent skin set' /> This item has not been customized from the master skin set.
|
||||
<br /><img id='img-inherited' src='{$this->ipsclass->skin_acp_url}/images/skin_item_inherited.gif' border='0' alt='|' title='Inherited from parent skin set' /> This item has inherited customizations from the parent skin set.
|
||||
</div>
|
||||
<script type='text/javascript'>
|
||||
//<![CDATA[
|
||||
// INIT images
|
||||
img_revert_blank = '{$this->ipsclass->skin_url}/images/blank.gif';
|
||||
img_revert_real = '{$this->ipsclass->skin_url}/images/te_revert.gif';
|
||||
img_revert_blank = '{$this->ipsclass->skin_acp_url}/images/blank.gif';
|
||||
img_revert_real = '{$this->ipsclass->skin_acp_url}/images/te_revert.gif';
|
||||
img_revert_width = 44;
|
||||
img_revert_height = 16;
|
||||
|
||||
@@ -193,9 +193,9 @@ $IPBHTML .= <<<EOF
|
||||
<div class='tableheaderalt'>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td align='left' width='95%' style='font-size:12px; vertical-align:middle;font-weight:bold; color:#FFF;'>Ñòèëè</td>
|
||||
<td align='left' width='95%' style='font-size:12px; vertical-align:middle;font-weight:bold; color:#FFF;'>Skin Sets</td>
|
||||
<td align='right' width='5%' nowrap='nowrap'>
|
||||
<img id="menumainone" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' />
|
||||
<img id="menumainone" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -206,10 +206,10 @@ $IPBHTML .= <<<EOF
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
</div>
|
||||
<br />
|
||||
<div><strong>Èíôîðìàöèÿ:</strong><br />
|
||||
<img src='{$this->ipsclass->skin_url}/images/skin_item_altered.gif' border='0' alt='+' title='Èçìåíåí îò íà÷àëüíîãî âàðèàíòà øàáëîíà' /> Èçìåíåí îò íà÷àëüíîãî âàðèàíòà øàáëîíà.
|
||||
<br /><img src='{$this->ipsclass->skin_url}/images/skin_item_unaltered.gif' border='0' alt='-' title='Íå èçìåíåí îò íà÷àëüíîãî âàðèàíòà øàáëîíà' /> Íå èçìåíåí îò íà÷àëüíîãî âàðèàíòà øàáëîíà.
|
||||
<br /><img src='{$this->ipsclass->skin_url}/images/skin_item_inherited.gif' border='0' alt='|' title='Óíàñëåäîâàííûé îò íà÷àëüíîãî âàðèàíòà øàáëîíà' /> Óíàñëåäîâàííûé îò íà÷àëüíîãî âàðèàíòà øàáëîíà.
|
||||
<div><strong>Child skin set pop-up menu legend:</strong><br />
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/skin_item_altered.gif' border='0' alt='+' title='Altered from parent skin set' /> This item has been customized for this skin set.
|
||||
<br /><img src='{$this->ipsclass->skin_acp_url}/images/skin_item_unaltered.gif' border='0' alt='-' title='Unaltered from parent skin set' /> This item has not been customized from the master skin set.
|
||||
<br /><img src='{$this->ipsclass->skin_acp_url}/images/skin_item_inherited.gif' border='0' alt='|' title='Inherited from parent skin set' /> This item has inherited customizations from the parent skin set.
|
||||
</div>
|
||||
EOF;
|
||||
if ( IN_DEV == 1 )
|
||||
@@ -217,9 +217,9 @@ if ( IN_DEV == 1 )
|
||||
$IPBHTML .= <<<EOF
|
||||
<br />
|
||||
<div align='center'>
|
||||
DEV: <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=exportmaster'>Ýêñïîðò HTML ãëàâíîãî ñòèëÿ</a>
|
||||
· <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=exportbitschoose'>Ýêñïîðò øàáëîíîâ</a>
|
||||
· <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=exportmacro'>Ýêñïîðò ìàêðîñîâ ãëàâíîãî ñòèëÿ</a>
|
||||
DEV: <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=exportmaster'>Export Master HTML</a>
|
||||
· <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=exportbitschoose'>Export Template Bits</a>
|
||||
· <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=exportmacro'>Export Master Macros</a>
|
||||
</div>
|
||||
EOF;
|
||||
}
|
||||
@@ -228,9 +228,9 @@ $IPBHTML .= <<<EOF
|
||||
menu_build_menu(
|
||||
"menumainone",
|
||||
new Array(
|
||||
"<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=addset&id=-1' method='POST'><div align='center'><strong>Ñîçäàíèå íîâîãî ñòèëÿ</strong></div>",
|
||||
"<div align='center'><input type='text' name='set_name' size='20' value='Ââåäèòå èìÿ ñòèëÿ' onfocus='this.value=\"\"'></center></div>",
|
||||
"<div align='center'><input type='submit' value='Ñîçäàòü' class='realdarkbutton' /></div></form>"
|
||||
"<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=addset&id=-1' method='POST'><div align='center'><strong>Create New Skin Set</strong></div>",
|
||||
"<div align='center'><input type='text' name='set_name' size='20' value='Enter skin set name' onfocus='this.value=\"\"'></center></div>",
|
||||
"<div align='center'><input type='submit' value='Go' class='realdarkbutton' /></div></form>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
@@ -250,11 +250,11 @@ $IPBHTML = "";
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<!--$i_sets,$no_sets-->{$line_image}<!--ID:{$r['set_skin_set_id']}--><img src='{$this->ipsclass->skin_url}/images/{$folder_icon}' border='0' alt='Ñòèëü' style='vertical-align:middle' />
|
||||
<!--$i_sets,$no_sets-->{$line_image}<!--ID:{$r['set_skin_set_id']}--><img src='{$this->ipsclass->skin_acp_url}/images/{$folder_icon}' border='0' alt='Skin' style='vertical-align:middle' />
|
||||
<strong style='{$css_extra}'>{$r['set_name']}</strong>
|
||||
</td>
|
||||
<td class='tablerow1' width='5%' nowrap='nowrap' align='center'>{$forums} {$hidden} {$default}</td>
|
||||
<td class='tablerow1' width='5%'><img id="menu{$r['set_skin_set_id']}" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' /></td>
|
||||
<td class='tablerow1' width='5%'><img id="menu{$r['set_skin_set_id']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
@@ -278,28 +278,28 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
img_item + " <!--ALTERED.wrappper--><a href='{$this->ipsclass->base_url}§ion={$this->ipsclass->section_code}&act=wrap&code=edit&id={$r['set_skin_set_id']}&p={$r['set_skin_set_parent']}'>Èçìåíèòü îáùèé øàáëîí ôîðóìà</a>",
|
||||
img_item + " <!--ALTERED.templates--><a href='{$this->ipsclass->base_url}§ion={$this->ipsclass->section_code}&act=templ&code=template-sections-list&id={$r['set_skin_set_id']}&p={$r['set_skin_set_parent']}'>Èçìåíèòü HTML ôðàãìåíòû</a>",
|
||||
img_item + " <!--ALTERED.css--><a href='{$this->ipsclass->base_url}§ion={$this->ipsclass->section_code}&act=style&code=edit&id={$r['set_skin_set_id']}&p={$r['set_skin_set_parent']}'>Èçìåíèòü CSS ñòèëè (Ðàñøèðåííûé ðåæèì)</a>",
|
||||
img_item + " <!--ALTERED.css--><a href='{$this->ipsclass->base_url}§ion={$this->ipsclass->section_code}&act=style&code=colouredit&id={$r['set_skin_set_id']}&p={$r['set_skin_set_parent']}'>Èçìåíèòü CSS ñòèëè (Ïðîñòîé ðåæèì) - ÍÅ ðåêîìåíäóåòñÿ</a>",
|
||||
img_item + " <!--ALTERED.macro--><a href='{$this->ipsclass->base_url}§ion={$this->ipsclass->section_code}&act=image&code=edit&id={$r['set_skin_set_id']}&p={$r['set_skin_set_parent']}'>Èçìåíèòü ìàêðîñû</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=edit&id={$r['set_skin_set_id']}'>Èçìåíèòü íàñòðîéêè...</a>",
|
||||
img_edit + " <!--ALTERED.wrappper--><a href='{$this->ipsclass->base_url}§ion={$this->ipsclass->section_code}&act=wrap&code=edit&id={$r['set_skin_set_id']}&p={$r['set_skin_set_parent']}'>Edit Board Header & Footer Wrapper</a>",
|
||||
img_edit + " <!--ALTERED.templates--><a href='{$this->ipsclass->base_url}§ion={$this->ipsclass->section_code}&act=templ&code=template-sections-list&id={$r['set_skin_set_id']}&p={$r['set_skin_set_parent']}'>Edit Template HTML</a>",
|
||||
img_edit + " <!--ALTERED.css--><a href='{$this->ipsclass->base_url}§ion={$this->ipsclass->section_code}&act=style&code=edit&id={$r['set_skin_set_id']}&p={$r['set_skin_set_parent']}'>Edit Stylesheet (CSS Advanced Mode)</a>",
|
||||
img_edit + " <!--ALTERED.css--><a href='{$this->ipsclass->base_url}§ion={$this->ipsclass->section_code}&act=style&code=colouredit&id={$r['set_skin_set_id']}&p={$r['set_skin_set_parent']}'>Edit Colours (CSS Easy Mode)</a>",
|
||||
img_edit + " <!--ALTERED.macro--><a href='{$this->ipsclass->base_url}§ion={$this->ipsclass->section_code}&act=image&code=edit&id={$r['set_skin_set_id']}&p={$r['set_skin_set_parent']}'>Edit Replacement Macros</a>",
|
||||
img_edit + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=edit&id={$r['set_skin_set_id']}'>Edit Settings...</a>",
|
||||
EOF;
|
||||
if ( $r['set_skin_set_id'] != 1 )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=revertallform&id={$r['set_skin_set_id']}'>Óäàëèòü âñå âíåñåííûå èçìåíåíèÿ...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}§ion={$this->ipsclass->section_code}&act=import&code=showexportpage&id={$r['set_skin_set_id']}'>Ýêñïîðòèðîâàòü ñòèëü...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}§ion={$this->ipsclass->section_code}&act=skindiff&code=skin_diff_from_skin&skin_id={$r['set_skin_set_id']}'>Ãåíåðèðîâàòü îò÷åò ñðàâíåíèÿ ñòèëåé...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=remove&id={$r['set_skin_set_id']}'>Óäàëèòü ñòèëü...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=revertallform&id={$r['set_skin_set_id']}'>Revert All Skin Customizations...</a>",
|
||||
img_export + " <a href='{$this->ipsclass->base_url}§ion={$this->ipsclass->section_code}&act=import&code=showexportpage&id={$r['set_skin_set_id']}'>Export Skin Set...</a>",
|
||||
img_view + " <a href='{$this->ipsclass->base_url}§ion={$this->ipsclass->section_code}&act=skindiff&code=skin_diff_from_skin&skin_id={$r['set_skin_set_id']}'>Generate Differences Report...</a>",
|
||||
img_delete + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=remove&id={$r['set_skin_set_id']}'>Remove Skin Set...</a>",
|
||||
EOF;
|
||||
}
|
||||
if ( $r['set_skin_set_id'] != 1 AND ! $r['set_skin_set_parent'] )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
|
||||
img_item + " <a href='#' onclick=\"addnewpop('{$r['set_skin_set_id']}','menu_{$r['set_skin_set_id']}')\">Äîáàâèòü ïîäñòèëü ñ íàñòðîéêàìè òåêóùåãî</a>",
|
||||
img_add + " <a href='#' onclick=\"addnewpop('{$r['set_skin_set_id']}','menu_{$r['set_skin_set_id']}')\">Add New Child Skin Set...</a>",
|
||||
EOF;
|
||||
}
|
||||
|
||||
@@ -316,19 +316,19 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_url}/acp_template.js'></script>
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_acp_url}/acp_template.js'></script>
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td align='left' width='95%' style='font-size:12px; vertical-align:middle;font-weight:bold; color:#FFF;'>Îò÷åò ñðàâíåíèÿ ñòèëåé</td>
|
||||
<td align='left' width='95%' style='font-size:12px; vertical-align:middle;font-weight:bold; color:#FFF;'>Skin Differences Reports</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='90%'><strong>Íàçâàíèå</strong></td>
|
||||
<td class='tablesubheader' width='5%'>Ñîçäàíî</a>
|
||||
<td class='tablesubheader' width='90%'><strong>Difference Title</strong></td>
|
||||
<td class='tablesubheader' width='5%'>Created</a>
|
||||
<td class='tablesubheader' width='5%'> </a>
|
||||
</tr>
|
||||
$content
|
||||
@@ -337,23 +337,24 @@ $IPBHTML .= <<<EOF
|
||||
</div>
|
||||
<br />
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=skin_diff' enctype='multipart/form-data' method='POST'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Ñîçäàòü íîâûé îò÷åò ñðàâíåíèÿ ñòèëåé</div>
|
||||
<div class='tableheaderalt'>Create New Skin Difference Report</div>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>Ââåäèòå íàçâàíèå</strong><div class='desctext'>Ýòî íàçâàíèå áóäåò èñïîëüçîâàíî â ñïèñêå âûøå, êîãäà ñðàâíåíèå áóäåò çàâåðøåíî</div></td>
|
||||
<td class='tablerow1'><strong>Enter a new skin difference title</strong><div class='desctext'>This title can be anything and will be used in the list above when the comparison is completed</div></td>
|
||||
<td class='tablerow2'><input class='textinput' type='text' size='30' name='diff_session_title' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>Ïðîïóñêàòü âñå íîâûå/îøèáî÷íûå øàáëîíû?</strong><div class='desctext'>Åñëè âû ñðàâíèâàåòå ñòàðûé ipb_templates.xml èç áîëåå ñòàðîãî IPB, âû ìîæåòå îòêëþ÷èòü ýòîò ïóíêò. Åñëè âû ñðàâíèâàåòå ñ XML ôàéëîì èç èçìåíåííîãî ñòèëÿ, âû äîëæíû âêëþ÷èòü ýòîò ïóíêò.</div></td>
|
||||
<td class='tablerow1'><strong>Skip all new/missing template bits?</strong><div class='desctext'>If you are comparing an old ipb_templates.xml file from an older IPB release, then you may wish to disable this. If you are comparing an XML file from a customized skin set, you should enable this.</div></td>
|
||||
<td class='tablerow2'><input class='textinput' type='checkbox' value='1' name='diff_session_ignore_missing' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>Âûáåðèòå êîððåêòíûé ôàéë ipb_templates.xml.</strong><div class='desctext'>Áóäåò ïðîèçâåäåíî ñðàâíåíèå ñ HTML øàáëîíàìè ãëàâíîãî ñòèëÿ</div></td>
|
||||
<td class='tablerow1'><strong>Select a valid ipb_templates.xml file from your computer.</strong><div class='desctext'>This will be compared against your master HTML templates - so make sure they're up-to-date before running this tool</div></td>
|
||||
<td class='tablerow2'><input class='textinput' type='file' size='30' name='FILE_UPLOAD' /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div align='center' class='tablefooter'><input type='submit' class='realbutton' value='Èìïîðòèðîâàòü' /></div>
|
||||
<div align='center' class='tablefooter'><input type='submit' class='realbutton' value='Import' /></div>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
@@ -374,15 +375,15 @@ $IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'> <strong>{$data['diff_session_title']}</strong></td>
|
||||
<td class='tablerow1' width='5%' nowrap='nowrap' align='center'>{$data['_date']}</td>
|
||||
<td class='tablerow1' width='5%'><img id="menu{$data['diff_session_id']}" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' /></td>
|
||||
<td class='tablerow1' width='5%'><img id="menu{$data['diff_session_id']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$data['diff_session_id']}",
|
||||
new Array(
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=skin_diff_view&diff_session_id={$data['diff_session_id']}'>Ïðîñìîòð ðåçóëüòàòîâ ñðàâíåíèÿ...</a>",
|
||||
img_item + " <a href='#' onclick=\"checkdelete('{$this->ipsclass->form_code}&code=skin_diff_remove&diff_session_id={$data['diff_session_id']}')\">Óäàëèòü ðåçóëüòàòû ñðàâíåíèÿ...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=skin_diff_export&diff_session_id={$data['diff_session_id']}'>Ñîçäàòü HTML Ýêñïîðò...</a>"
|
||||
img_view + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=skin_diff_view&diff_session_id={$data['diff_session_id']}'>View Difference Results...</a>",
|
||||
img_delete + " <a href='#' onclick=\"checkdelete('{$this->ipsclass->form_code}&code=skin_diff_remove&diff_session_id={$data['diff_session_id']}')\">REMOVE Difference Results...</a>",
|
||||
img_export + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=skin_diff_export&diff_session_id={$data['diff_session_id']}'>Create HTML Export...</a>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
@@ -401,12 +402,12 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_url}/acp_template.js'></script>
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_acp_url}/acp_template.js'></script>
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td align='left' width='95%' style='font-size:12px; vertical-align:middle;font-weight:bold; color:#FFF;'>Ñðàâíåíèå ñòèëåé</td>
|
||||
<td align='left' width='95%' style='font-size:12px; vertical-align:middle;font-weight:bold; color:#FFF;'>Skin Differences</td>
|
||||
<td align='right' width='5%' nowrap='nowrap'>
|
||||
|
||||
</td>
|
||||
@@ -415,14 +416,14 @@ $IPBHTML .= <<<EOF
|
||||
</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='90%'><strong>Íàçâàíèå øàáëîíà</strong></td>
|
||||
<td class='tablesubheader' width='5%'>Ðàçëè÷èÿ</a>
|
||||
<td class='tablesubheader' width='5%'>Ðàçìåð</a>
|
||||
<td class='tablesubheader' width='90%'><strong>Template Bit Name</strong></td>
|
||||
<td class='tablesubheader' width='5%'>Difference</a>
|
||||
<td class='tablesubheader' width='5%'>Size</a>
|
||||
<td class='tablesubheader' width='5%'> </a>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
<div align='right' class='tablefooter'>$missing íîâûõ øàáëîíîâ è $changed èçìåíåííûõ</div>
|
||||
<div align='right' class='tablefooter'>$missing new template bits and $changed changed template bits</div>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
@@ -464,13 +465,13 @@ $IPBHTML .= <<<EOF
|
||||
</td>
|
||||
<td class='tablerow1' width='5%' nowrap='nowrap' align='center'>{$diff_is}</td>
|
||||
<td class='tablerow1' width='5%' nowrap='nowrap' align='center'>{$template_bit_size}</td>
|
||||
<td class='tablerow1' width='5%'><img id="menu{$template_bit_id_safe}" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' /></td>
|
||||
<td class='tablerow1' width='5%'><img id="menu{$template_bit_id_safe}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$template_bit_id_safe}",
|
||||
new Array(
|
||||
img_item + " <a href='#' onclick=\"return template_view_diff('$template_bit_id')\">Ïðîñìîòð ðàçëè÷èé...</a>"
|
||||
img_view + " <a href='#' onclick=\"return template_view_diff('$template_bit_id')\">View Differences...</a>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
@@ -492,12 +493,10 @@ $IPBHTML .= <<<EOF
|
||||
<strong>$template_group > $template_bit_name</strong>
|
||||
</div>
|
||||
<div style='padding:4px;border:1px solid #000;background-color:#FFF;margin:4px;'>
|
||||
<pre>
|
||||
$content
|
||||
</pre>
|
||||
</div>
|
||||
<div style='padding:4px;border:1px solid #000;background-color:#FFF;margin:4px;'>
|
||||
<span class='diffred'>Óäàëåí HTML êîä</span> · <span class='diffgreen'>Äîáàâëåí HTML êîä</span>
|
||||
<span class='diffred'>Removed HTML</span> · <span class='diffgreen'>Added HTML</span>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
@@ -518,9 +517,7 @@ $IPBHTML .= <<<EOF
|
||||
<div style='padding:4px;border:1px solid #000;background-color:#FFF;margin:4px;'>
|
||||
<h2>$func_group <span style='color:green'>></span> $func_name</h2>
|
||||
<hr>
|
||||
<pre>
|
||||
$content
|
||||
</pre>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
@@ -577,14 +574,14 @@ $IPBHTML .= <<<EOF
|
||||
</head>
|
||||
<body>
|
||||
<div style='padding:4px;border:1px solid #000;background-color:#FFF;margin:4px;'>
|
||||
<h1>$title (ýêñïîðòèðîâàíî: $date)</h1>
|
||||
<strong>$missing íîâûõ øàáëîíîâ è $changed èçìåíåííûõ</strong>
|
||||
<h1>$title (Exported: $date)</h1>
|
||||
<strong>$missing new template bits $changed changed template bits</strong>
|
||||
</div>
|
||||
<br />
|
||||
$content
|
||||
<br />
|
||||
<div style='padding:4px;border:1px solid #000;background-color:#FFF;margin:4px;'>
|
||||
<span class='diffred'>Óäàëåí HTML êîä</span> · <span class='diffgreen'>Äîáàâëåí HTML êîä</span>
|
||||
<span class='diffred'>Removed HTML</span> · <span class='diffgreen'>Added HTML</span>
|
||||
</div>
|
||||
</body>
|
||||
<html>
|
||||
@@ -594,6 +591,197 @@ EOF;
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
function emoticon_overview_wrapper_addform( )
|
||||
{
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type='text/javascript'>
|
||||
function addfolder()
|
||||
{
|
||||
document.macroform.emoset.value = '';
|
||||
document.macroform.code.value = 'emo_setadd';
|
||||
document.macroform.submitbutton.value = 'Add Folder';
|
||||
scroll(0,0);
|
||||
togglediv( 'popbox', 1 );
|
||||
return false;
|
||||
}
|
||||
|
||||
function editfolder(id)
|
||||
{
|
||||
document.macroform.submitbutton.value = 'Edit Folder Name';
|
||||
document.macroform.id.value = id;
|
||||
document.macroform.code.value = 'emo_setedit';
|
||||
document.macroform.emoset.value = id;
|
||||
scroll(0,0);
|
||||
togglediv( 'popbox', 1 );
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<div align='center' style='position:absolute;display:none;text-align:center' id='popbox'>
|
||||
<form name='macroform' action='{$this->ipsclass->base_url}' method='post'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<input type='hidden' name='act' value='emoticons' />
|
||||
<input type='hidden' name='section' value='lookandfeel' />
|
||||
<input type='hidden' name='code' value='emo_setadd' />
|
||||
<input type='hidden' name='id' value='' />
|
||||
|
||||
<table cellspacing='0' width='500' align='center' cellpadding='6' style='background:#EEE;border:2px outset #555;'>
|
||||
<tr>
|
||||
<td width='1%' nowrap='nowrap' valign='top' align='center'>
|
||||
<b>Folder name (alphanumerics only)</b><br><input class='textinput' name='emoset' type='text' size='40' />
|
||||
<br /><br />
|
||||
<center><input type='submit' class='realbutton' value='Add Folder' name='submitbutton' /> <input type='button' class='realdarkbutton' value='Close' onclick="togglediv('popbox');" /></center>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
EOF;
|
||||
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
function emoticon_overview_wrapper( $content )
|
||||
{
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<form action='{$this->ipsclass->base_url}' method='post' name='uploadform' enctype='multipart/form-data' id='uploadform'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<input type='hidden' name='code' value='emo_upload'>
|
||||
<input type='hidden' name='act' value='emoticons'>
|
||||
<input type='hidden' name='MAX_FILE_SIZE' value='10000000000'>
|
||||
<input type='hidden' name='dir_default' value='1'>
|
||||
<input type='hidden' name='section' value='lookandfeel'><div class='tableborder'>
|
||||
<div class='tableheaderalt'>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td align='left' width='95%' style='font-size:12px; vertical-align:middle;font-weight:bold; color:#FFF;'>Current Emoticon Folders</td>
|
||||
<td align='right' width='5%' nowrap='nowrap'>
|
||||
<img id="menumainone" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<table width='100%' cellspacing='0' cellpadding='5' align='center' border='0'><tr>
|
||||
<td class='tablesubheader' width='50%' align='center'>Emoticon Folder</td>
|
||||
|
||||
<td class='tablesubheader' width='5%' align='center'>Upload</td>
|
||||
<td class='tablesubheader' width='20%' align='center'># Disk Folder</td>
|
||||
<td class='tablesubheader' width='20%' align='center'># Emo. Group</td>
|
||||
<td class='tablesubheader' width='5%' align='center'>Options</td>
|
||||
</tr>
|
||||
|
||||
{$content}
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
EOF;
|
||||
|
||||
if( SAFE_MODE_ON )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
</form>
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Upload Emoticons</div>
|
||||
<table width='100%' border='0' cellpadding='4' cellspacing='0'>
|
||||
<tr>
|
||||
<td width='50%' class='tablerow1' align='center'><input type='file' value='' class='realbutton' name='upload_1' size='30' /></td>
|
||||
|
||||
<td width='50%' class='tablerow2' align='center'><input type='file' class='realbutton' name='upload_2' size='30' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='50%' class='tablerow1' align='center'><input type='file' class='realbutton' name='upload_3' size='30' /></td>
|
||||
<td width='50%' class='tablerow2' align='center'><input type='file' class='realbutton' name='upload_4' size='30' /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class='tablesubheader' align='center'><input type='submit' value='Upload emoticons into checked folders' class='realdarkbutton' /></form></div>
|
||||
</div>
|
||||
EOF;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menumainone",
|
||||
new Array(
|
||||
img_add + " <a href='#' onclick='addfolder(); return false;'>Create New Folder</a>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
function emoticon_overview_row( $data=array() )
|
||||
{
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
|
||||
<td class='tablerow2' valign='middle'>
|
||||
<div style='width:auto;float:right;'><img src='{$this->ipsclass->skin_acp_url}/images/{$data['icon']}' title='{$data['title']}' alt='{$data['icon']}' /></div>
|
||||
{$data['line_image']}<img src='{$this->ipsclass->skin_acp_url}/images/emoticon_folder.gif' border='0'> <a href='{$this->ipsclass->base_url}§ion=lookandfeel&act=emoticons&code=emo_manage&id={$data['dir']}' title='Manage this emoticon set'><b>{$data['dir']}</b></a>
|
||||
</td>
|
||||
|
||||
<td class='tablerow1' valign='middle'><center>{$data['checkbox']}</center></td>
|
||||
<td class='tablerow2' valign='middle'><center>{$data['count']}</center></td>
|
||||
<td class='tablerow1' valign='middle'><center>{$data['dir_count']}</center></td>
|
||||
<td class='tablerow2' valign='middle'><center><img id="menu{$data['dir']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$data['dir']}",
|
||||
new Array(
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=emo_manage&id={$data['dir']}'>{$data['link_text']}...</a>",
|
||||
EOF;
|
||||
|
||||
if( $data['dir'] != 'default' OR IN_DEV == 1 )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
img_edit + " <a href='#' onclick=\"editfolder('{$data['dir']}')\">Edit Folder Name...</a>",
|
||||
img_delete + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=emo_setremove&id={$data['dir']}'>Delete Folder...</a>"
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
img_delete + " <i>The default emoticon set cannot be deleted</i>"
|
||||
EOF;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
) );
|
||||
</script>
|
||||
|
||||
EOF;
|
||||
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<img src='{$this->ipsclass->skin_url}/images/blank.gif' width='12' height='12' border='0' style='vertical-align:middle' />
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/blank.gif' width='12' height='12' border='0' style='vertical-align:middle' />
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
@@ -30,7 +30,7 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=calendar_move&move=up&cal_id={$cal_id}' title='Ïîäíÿòü'><img src='{$this->ipsclass->skin_url}/images/arrow_up.png' width='12' height='12' border='0' style='vertical-align:middle' /></a>
|
||||
<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=calendar_move&move=up&cal_id={$cal_id}' title='Move up in position'><img src='{$this->ipsclass->skin_acp_url}/images/arrow_up.png' width='12' height='12' border='0' style='vertical-align:middle' /></a>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
@@ -46,7 +46,7 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=calendar_move&move=down&cal_id={$cal_id}' title='Îïóñòèòü'><img src='{$this->ipsclass->skin_url}/images/arrow_down.png' width='12' height='12' border='0' style='vertical-align:middle' /></a>
|
||||
<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=calendar_move&move=down&cal_id={$cal_id}' title='Move down in position'><img src='{$this->ipsclass->skin_acp_url}/images/arrow_down.png' width='12' height='12' border='0' style='vertical-align:middle' /></a>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
@@ -106,44 +106,45 @@ function perm_check_all( obj )
|
||||
//]]>
|
||||
</script>
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=$formcode&cal_id={$calendar['cal_id']}' method='post'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>$title</div>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Êàëåíäàðü: Çàãîëîâîê</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Calendar: Title</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['cal_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Êàëåíäàðü: Âêëþ÷èòü ìîäåðàöèþ</strong><div class='desctext'>Åñëè âêëþ÷åíî, ñîáûòèÿ îò âñåõ ãðóïï ïîëüçîâàòåëåé íå áóäóò ïîïàäàòü íà ïðîâåðêó ñîáûòèé ìîäåðàòîðàìè ïåðåä ïóáëèêàöèåé...</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Calendar: Enable Moderation</strong><div class='desctext'>If enabled, all groups which are not included in the 'Avoid Moderation Queue' will have their events entered into the moderation queue for approval.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['cal_moderate']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Êàëåíäàðü: Ëèìèò ñîáûòèé</strong><div class='desctext'>×èñëî ïîêàçûâàåìûõ ñîáûòèé çà äåíü, åñëè ñîáûòèé áóäåò áîëüøå, òî áóäåò îòîáðàæàòüñÿ ññûëêà íà âñå ñîáûòèÿ äíÿ</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Calendar: Event Limit</strong><div class='desctext'>This is the number of events listed per day before they are replaced by a single link to the day's events</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['cal_event_limit']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Êàëåíäàðü: Ëèìèò èìåíèííèêîâ</strong><div class='desctext'>×èñëî ïîêàçûâàåìûõ èìåíèííèêîâ çà äåíü, åñëè èõ áóäåò áîëüøå, òî áóäåò îòîáðàæàòüñÿ ññûëêà íà âñåõ èìåíèííèêîâ<br />Ââåäèòå 0, ÷òîáû íå ïîêàçûâàòü èìåíèííèêîâ âîîáùå</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Calendar: Birthday Limit</strong><div class='desctext'>This is the number of birthdays listed per day before they are replaced by a single link<br />Enter 0 to not show birthdays at all</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['cal_bday_limit']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' class='tablerow1'>
|
||||
<fieldset>
|
||||
<legend><strong>RSS Îïöèè</strong></legend>
|
||||
<legend><strong>RSS Options</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>RSS: Âêëþ÷èòü</strong><div class='desctext'>Åñëè âêëþ÷åíî, òî âñå <em>n</em> áóäóùèõ ñîáûòèé (GMT âðåìÿ), êîòîðûå èìåþò ìàñêó äîñòóïà äëÿ ÷òåíèÿ ãîñòÿìè áóäóò ýêñïîðòèðîâàíû â RSS</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS: Enable</strong><div class='desctext'>If enabled, all <em>n</em> forthcoming events (based on GMT time) that have guest read permission will be exported</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['cal_rss_export']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>RSS: Áóäóùèå ñîáûòèÿ</strong><div class='desctext'>Çà ñêîëüêî äíåé äî ñîáûòèÿ âûâîäèòü åãî?</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS: Forthcoming Days</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['cal_rss_export_days']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>RSS: Êîëè÷åñòâî ñîáûòèé</strong><div class='desctext'>Ìàêñèìàëüíîå êîëè÷åñòâî ýêñïîðòèðóåìûõ ñîáûòèé</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS: Export Maximum Events</strong><div class='desctext'>The maximum number of events exported</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['cal_rss_export_max']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>RSS: ×àñòîòà îáíîâëåíèÿ</strong><div class='desctext'>Êîëè÷åñòâî ìèíóò ìåæäó ïåðåñòðîéêîé êåøà RSS</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS: Update Frequency</strong><div class='desctext'>The number of minutes between RSS cache rebuilding</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['cal_rss_update']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -153,26 +154,26 @@ function perm_check_all( obj )
|
||||
<tr>
|
||||
<td colspan='2' class='tablerow1'>
|
||||
<fieldset>
|
||||
<legend><strong>Äîñòóï ê êàëåíäàðÿì</strong></legend>
|
||||
<legend><strong>Calendar Permissions</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1' valign='top'><strong>Äîñòóï: ×òåíèå ñîáûòèé</strong><div class='desctext'>Âûáåðèòå ãðóïïû, êîòîðûì áóäåò ðàçðåøåíî ÷èòàòü ýòîò êàëåíäàðü.<br />Íå çàáóäüòå âûáðàòü ìàñêó ãîñòåé, åñëè âû õîòèòå ýêñïîðòèðîâàòü êàëåíäàðü â RSS.</div></td>
|
||||
<td width='40%' class='tablerow1' valign='top'><strong>Permission: Read Events</strong><div class='desctext'>Simply select which permission masks you wish to allow read permissions for this calendar.<br />Remember to select 'Guest' access if you wish to export this calendar as an RSS feed.</div></td>
|
||||
<td width='60%' class='tablerow2'>
|
||||
<input type='checkbox' name='perm_read_all' id='perm_read_all' value='1' onclick='perm_check_all("perm_read")' {$form['perm_read_all']} /> Âûáåðèòå âñå òåêóùèå è æåëàåìûå ìàñêè
|
||||
<input type='checkbox' name='perm_read_all' id='perm_read_all' value='1' onclick='perm_check_all("perm_read")' {$form['perm_read_all']} /> Select All Current and Future Masks
|
||||
<br /><select onchange='perm_check("perm_read")' id='perm_read' name='perm_read[]' size='6' multiple='true'>{$form['perm_read']}</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1' valign='top'><strong>Äîñòóï: Ñîçäàíèå ñîáûòèé</strong><div class='desctext'>Âûáåðèòå ãðóïïû, êîòîðûì áóäåò ðàçðåøåíî ñîçäàâàòü ñîáûòèÿ â ýòîò êàëåíäàðü</div></td>
|
||||
<td width='40%' class='tablerow1' valign='top'><strong>Permission: Start Events</strong><div class='desctext'>Simply select which permission masks you wish to be able to start events for this calendar</div></td>
|
||||
<td width='60%' class='tablerow2'>
|
||||
<input type='checkbox' name='perm_post_all' id='perm_post_all' value='1' onclick='perm_check_all("perm_post")' {$form['perm_post_all']} /> Âûáåðèòå âñå òåêóùèå è æåëàåìûå ìàñêè
|
||||
<input type='checkbox' name='perm_post_all' id='perm_post_all' value='1' onclick='perm_check_all("perm_post")' {$form['perm_post_all']} /> Select All Current and Future Masks
|
||||
<br /><select onchange='perm_check("perm_post")' id='perm_post' name='perm_post[]' size='6' multiple='true'>{$form['perm_post']}</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1' valign='top'><strong>Äîñòóï: Ïóáëèêàöèÿ áåç ïðîâåðêè</strong><div class='desctext'>Âûáåðèòå ãðóïïû, ñîçäàâàåìûå ñîáûòèÿ êîòîðûõ áóäóò ïóáëèêîâàòüñÿ â ýòîò êàëåíäàðü áåç ïðîâåðêè ìîäåðàòîðîì</div></td>
|
||||
<td width='40%' class='tablerow1' valign='top'><strong>Permission: Avoid Moderation Queue</strong><div class='desctext'>Simply select which permission masks you wish to be able to bypass moderation for this calendar</div></td>
|
||||
<td width='60%' class='tablerow2'>
|
||||
<input type='checkbox' name='perm_nomod_all' id='perm_nomod_all' value='1' onclick='perm_check_all("perm_nomod")' {$form['perm_nomod_all']} /> Âûáåðèòå âñå òåêóùèå è æåëàåìûå ìàñêè
|
||||
<input type='checkbox' name='perm_nomod_all' id='perm_nomod_all' value='1' onclick='perm_check_all("perm_nomod")' {$form['perm_nomod_all']} /> Select All Current and Future Masks
|
||||
<br /><select onchange='perm_check("perm_nomod")' id='perm_nomod' name='perm_nomod[]' size='6' multiple='true'>{$form['perm_nomod']}</select>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -199,12 +200,12 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Êàëåíäàðè</div>
|
||||
<div class='tableheaderalt'>Calendars</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='90%'>Íàçâàíèå</td>
|
||||
<td class='tablesubheader' width='5%' align='center'>Ïîçèöèÿ</td>
|
||||
<td class='tablesubheader' width='5%'><img id="menumainone" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' /></td>
|
||||
<td class='tablesubheader' width='90%'>Name</td>
|
||||
<td class='tablesubheader' width='5%' align='center'>Position</td>
|
||||
<td class='tablesubheader' width='5%'><img id="menumainone" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
@@ -213,8 +214,8 @@ $IPBHTML .= <<<EOF
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menumainone",
|
||||
new Array( img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=calendar_add'>Äîáàâèòü íîâûé êàëåíäàðü...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=calendar_rebuildcache'>Ïåðåñòðîéêà êåøà êàëåíäàðíûõ ñîáûòèé...</a>" ) );
|
||||
new Array( img_add + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=calendar_add'>Add New Calendar...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=calendar_rebuildcache'>Recache Calendar Events...</a>" ) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
@@ -234,15 +235,15 @@ $IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>{$data['cal_title']}</strong></td>
|
||||
<td class='tablerow2' align='center' nowrap='nowrap'>{$data['_pos_up']} {$data['_pos_down']}</td>
|
||||
<td class='tablerow1'><img id="menu{$data['cal_id']}" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' /></td>
|
||||
<td class='tablerow1'><img id="menu{$data['cal_id']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$data['cal_id']}",
|
||||
new Array(
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=calendar_edit&cal_id={$data['cal_id']}'>Ðåäàêòèðîâàòü êàëåíäàðü...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=calendar_rss_cache&cal_id={$data['cal_id']}'>Ïåðåñòðîéêà RSS êåøà...</a>",
|
||||
img_item + " <a href='#' onclick='confirm_action(\"{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=calendar_delete&cal_id={$data['cal_id']}\"); return false;'>Óäàëèòü êàëåíäàðü...</a>"
|
||||
img_edit + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=calendar_edit&cal_id={$data['cal_id']}'>Edit Calendar...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=calendar_rss_cache&cal_id={$data['cal_id']}'>Rebuild Calendar's RSS Export...</a>",
|
||||
img_delete + " <a href='#' onclick='confirm_action(\"{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=calendar_delete&cal_id={$data['cal_id']}\"); return false;'>Delete Calendar...</a>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
@@ -262,9 +263,9 @@ $IPBHTML = "";
|
||||
$IPBHTML .= <<<EOF
|
||||
<p>{$event['event_content']}</p>
|
||||
<br />
|
||||
<p>Ïîâòîðÿþùååñÿ ñîáûòèå
|
||||
<br />Îò: {$event['_from_month']}/{$event['_from_day']}/{$event['_from_year']}
|
||||
<br />Äî: {$event['_to_month']}/{$event['_to_day']}/{$event['_to_year']}</p>
|
||||
<p>Recurring Event
|
||||
<br />From: {$event['_from_month']}/{$event['_from_day']}/{$event['_from_year']}
|
||||
<br />To: {$event['_to_month']}/{$event['_to_day']}/{$event['_to_year']}</p>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
@@ -282,9 +283,9 @@ $IPBHTML = "";
|
||||
$IPBHTML .= <<<EOF
|
||||
<p>{$event['event_content']}</p>
|
||||
<br />
|
||||
<p>Ìíîãîäíåâíîå ñîáûòèå
|
||||
<br />Îò: {$event['_from_month']}/{$event['_from_day']}/{$event['_from_year']}
|
||||
<br />Äî: {$event['_to_month']}/{$event['_to_day']}/{$event['_to_year']}</p>
|
||||
<p>Ranged Event
|
||||
<br />From: {$event['_from_month']}/{$event['_from_day']}/{$event['_from_year']}
|
||||
<br />To: {$event['_to_month']}/{$event['_to_day']}/{$event['_to_year']}</p>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
@@ -302,7 +303,7 @@ $IPBHTML = "";
|
||||
$IPBHTML .= <<<EOF
|
||||
<p>{$event['event_content']}</p>
|
||||
<br />
|
||||
<p>Îäíîäíåâíîå ñîáûòèå ñ äàòîé: {$event['_from_month']}/{$event['_from_day']}/{$event['_from_year']}</p>
|
||||
<p>Single Day Event On: {$event['_from_month']}/{$event['_from_day']}/{$event['_from_year']}</p>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
|
||||
@@ -4,6 +4,348 @@ class cp_skin_member {
|
||||
|
||||
var $ipsclass;
|
||||
|
||||
//===========================================================================
|
||||
// MEMBER FORM
|
||||
//===========================================================================
|
||||
function member_form($mem, $form) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type="text/javascript" src='{$this->ipsclass->vars['board_url']}/skin_acp/clientscripts/ipd_form_functions.js'></script>
|
||||
<script type="text/javascript" src='{$this->ipsclass->vars['board_url']}/skin_acp/clientscripts/ipd_tab_factory.js'></script>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
// INIT FORM FUNCTIONS stuff
|
||||
var formfunctions = new form_functions();
|
||||
// INIT TAB FACTORY stuff
|
||||
var tabfactory = new tab_factory();
|
||||
|
||||
var show = '';
|
||||
{$form['_perm_masks_js']};
|
||||
function saveit(f)
|
||||
{
|
||||
show = '';
|
||||
for (var i = 0 ; i < f.options.length; i++)
|
||||
{
|
||||
if (f.options[i].selected)
|
||||
{
|
||||
tid = f.options[i].value;
|
||||
show += '\\n' + eval('perms_'+tid);
|
||||
}
|
||||
}
|
||||
|
||||
if ( show != '' )
|
||||
{
|
||||
document.forms[0].override.checked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.forms[0].override.checked = false;
|
||||
}
|
||||
}
|
||||
|
||||
function show_me()
|
||||
{
|
||||
if (show == '')
|
||||
{
|
||||
show = 'No change detected\\nClick on the multi-select box to activate';
|
||||
}
|
||||
|
||||
alert('Selected Permission Sets\\n---------------------------------\\n' + show);
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=doedit&mid={$mem['id']}' id='mainform' onsubmit='ValidateForm()' method='post'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<input type='hidden' name='curemail' value='{$mem['email']}' />
|
||||
<input type='hidden' name='curgroup' value='{$mem['mgroup']}' />
|
||||
{$form['_custom_hidden_fields']}
|
||||
<div class='tabwrap'>
|
||||
<div id='tabtab-1' class='taboff'>General Settings</div>
|
||||
<div id='tabtab-2' class='taboff'>Posting & Access Restrictions</div>
|
||||
<div id='tabtab-3' class='taboff'>Board & Profile Information</div>
|
||||
<div id='tabtab-4' class='taboff'>Signature</div>
|
||||
<div id='tabtab-5' class='taboff'>Custom Fields</div>
|
||||
</div>
|
||||
<div class='tabclear'>Editing: {$mem['members_display_name']} <span style='font-weight:normal'>(ID: {$mem['id']})</span></div>
|
||||
<div class='tableborder'>
|
||||
<div id='tabpane-1' class='formmain-background'>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td>
|
||||
<fieldset class='formmain-fieldset'>
|
||||
<legend><strong>{$mem['members_display_name']}</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='1%' class='tablerow1'>
|
||||
<div style='border:1px solid #000;background:#FFF;width:{$mem['pp_main_width']}px; padding:15px'>
|
||||
<img src="{$mem['pp_main_photo']}" width='{$mem['pp_main_width']}' height='{$mem['pp_main_height']}' />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Registration IP Address</strong></td>
|
||||
<td width='60%' class='tablerow2'>
|
||||
<a href='{$this->ipsclass->base_url}&section={$this->ipsclass->section_code}&act=mtools&code=learnip&ip={$mem['ip_address']}' title='Find more out about this IP address...'>{$mem['ip_address']}</a>
|
||||
[ <a href='{$this->ipsclass->base_url}&section={$this->ipsclass->section_code}&act=mtools&code=showallips&member_id={$mem['id']}'>Show all IP addresses</a> ]
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Email Address</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['email']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Post Count</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['posts']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Remove Member's Photo</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['remove_photo']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Remove Member's Avatar</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['remove_avatar']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Warn Level</strong></td>
|
||||
<td width='60%' class='tablerow2'>
|
||||
{$form['warn_level']}
|
||||
[ <a href='#' onclick="ipsclass.pop_up_window('{$this->ipsclass->vars['board_url']}/index.php?act=warn&mid={$mem['id']}&CODE=view','500','450'); return false;">View User Notes</a> ]
|
||||
[ <a href='#' onclick="ipsclass.pop_up_window('{$this->ipsclass->vars['board_url']}/index.php?act=warn&mid={$mem['id']}&CODE=add_note','500','450'); return false;">Add New Note</a> ]
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Member Title</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['member_title']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</fieldset>
|
||||
|
||||
<br />
|
||||
|
||||
<fieldset class='formmain-fieldset'>
|
||||
<legend><strong>Member Group Options</strong></legend>
|
||||
EOF;
|
||||
if ( $form['_show_fixed'] != TRUE )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Primary Member Group</strong><div style='color:gray'>Member will appear to be a member of this group to others</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['mgroup']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Secondary Member Groups</strong><br />You can select more than one other group.<div style='color:gray'>Member will inherit 'better' permissions of all secondary groups and will inherit permission sets of all secondary groups in positive favor.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['mgroup_others']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Primary Member Group</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['_mgroup']}<b>Root Admin or Administrator</b> (Can't Change)</td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id='tabpane-2' class='formmain-background'>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td>
|
||||
<fieldset class='formmain-fieldset'>
|
||||
<legend><strong>Posting and Access Restrictions</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Override group forum permissions with...</strong><br />You may choose more than one.<div style='color:gray'>This will override all permission settings for the primary group and any secondary groups.</div></td>
|
||||
<td width='60%' class='tablerow2'>
|
||||
<input type='checkbox' name='override' {$form['_permid_tick']} value='1' > <b>Force member to use selected permission sets...</b><br />
|
||||
{$form['permid']}
|
||||
<br><input style='margin-top:5px' id='editbutton' type='button' onclick='show_me();' value='Show me selected permissions'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Require moderator preview of all posts by this member?</strong><div style='color:gray'>If yes, all posts by this member will be put into the moderation queue. Untick box and clear number box to remove.</div></td>
|
||||
<td width='60%' class='tablerow2'>
|
||||
<input type='checkbox' name='mod_indef' value='1' {$form['_mod_tick']}> Moderator Preview indefinitely
|
||||
<br />
|
||||
<strong>Or for</strong>
|
||||
{$form['mod_timespan']} {$form['mod_units']} {$form['_mod_extra']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Restrict {$mem['members_display_name']} from posting?</strong><div style='color:gray'>Untick box and clear number box to remove restriction.</div></td>
|
||||
<td width='60%' class='tablerow2'>
|
||||
<input type='checkbox' name='post_indef' value='1' {$form['_post_tick']}> Restrict posting indefinitely
|
||||
<br />
|
||||
<strong>Or for</strong>
|
||||
{$form['post_timespan']} {$form['post_units']} {$form['_post_extra']}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id='tabpane-3' class='formmain-background'>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td>
|
||||
<fieldset class='formmain-fieldset'>
|
||||
<legend><strong>Board Settings</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Language Choice</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['language']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Skin Choice</strong></td>
|
||||
<td width='60%' class='tablerow2'><select name='skin' class='dropdown'><option value='0'>--None / Use Board Default--</option>{$form['_skin_list']}</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Hide this members email address?</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['hide_email']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Email a PM reminder?</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['email_pm']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>{$this->ipsclass->acp_lang['mem_edit_pm_title']}</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['members_disable_pm']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<br />
|
||||
|
||||
<fieldset class='formmain-fieldset'>
|
||||
<legend><strong>Contact Information</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Messenger: AIM</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['aim_name']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Messenger: MSN</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['msnname']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Messenger: Yahoo!</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['yahoo']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Messenger: ICQ</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['icq_number']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Website Address</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['website']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<br />
|
||||
|
||||
<fieldset class='formmain-fieldset'>
|
||||
<legend><strong>Profile Information</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Avatar Location</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['avatar']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Avatar Type</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['avatar_type']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Avatar Size</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['avatar_size']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Location</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['location']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Interests</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['interests']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Gender</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['pp_gender']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Personal Statement</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['pp_bio_content']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</td>
|
||||
</table>
|
||||
</div>
|
||||
<div id='tabpane-4' class='formmain-background'>
|
||||
<fieldset class='formmain-fieldset'>
|
||||
<legend><strong>Member's Signature</strong></legend>
|
||||
{$form['signature']}
|
||||
</fieldset>
|
||||
</div>
|
||||
<div id='tabpane-5' class='formmain-background'>
|
||||
<fieldset class='formmain-fieldset'>
|
||||
<legend><strong>Custom Profile Fields</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
{$form['_custom_fields']}
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div align='center' class='tablefooter'>
|
||||
<div class='formbutton-wrap'>
|
||||
<div id='button-save'><img src='{$this->ipsclass->skin_acp_url}/images/icons_form/save.gif' border='0' alt='Save' title='Save' class='ipd-alt' /> Save Member</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
// Init form functions, grab stuff
|
||||
formfunctions.init();
|
||||
// Pass ID name of FORM tag
|
||||
formfunctions.name_form = 'mainform';
|
||||
formfunctions.add_submit_event( 'button-save' );
|
||||
// Stuff. Well done Matt
|
||||
tabfactory.init_tabs();
|
||||
//]]>
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Member: delete stuff start
|
||||
//===========================================================================
|
||||
@@ -14,20 +356,25 @@ $IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=deleteposts_process&mid={$member['id']}' method='POST'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>{$this->ipsclass->acp_lang['mem_delete_posts_title']} {$member['members_display_name']}</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablerow1' width='90%'><strong>{$this->ipsclass->acp_lang['mem_delete_delete_posts']}</strong><div class='desctext'>{$this->ipsclass->acp_lang['mem_delete_delete_posts_desc']}</div></td>
|
||||
<td class='tablesubheader' width='10%'><input type='checkbox' value='1' name='dposts' /></td>
|
||||
<td class='tablerow2' width='10%'><input type='checkbox' value='1' name='dposts' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1' width='90%'><strong>{$this->ipsclass->acp_lang['mem_delete_delete_topics']}</strong><div class='desctext'>{$this->ipsclass->acp_lang['mem_delete_delete_topics_desc']}</div></td>
|
||||
<td class='tablesubheader' width='10%'><input type='checkbox' value='1' name='dtopics' /></td>
|
||||
<td class='tablerow2' width='10%'><input type='checkbox' value='1' name='dtopics' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1' width='90%'><strong>{$this->ipsclass->acp_lang['mem_delete_posts_trash']}</strong><div class='desctext'>{$this->ipsclass->acp_lang['mem_delete_posts_trash_desc']}</div></td>
|
||||
<td class='tablerow2' width='10%'><input type='checkbox' value='1' name='use_trash_can' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1' width='90%'><strong>{$this->ipsclass->acp_lang['mem_delete_delete_pergo']}</strong><div class='desctext'>{$this->ipsclass->acp_lang['mem_delete_delete_pergo_desc']}</div></td>
|
||||
<td class='tablesubheader' width='10%'><input type='input' value='50' size='3' name='dpergo' /></td>
|
||||
<td class='tablerow2' width='10%'><input type='input' value='50' size='3' name='dpergo' /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div align='center' class='tablefooter'><input type='submit' class='realbutton' value='{$this->ipsclass->acp_lang['mem_delete_process']}' /></div>
|
||||
@@ -79,37 +426,39 @@ $IPBHTML .= <<<EOF
|
||||
<div class='tableheaderalt'>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td align='left' width='40%' style='font-size:12px; vertical-align:middle;font-weight:bold; color:#FFF;'>Óïðàâëåíèå íåàêòèâèðîâàííûìè</td>
|
||||
<td align='left' width='40%' style='font-size:12px; vertical-align:middle;font-weight:bold; color:#FFF;'>Member Validation Queue</td>
|
||||
<td align='right' width='60%'>
|
||||
<form name='selectform' id='selectform' action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=mod' method='post'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<select name='filter' class='dropdown'>
|
||||
<option value='all'>Ïðîñìîòðåòü âñåõ</option>
|
||||
<option value='reg_user_validate'>Ïðîñìîòð çàðåãèñòðèðîâàííûõ (íåàêòèâèðîâàííûå)</option>
|
||||
<option value='reg_admin_validate'>Ïðîñìîòð çàðåãèñòðèðîâàííûõ (àêòèâèðîâàííûå)</option>
|
||||
<option value='email_chg'>Èçìåíèòü e-mail</option>
|
||||
<option value='all'>Show All</option>
|
||||
<option value='reg_user_validate'>Show Registering (User Validation)</option>
|
||||
<option value='reg_admin_validate'>Show Registering (Admin Validation)</option>
|
||||
<option value='email_chg'>Email Change</option>
|
||||
</select>
|
||||
<input type='submit' class='realbutton' value=' >>' />
|
||||
<input type='submit' class='realbutton' value=' Go >' />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<form name='theAdminForm' id='adminform' action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=domod' method='post'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<table cellpadding='4' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='titlemedium' width='20%'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=mod&st=$st&sort=mem&ord=$new_ord'>Îòîáðàæàåìîå èìÿ</a></td>
|
||||
<td class='titlemedium' width='15%'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=mod&st=$st&sort=email&ord=$new_ord'>E-mail</a></td>
|
||||
<td class='titlemedium' width='20%'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=mod&st=$st&sort=sent&ord=$new_ord'>Email îòïðàâë.</a></td>
|
||||
<td class='titlemedium' width='5%' align='center'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=mod&st=$st&sort=posts&ord=$new_ord'>Ñîîáùåíèé</a></td>
|
||||
<td class='titlemedium' width='15%'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=mod&st=$st&sort=reg&ord=$new_ord'>Çàðåãèñòðèðîâàí</a></td>
|
||||
<td class='titlemedium' width='1%'><input type='checkbox' id='maincheckbox' onclick='check_boxes()' /></td>
|
||||
<td class='tablesubheader' width='20%'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=mod&st=$st&sort=mem&ord=$new_ord'>Member's Display Name</a></td>
|
||||
<td class='tablesubheader' width='15%'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=mod&st=$st&sort=email&ord=$new_ord'>Email Address</a></td>
|
||||
<td class='tablesubheader' width='20%'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=mod&st=$st&sort=sent&ord=$new_ord'>Email Sent</a></td>
|
||||
<td class='tablesubheader' width='5%' align='center'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=mod&st=$st&sort=posts&ord=$new_ord'>Posts</a></td>
|
||||
<td class='tablesubheader' width='15%'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=mod&st=$st&sort=reg&ord=$new_ord'>Reg. On</a></td>
|
||||
<td class='tablesubheader' width='1%'><input type='checkbox' id='maincheckbox' onclick='check_boxes()' /></td>
|
||||
</tr>
|
||||
{$content}
|
||||
<tr>
|
||||
<td class='pformstrip' colspan='2' align='left'>{$links}</td>
|
||||
<td class='pformstrip' colspan='4' align='right'>
|
||||
<select name='type' class='dropdown'><option value='approve'>Àêòèâèðîâàòü ýòè ó÷åòíûå çàïèñè</option><option value='delete'>ÓÄÀËÈÒÜ ýòè ó÷åòíûå çàïèñè</option></select>
|
||||
<input type='submit' class='realbutton' value=' >>' />
|
||||
<td class='tablesubheader' colspan='2' align='left'>{$links}</td>
|
||||
<td class='tablesubheader' colspan='4' align='right'>
|
||||
<select name='type' class='dropdown'><option value='approve'>Approve these Accounts</option><option value='delete'>DELETE these accounts</option><option value='resend'>Resend Validation Emails</option></select>
|
||||
<input type='submit' class='realbutton' value=' Process >>' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -132,12 +481,126 @@ $IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tdrow2'><strong>{$r['members_display_name']}</strong>{$r['_coppa']}<div class='desctext'>IP: {$r['ip_address']}</div></td>
|
||||
<td class='tdrow1'>{$r['email']}</td>
|
||||
<td class='tdrow1'><span style='color:green'>{$r['_where']}</span><br />{$r['_entry']}<div class='desctext'>{$r['_days']} äíåé è {$r['_rhours']} ÷àñîâ íàçàä</div></td>
|
||||
<td class='tdrow1' align='center'>{$r['posts']}</td>
|
||||
<td class='tdrow1'>{$r['_joined']}</td>
|
||||
<td class='tdrow1' align='center'><input type='checkbox' id="mid_{$r['member_id']}" name='mid_{$r['member_id']}' value='1' /></td>
|
||||
<td class='tablerow2'><strong>{$r['members_display_name']}</strong>{$r['_coppa']}<div class='desctext'>IP: <a href='{$this->ipsclass->base_url}§ion=content&act=mtools&code=learnip&ip={$r['ip_address']}'>{$r['ip_address']}</a></div></td>
|
||||
<td class='tablerow1'>{$r['email']}</td>
|
||||
<td class='tablerow1'><span style='color:green'>{$r['_where']}</span><br />{$r['_entry']}<div class='desctext'>{$r['_days']} days and {$r['_rhours']} hours ago</div></td>
|
||||
<td class='tablerow1' align='center'>{$r['posts']}</td>
|
||||
<td class='tablerow1'>{$r['_joined']}</td>
|
||||
<td class='tablerow1' align='center'><input type='checkbox' id="mid_{$r['member_id']}" name='mid_{$r['member_id']}' value='1' /></td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Member: locked account
|
||||
//===========================================================================
|
||||
function member_locked_wrapper($content, $st, $links) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
function check_boxes()
|
||||
{
|
||||
var ticked = document.getElementById('maincheckbox').checked;
|
||||
|
||||
var checkboxes = document.getElementsByTagName('input');
|
||||
|
||||
for (var i in checkboxes )
|
||||
{
|
||||
var e = checkboxes[i];
|
||||
|
||||
if ( e.type == 'checkbox')
|
||||
{
|
||||
var boxname = e.id;
|
||||
var boxcheck = boxname.replace( /^(.+?)_.+?$/, "$1" );
|
||||
|
||||
if ( boxcheck == 'mid' )
|
||||
{
|
||||
e.checked = ticked;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//]]>
|
||||
</script>
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td align='left' width='100%' style='font-size:12px; vertical-align:middle;font-weight:bold; color:#FFF;'>Member Locked Account Queue</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<form name='theAdminForm' id='adminform' action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=unlock' method='post'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<table cellpadding='4' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='20%'>Member's Display Name</td>
|
||||
<td class='tablesubheader' width='15%'>Email Address</td>
|
||||
<td class='tablesubheader' width='20%'>Failed Logins</td>
|
||||
<td class='tablesubheader' width='5%' align='center'>Posts</td>
|
||||
<td class='tablesubheader' width='15%'>Joined</td>
|
||||
<td class='tablesubheader' width='1%'><input type='checkbox' id='maincheckbox' onclick='check_boxes()' /></td>
|
||||
</tr>
|
||||
{$content}
|
||||
<tr>
|
||||
<td class='tablesubheader' colspan='2' align='left'>{$links}</td>
|
||||
<td class='tablesubheader' colspan='4' align='right'>
|
||||
<select name='type' class='dropdown'><option value='unlock'>Unlock these Accounts</option><option value='ban'>Ban these accounts</option></select>
|
||||
<input type='submit' class='realbutton' value=' Process >>' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Member: No rows/ setting disabled
|
||||
//===========================================================================
|
||||
function member_locked_no_rows( $lang ) {
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow2' colspan='6'><strong>{$lang}</strong></td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Member: Locked account row
|
||||
//===========================================================================
|
||||
function member_locked_row( $r="" ) {
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow2'><strong>{$r['members_display_name']}</strong><div class='desctext'>Group: {$r['group_title']}</div><div class='desctext'>{$r['ip_addresses']}</div></td>
|
||||
<td class='tablerow1'>{$r['email']}</td>
|
||||
<td class='tablerow1'>Oldest Failure: {$r['oldest_fail']}<br />Most Recent Failure: {$r['newest_fail']}<br />Total Failures: {$r['failed_login_count']}</td>
|
||||
<td class='tablerow1' align='center'>{$r['posts']}</td>
|
||||
<td class='tablerow1'>{$r['_joined']}</td>
|
||||
<td class='tablerow1' align='center'><input type='checkbox' id="mid_{$r['id']}" name='mid_{$r['id']}' value='1' /></td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ $IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='pformstrip'>Installing New Payment Gateways</div>
|
||||
<div class='tablesubheader'>Installing New Payment Gateways</div>
|
||||
<div class='tablerow2' style='padding:6px;'>
|
||||
To install a new payment gateway module, simply upload the file 'class_gw_{name}.php' into '/sources/classes/paymentgateways' and then
|
||||
click on the 'install' link. Modules showing as 'installed' are active and can be set up from within the 'Manage Payment Gateways' link.
|
||||
@@ -26,8 +26,8 @@ $IPBHTML .= <<<EOF
|
||||
<div class='tableheaderalt'>Install a New Payment Gateway</div>
|
||||
<table cellpadding='4' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='titlemedium' width='90%'>Gateway Name</td>
|
||||
<td class='titlemedium' width='10%' align='center'> </td>
|
||||
<td class='tablesubheader' width='90%'>Gateway Name</td>
|
||||
<td class='tablesubheader' width='10%' align='center'> </td>
|
||||
</tr>
|
||||
{$content}
|
||||
</table>
|
||||
@@ -80,7 +80,7 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=edit_package_gateway_info&method=--methodid--&sub={$row['sub_id']}'>Edit Gateways Methods For: {$row['sub_title']}...</a>",
|
||||
img_edit + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=edit_package_gateway_info&method=--methodid--&sub={$row['sub_id']}'>Edit Gateways Methods For: {$row['sub_title']}...</a>",
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
@@ -97,6 +97,7 @@ $IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=find_transactions' method="POST">
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Find / Edit Transactions</div>
|
||||
<table cellpadding='4' cellspacing='0' width='100%'>
|
||||
@@ -117,11 +118,12 @@ $IPBHTML .= <<<EOF
|
||||
<td class='tablerow1'>{$form['expiredays']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class='pformstrip' align='center'><input type='submit' class='realbutton' value=' Go >> ' /></div>
|
||||
<div class='tablesubheader' align='center'><input type='submit' class='realbutton' value=' Go >> ' /></div>
|
||||
</div>
|
||||
</form>
|
||||
<br />
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=find_logs' method="POST">
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Search Transaction Logs</div>
|
||||
<table cellpadding='4' cellspacing='0' width='100%'>
|
||||
@@ -130,7 +132,7 @@ $IPBHTML .= <<<EOF
|
||||
<td class='tablerow1' width='60%'>{$form['searchtype2']} contains... {$form['search2']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class='pformstrip' align='center'><input type='submit' class='realbutton' value=' Go >> ' /></div>
|
||||
<div class='tablesubheader' align='center'><input type='submit' class='realbutton' value=' Go >> ' /></div>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
@@ -153,17 +155,17 @@ $IPBHTML .= <<<EOF
|
||||
<td class='tablerow2' align='center'>{$row['_duration']}</td>
|
||||
<td class='tablerow2' align='center'><span style='color:green'>{$row['_active']}</span></td>
|
||||
<td class='tablerow2' align='center'><span style='color:red'>{$row['_expired']}</span></td>
|
||||
<td class='tablerow1' align='center'><img id="menu{$row['sub_id']}" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
<td class='tablerow1' align='center'><img id="menu{$row['sub_id']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$row['sub_id']}",
|
||||
new Array( img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=editpackage&id={$row['sub_id']}'>Edit Package...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=removepackage&id={$row['sub_id']}'>Remove Package...</a>",
|
||||
new Array( img_edit + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=editpackage&id={$row['sub_id']}'>Edit Package...</a>",
|
||||
img_delete + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=removepackage&id={$row['sub_id']}'>Remove Package...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=removemembers&type=all&id={$row['sub_id']}'>Unsubscribe All Members...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=removemembers&type=expired&id={$row['sub_id']}'>Unsubscribe Expired Members...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=dosearch&package={$row['sub_id']}'>Show Subscribed Members...</a>",
|
||||
img_item + " <a href='#' onclick='pop_win(\"&{$this->ipsclass->form_code}&code=overview&package={$row['sub_id']}\", \"Overview\", 600,200)'>Launch Overview...</a>"
|
||||
img_view + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=dosearch&package={$row['sub_id']}'>Show Subscribed Members...</a>",
|
||||
img_view + " <a href='#' onclick='pop_win(\"&{$this->ipsclass->form_code}&code=overview&package={$row['sub_id']}\", \"Overview\", 600,200)'>Launch Overview...</a>"
|
||||
) );
|
||||
</script>
|
||||
|
||||
@@ -186,16 +188,16 @@ $IPBHTML .= <<<EOF
|
||||
<div class='tableheaderalt'>Subscription Packages</div>
|
||||
<table cellpadding='4' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='titlemedium' width='28%'>Subscription Plan</td>
|
||||
<td class='titlemedium' width='10%' align='center'>Cost</td>
|
||||
<td class='titlemedium' width='10%' align='center'>Duration</td>
|
||||
<td class='titlemedium' width='10%' align='center'>Active Members</td>
|
||||
<td class='titlemedium' width='12%' align='center'>Expired Members</td>
|
||||
<td class='titlemedium' width='1%' align='center'> </td>
|
||||
<td class='tablesubheader' width='28%'>Subscription Plan</td>
|
||||
<td class='tablesubheader' width='10%' align='center'>Cost</td>
|
||||
<td class='tablesubheader' width='10%' align='center'>Duration</td>
|
||||
<td class='tablesubheader' width='10%' align='center'>Active Members</td>
|
||||
<td class='tablesubheader' width='12%' align='center'>Expired Members</td>
|
||||
<td class='tablesubheader' width='1%' align='center'> </td>
|
||||
</tr>
|
||||
{$content}
|
||||
</table>
|
||||
<div class='pformstrip' align='center'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=addpackage' class='fauxbutton'>ADD NEW SUBSCRIPTION PACKAGE</a></div>
|
||||
<div class='tablefooter' align='center'><div class='fauxbutton-wrapper'><span class='fauxbutton'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=addpackage'>Add New Subscription Package</a></span></div></div>
|
||||
</div>
|
||||
|
||||
EOF;
|
||||
@@ -218,17 +220,17 @@ $IPBHTML .= <<<EOF
|
||||
<td class='tablerow2' align='center'>{$row['_duration']}</td>
|
||||
<td class='tablerow2' align='center'><span style='color:green'>{$row['_active']}</span></td>
|
||||
<td class='tablerow2' align='center'><span style='color:red'>{$row['_expired']}</span></td>
|
||||
<td class='tablerow1' align='center'><img id="menu{$row['sub_id']}" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
<td class='tablerow1' align='center'><img id="menu{$row['sub_id']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$row['sub_id']}",
|
||||
new Array( img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=editpackage&id={$row['sub_id']}'>Edit Package...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=removepackage&id={$row['sub_id']}'>Remove Package...</a>",
|
||||
new Array( img_edit + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=editpackage&id={$row['sub_id']}'>Edit Package...</a>",
|
||||
img_delete + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=removepackage&id={$row['sub_id']}'>Remove Package...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=removemembers&type=all&id={$row['sub_id']}'>Unsubscribe All Members...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=removemembers&type=expired&id={$row['sub_id']}'>Unsubscribe Expired Members...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=find_transactions&package={$row['sub_id']}'>Show Subscribed Members...</a>",
|
||||
img_item + " <a href='#' onclick='pop_win(\"&{$this->ipsclass->form_code}&code=overview&package={$row['sub_id']}\", \"Overview\", 600,200)'>Launch Overview...</a>"
|
||||
img_view + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=find_transactions&package={$row['sub_id']}'>Show Subscribed Members...</a>"
|
||||
//img_item + " <a href='#' onclick='pop_win(\"&{$this->ipsclass->form_code}&code=overview&package={$row['sub_id']}\", \"Overview\", 600,200)'>Launch Overview...</a>"
|
||||
) );
|
||||
</script>
|
||||
|
||||
@@ -252,13 +254,13 @@ $IPBHTML .= <<<EOF
|
||||
<div class='tableheaderalt'>Available Payment Gateways</div>
|
||||
<table cellpadding='4' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='titlemedium' width='20%'>Payment Gateway</td>
|
||||
<td class='titlemedium' width='10%'>Active</td>
|
||||
<td class='titlemedium' width='10%'>Transactions</td>
|
||||
<td class='titlemedium' width='10%'>Current</td>
|
||||
<td class='titlemedium' width='10%'>Pending</td>
|
||||
<td class='titlemedium' width='10%'>Failed</td>
|
||||
<td class='titlemedium' width='1%'> </td>
|
||||
<td class='tablesubheader' width='20%'>Payment Gateway</td>
|
||||
<td class='tablesubheader' width='10%'>Active</td>
|
||||
<td class='tablesubheader' width='10%'>Transactions</td>
|
||||
<td class='tablesubheader' width='10%'>Current</td>
|
||||
<td class='tablesubheader' width='10%'>Pending</td>
|
||||
<td class='tablesubheader' width='10%'>Failed</td>
|
||||
<td class='tablesubheader' width='1%'> </td>
|
||||
</tr>
|
||||
{$content}
|
||||
<tr>
|
||||
@@ -294,13 +296,13 @@ $IPBHTML .= <<<EOF
|
||||
<td class='tablerow2' align='center'><span style='color:green'>{$row['_trans']}</span></td>
|
||||
<td class='tablerow2' align='center'><span style='color:orange'>{$row['_pending']}</span></td>
|
||||
<td class='tablerow2' align='center'><span style='color:red'>{$row['_dead']}</span></td>
|
||||
<td class='tablerow1' align='center'><img id="menu{$row['submethod_id']}" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
<td class='tablerow1' align='center'><img id="menu{$row['submethod_id']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$row['submethod_id']}",
|
||||
new Array( $menu
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=editmethod&id={$row['submethod_id']}'>Set Up Payment Gateway...</a>"
|
||||
img_edit + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=editmethod&id={$row['submethod_id']}'>Set Up Payment Gateway...</a>"
|
||||
) );
|
||||
</script>
|
||||
|
||||
|
||||
@@ -15,12 +15,12 @@ $IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>RSS Ýêïîðòíûå ïîòîêè</div>
|
||||
<div class='tableheaderalt'>RSS Export Streams</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='90%'>RSS Çàãîëîâîê</td>
|
||||
<td class='tablesubheader' width='5%' align='center'>Ñòàòóñ</td>
|
||||
<td class='tablesubheader' width='5%'><img id="menumainone" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' /></td>
|
||||
<td class='tablesubheader' width='90%'>RSS Title</td>
|
||||
<td class='tablesubheader' width='5%' align='center'>Enabled</td>
|
||||
<td class='tablesubheader' width='5%'><img id="menumainone" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
@@ -29,8 +29,8 @@ $IPBHTML .= <<<EOF
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menumainone",
|
||||
new Array( img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssexport_add'>Ñîçäàòü íîâûé ïîòîê RSS Ýêñïîðòà...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssexport_recache&rss_export_id=all'>Îáíîâèòü âñå êåøè RSS Ýêñïîðòà...</a>"
|
||||
new Array( img_add + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssexport_add'>Create New RSS Export Stream...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssexport_recache&rss_export_id=all'>Update All RSS Export Caches...</a>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
@@ -50,19 +50,19 @@ $IPBHTML = "";
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<a target='_blank' href='{$this->ipsclass->vars['board_url']}/index.php?act=rssout&id={$data['rss_export_id']}'><img src='{$this->ipsclass->skin_url}/images/rss.png' border='0' alt='RSS' style='vertical-align:top' /></a>
|
||||
<a target='_blank' href='{$this->ipsclass->vars['board_url']}/index.php?act=rssout&id={$data['rss_export_id']}'><img src='{$this->ipsclass->skin_acp_url}/images/rss.png' border='0' alt='RSS' style='vertical-align:top' /></a>
|
||||
<strong>{$data['rss_export_title']}</strong>
|
||||
</td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_url}/images/{$data['_enabled_img']}' border='0' alt='YN' class='ipd' /></td>
|
||||
<td class='tablerow1'><img id="menu{$data['rss_export_id']}" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' /></td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_acp_url}/images/{$data['_enabled_img']}' border='0' alt='YN' class='ipd' /></td>
|
||||
<td class='tablerow1'><img id="menu{$data['rss_export_id']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$data['rss_export_id']}",
|
||||
new Array(
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssexport_edit&rss_export_id={$data['rss_export_id']}'>Ðåäàêòèðîâàòü ïîòîê RSS Ýêñïîðòà...</a>",
|
||||
img_item + " <a href='#' onclick='maincheckdelete(\"{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssexport_delete&rss_export_id={$data['rss_export_id']}\");'>Óäàëèòü ïîòîê RSS Ýêñïîðòà...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssexport_recache&rss_export_id={$data['rss_export_id']}'>Ïåðåñòðîéêà êåøà RSS Ýêñïîðòà...</a>"
|
||||
img_edit + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssexport_edit&rss_export_id={$data['rss_export_id']}'>Edit RSS Export Stream...</a>",
|
||||
img_delete + " <a href='#' onclick='maincheckdelete(\"{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssexport_delete&rss_export_id={$data['rss_export_id']}\");'>Delete RSS Export Stream...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssexport_recache&rss_export_id={$data['rss_export_id']}'>Recache RSS Export Stream...</a>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
@@ -81,48 +81,49 @@ $IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=$formcode&rss_export_id={$rssstream['rss_export_id']}' method='post'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>$title</div>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Çàãîëîâîê ïîòîêà RSS Ýêñïîðòà (êàíàë)</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Export Stream (Channel) Title</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_export_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Îïèñàíèå ïîòîêà RSS Ýêñïîðòà (êàíàë)</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Export Stream (Channel) Description</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_export_desc']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Èçîáðàæåíèå ïîòîêà RSS Ýêñïîðòà (êàíàë)</strong><div class='desctext'>Äëÿ îòîáðàæåíèÿ èçîáðàæåíèÿ â ïðîãðàììàõ äëÿ ÷òåíèÿ RSS</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_export_image']} <span class='desctext'>* Îïöèîíàëüíî</span></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Export Stream Image</strong><div class='desctext'>Used to show an image in RSS readers</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_export_image']} <span class='desctext'>* Optional</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Ýêñïîðò âêëþ÷åí</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Export Enabled</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_export_enabled']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong> RSS Ýêñïîðò âêëþ÷àòü ïåðâîå ñîîáùåíèå òåìû?</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Export Includes First Post of Topic</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_export_include_post']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Êîëè÷åñòâî òåì RSS Ýêñïîðòà</strong><div class='desctext'>Êîëè÷åñòâî ýêñïîðòèðóåìûõ òåì</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Export No. Items</strong><div class='desctext'>Exports <em>n</em> number of topics</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_export_count']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ñîðòèðîâàòü RSS Ýêñïîðò</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Export Order By Field</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_export_order']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ñîðòèðîâàòü RSS Ýêñïîðò</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Export Sort By</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_export_sort']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ýêñïîðòèðîâàòü òåìû èç ôîðóìîâ</strong><div class='desctext'>ÂÀÆÍÎ: Ìàñêè äîñòóïà íå ðàáîòàþò çäåñü. Òåìû áóäóò ýêñïîðòèðîâàíû èç âûáðàííûõ ôîðóì, íåçàâèñèìî îò ìàñîê äîñòóïà ê ôîðóìàì.</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Export Topics From Forum(s)</strong><div class='desctext'>IMPORTANT: No permission checks are done. Topics will be exported from chosen forums regardless of the viewer's permissions.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_export_forums']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Ýêñïîðò: ×àñòîòà îáíîâëåíèÿ êåøà</strong><div class='desctext'>Îáíîâëÿòü RSS êåø êàæäûå <em>n</em> ìèíóò</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_export_cache_time']} <span class='desctext'>ìèíóò</span></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Export Cache Frequency</strong><div class='desctext'>Updates the RSS cache every <em>n</em> minutes</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_export_cache_time']} <span class='desctext'>minutes</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div align='center' class='tablefooter'><input type='submit' class='realbutton' value='$button' /></div>
|
||||
@@ -144,18 +145,19 @@ $IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssimport_remove_complete&rss_import_id={$rssstream['rss_import_id']}' method='post'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Óäàëèòü òåìû èç ïîòîêà: {$rssstream['rss_import_title']}</div>
|
||||
<div class='tableheaderalt'>Remove Posted Topics From Stream: {$rssstream['rss_import_title']}</div>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td colspan='2' class='tablerow1'>Âû ìîæåòå óäàëèòü òåìû, êîòîðûå áûëè îïóáëèêîâàíû, èç ïîòîêà RSS Èìïîðòà. Ýòîò ïîòîê áûë ñîçäàí ñ <strong>{$article_count}</strong> òåìàìè.</td>
|
||||
<td colspan='2' class='tablerow1'>You may remove topics that have been posted from an RSS import stream. This stream has created <strong>{$article_count}</strong> topic(s).</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Óäàëèòü ïîñëåäíèå <em>n</em> èìïîðòèðîâàííûõ òåì</strong><div class='desctext'>Îñòàâüòå ïîëå ïóñòûì äëÿ óäàëåíèÿ âñåõ</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Remove the last <em>n</em> imported topics</strong><div class='desctext'>Leave blank to remove them all</div></td>
|
||||
<td width='60%' class='tablerow2'><input type='text' name='remove_count' value='10' /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div align='center' class='tablefooter'><input type='submit' class='realbutton' value='Óäàëèòü!!!' /></div>
|
||||
<div align='center' class='tablefooter'><input type='submit' class='realbutton' value='Remove (No more confirmation screens)' /></div>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
@@ -174,6 +176,7 @@ $IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
|
||||
<script type="text/javascript" src='{$this->ipsclass->vars['board_url']}/jscripts/ipb_xhr_findnames.js'></script>
|
||||
<script type='text/javascript'>
|
||||
<!--
|
||||
function enable_auth_boxes()
|
||||
@@ -188,55 +191,65 @@ function enable_auth_boxes()
|
||||
auth_req.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
function do_validate()
|
||||
{
|
||||
formobj = document.getElementById('rssimport_validate');
|
||||
formobj.value = "1";
|
||||
document.getElementById('rssimport_form').submit();
|
||||
}
|
||||
|
||||
// -->
|
||||
</script>
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=$formcode&rss_import_id={$rssstream['rss_import_id']}' method='post'>
|
||||
<form id='rssimport_form' action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=$formcode&rss_import_id={$rssstream['rss_import_id']}' method='post'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<input id='rssimport_validate' type='hidden' name='rssimport_validate' value='0' />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>$title</div>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<fieldset>
|
||||
<legend><strong>RSS Èìïîðò</strong></legend>
|
||||
<legend><strong>RSS Import Basics</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Çàãîëîâîê ïîòîêà RSS Èìïîðòà</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Import Stream Title</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_import_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>URL ïîòîêà RSS Èìïîðòà</strong><div class='desctext'>Ýòî äîëæíî áûòü RDF èëè RSS ïîòîê</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Import Stream URL</strong><div class='desctext'>This must be an RDF or RSS feed</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_import_url']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Êîäèðîâêà ïîòîêà RSS Èìïîðòà</strong><div class='desctext'>Íàïðèìåð: WINDOWS-1251, UTF-8.</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Import Stream Character Set</strong><div class='desctext'>Examples: ISO-8859-1, UTF-8. Use UTF-8 if in doubt.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_import_charset']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âêëþ÷èòü RSS Èìïîðò?</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Import Enabled</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_import_enabled']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<fieldset>
|
||||
<legend><strong>htaccess àóòåíòèôèêàöèÿ RSS Èìïîðòà</strong></legend>
|
||||
<legend><strong>RSS Import htaccess Authentication</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ýòîò ïîòîê òðåáóåò .htaccess àóòåíòèôèêàöèþ?</strong><div class='desctext'>Áîëüøèíñòâî ïîòîêîâ íå òðåáóåò ýòî</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Does this stream require .htaccess Authentication?</strong><div class='desctext'>Most streams do not require authentication</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_import_auth']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' width='100%' id='rss_import_auth_userinfo' {$form['rss_div_show']}>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Èìÿ ïîëüçîâàòåëÿ ïîòîêà RSS Èìïîðòà</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Import Stream Username</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_import_auth_user']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ïàðîëü ïîòîêà RSS Èìïîðòà</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Import Stream Password</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_import_auth_pass']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -248,39 +261,40 @@ function enable_auth_boxes()
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<div id='ipb-get-members' style='border:1px solid #000; background:#FFF; padding:2px;position:absolute;width:170px;display:none;z-index:100'></div>
|
||||
<fieldset>
|
||||
<legend><strong>Êîíòåíò RSS Èìïîðòà</strong></legend>
|
||||
<legend><strong>RSS Import Content</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Èìïîðò â ôîðóì</strong><div class='desctext'>Âûáåðèòå ôîðóì, â êîòîðûé èìïîðòèðîâàòü êàæäóþ RSS çàïèñü, êàê íîâóþ òåìó</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Import Into Forum</strong><div class='desctext'>Choose a forum to import each RSS item as a new topic</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_import_forum_id']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ñîõðàíèòü HTML â RSS Èìïîðòå</strong><div class='desctext'>Åñëè äà, HTML áóäåò ñîõðàíåí - âû îáÿçàíû âêëþ÷èòü HTML íà ôîðóìå, ÷òîáû áûëà âîçìîæíîñòü ðåäàêòèðîâàòü èìïîðòèðóåìûå çàïèñè. Åñëè íåò, HTML áóäåò êîíâåðòèðîâàòüñÿ ïî âîçìîæíîñòè â BB-êîä.</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Import Preserve HTML</strong><div class='desctext'>If yes, raw HTML is preserved along with any 'badwords' - you MUST have HTML enabled when editing imported posts or HTML will be removed upon edit. If no, HTML is converted to BBCode where possible.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_import_allow_html']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Èìÿ ïîëüçîâàòåëÿ RSS Èìïîðòà</strong><div class='desctext'>Îò ýòîãî èìåíè áóäåò ïóáëèêîâàòüñÿ òåìà ñ RSS çàïèñüþ (îòîáðàæàeìîå èìÿ)</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Import Poster's Name</strong><div class='desctext'>This will post the RSS topic under this person's account (member display name)</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_import_mid']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Óâåëè÷èâàòü ñ÷åò÷èê ñîîáùåíèé ïðè RSS Èìïîðòå</strong><div class='desctext'>Ïðè ïóáëèêàöèè íîâîé òåìû îò ïîëüçîâàòåëÿ èç RSS Èìïîðòà, ó íåãî áóäåò óâåëè÷åí ñ÷åò÷èê ñîîáùåíèé â ôîðóìàõ, ãäå ýòîò ñ÷åò÷èê âêëþ÷åí.</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Import Increment Poster's Post Count</strong><div class='desctext'>This will increment this poster's post count in forums where post counts are enabled</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_import_inc_pcount']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Äîáàâëÿòü ññûëêó íà çàïèñü RSS Èìïîðòà</strong><div class='desctext'>BB-êîä ðàçðåøåí: {url} = URL ê çàïèñè<br />Åñëè ýòî ïîëå çàïîëíåíî, òî ê ñîîáùåíèþ áóäåò äîáàâëåíà ññûëêà íà èñòî÷íèê, îòêóäà âçÿòà RSS çàïèñü</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_import_showlink']} <div class='desctext'>*Îñòàâüòå ïîëå ïóñòûì, ÷òîáû íå âêëþ÷àòü ññûëêó â ñîîáùåíèå</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Import Add Link To Post</strong><div class='desctext'>BBCode allowed: {url} = URL to article<br />If completed, this will add a link to the article source (if available) to the post body</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_import_showlink']} <div class='desctext'>*Leave blank to not include a link in the post</div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Îòêðûòîñòü òåì RSS Èìïîðòà</strong><div class='desctext'>Åñëè 'Äà', òî òåìà áóäåò ñîçäàíà îòêðûòàÿ. 'Íåò' - òåìà áóäåò çàêðûòà</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Import Topic Open</strong><div class='desctext'>If 'yes' the topic will be posted as open. 'No', topic will be closed</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_import_topic_open']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Íåâèäèìîñòü òåì RSS Èìïîðòà</strong><div class='desctext'>Åñëè 'Äà', òî áóäåò ñîçäàíà íåâèäèìàÿ òåìà. 'Íåò' - òåìà âèäèìàÿ</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Import Topic Hidden</strong><div class='desctext'>If 'yes' the topic will be posted as invisible. 'No', topic will be visible</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_import_topic_hide']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ïðåôèêñ òåì RSS Èìïîðòà</strong><div class='desctext'>Ïðåôèêñ, êîòîðûé áóäåò äîáàâëåí ïåðåä çàãîëîâêîì RSS çàïèñè</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Import Topic Prefix</strong><div class='desctext'>This prefix will be added to the beginning of the RSS item's title</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_import_topic_pre']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -290,14 +304,14 @@ function enable_auth_boxes()
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<fieldset>
|
||||
<legend><strong>Íàñòðîéêè RSS Èìïîðòà</strong></legend>
|
||||
<legend><strong>RSS Import Settings</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Êîëè÷åñòâî èìïîðòèðóåìûõ çàïèñåé çà îáíîâëåíèå</strong><div class='desctext'>Èìïîðòèðîâàòü <em>n</em> çàïèñåé çà îáíîâëåíèå. Èìïîðòèðîâàíèå äîâîëüíî òÿæåëûé ïðîöåññ.</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Import Per Go</strong><div class='desctext'>Imports <em>n</em> articles per update. Importing is moderately resource intensive.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_import_pergo']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Îáíîâëåíèå RSS Èìïîðòà</strong><div class='desctext'>Ïðîâåðÿòü íîâûå RSS çàïèñè êàæäûå <em>n</em> ìèíóò. Ìèíèìóì 30 ìèíóò.</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Import Refresh</strong><div class='desctext'>Checks for new articles every <em>n</em> minutes. Minimum of 30 minutes, regardless of input.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_import_time']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -305,9 +319,16 @@ function enable_auth_boxes()
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div align='center' class='tablefooter'><input type='submit' class='realbutton' value='$button' /></div>
|
||||
<div align='center' class='tablefooter'><input type='submit' class='realbutton' value='$button' />
|
||||
<input type='button' class='realbutton' value='Validate Stream' onclick='do_validate();' /></div>
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
// INIT find names
|
||||
init_js( 'rssimport_form', 'rss_import_mid');
|
||||
// Run main loop
|
||||
var tmp = setTimeout( 'main_loop()', 10 );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
@@ -324,12 +345,22 @@ $IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Ïîòîêè RSS Èìïîðòà</div>
|
||||
<div class='tableheaderalt'>Quick-Validate an RSS Stream?</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='90%'>RSS Çàãîëîâîê</td>
|
||||
<td class='tablesubheader' width='5%' align='center'>Ñòàòóñ</td>
|
||||
<td class='tablesubheader' width='5%'><img id="menumainone" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' /></td>
|
||||
<td class='tablerow1'><b>Enter the URL:</b></td>
|
||||
<td class='tablerow2'><form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssimport_validate' method='post'><input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' /><input type='text' size='50' name='rss_url' value='http://' /> <input type='submit' class='realbutton' value='Validate' /></form></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>RSS Import Streams</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='90%'>RSS Title</td>
|
||||
<td class='tablesubheader' width='5%' align='center'>Enabled</td>
|
||||
<td class='tablesubheader' width='5%'><img id="menumainone" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
@@ -338,8 +369,8 @@ $IPBHTML .= <<<EOF
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menumainone",
|
||||
new Array( img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssimport_add'>Ñîçäàòü íîâûé ïîòîê RSS Èìïîðòà...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssimport_recache&rss_import_id=all'>Îáíîâèòü âñå êåøè RSS Èìïîðòà...</a>"
|
||||
new Array( img_add + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssimport_add'>Create New RSS Import Stream...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssimport_recache&rss_import_id=all'>Update All RSS Imports...</a>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
@@ -348,6 +379,24 @@ EOF;
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// RSS
|
||||
//===========================================================================
|
||||
function rss_validate_msg( $info ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<span class='{$info['class']}'>{$info['msg']}</span>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// RSS
|
||||
//===========================================================================
|
||||
@@ -359,20 +408,21 @@ $IPBHTML = "";
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<a target='_blank' href='{$data['rss_import_url']}'><img src='{$this->ipsclass->skin_url}/images/rss.png' border='0' alt='RSS' style='vertical-align:top' /></a>
|
||||
<a target='_blank' href='{$data['rss_import_url']}'><img src='{$this->ipsclass->skin_acp_url}/images/rss.png' border='0' alt='RSS' style='vertical-align:top' /></a>
|
||||
<strong>{$data['rss_import_title']}</strong>
|
||||
</td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_url}/images/{$data['_enabled_img']}' border='0' alt='YN' class='ipd' /></td>
|
||||
<td class='tablerow1'><img id="menu{$data['rss_import_id']}" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' /></td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_acp_url}/images/{$data['_enabled_img']}' border='0' alt='YN' class='ipd' /></td>
|
||||
<td class='tablerow1'><img id="menu{$data['rss_import_id']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$data['rss_import_id']}",
|
||||
new Array(
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssimport_edit&rss_import_id={$data['rss_import_id']}'>Ðåäàêòèðîâàòü ïîòîê RSS Èìïîðòà...</a>",
|
||||
img_item + " <a href='#' onclick='maincheckdelete(\"{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssimport_delete&rss_import_id={$data['rss_import_id']}\");'>Óäàëèòü ïîòîê RSS Èìïîðòà...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssimport_remove&rss_import_id={$data['rss_import_id']}'>Óäàëèòü RSS çàïèñè...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssimport_recache&rss_import_id={$data['rss_import_id']}'>Îáíîâèòü ïîòîê RSS Èìïîðòà...</a>"
|
||||
img_edit + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssimport_edit&rss_import_id={$data['rss_import_id']}'>Edit RSS Import Stream...</a>",
|
||||
img_delete + " <a href='#' onclick='maincheckdelete(\"{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssimport_delete&rss_import_id={$data['rss_import_id']}\");'>Delete RSS Import Stream...</a>",
|
||||
img_delete + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssimport_remove&rss_import_id={$data['rss_import_id']}'>Remove RSS Articles...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssimport_recache&rss_import_id={$data['rss_import_id']}'>Update RSS Import...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=rssimport_validate&rss_id={$data['rss_import_id']}'>Validate RSS Stream...</a>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
@@ -0,0 +1,598 @@
|
||||
<?php
|
||||
|
||||
class cp_skin_security {
|
||||
|
||||
var $ipsclass;
|
||||
|
||||
//===========================================================================
|
||||
// DIAGNOSTICS
|
||||
//===========================================================================
|
||||
function list_admin_overview($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Members With ACP Access</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='30%'>Name</td>
|
||||
<td class='tablesubheader' width='30%'>Primary Group</td>
|
||||
<td class='tablesubheader' width='30%'>Secondary Groups</td>
|
||||
<td class='tablesubheader' width='30%'>IP Address</td>
|
||||
<td class='tablesubheader' width='30%'>Email Address</td>
|
||||
<td class='tablesubheader' width='30%'>Posts</td>
|
||||
<td class='tablesubheader' width='30%'> </td>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// DIAGNOSTICS
|
||||
//===========================================================================
|
||||
function list_admin_row( $member ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<strong>{$member['members_display_name']}</strong>
|
||||
<div class='desctext'>{$member['_joined']}</div>
|
||||
</td>
|
||||
<td class='tablerow1'>
|
||||
{$member['_mgroup']}
|
||||
</td>
|
||||
<td class='tablerow2'>
|
||||
{$member['_mgroup_others']}
|
||||
</td>
|
||||
<td class='tablerow1'>
|
||||
<div class='desctext'>{$member['ip_address']}</div>
|
||||
</td>
|
||||
<td class='tablerow2'>
|
||||
{$member['email']}
|
||||
</td>
|
||||
<td class='tablerow2'>
|
||||
{$member['posts']}
|
||||
</td>
|
||||
<td class='tablerow1'>
|
||||
<a href='{$this->ipsclass->base_url}&section=content&act=mem&code=doform&mid={$member['id']}'>Edit</a>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// DIAGNOSTICS
|
||||
//===========================================================================
|
||||
function deep_scan_bad_files_wrapper($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=deep_scan' method='POST'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<div style='padding-bottom:10px'>Show:
|
||||
<select name='filter'>
|
||||
<option value='all'>Show All</option>
|
||||
<option value='score-5'>Score 5 or more</option>
|
||||
<option value='score-6'>Score 6 or more</option>
|
||||
<option value='score-7'>Score 7 or more</option>
|
||||
<option value='score-8'>Score 8 or more</option>
|
||||
<option value='score-9'>Score 9 or more</option>
|
||||
<option value='large'>Files 55k or larger</option>
|
||||
<option value='recent'>Modified in the past 30 days</option>
|
||||
</select>
|
||||
<input type='submit' value=' Filter ' />
|
||||
</div>
|
||||
</form>
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Executable Files</div>
|
||||
<div class='tablesubheader' style='padding-right:0px'>
|
||||
<div align='right' style='padding-right:10px'>
|
||||
(File Size) Last Modified
|
||||
</div>
|
||||
</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
$content
|
||||
</table>
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// DIAGNOSTICS
|
||||
//===========================================================================
|
||||
function deep_scan_bad_files_row( $file_path, $file_name, $data ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<div style='float:right'>
|
||||
<div class='desctext'>({$data['human']}k) {$data['mtime']}</div>
|
||||
</div>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/folder_components/security/bad_file.png' border='0' alt='-' class='ipd' />
|
||||
<span style='border:1px solid #555;background-color:#FFFFFF'>
|
||||
<span style='width:{$data['left_width']}px;background-color:{$data['color']}'>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/blank.gif' height='20' width='{$data['left_width']}' alt='' />
|
||||
</span>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/blank.gif' height='20' width='{$data['right_width']}' alt='' />
|
||||
</span>
|
||||
<span class='desctext'>[ {$data['score']} ]</span> <a target='_blank' href='{$this->ipsclass->vars['board_url']}/{$file_path}'>$file_name</a>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// DIAGNOSTICS
|
||||
//===========================================================================
|
||||
function anti_virus_checked_wrapper($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<br />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Uauthorized File Checked Folders</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
$content
|
||||
</table>
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// DIAGNOSTICS
|
||||
//===========================================================================
|
||||
function anti_virus_checked_row( $file_path ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/folder_components/security/checked_folder.png' border='0' alt='-' class='ipd' />
|
||||
$file_path
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// DIAGNOSTICS
|
||||
//===========================================================================
|
||||
function anti_virus_bad_files_wrapper($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Suspicious Files</div>
|
||||
<div class='tablesubheader' style='padding-right:0px'>
|
||||
<div align='right' style='padding-right:10px'>
|
||||
(File Size) Last Modified
|
||||
</div>
|
||||
</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
$content
|
||||
</table>
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// DIAGNOSTICS
|
||||
//===========================================================================
|
||||
function anti_virus_bad_files_row( $file_path, $file_name, $data ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<div style='float:right'>
|
||||
<div class='desctext'>({$data['human']}k) {$data['mtime']}</div>
|
||||
</div>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/folder_components/security/bad_file.png' border='0' alt='-' class='ipd' />
|
||||
<span style='border:1px solid #555;background-color:#FFFFFF'>
|
||||
<span style='width:{$data['left_width']}px;background-color:{$data['color']}'>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/blank.gif' height='20' width='{$data['left_width']}' alt='' />
|
||||
</span>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/blank.gif' height='20' width='{$data['right_width']}' alt='' />
|
||||
</span>
|
||||
<span class='desctext'>[ {$data['score']} ]</span> <a target='_blank' href='{$this->ipsclass->vars['board_url']}/{$file_path}'>$file_name</a>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// OVERVIEW
|
||||
//===========================================================================
|
||||
function security_overview( $content ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type="text/javascript" src='{$this->ipsclass->vars['board_url']}/skin_acp/clientscripts/ipd_form_functions.js'></script>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
// INIT FORM FUNCTIONS stuff
|
||||
var formfunctions = new form_functions();
|
||||
//]]>
|
||||
</script>
|
||||
<form id='mainform'>
|
||||
<div class='information-box'>
|
||||
<table cellpadding='0' cellspacing='0'>
|
||||
<tr>
|
||||
<td width='1%' valign='top'>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/folder_components/security/id_card_ok.png' alt='information' />
|
||||
</td>
|
||||
<td width='100%' valig='top' style='padding-left:10px'>
|
||||
<h2 style='margin:0px'>Invision Power Board Security Center</h2>
|
||||
<p style='margin:0px'>
|
||||
<br />
|
||||
The Invision Power Board Security Center is a centralized repository of security tools and settings.
|
||||
<br />
|
||||
Your IPB installation is checked and suggestions are made on how to improve the security of your board.
|
||||
<br />
|
||||
<br />
|
||||
{$content['bad']}
|
||||
{$content['ok']}
|
||||
{$content['good']}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
// Init form functions, grab stuff
|
||||
formfunctions.init();
|
||||
//]]>
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// BAD
|
||||
//===========================================================================
|
||||
function security_item_bad( $title, $desc, $button, $url, $key ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='bad-box' style='margin-bottom:10px'>
|
||||
<table cellpadding='0' cellspacing='0'>
|
||||
<tr>
|
||||
<td width='1%' valign='middle'>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/folder_components/security/lock_error.png' alt='information' />
|
||||
</td>
|
||||
<td width='71%' valig='top' style='margin-left:10px'>
|
||||
<div style='font-size:14px;font-weight:bold;border-bottom:1px solid #000;padding-bottom:5px;margin-bottom:5px;margin-right:5px'>{$title}</div>
|
||||
<div>$desc</div>
|
||||
</td>
|
||||
<td width='18%' valign='middle'>
|
||||
<div class='formbutton-wrap'>
|
||||
<div id='button-link-{$key}'><img src='{$this->ipsclass->skin_acp_url}/images/folder_components/security/run_tool.png' border='0' alt='Run' title='Run' class='ipd' /> $button</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
formfunctions.add_link_event( 'button-link-{$key}', '{$this->ipsclass->base_url}&$url' );
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// GOOD
|
||||
//===========================================================================
|
||||
function security_item_good( $title, $desc, $button, $url, $key ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='good-box' style='margin-bottom:10px'>
|
||||
<table cellpadding='0' cellspacing='0'>
|
||||
<tr>
|
||||
<td width='1%' valign='middle'>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/folder_components/security/lock_ok.png' alt='information' />
|
||||
</td>
|
||||
<td width='71%' valig='top' style='margin-left:10px'>
|
||||
<div style='font-size:14px;font-weight:bold;border-bottom:1px solid #000;padding-bottom:5px;margin-bottom:5px;margin-right:5px'>{$title}</div>
|
||||
<div>$desc</div>
|
||||
</td>
|
||||
<td width='18%' valign='middle'>
|
||||
<div class='formbutton-wrap'>
|
||||
<div id='button-link-{$key}'><img src='{$this->ipsclass->skin_acp_url}/images/folder_components/security/run_tool.png' border='0' alt='Run' title='Run' class='ipd' /> $button</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
formfunctions.add_link_event( 'button-link-{$key}', '{$this->ipsclass->base_url}&$url' );
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// OK
|
||||
//===========================================================================
|
||||
function security_item_ok( $title, $desc, $button, $url, $key ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='ok-box' style='margin-bottom:10px'>
|
||||
<table cellpadding='0' cellspacing='0'>
|
||||
<tr>
|
||||
<td width='1%' valign='middle'>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/folder_components/security/lock_information.png' alt='information' />
|
||||
</td>
|
||||
<td width='71%' valig='top' style='margin-left:10px'>
|
||||
<div style='font-size:14px;font-weight:bold;border-bottom:1px solid #000;padding-bottom:5px;margin-bottom:5px;margin-right:5px'>{$title}</div>
|
||||
<div>$desc</div>
|
||||
</td>
|
||||
<td width='18%' valign='middle'>
|
||||
<div class='formbutton-wrap'>
|
||||
<div id='button-link-{$key}'><img src='{$this->ipsclass->skin_acp_url}/images/folder_components/security/run_tool.png' border='0' alt='Run' title='Run' class='ipd' /> $button</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
formfunctions.add_link_event( 'button-link-{$key}', '{$this->ipsclass->base_url}&$url' );
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// HTaccess form
|
||||
//===========================================================================
|
||||
function htaccess_form() {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<form id='mainform' method='post' action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=acphtaccess_do'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<div class='information-box'>
|
||||
<table cellpadding='0' cellspacing='0'>
|
||||
<tr>
|
||||
<td width='1%' valign='top'>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/folder_components/security/id_card_ok.png' alt='information' />
|
||||
</td>
|
||||
<td width='100%' valig='top' style='padding-left:10px'>
|
||||
<h2 style='margin:0px'>ACP .htaccess protection</h2>
|
||||
<p style='margin:0px'>
|
||||
<br />
|
||||
Invision Power Board can write .htaccess protection into your admin directory.
|
||||
<br />
|
||||
<br />
|
||||
<strong>Please note</strong>
|
||||
<br />
|
||||
Using this tool will overwrite any current protection in your admin directory. You will also be required to enter the username and password immediately after saving.
|
||||
<br />
|
||||
<br />
|
||||
<fieldset>
|
||||
<legend><strong>Username</strong></legend>
|
||||
<input type='text' name='name' size='40' value='{$_POST['name']}' />
|
||||
</fieldset>
|
||||
<br />
|
||||
<fieldset>
|
||||
<legend><strong>Password</strong></legend>
|
||||
<input type='password' name='pass' size='40' value='{$_POST['pass']}' />
|
||||
</fieldset>
|
||||
<br />
|
||||
<input type='submit' value=' Proceed ' />
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// HTaccess data
|
||||
//===========================================================================
|
||||
function htaccess_data( $htaccess_pw, $htaccess_auth ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<form id='mainform'>
|
||||
<div class='information-box'>
|
||||
<table cellpadding='0' cellspacing='0'>
|
||||
<tr>
|
||||
<td width='1%' valign='top'>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/folder_components/security/id_card_ok.png' alt='information' />
|
||||
</td>
|
||||
<td width='100%' valig='top' style='padding-left:10px'>
|
||||
<h2 style='margin:0px'>ACP .htaccess protection</h2>
|
||||
<p style='margin:0px'>
|
||||
<br />
|
||||
<strong>Invision Power Board is unable to write into your admin directory</strong>
|
||||
<br />
|
||||
<br />
|
||||
Please create a file called ".htpasswd" and copy the contents below into it. Once saved, upload this new file into your 'admin' folder.
|
||||
<br />
|
||||
<textarea rows='5' cols='70' style='width:98%;height:100px'>$htaccess_pw</textarea>
|
||||
<br />
|
||||
<br />
|
||||
Please create a file called ".htaccess" and copy the contents below into it. Once saved, upload this new file into your 'admin' folder.
|
||||
<br />
|
||||
<textarea rows='5' cols='70' style='width:98%;height:100px'>$htaccess_auth</textarea>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Rename the admin directory
|
||||
//===========================================================================
|
||||
function rename_admin_dir() {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<form id='mainform'>
|
||||
<div class='information-box'>
|
||||
<table cellpadding='0' cellspacing='0'>
|
||||
<tr>
|
||||
<td width='1%' valign='top'>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/folder_components/security/id_card_ok.png' alt='information' />
|
||||
</td>
|
||||
<td width='100%' valig='top' style='padding-left:10px'>
|
||||
<h2 style='margin:0px'>Renaming the ACP directory</h2>
|
||||
<p style='margin:0px'>
|
||||
<br />
|
||||
Invision Power Board has a dedicated directory for the administration center. To further enhance security, you can rename this ACP directory.
|
||||
<br />
|
||||
<br />
|
||||
<strong>Step 1:</strong>
|
||||
<br />
|
||||
First, you'll need to physically rename the directory. Connect to your server via FTP and then browse to your IPB directory (this is the one that has your
|
||||
index.php file in it).
|
||||
<br/ >
|
||||
Locate the 'admin' directory. It has just one file inside called 'index.php'. Choose 'rename' from your FTP client menu and rename it. For the purposes of this
|
||||
tutorial, we'll rename it 'admin_secret'.
|
||||
<br />
|
||||
<br />
|
||||
<strong>Step 2:</strong>
|
||||
Locate the 'init.php' file. This is in your IPB root directory. Download it and open it in a text editor.
|
||||
<br />Near the top of this file, you'll see:
|
||||
<br />
|
||||
<pre>//-----------------------------------------------
|
||||
// USER CONFIGURABLE ELEMENTS
|
||||
//-----------------------------------------------
|
||||
/**
|
||||
* ROOT PATH
|
||||
*
|
||||
* If __FILE__ is not supported, try ./ and
|
||||
* turn off "USE_SHUTDOWN" or manually add in
|
||||
* the full path
|
||||
* @since 2.0.0.2005-01-01
|
||||
*/
|
||||
define( 'ROOT_PATH', dirname( __FILE__ ) ."/" );
|
||||
|
||||
<strong>/**
|
||||
* Directory name for the admin folder
|
||||
* @since 2.2.0.2006-06-30
|
||||
*/
|
||||
define( 'IPB_ACP_DIRECTORY', 'admin' );</strong></pre>
|
||||
|
||||
<br />
|
||||
Change the line: <pre>define( 'IPB_ACP_DIRECTORY', '<strong>admin</strong>' );</pre> to <pre>define( 'IPB_ACP_DIRECTORY', '<strong>admin_secret</strong>' );</pre>
|
||||
<br />
|
||||
<br />
|
||||
<strong>Your ACP directory has now been renamed.</strong>
|
||||
<br />Remember to remove the ACP link from your board using the Security Center.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,99 @@
|
||||
<?php
|
||||
|
||||
class cp_skin_settings {
|
||||
|
||||
var $ipsclass;
|
||||
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function acp_last_logins_row( $r ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1' width='1' valign='middle'>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/folder_components/index/user.png' border='0' alt='-' class='ipd' />
|
||||
</td>
|
||||
<td class='tablerow1'> <strong>{$r['admin_username']}</strong></td>
|
||||
<td class='tablerow2'><div class='desctext'>IP: {$r['admin_ip_address']}</div></td>
|
||||
<td class='tablerow2' align='center'>{$r['_admin_time']}</td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_acp_url}/images/{$r['_admin_img']}' border='0' alt='-' class='ipd' /></td>
|
||||
<td class='tablerow1' width='1' valign='middle'>
|
||||
<a href='#' onclick="return ipsclass.pop_up_window('{$this->ipsclass->base_url}section=admin&act=loginlog&code=view_detail&detail={$r['admin_id']}', 400, 400)" title='View Details'><img src='{$this->ipsclass->skin_acp_url}/images/folder_components/index/view.png' border='0' alt='-' class='ipd' /></a>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function settings_check_differences( $original_missing, $original_new ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Setting XML Differences</div>
|
||||
<table width='100%' cellpadding='0' cellspacing='0'>
|
||||
<tr>
|
||||
<td width='50%' valign='top' class='tablerow2'>
|
||||
<div class='tablesubheader'>Settings not in the DB Settings</div>
|
||||
<table width='100%' cellpadding='4' cellspacing='0'>
|
||||
EOF;
|
||||
if ( is_array( $original_missing ) )
|
||||
{
|
||||
foreach( $original_missing as $key => $data )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>{$data['conf_key']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
</table>
|
||||
</td>
|
||||
<td width='50%' valign='top' class='tablerow2'>
|
||||
<div class='tablesubheader'>Settings not in the uploaded XML file</div>
|
||||
<table width='100%' cellpadding='4' cellspacing='0'>
|
||||
EOF;
|
||||
if ( is_array( $original_new ) )
|
||||
{
|
||||
foreach( $original_new as $key => $data )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>{$data['conf_key']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
</table>
|
||||
</td>
|
||||
</table>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -15,12 +15,12 @@ $IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>:Æóðíàë âûïîëíåííûõ çàäà÷</div>
|
||||
<div class='tableheaderalt'>Task Manager Logs</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader'>Çàäà÷à</td>
|
||||
<td class='tablesubheader'>Âðåìÿ çàïóñêà</td>
|
||||
<td class='tablesubheader'>Èíôîðìàöèÿ</td>
|
||||
<td class='tablesubheader'>Task Run</td>
|
||||
<td class='tablesubheader'>Date Run</td>
|
||||
<td class='tablesubheader'>Log Info</td>
|
||||
</tr>
|
||||
$last5
|
||||
</table>
|
||||
@@ -55,6 +55,7 @@ $IPBHTML .= <<<EOF
|
||||
<br />
|
||||
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&do=task_log_show' method='post'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>View Task Manager Logs</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
@@ -67,7 +68,7 @@ $IPBHTML .= <<<EOF
|
||||
<td class='tablerow2'>{$form['task_count']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' class='tablesubheader' align='center'><input class='realbutton' type='submit' value='View Logs' /></td>
|
||||
<td colspan='2' class='tablefooter' align='center'><input class='realbutton' type='submit' value='View Logs' /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@@ -76,6 +77,7 @@ $IPBHTML .= <<<EOF
|
||||
<br />
|
||||
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&do=task_log_delete' method='post'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Delete Task Manager Logs</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
@@ -88,7 +90,7 @@ $IPBHTML .= <<<EOF
|
||||
<td class='tablerow2'>{$form['task_prune']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' class='tablesubheader' align='center'><input class='realbutton' type='submit' value='DELETE Logs' /></td>
|
||||
<td colspan='2' class='tablefooter' align='center'><input class='realbutton' type='submit' value='DELETE Logs' /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@@ -135,13 +137,13 @@ function updatepreview()
|
||||
var formobj = document.adminform;
|
||||
var dd_wday = new Array();
|
||||
|
||||
dd_wday[0] = 'Âîñêðåñåíüå';
|
||||
dd_wday[1] = 'Ïîíåäåëüíèê';
|
||||
dd_wday[2] = 'Âòîðíèê';
|
||||
dd_wday[3] = 'Ñðåäà';
|
||||
dd_wday[4] = '×åòâåðã';
|
||||
dd_wday[5] = 'Ïÿòíèöà';
|
||||
dd_wday[6] = 'Ñóááîòà';
|
||||
dd_wday[0] = 'Sunday';
|
||||
dd_wday[1] = 'Monday';
|
||||
dd_wday[2] = 'Tuesday';
|
||||
dd_wday[3] = 'Wednesday';
|
||||
dd_wday[4] = 'Thursday';
|
||||
dd_wday[5] = 'Friday';
|
||||
dd_wday[6] = 'Saturday';
|
||||
|
||||
var output = '';
|
||||
|
||||
@@ -162,17 +164,17 @@ function updatepreview()
|
||||
|
||||
if ( chosen_mday != -1 )
|
||||
{
|
||||
output_day = +chosen_mday+' ÷èñëà.';
|
||||
output_day = 'On day '+chosen_mday+'.';
|
||||
}
|
||||
|
||||
if ( chosen_mday == -1 && chosen_wday != -1 )
|
||||
{
|
||||
output_day = 'Â ' + dd_wday[ chosen_wday ]+'.';
|
||||
output_day = 'On ' + dd_wday[ chosen_wday ]+'.';
|
||||
}
|
||||
|
||||
if ( chosen_hour != -1 && chosen_min != -1 )
|
||||
{
|
||||
output_hour = 'Â '+chosen_hour+':'+formatnumber(chosen_min)+'.';
|
||||
output_hour = 'At '+chosen_hour+':'+formatnumber(chosen_min)+'.';
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -180,7 +182,7 @@ function updatepreview()
|
||||
{
|
||||
if ( chosen_min == 0 )
|
||||
{
|
||||
output_hour = 'Êàæäûé ÷àñ';
|
||||
output_hour = 'On every hour';
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -188,16 +190,16 @@ function updatepreview()
|
||||
{
|
||||
if ( chosen_min == -1 )
|
||||
{
|
||||
output_min = 'Êàæäóþ ìèíóòó';
|
||||
output_min = 'Every minute';
|
||||
}
|
||||
else
|
||||
{
|
||||
output_min = 'Êàæäûå '+chosen_min+' ìèíóò.';
|
||||
output_min = 'Every '+chosen_min+' minutes.';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
output_min = ' '+formatnumber(chosen_min)+' ìèíóò êàæäîãî ÷àñà';
|
||||
output_min = 'At '+formatnumber(chosen_min)+' minutes past the first available hour';
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -205,11 +207,11 @@ function updatepreview()
|
||||
{
|
||||
if ( output_day != '' )
|
||||
{
|
||||
output_hour = 'Â ' + chosen_hour + ':00';
|
||||
output_hour = 'At ' + chosen_hour + ':00';
|
||||
}
|
||||
else
|
||||
{
|
||||
output_hour = 'Êàæäûå ' + chosen_hour + ' ÷àñîâ';
|
||||
output_hour = 'Every ' + chosen_hour + ' hours';
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -236,6 +238,7 @@ function formatnumber(num)
|
||||
}
|
||||
</script>
|
||||
<form name='adminform' action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&do=$formbit&task_id={$task['task_id']}&type=$type' method='post'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<input type='hidden' name='task_cronkey' value='{$task['task_cronkey']}' />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>
|
||||
@@ -244,36 +247,36 @@ function formatnumber(num)
|
||||
</div>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Íàçâàíèå çàäà÷è</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Task Title</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['task_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Êðàòêîå îïèñàíèå çàäà÷è</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Task Short Description</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['task_description']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>PHP ôàéë çàäà÷è äëÿ çàïóñêà</strong><div class='desctext'>Ýòî PHP ôàéë, êîòîðûé áóäåò çàïóñêàòüñÿ ïðè çàïóñêå çàäà÷è.</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Task PHP File To Run</strong><div class='desctext'>This is the PHP file that is run when the task is run.</div></td>
|
||||
<td width='60%' class='tablerow2'>./sources/tasks/ {$form['task_file']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1' colspan='2'>
|
||||
<fieldset>
|
||||
<legend><strong>Îïöèè âðåìåíè</strong></legend>
|
||||
<legend><strong>Time Options</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âðåìÿ çàäà÷è: ìèíóòû</strong><div class='desctext'>Âûáåðèòå 'Êàæäóþ ìèíóòó' äëÿ çàïóñêà êàæäóþ ìèíóòó èëè òî÷íîå çíà÷åíèå ìèíóòû â ÷àñó</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Task Time: Minutes</strong><div class='desctext'>Choose 'Every Minute' to run each minute or a number for a specific minute of an hour</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['task_minute']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âðåìÿ çàäà÷è: ÷àñû</strong><div class='desctext'>Âûáåðèòå 'Êàæäûé ÷àñ' äëÿ çàïóñêà êàæäûé ÷àñ èëè òî÷íîå çíà÷åíèå ÷àñà â äåíü</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Task Time: Hours</strong><div class='desctext'>Choose 'Every Hour' to run each hour or a number for a specific hour of a day</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['task_hour']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âðåìÿ çàäà÷è: äåíü íåäåëè</strong><div class='desctext'>Âûáåðèòå 'Êàæäûé äåíü íåäåëè' äëÿ çàïóñêà êàæäûé äåíü íåäåëè èëè ïðîñòî óêàæèòå äåíü íåäåëè</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Task Time: Week Day</strong><div class='desctext'>Choose 'Every Day' to run each day or a week day for a specific week day of a month</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['task_week_day']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âðåìÿ çàäà÷è: äåíü ìåñÿöà</strong><div class='desctext'>Âûáåðèòå 'Êàæäûé äåíü ìåñÿöà' äëÿ çàïóñêà êàæäûé äåíü èëè òî÷íîå ÷èñëî</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Task Time: Month Day</strong><div class='desctext'>Choose 'Every Day' to run each day or a month day for a specific month day of a month</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['task_month_day']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -281,11 +284,11 @@ function formatnumber(num)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âêëþ÷èòü çàïèñü æóðíàëà äåéñòâèé</strong><div class='desctext'>Ïðè âêëþ÷åííîé îïöèè âñå âûïîëíåíèÿ çàäà÷ áóäóò çàïèñàíû â áàçó äàííûõ, íå ðåêîìåíäóåòñÿ äëÿ îñíîâíûõ çàäà÷, âûïîëíÿåìûõ êàæäûå 5-10 ìèíóò.</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Enable Task Logging</strong><div class='desctext'>Will write to the task log each time the task is run, not recommended for regular tasks run every few minutes.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['task_log']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âêëþ÷èòü çàäà÷ó?</strong><div class='desctext'>Åñëè âû èñïîëüçóåòå CRON, âû äîëæíû îòêëþ÷èòü âûçîâ ýòîé çàäà÷è çäåñü.</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Enable Task?</strong><div class='desctext'>If you are using CRON, you might wish to disable this task from the internal manager.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['task_enabled']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
@@ -294,11 +297,11 @@ if ( $form['task_key'] != "" )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Êëþ÷ çàäà÷è</strong><div class='desctext'>Ýòà îïöèÿ èñïîëüçóåòñÿ äëÿ âûçîâà çàäà÷è òîëüêî ïðè óêàçàíèè ID</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Task Key</strong><div class='desctext'>This is used to call a task where the ID of the task might change</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['task_key']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Áåçîïàñíûé ðåæèì</strong><div class='desctext'>Åñëè âûáðàíà äàííàÿ îïöèÿ, ýòà çàäà÷à íå ñìîæåò áûòü èçìåíåíà àäìèíèñòðàòîðàìè</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Task Safe Mode</strong><div class='desctext'>If set to 'yes', this will not be editable by admins</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['task_safemode']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
@@ -324,25 +327,26 @@ $IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Óñòàíîâëåííûå çàäà÷è</div>
|
||||
<div class='tableheaderalt'>Scheduled Tasks</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='40%'>Íàçâàíèå</td>
|
||||
<td class='tablesubheader' width='25%'>Ñëåäóþùèé çàïóñê</td>
|
||||
<td class='tablesubheader' width='5%'>Ìèíóòà</td>
|
||||
<td class='tablesubheader' width='5%'>×àñ</td>
|
||||
<td class='tablesubheader' width='5%'>Äåíü ìåñÿöà</td>
|
||||
<td class='tablesubheader' width='5%'>Äåíü íåäåëè</td>
|
||||
<td class='tablesubheader' width='1%'>Äåéñòâèÿ</td>
|
||||
<td class='tablesubheader' width='40%'>Title</td>
|
||||
<td class='tablesubheader' width='25%'>Next Run</td>
|
||||
<td class='tablesubheader' width='5%'>Min</td>
|
||||
<td class='tablesubheader' width='5%'>Hour</td>
|
||||
<td class='tablesubheader' width='5%'>MDay</td>
|
||||
<td class='tablesubheader' width='5%'>WDay</td>
|
||||
<td class='tablesubheader' width='1%'>Options</td>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
<div align='center' class='tablesubheader'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&do=task_add'>Äîáàâèòü íîâóþ çàäà÷ó</a></div>
|
||||
<div align='center' class='tablefooter'><div class='fauxbutton-wrapper'><span class='fauxbutton'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&do=task_add'>Add New Task</a></span></div></div>
|
||||
</div>
|
||||
<br />
|
||||
<div align='center' class='desctext'><em>Âñå âðåìÿ â GMT. GMT âðåìÿ ñåé÷àñ: $date</em></div>
|
||||
<div align='center' class='desctext'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&do=task_rebuild_xml'>Rebuild tasks from tasks.xml</a></em></div>
|
||||
<br />
|
||||
<div align='center' class='desctext'><em>All times GMT. GMT time now is: $date</em></div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
@@ -367,7 +371,7 @@ EOF;
|
||||
if ( $row['task_locked'] > 0 )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&do=task_unlock&task_id={$row['task_id']}'><img src='{$this->ipsclass->skin_url}/images/lock_close.gif' border='0' alt='Ðàçáëîêèðîâàòü' class='ipd' /></a>
|
||||
<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&do=task_unlock&task_id={$row['task_id']}'><img src='{$this->ipsclass->skin_acp_url}/images/lock_close.gif' border='0' alt='Unlock' class='ipd' /></a>
|
||||
EOF;
|
||||
}//endif
|
||||
$IPBHTML .= <<<EOF
|
||||
@@ -378,8 +382,8 @@ $IPBHTML .= <<<EOF
|
||||
</div>
|
||||
</td>
|
||||
<td width='1%' nowrap='nowrap'>
|
||||
<a href='#' onclick="toggleview('pop{$row['task_id']}');return false;" title='Ïîêàçàòü âûçîâ êîìàíäû CURL èç CRON'><img src='{$this->ipsclass->skin_url}/images/task_cron.gif' border='0' alt='Cron' /></a>
|
||||
<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&do=task_run_now&task_id={$row['task_id']}' title='Âûïîëíèòü çàäà÷ó ñåé÷àñ (ID: {$row['task_id']})'><img src='{$this->ipsclass->skin_url}/images/{$row['_image']}' border='0' alt='Çàïóñòèòü' /></a>
|
||||
<a href='#' onclick="toggleview('pop{$row['task_id']}');return false;" title='Show CURL to use in a cron'><img src='{$this->ipsclass->skin_acp_url}/images/task_cron.gif' border='0' alt='Cron' /></a>
|
||||
<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&do=task_run_now&task_id={$row['task_id']}' title='Run task now (id: {$row['task_id']})'><img src='{$this->ipsclass->skin_acp_url}/images/{$row['_image']}' border='0' alt='Run' /></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -389,14 +393,14 @@ $IPBHTML .= <<<EOF
|
||||
<td class='tablerow2'>{$row['task_hour']}</td>
|
||||
<td class='tablerow2'>{$row['task_month_day']}</td>
|
||||
<td class='tablerow2'>{$row['task_week_day']}</td>
|
||||
<td class='tablerow1'><img id="menu{$row['task_id']}" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' /></td>
|
||||
<td class='tablerow1'><img id="menu{$row['task_id']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$row['task_id']}",
|
||||
new Array( img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&do=task_edit&task_id={$row['task_id']}'>Èçìåíèòü çàäà÷ó...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&do=task_unlock&task_id={$row['task_id']}'>Ðàçáëîêèðîâàòü çàäà÷ó...</a>",
|
||||
img_item + " <a href='#' onclick='confirm_action(\"{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&do=task_delete&task_id={$row['task_id']}\"); return false;'>Óäàëèòü çàäà÷ó...</a>"
|
||||
new Array( img_edit + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&do=task_edit&task_id={$row['task_id']}'>Edit Task...</a>",
|
||||
img_password + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&do=task_unlock&task_id={$row['task_id']}'>Unlock Task...</a>",
|
||||
img_delete + " <a href='#' onclick='confirm_action(\"{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&do=task_delete&task_id={$row['task_id']}\"); return false;'>Delete Task...</a>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
@@ -14,7 +14,7 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<img src='{$this->ipsclass->skin_url}/images/blank.gif' width='12' height='12' border='0' style='vertical-align:middle' />
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/blank.gif' width='12' height='12' border='0' style='vertical-align:middle' />
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
@@ -30,7 +30,7 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=component_move&move=up&com_id={$com_id}' title='Ïîäíÿòü'><img src='{$this->ipsclass->skin_url}/images/arrow_up.png' width='12' height='12' border='0' style='vertical-align:middle' /></a>
|
||||
<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=component_move&move=up&com_id={$com_id}' title='Move up in position'><img src='{$this->ipsclass->skin_acp_url}/images/arrow_up.png' width='12' height='12' border='0' style='vertical-align:middle' /></a>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
@@ -46,7 +46,7 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=component_move&move=down&com_id={$com_id}' title='Îïóñòèòü'><img src='{$this->ipsclass->skin_url}/images/arrow_down.png' width='12' height='12' border='0' style='vertical-align:middle' /></a>
|
||||
<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=component_move&move=down&com_id={$com_id}' title='Move down in position'><img src='{$this->ipsclass->skin_acp_url}/images/arrow_down.png' width='12' height='12' border='0' style='vertical-align:middle' /></a>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
@@ -62,7 +62,7 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_url}/acp_components.js'></script>
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_acp_url}/acp_components.js'></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
var comp = new components();
|
||||
@@ -93,42 +93,43 @@ $IPBHTML .= <<<EOF
|
||||
};
|
||||
|
||||
// HTML elements
|
||||
var html_add_menu_row = "<br />[<a href='#' title='Äîáàâèòü íîâûé ïóíêò ìåíþ' style='color:green;font-weight:bold' onclick='return comp.add_menu_row()'>Äîáàâèòü íîâûé ïóíêò ìåíþ</a>]";
|
||||
var html_box_text = "<tr><td width='20%'>Òåêñò ìåíþ</td><td><input type='text' id='menu_text_<%1>' name='menu_text[<%1>]' size='30' class='forminput' value='<%2>' /></td></tr>";
|
||||
var html_box_url = "<tr><td width='20%'>URL ìåíþ</td><td><input type='text' id='menu_url_<%1>' name='menu_url[<%1>]' size='30' class='forminput' value='<%2>' /></td></tr>";
|
||||
var html_box_redirect = "<tr><td width='20%'>Ïåðåàäðåñàöèÿ?</td><td><input type='checkbox' id='menu_redirect_<%1>' name='menu_redirect[<%1>]' class='forminput' value='1' /></td></tr>";
|
||||
var html_box_permbit = "<tr><td width='20%'>Íàçâàíèå ïåðåìåííîé</td><td><input type='text' id='menu_permbit_<%1>' name='menu_permbit[<%1>]' size='30' class='forminput' value='<%2>' /></td></tr>";
|
||||
var html_box_permlang = "<tr><td width='20%'>Òåêñò ïåðåìåííîé</td><td><input type='text' id='menu_permlang_<%1>' name='menu_permlang[<%1>]' size='30' class='forminput' value='<%2>' /></td></tr>";
|
||||
var html_menu_wrap = "<div><fieldset style='padding:4px'><table cellpadding='2' cellspacing='0' width='100%'><tr><%1></tr></table>[<a href='#' title='Óäàëèòü ÿ÷åéêó ìåíþ' style='color:red;font-weight:bold' onclick='return comp.remove_menu_row("+'"'+'<%2>'+'"'+")'>Óäàëèòü ÿ÷åéêó ìåíþ</a>]</fieldset></div>";
|
||||
var html_add_menu_row = "<br />[<a href='#' title='Add new menu item' style='color:green;font-weight:bold' onclick='return comp.add_menu_row()'>Add new menu item</a>]";
|
||||
var html_box_text = "<tr><td width='20%'>Menu Text</td><td><input type='text' id='menu_text_<%1>' name='menu_text[<%1>]' size='30' class='forminput' value='<%2>' /></td></tr>";
|
||||
var html_box_url = "<tr><td width='20%'>Menu URL</td><td><input type='text' id='menu_url_<%1>' name='menu_url[<%1>]' size='30' class='forminput' value='<%2>' /></td></tr>";
|
||||
var html_box_redirect = "<tr><td width='20%'>Menu Redirect?</td><td><input type='checkbox' id='menu_redirect_<%1>' name='menu_redirect[<%1>]' class='forminput' value='1' /></td></tr>";
|
||||
var html_box_permbit = "<tr><td width='20%'>Menu Perm Bit</td><td><input type='text' id='menu_permbit_<%1>' name='menu_permbit[<%1>]' size='30' class='forminput' value='<%2>' /></td></tr>";
|
||||
var html_box_permlang = "<tr><td width='20%'>Menu Perm Lang</td><td><input type='text' id='menu_permlang_<%1>' name='menu_permlang[<%1>]' size='30' class='forminput' value='<%2>' /></td></tr>";
|
||||
var html_menu_wrap = "<div><fieldset style='padding:4px'><table cellpadding='2' cellspacing='0' width='100%'><tr><%1></tr></table>[<a href='#' title='Remove menu row' style='color:red;font-weight:bold' onclick='return comp.remove_menu_row("+'"'+'<%2>'+'"'+")'>Remove Menu Row</a>]</fieldset></div>";
|
||||
</script>
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=$formcode&com_id={$component['com_id']}' method='post'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>$title</div>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Íàçâàíèå êîìïîíåíòà</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Component Title</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['com_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âåðñèÿ êîìïîíåíòà</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Component Version</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['com_version']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Îïèñàíèå êîìïîíåíòà</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Component Brief Description</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['com_description']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Àâòîð êîìïîíåíòà</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Component Author</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['com_author']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>URL ðàçðàáîò÷èêà êîìïîíåíòà</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Component Home URL</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['com_url']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1' valign='top'><strong>Äàííûå ìåíþ êîìïîíåíòà</strong>
|
||||
<td width='40%' class='tablerow1' valign='top'><strong>Component ACP Menu Data</strong>
|
||||
<div class='desctext'>
|
||||
<a href='#' onclick='pop_win("act=quickhelp&id=comp_menu", "help", 250, 400 )'>Ïîäðîáíåå î ïàðàìåòðàõ ìåíþ</a>
|
||||
<a href='#' onclick='pop_win("act=quickhelp&id=comp_menu", "help", 250, 400 )'>More information about menu settings</a>
|
||||
</div>
|
||||
</td>
|
||||
<td width='60%' class='tablerow2'>
|
||||
@@ -140,23 +141,23 @@ $IPBHTML .= <<<EOF
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>URL êîìïîíåíòà íà ñòðàíèöàõ ôîðóìà</strong><div class='desctext'>{ipb.base_url} - áóäåò çàìåíåíî íà URL ôîðóìà (âêëþ÷àÿ ID ñåññèè, åñëè åñòü)</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Component Board Header URL</strong><div class='desctext'>{ipb.base_url} will be converted to the board's base URL (complete with session ID, etc)</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['com_url_uri']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Çàãîëîâîê êîìïîíåíòà íà ñòðàíèöàõ ôîðóìà</strong><div class='desctext'>{ipb.lang['some_words']} - áóäåò çàìåíåíî íà òåêñò èç ëýíãîâ èç ïåðåìåííîé "some_words"</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Component Board Header Title</strong><div class='desctext'>{ipb.lang['some_words']} will be converted to the lang_global's "some_words" entry</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['com_url_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âêëþ÷èòü êîìïîíåíò?</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Component Enabled</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['com_enabled']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ñåêöèÿ êîäà êîìïîíåíòà</strong><div class='desctext'>Ýòà ñåêöèÿ êîäà, êîòîðàÿ çàãðóæàåò ñîîòâåòñòâóþùèé ôàéë. Êîä êàæäîãî êîìïîíåíòà äîëæåí áûòü óíèêàëüíûì è íàçâàíèå ôàéëà äîëæíî áûòü - component_* (íå âêëþ÷àÿ .php).</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Component Section Code</strong><div class='desctext'>This is the section code which loads the appropriate file. Each component code must be unique and be exactly the same as the filename of the component_* files (minus .php).</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['com_section']}</td>
|
||||
</tr>
|
||||
<!--<tr>
|
||||
<td width='40%' class='tablerow1'><strong>PHP ôàéë êîìïîíåíòà</strong><div class='desctext'>Èìÿ ñîîòâåòñòâóþùåãî php-ôàéëà â 'sources/components_*/'</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Component PHP File</strong><div class='desctext'>The name of the PHP file in 'sources/components_*/'</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['com_filename']}<strong>.php</strong></td>
|
||||
</tr>-->
|
||||
EOF;
|
||||
@@ -165,7 +166,7 @@ if ( $form['com_safemode'] != '' )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âêëþ÷èòü áåçîïàñíûé ðåæèì? (Áóäåò íåâîçìîæíî óäàëèòü èëè ðåäàêòèðîâàòü...)</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Enable Safemode? (Cannot be deleted or edited by user)</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['com_safemode']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
@@ -193,14 +194,14 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Çàðåãèñòðèðîâàííûå êîìïîíåíòû</div>
|
||||
<div class='tableheaderalt'>Registered Components</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='30%'>Íàçâàíèå</td>
|
||||
<td class='tablesubheader' width='25%'>Àâòîð</td>
|
||||
<td class='tablesubheader' width='5%' align='center'>Ïîçèöèÿ</td>
|
||||
<td class='tablesubheader' width='5%'>Ñòàòóñ</td>
|
||||
<td class='tablesubheader' width='5%'><img id="menumainone" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' /></td>
|
||||
<td class='tablesubheader' width='30%'>Name</td>
|
||||
<td class='tablesubheader' width='25%'>Author</td>
|
||||
<td class='tablesubheader' width='5%' align='center'>Position</td>
|
||||
<td class='tablesubheader' width='5%'>Enabled</td>
|
||||
<td class='tablesubheader' width='5%'><img id="menumainone" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
@@ -208,27 +209,28 @@ $IPBHTML .= <<<EOF
|
||||
</div>
|
||||
<br />
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=component_import' enctype='multipart/form-data' method='POST'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<input type='hidden' name='MAX_FILE_SIZE' value='10000000000' />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Èìïîðòèðîâàíèå XML ôàéëà êîìïîíåíòà</div>
|
||||
<div class='tableheaderalt'>Import XML Component File</div>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>Çàãðóçèòü XML ôàéë êîìïîíåíòîâ ñ âàøåãî êîìïüþòåðà</strong><div class='desctext'>Îäèíàêîâûå çàïèñè íå áóäóò ïåðåçàïèñàíû, íî íàñòðîéêè ïî óìîë÷àíèþ áóäóò îáíîâëåíû. Ôàéë îáÿçàí íà÷èíàòüñÿ ñ 'ipd_' è çàêàí÷èâàòüñÿ íà '.xml' èëè '.xml.gz'</div></td>
|
||||
<td class='tablerow1'><strong>Upload XML components file from your computer</strong><div class='desctext'>Duplicate entries will not be overwritten but the default setting and other options will be updated. The file must begin with 'ipd_' and end with either '.xml' or '.xml.gz'</div></td>
|
||||
<td class='tablerow2'><input class='textinput' type='file' size='30' name='FILE_UPLOAD' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong><u>ÈËÈ</u> ââåäèòå èìÿ ôàéëà ñ XML íàñòðîéêàìè</strong><div class='desctext'>Ôàéë äîëæåí áûòü çàãðóæåí â êîðíåâóþ ïàïêó ôîðóìà</div></td>
|
||||
<td class='tablerow1'><strong><u>OR</u> enter the filename of the XML settings file</strong><div class='desctext'>The file must be uploaded into the root folder</div></td>
|
||||
<td class='tablerow2'><input class='textinput' type='text' size='30' name='file_location' /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div align='center' class='tablefooter'><input type='submit' class='realbutton' value='Èìïîðòèðîâàòü' /></div>
|
||||
<div align='center' class='tablefooter'><input type='submit' class='realbutton' value='Import' /></div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menumainone",
|
||||
new Array( img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=component_add'>Çàðåãèñòðèðîâàòü íîâûé êîìïîíåíò...</a>" ) );
|
||||
new Array( img_add + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=component_add'>Register New Component...</a>" ) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
@@ -250,9 +252,9 @@ $IPBHTML .= <<<EOF
|
||||
<td class='tablerow2'>{$data['_fullauthor']}</td>
|
||||
<td class='tablerow2' align='center' nowrap='nowrap'>{$data['_pos_up']} {$data['_pos_down']}</td>
|
||||
<td class='tablerow2' align='center'>
|
||||
<a href={$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=component_toggle_enabled&com_id={$data['com_id']}' title='Âêëþ÷èòü/Âûêëþ÷èòü'><img src='{$this->ipsclass->skin_url}/images/{$data['_enabled_img']}' border='0' alt='YN' class='ipd' /></a>
|
||||
<a href={$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=component_toggle_enabled&com_id={$data['com_id']}' title='Toggle Enabled/Disabled'><img src='{$this->ipsclass->skin_acp_url}/images/{$data['_enabled_img']}' border='0' alt='YN' class='ipd' /></a>
|
||||
</td>
|
||||
<td class='tablerow1'><img id="menu{$data['com_id']}" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' /></td>
|
||||
<td class='tablerow1'><img id="menu{$data['com_id']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
@@ -263,11 +265,12 @@ EOF;
|
||||
if ( ! $data['com_safemode'] OR ( $data['com_safemode'] AND IN_DEV ) )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=component_edit&com_id={$data['com_id']}'>Ðåäàêòèðîâàòü êîìïîíåíò...</a>",
|
||||
img_edit + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=component_edit&com_id={$data['com_id']}'>Edit Component...</a>",
|
||||
img_delete + " <a href='#' onclick='maincheckdelete(\"{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=component_delete&com_id={$data['com_id']}\",\"Are you sure you wish to delete?\")'>Delete Component...</a>",
|
||||
EOF;
|
||||
}//endif
|
||||
$IPBHTML .= <<<EOF
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=component_export&com_id={$data['com_id']}'>XML Ýêñïîðò êîìïîíåíòà...</a>"
|
||||
img_export + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=component_export&com_id={$data['com_id']}'>Export Component XML...</a>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
@@ -285,13 +288,13 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Ñîäåðæàíèå êåøà</div>
|
||||
<div class='tableheaderalt'>Cache Contents</div>
|
||||
<div class='tablesubheader' style='padding-right:0px;height:25px'>
|
||||
<div style='float:right;padding-right:12px'>
|
||||
<span class='desctext'>Ðàçìåð</span>
|
||||
<img id='menumainone' src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' />
|
||||
<span class='desctext'>Size</span>
|
||||
<img id='menumainone' src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' />
|
||||
</div>
|
||||
<div style='padding-top:6px'>Òèï êåøà</div>
|
||||
<div style='padding-top:6px'>Cache Type</div>
|
||||
</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
$content
|
||||
@@ -301,7 +304,7 @@ $IPBHTML .= <<<EOF
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menumainone",
|
||||
new Array( img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=cache_update_all'>Îáíîâèòü âñå êåøè...</a>" ) );
|
||||
new Array( img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=cache_update_all'>Update all caches...</a>" ) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
@@ -321,18 +324,18 @@ $IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<div style='float:left;'>
|
||||
<img src='{$this->ipsclass->skin_url}/images/menu_item.gif' class='ipd' /> <strong>{$data['cs_key']}</strong><div class='desctext'>{$data['_desc']}</div>
|
||||
<img src='{$this->ipsclass->skin_acp_url}/images/menu_item.gif' class='ipd' /> <strong>{$data['cs_key']}</strong><div class='desctext'>{$data['_desc']}</div>
|
||||
</div>
|
||||
<div align='right' style='height:18px;padding:0px 5px 2px 0px;'>
|
||||
<span class='desctext'>{$data['_size']}kb</span>
|
||||
<img id="menu{$data['cs_key']}" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' />
|
||||
<img id="menu{$data['cs_key']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' />
|
||||
</div>
|
||||
</td>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$data['cs_key']}",
|
||||
new Array( img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=cacheend&cache={$data['cs_key']}'>Îáíîâèòü êåø...</a>",
|
||||
img_item + " <a href='#' onclick='pop_win(\"{$this->ipsclass->form_code}&code=viewcache&cache={$data['cs_key']}\",\"Preview\", 400,600)'>Ïðîñìîòð êîíòåíòà êåøà...</a>"
|
||||
new Array( img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=cacheend&cache={$data['cs_key']}'>Update Cache...</a>",
|
||||
img_view + " <a href='#' onclick='pop_win(\"{$this->ipsclass->form_code}&code=viewcache&cache={$data['cs_key']}\",\"Preview\", 400,600)'>View Cache Contents...</a>"
|
||||
) );
|
||||
</script>
|
||||
</tr>
|
||||
@@ -351,14 +354,14 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Çàðåãèñòðèðîâàííûå ìåòîäû àâòîðèçàöèè</div>
|
||||
<div class='tableheaderalt'>Registered Log In Authentication Methods</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='1%'> </td>
|
||||
<td class='tablesubheader' width='90%'>Çàãîëîâîê</td>
|
||||
<td class='tablesubheader' width='5%' nowrap='nowrap'>Óñòàíîâëåíî?</td>
|
||||
<td class='tablesubheader' width='5%' nowrap='nowrap'>Âêëþ÷åíî?</td>
|
||||
<td class='tablesubheader' width='5%'><img id="menumainone" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' /></td>
|
||||
<td class='tablesubheader' width='90%'>Title</td>
|
||||
<td class='tablesubheader' width='5%' nowrap='nowrap'>Installed</td>
|
||||
<td class='tablesubheader' width='5%' nowrap='nowrap'>Enabled</td>
|
||||
<td class='tablesubheader' width='5%'><img id="menumainone" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
@@ -368,7 +371,7 @@ $IPBHTML .= <<<EOF
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menumainone",
|
||||
new Array( img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=login_add'>Çàðåãèñòðèðîâàòü íîâûé ìåòîä...</a>" ) );
|
||||
new Array( img_add + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=login_add'>Register New Log In Method...</a>" ) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
@@ -396,15 +399,15 @@ $IPBHTML .= <<<EOF
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>Log In Enabled</strong></td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_url}/images/{$login['_enabled_img']}' border='0' alt='*' class='ipd' /></td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_acp_url}/images/{$login['_enabled_img']}' border='0' alt='*' class='ipd' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>Log In Installed</strong></td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_url}/images/{$login['_installed_img']}' border='0' alt='*' class='ipd' /></td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_acp_url}/images/{$login['_installed_img']}' border='0' alt='*' class='ipd' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>Log In Has Settings</strong></td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_url}/images/{$login['_has_settings']}' border='0' alt='*' class='ipd' /></td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_acp_url}/images/{$login['_has_settings']}' border='0' alt='*' class='ipd' /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
@@ -419,18 +422,18 @@ $IPBHTML .= <<<EOF
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>./sources/loginauth/{$login['login_folder_name']}/auth.php</strong></td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_url}/images/{$login['_file_auth_exists']}' border='0' alt='*' class='ipd' /></td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_acp_url}/images/{$login['_file_auth_exists']}' border='0' alt='*' class='ipd' /></td>
|
||||
<td class='tablerow2' align='center'>-</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>./sources/loginauth/{$login['login_folder_name']}/acp.php</strong></td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_url}/images/{$login['_file_acp_exists']}' border='0' alt='*' class='ipd' /></td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_acp_url}/images/{$login['_file_acp_exists']}' border='0' alt='*' class='ipd' /></td>
|
||||
<td class='tablerow2' align='center'>-</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>./sources/loginauth/{$login['login_folder_name']}/conf.php</strong></td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_url}/images/{$login['_file_conf_exists']}' border='0' alt='*' class='ipd' /></td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_url}/images/{$login['_file_conf_write']}' border='0' alt='*' class='ipd' /></td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_acp_url}/images/{$login['_file_conf_exists']}' border='0' alt='*' class='ipd' /></td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_acp_url}/images/{$login['_file_conf_write']}' border='0' alt='*' class='ipd' /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
@@ -454,51 +457,60 @@ $IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=$formcode&login_id={$login['login_id']}' method='post'>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>$title</div>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Íàçâàíèå ìåòîäà</strong></td>
|
||||
<td width='40%' class='tablerow1'><strong>Log In Title</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['login_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Îïèñàíèå</strong><div class='desctext'>Êðàòêîå îïèñàíèå ìåòîäà àâòîðèçàöèè</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Log In Description</strong><div class='desctext'>A short description for this log in method</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['login_description']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Èìÿ ïàïêè</strong><div class='desctext'>Îñíîâíàÿ äèðåêòîðèÿ ñ PHP ôàéëàìè.<br />Ïðèìåð: Åñëè ./sources/loginauth/<strong>internal</strong>/auth.php òîãäà ââîäèòå: internal</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Log In Files Folder Name</strong><div class='desctext'>The main folder the PHP files reside.<br />E.G: If ./sources/loginauth/<strong>internal</strong>/auth.php then enter: internal</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['login_folder_name']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ñëóæåáíûé URL äëÿ ïîëüçîâàòåëåé</strong><div class='desctext'>URL ìåñòà, ãäå ïîëüçîâàòåëè ñìîãóò èçìåíèòü èõ ïàðîëü è e-mail.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['login_maintain_url']} <div class='desctext'>(Îïöèîíàëüíî äëÿ ñîâìåñòíîãî òèïà)</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Log In User Maintenance URL</strong><div class='desctext'>The URL for the place they can edit their password and/or email address.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['login_maintain_url']} <div class='desctext'>(Optional for On-Fail authentication)</div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>URL ðåãèñòðàöèè</strong><div class='desctext'>URL ìåñòà, ãäå áóäåò ðàñïîëîæåíà ðåãèñòðàöèÿ ïîëüçîâàòåëåé.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['login_register_url']} <div class='desctext'>(Îïöèîíàëüíî äëÿ ñîâìåñòíîãî òèïà)</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Log In User Register URL</strong><div class='desctext'>The URL for the place to register a new account.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['login_register_url']} <div class='desctext'>(Optional for On-Fail authentication)</div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Òèï àâòîðèçàöèè?</strong><div class='desctext'>Óäàëåííûé: Ýòîò ìåòîò âñåãäà èñïîëüçóåò çàïðîñû ê óäàëåííîé áàçå äëÿ àâòîðèçàöèè ïîëüçîâàòåëÿ. Âñå ó÷åòíûå çàïèñè äîëæíû áûòü ñäåëàíû óäàëåííî.<br />Ñîâìåñòíûé: Åñëè äàííûå î ïîëüçîâàòåëå íå ïðåäñòàâëåíû â áàçå äàííûõ IPB, ôîðóì áóäåò çàïðàøèâàòü óäàëåííóþ áàçó.</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Log In Authentication Type?</strong><div class='desctext'>Pass-Through: This method always queries the remote DB for user authentication. All accounts must be made by remote.<br />On-Fail: If there isn't a member present in the IPB DB, IPB will query the remote DB.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['login_type']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>HTML ôîðìà àâòîðèçàöèè</strong><div class='desctext'>Ââåäèòå HTML êîä ôîðìû àâòîðèçàöèè äëÿ åå èñïîëüçîâàíèÿ ïðè âõîäå.</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Log In Form HTML</strong><div class='desctext'>Enter the HTML to add or replace the log in form.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['login_alt_login_html']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Çàìåíèòü HTML ôîðìîé âûøå?</strong><div class='desctext'>Åñëè 'Äà', òî ââåäåííûé âûøå HTML êîä çàìåíèò îáû÷íóþ ôîðìó àâòîðèçàöèè. Åñëè 'Íåò', êîä áóäåò äîáàâëåí ðÿäîì ñ îáû÷íîé ôîðìîé àâòîðèçàöèè.</div></td>
|
||||
<!--<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Log In HTML Replace Form</strong><div class='desctext'>If 'yes' the above HTML will replace the log in form. If 'no' it will be added alongside the log in form.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['login_replace_form']}</td>
|
||||
</tr>-->
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Log In User Log In URL</strong><div class='desctext'>The URL for the place to log in.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['login_login_url']} <div class='desctext'></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Log In User Log Out URL</strong><div class='desctext'>The URL for the place to log out.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['login_logout_url']} <div class='desctext'></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âêëþ÷èòü ìåòîä?</strong><div class='desctext'>Åñëè 'Äà', ýòîò ìåòîä àâòîðèçàöèè áóäåò âêëþ÷åí, à ëþáîé òåêóùèé îòêëþ÷èòñÿ àâòîìàòè÷åñêè.</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Log In Enabled</strong><div class='desctext'>If 'yes', this log in will be enabled and any current one disabled.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['login_enabled']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ðàçðåøèòü ñîçäàíèå ïîëüçîâàòåëÿ?</strong><div class='desctext'>Åñëè 'Äà', àâòîðèçîâàííûé ïîëüçîâàòåëü, êîòîðîãî íåò â áàçå äàííûõ IPB, áóäåò òóäà âíåñåí àâòîìàòè÷åñêè.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['login_allow_create']}</td>
|
||||
<td width='40%' class='tablerow1'><strong>Log In User Name Type</strong><div class='desctext'>Choose the type of user name required for the log in form. This may be fixed in some log in modules.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['login_user_id']}</td>
|
||||
</tr>
|
||||
<!--<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Íàëè÷èå íàñòðîåê</strong><div class='desctext'>Åñëè 'Äà', acp.php è conf.php îáÿçàíû ñóùåñòâîâàòü è áûòü äîñòóïíû äëÿ çàïèñè ôîðóìîì (ñìîòðèòå äèàãíîñòèêó äëÿ ïðîâåðêè).</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Log In Has Settings</strong><div class='desctext'>If 'yes', both acp.php and conf.php file must be present and writeable by IPB (see diagnostics to check).</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['login_settings']}</td>
|
||||
</tr>-->
|
||||
EOF;
|
||||
@@ -507,11 +519,11 @@ if ( $form['login_safemode'] != '' )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âêëþ÷èòü Safemode?</strong><div class='desctext'>Íåâîçìîæíî óäàëåíèå èëè ðåäàêòèðîâàíèå</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Enable Safemode?</strong><div class='desctext'>Cannot be deleted or edited by user</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['login_safemode']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ôëàã óñòàíîâëåí?</strong><div class='desctext'>Íåâîçìîæíî óäàëåíèå èëè ðåäàêòèðîâàíèå</div></td>
|
||||
<td width='40%' class='tablerow1'><strong>Flag as installed?</strong><div class='desctext'>Cannot be deleted or edited by user</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['login_installed']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
@@ -537,11 +549,11 @@ $IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'><img src='{$this->ipsclass->skin_url}/images/lock_close.gif' border='0' alt='*' class='ipd' /></td>
|
||||
<td class='tablerow1'><img src='{$this->ipsclass->skin_acp_url}/images/lock_close.gif' border='0' alt='*' class='ipd' /></td>
|
||||
<td class='tablerow1'><strong>{$data['login_title']}</strong><div class='desctext'>{$data['login_description']}</div></td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_url}/images/{$data['_installed_img']}' border='0' alt='YN' class='ipd' /></td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_url}/images/{$data['_enabled_img']}' border='0' alt='YN' class='ipd' /></td>
|
||||
<td class='tablerow1'><img id="menu{$data['login_id']}" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' /></td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_acp_url}/images/{$data['_installed_img']}' border='0' alt='YN' class='ipd' /></td>
|
||||
<td class='tablerow2' align='center'><img src='{$this->ipsclass->skin_acp_url}/images/{$data['_enabled_img']}' border='0' alt='YN' class='ipd' /></td>
|
||||
<td class='tablerow1'><img id="menu{$data['login_id']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
@@ -552,26 +564,26 @@ EOF;
|
||||
if ( ($data['login_safemode'] AND IN_DEV) or $data['login_installed'] )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=login_edit_details&login_id={$data['login_id']}'>Èçìåíèòü äåòàëè...</a>",
|
||||
img_edit + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=login_edit_details&login_id={$data['login_id']}'>Edit Details...</a>",
|
||||
EOF;
|
||||
}//endif
|
||||
//startif
|
||||
if ( $data['login_installed'] != 1 )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=login_install&login_id={$data['login_id']}'>Óñòàíîâêà...</a>",
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=login_install&login_id={$data['login_id']}'>Install...</a>",
|
||||
EOF;
|
||||
}//endif
|
||||
//startif
|
||||
if ( $data['login_installed'] == 1 ) // NOT USED??
|
||||
{
|
||||
//$IPBHTML .= <<<EOF
|
||||
// img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=login_edit_settings&login_id={$data['login_id']}'>Èçìåíèòü íàñòðîéêè...</a>",
|
||||
// img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=login_export&login_id={$data['login_id']}'>Ýêñïîðò...</a>"
|
||||
// img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=login_edit_settings&login_id={$data['login_id']}'>Edit Settings...</a>",
|
||||
// img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=login_export&login_id={$data['login_id']}'>Export...</a>",
|
||||
//EOF;
|
||||
}//endif
|
||||
$IPBHTML .= <<<EOF
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=login_diagnostics&login_id={$data['login_id']}'>Äèàãíîñòèêà...</a>"
|
||||
img_view + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=login_diagnostics&login_id={$data['login_id']}'>Diagnostics...</a>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
@@ -663,9 +675,9 @@ $IPBHTML = "";
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'><img src='{$this->ipsclass->skin_url}/images/menu.png' border='0' alt='Îïöèè' class='ipd' /></td>
|
||||
<td class='tablerow1'><img src='{$this->ipsclass->skin_acp_url}/images/menu.png' border='0' alt='Options' class='ipd' /></td>
|
||||
<td class='tablerow1'><strong>{$data['pc_title']}</strong><div class='desctext'>{$data['pc_desc']}</td>
|
||||
<td class='tablerow1'><img id="menu{$data['pc_key']}" src='{$this->ipsclass->skin_url}/images/filebrowser_action.gif' border='0' alt='Îïöèè' class='ipd' /></td>
|
||||
<td class='tablerow1'><img id="menu{$data['pc_key']}" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Options' class='ipd' /></td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
@@ -676,11 +688,11 @@ EOF;
|
||||
if ( $data['pc_settings_keyword'] )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=portal_settings&pc_key={$data['pc_key']}'>{$this->ipsclass->acp_lang['portal_row_menu_settings']}</a>",
|
||||
img_edit + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=portal_settings&pc_key={$data['pc_key']}'>{$this->ipsclass->acp_lang['portal_row_menu_settings']}</a>",
|
||||
EOF;
|
||||
}//endif
|
||||
$IPBHTML .= <<<EOF
|
||||
img_item + " <a href='#' onclick=\"menu_action_close(); pop_win('{$this->ipsclass->form_code}&code=portal_viewtags&pc_key={$data['pc_key']}', '{$data['pc_key']}', 400,200)\">{$this->ipsclass->acp_lang['portal_row_menu_view_tags']}</a>"
|
||||
img_export + " <a href='#' onclick=\"menu_action_close(); pop_win('{$this->ipsclass->form_code}&code=portal_viewtags&pc_key={$data['pc_key']}', '{$data['pc_key']}', 400,200)\">{$this->ipsclass->acp_lang['portal_row_menu_view_tags']}</a>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//------------------------------------------
|
||||
// Invision Power Board v2.1.7
|
||||
// Invision Power Board v2.1
|
||||
// ACP Specific JS File
|
||||
// (c) 2005 Invision Power Services, Inc.
|
||||
//
|
||||
@@ -117,7 +117,7 @@ function template_init()
|
||||
// IE FIX... grrr
|
||||
//------------------------------------------
|
||||
|
||||
if ( is_ie )
|
||||
if ( is_ie && !is_ie7 )
|
||||
{
|
||||
div_template_sections.style.position = 'absolute';
|
||||
document.getElementById('template-main-wrap').style.height = parseInt( div_template_sections.style.height ) + 'px';
|
||||
@@ -268,7 +268,7 @@ function template_find_bits(event)
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
alert( "Íåâîçìîæíî íàéòè øàáëîí ñ íàçâàíèåì: " + search_box.value + "\nÏîæàëóéñòà èùèòå â ôîðìàòå:\ntemplate_name (template_group)" );
|
||||
alert( "Could not locate a template bit called: " + search_box.value + "\nPlease search in the format:\ntemplate_name (template_group)" );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -289,7 +289,7 @@ function template_bit_restore( tid )
|
||||
|
||||
if ( editor_contents[ 't'+tid ] )
|
||||
{
|
||||
if ( confirm("Âû óâåðåíû, ÷òî õîòèòå îáðàòèòü øàáëîí?\nÂÑÅ ÍÅÑÎÕÐÀÍÅÍÍÛÅ ÈÇÌÅÍÅÍÈß ÁÓÄÓÒ ÏÎÒÅÐßÍÛ!") )
|
||||
if ( confirm("Are you sure you want to restore the template?\nALL UNSAVED CHANGES WILL BE LOST!") )
|
||||
{
|
||||
edit_box_obj.value = editor_contents[ 't'+tid ];
|
||||
editor_contents[ 't'+tid ] = '';
|
||||
@@ -309,7 +309,7 @@ function template_edit_close( tid )
|
||||
|
||||
if ( editor_contents[ 't'+tid ] )
|
||||
{
|
||||
if ( ! confirm('ÂÍÈÌÀÍÈÅ: ÍÀÆÌÈÒÅ "OK" ÄËß ÏÎÒÅÐÈ ÂÑÅÕ ÍÅÑÎÕÐÀÍÅÍÍÛÕ ÈÇÌÅÍÅÍÈÉ' ) )
|
||||
if ( ! confirm('WARNING: CLICK "OK" TO LOSE ANY UNSAVED CHANGES' ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -321,7 +321,7 @@ function template_edit_close( tid )
|
||||
|
||||
editor_contents[ 't'+tid ] = '';
|
||||
div_template_edit.style.display = 'none';
|
||||
iframe_template_edit.src = 'javascript:;';
|
||||
iframe_template_edit.src = ipb_skin_url + '/iframe.html';
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
@@ -467,7 +467,7 @@ function template_revert_clicked(event)
|
||||
var bitname = clicked_href.replace( /.*bitname=(.+?)&.*/ , "$1" );
|
||||
var custombit = clicked_href.replace( /.*custombit=(.+?)/, "$1" );
|
||||
|
||||
if ( confirm( "ÂÍÈÌÀÍÈÅ: Âû íå ìîæåòå âåðíóòü ýòî äåéñòâèå!\Íàæìèòå OK äëÿ ïðîäîëæåíèÿ èëè ÎÒÌÅÍÀ äëÿ îòìåíû ýòîãî äåéñòâèÿ..." ) )
|
||||
if ( confirm( "WARNING: You cannot undo this action!\nPress OK to continue or CANCEL to cancel this action..." ) )
|
||||
{
|
||||
if ( use_enhanced_js && parseInt(custombit) != 1 )
|
||||
{
|
||||
@@ -561,7 +561,7 @@ function template_close_bits()
|
||||
if ( template_bit_loaded.length )
|
||||
{
|
||||
div_template_edit.style.display = 'none';
|
||||
iframe_template_edit.src = 'javascript:;';
|
||||
iframe_template_edit.src = ipb_skin_url + '/iframe.html';
|
||||
}
|
||||
|
||||
//------------------------------------------
|
||||
@@ -601,7 +601,7 @@ function template_add_bit( add_url, event )
|
||||
|
||||
if ( editor_unload_set )
|
||||
{
|
||||
if ( ! confirm('ÂÍÈÌÀÍÈÅ: ÍÀÆÌÈÒÅ "OK" ÄËß ÏÎÒÅÐÈ ÂÑÅÕ ÍÅÑÎÕÐÀÍÅÍÍÛÕ ÈÇÌÅÍÅÍÈÉ' ) )
|
||||
if ( ! confirm('WARNING: CLICK "OK" TO LOSE ANY UNSAVED CHANGES' ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -681,7 +681,7 @@ function template_load_editor( bit_name, event, bit_url )
|
||||
|
||||
if ( editor_unload_set )
|
||||
{
|
||||
if ( ! confirm('ÂÍÈÌÀÍÈÅ: ÍÀÆÌÈÒÅ "OK" ÄËß ÏÎÒÅÐÈ ÂÑÅÕ ÍÅÑÎÕÐÀÍÅÍÍÛÕ ÈÇÌÅÍÅÍÈÉ' ) )
|
||||
if ( ! confirm('WARNING: CLICK "OK" TO LOSE ANY UNSAVED CHANGES' ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 49 B |
@@ -1 +1 @@
|
||||
<head>
<title>Invision Power Board — ðàáîòà ñ öâåòàìè</title>
<script language="JavaScript" type='text/javascript'>
var theColour = "";
var initcol = "";
if ( opener.document.theAdminForm.initcol.value )
{
initcol = opener.document.theAdminForm.initcol.value;
}
function showColor(val)
{
document.colorform.hexval.value = val;
theColour = val;
}
function keepColor()
{
document.colorform.keepcolour.value = theColour;
}
function initpicker()
{
if ( initcol )
{
document.colorform.keepcolour.value = initcol;
}
}
function endwrite()
{
if ( opener.document.theAdminForm.initformval.value )
{
theColour = document.colorform.keepcolour.value;
eval("opener.document.theAdminForm.f"+opener.document.theAdminForm.initformval.value+".value = theColour");
itm = my_openergetbyid( opener.document.theAdminForm.initformval.value );
if ( itm )
{
itm.style.backgroundColor = theColour;
}
}
}
function my_openergetbyid(id)
{
itm = null;
if (opener.document.getElementById)
{
itm = opener.document.getElementById(id);
}
else if (opener.document.all)
{
itm = opener.document.all[id];
}
else if (opener.document.layers)
{
itm = opener.document.layers[id];
}
return itm;
}
</script>
</head>
<body bgcolor='#FFFFFF' onload='initpicker()'>
<font face='arial' size='2' color='#000000'>
<center>
<form name="colorform">
<b>Invision Power Board — ðàáîòà ñ öâåòàìè<br><br>Ïðîñòî íàâåäèòå êóðñîð «ìûøêè» íà íóæíûé öâåò è âû ïîëó÷èòå øåñòíàäöàòåðè÷íûé HEX êîä è ïðåäâàðèòåëüíûé ïðîñìîòð öâåòà.
<br>
<map name="colmap">
<area shape="rect" style='hover:cursor:hand' coords="1,1,7,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#00FF00')" onClick="javascript:keepColor()">
<area shape="rect" coords="9,1,15,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#00FF33')" onClick="javascript:keepColor()">
<area shape="rect" coords="17,1,23,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#00FF66')" onClick="javascript:keepColor()">
<area shape="rect" coords="25,1,31,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#00FF99')" onClick="javascript:keepColor()">
<area shape="rect" coords="33,1,39,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#00FFCC')" onClick="javascript:keepColor()">
<area shape="rect" coords="41,1,47,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#00FFFF')" onClick="javascript:keepColor()">
<area shape="rect" coords="49,1,55,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#33FF00')" onClick="javascript:keepColor()">
<area shape="rect" coords="57,1,63,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#33FF33')" onClick="javascript:keepColor()">
<area shape="rect" coords="65,1,71,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#33FF66')" onClick="javascript:keepColor()">
<area shape="rect" coords="73,1,79,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#33FF99')" onClick="javascript:keepColor()">
<area shape="rect" coords="81,1,87,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#33FFCC')" onClick="javascript:keepColor()">
<area shape="rect" coords="89,1,95,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#33FFFF')" onClick="javascript:keepColor()">
<area shape="rect" coords="97,1,103,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#66FF00')" onClick="javascript:keepColor()">
<area shape="rect" coords="105,1,111,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#66FF33')" onClick="javascript:keepColor()">
<area shape="rect" coords="113,1,119,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#66FF66')" onClick="javascript:keepColor()">
<area shape="rect" coords="121,1,127,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#66FF99')" onClick="javascript:keepColor()">
<area shape="rect" coords="129,1,135,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#66FFCC')" onClick="javascript:keepColor()">
<area shape="rect" coords="137,1,143,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#66FFFF')" onClick="javascript:keepColor()">
<area shape="rect" coords="145,1,151,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#99FF00')" onClick="javascript:keepColor()">
<area shape="rect" coords="153,1,159,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#99FF33')" onClick="javascript:keepColor()">
<area shape="rect" coords="161,1,167,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#99FF66')" onClick="javascript:keepColor()">
<area shape="rect" coords="169,1,175,10" onMouseOut="javascript:shoLine truncated
|
||||
<head>
<title>Invision Power Board Colour Picker</title>
<script language="JavaScript" type='text/javascript'>
var theColour = "";
var initcol = "";
if ( opener.document.theAdminForm.initcol.value )
{
initcol = opener.document.theAdminForm.initcol.value;
}
function showColor(val)
{
document.colorform.hexval.value = val;
theColour = val;
}
function keepColor()
{
document.colorform.keepcolour.value = theColour;
}
function initpicker()
{
if ( initcol )
{
document.colorform.keepcolour.value = initcol;
}
}
function endwrite()
{
if ( opener.document.theAdminForm.initformval.value )
{
theColour = document.colorform.keepcolour.value;
eval("opener.document.theAdminForm.f"+opener.document.theAdminForm.initformval.value+".value = theColour");
itm = my_openergetbyid( opener.document.theAdminForm.initformval.value );
if ( itm )
{
itm.style.backgroundColor = theColour;
}
}
}
function my_openergetbyid(id)
{
itm = null;
if (opener.document.getElementById)
{
itm = opener.document.getElementById(id);
}
else if (opener.document.all)
{
itm = opener.document.all[id];
}
else if (opener.document.layers)
{
itm = opener.document.layers[id];
}
return itm;
}
</script>
</head>
<body bgcolor='#FFFFFF' onload='initpicker()'>
<font face='arial' size='2' color='#000000'>
<center>
<form name="colorform">
<b>Invision Power Board Color Picker<br><br>Simply roll your mouse over the desired colour to get the Hex value and a colour preview
<br>
<map name="colmap">
<area shape="rect" style='hover:cursor:hand' coords="1,1,7,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#00FF00')" onClick="javascript:keepColor()">
<area shape="rect" coords="9,1,15,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#00FF33')" onClick="javascript:keepColor()">
<area shape="rect" coords="17,1,23,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#00FF66')" onClick="javascript:keepColor()">
<area shape="rect" coords="25,1,31,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#00FF99')" onClick="javascript:keepColor()">
<area shape="rect" coords="33,1,39,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#00FFCC')" onClick="javascript:keepColor()">
<area shape="rect" coords="41,1,47,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#00FFFF')" onClick="javascript:keepColor()">
<area shape="rect" coords="49,1,55,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#33FF00')" onClick="javascript:keepColor()">
<area shape="rect" coords="57,1,63,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#33FF33')" onClick="javascript:keepColor()">
<area shape="rect" coords="65,1,71,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#33FF66')" onClick="javascript:keepColor()">
<area shape="rect" coords="73,1,79,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#33FF99')" onClick="javascript:keepColor()">
<area shape="rect" coords="81,1,87,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#33FFCC')" onClick="javascript:keepColor()">
<area shape="rect" coords="89,1,95,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#33FFFF')" onClick="javascript:keepColor()">
<area shape="rect" coords="97,1,103,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#66FF00')" onClick="javascript:keepColor()">
<area shape="rect" coords="105,1,111,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#66FF33')" onClick="javascript:keepColor()">
<area shape="rect" coords="113,1,119,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#66FF66')" onClick="javascript:keepColor()">
<area shape="rect" coords="121,1,127,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#66FF99')" onClick="javascript:keepColor()">
<area shape="rect" coords="129,1,135,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#66FFCC')" onClick="javascript:keepColor()">
<area shape="rect" coords="137,1,143,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#66FFFF')" onClick="javascript:keepColor()">
<area shape="rect" coords="145,1,151,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#99FF00')" onClick="javascript:keepColor()">
<area shape="rect" coords="153,1,159,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#99FF33')" onClick="javascript:keepColor()">
<area shape="rect" coords="161,1,167,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#99FF66')" onClick="javascript:keepColor()">
<area shape="rect" coords="169,1,175,10" onMouseOut="javascript:showColor('')" onMouseOver="javascript:showColor('#99FF99')" onClickLine truncated
|
||||
@@ -1 +1 @@
|
||||
<html>
<head>
<title>Ãåíåðàòîð CSS</title>
<style type="text/css">
TABLE, TR, TD { font: 10px Verdana; color:#000000 }
BODY { font: 10px Verdana; color:#000000 }
INPUT, SUBMIT {
font-family: Courier, Courier New, Monaco;
font-size: 10pt;
font-family: verdana, helvetica, sans-serif;
vertical-align:middle;
background-color: #FFFFFF;
}
</style>
<script language='Javascript'>
// It's crappy, it's by Matt!
function do_css() {
var theForm = document.css_form;
var theName = theForm.NAME.value;
var theFont = theForm.FONT.value;
var theSize = theForm.SIZE.value;
var theSizeT = theForm.SIZE_TYPE.value;
var theWeight = theForm.WEIGHT.value;
var theColor = theForm.COLOUR.value;
var theBG = theForm.BGCOLOUR.value;
var theBW = theForm.BWEIGHT.value;
var theBC = theForm.BCOLOUR.value;
var theSpace = theForm.SPACE.value;
var theSpaceT = theForm.SPACING.value;
var theLSpace = theForm.LSPACE.value;
//defaults
var tmp_style = "solid";
var tmp_col = "black";
var tmp_thick = "1px";
// Check for empties
var msg = "";
if (theName == "") { msg = "Âû äîëæíû ââåñòè èìÿ css ïóíêòà"; }
// more here eventually?
if (msg != "") {
alert(msg);
return;
}
var thecss = "#" + theName + " {\n";
// start the build the css
if (theFont != "") {
thecss += "\t font-family: " + theFont + ";\n";
}
if (theSize != "") {
thecss += "\t font-size: " + theSize + theSizeT + ";\n";
}
if (theWeight != "normal") {
thecss += "\t font-weight: " + theWeight + ";\n";
}
if (theColor != "") {
thecss += "\t color: " + theColor + ";\n";
}
if (theBG != "") {
thecss += "\t background-color: " + theBG + ";\n";
}
if (theBW != "") {
tmp_thick = theBW + "px";
}
if (theBC != "") {
tmp_col = theBC;
}
if (theBW != "" && theBC != "") {
thecss += "\t border: " + tmp_style + " " + tmp_col + " " + tmp_thick + ";\n";
}
if (theSpace != "") {
thecss += "\t line-height: " + theSpace + theSpaceT + ";\n";
}
if (theLSpace != "") {
thecss += "\t letter-spacing: " + theLSpace + "px;\n";
}
thecss += "}";
theForm.CSS.value = thecss;
return;
}
function preview() {
var theCSS = document.css_form.CSS.value;
var theID = document.css_form.NAME.value;
var Template = "<html><head><title>òåñò CSS</title><style type=\"text/css\">"+theCSS+"</style></head>\n<body bgcolor='#FFFFFF'>\n";
Template += "<span id='"+theID+"'>Àíäðåé âçÿë ðó÷êó è ïîñòàâèë ñâîþ ïîäïèñü<br>È òàê äàëåå....</span>";
Template += "\n</body></html>";
var newWin = window.open( '', 'Ïðåäâàðèòåëüíûé ïðîñìîòð', 'width=500,height=200,top=0,left=0,resizable=1,scrollbars=1,location=no,directories=no,status=no,menubar=no,toolbar=no');
newWin.document.write(Template);
newWin.document.close();
}
<!--
//-->
</script>
</head>
<body bgcolor='#FFFFFF'>
<table width='95%' align='center' border='0' cellspacing='1' cellpadding='0'>
<tr>
<td>
<b><span style='font-family: verdana, arial; font-size:20px; color:#4C77B6; font-weight:bold; letter-spacing:-1px'>Ïðîñòîé ãåíåðàòîð CSS</span></b>
<br><br>
Ýòîò ãåíåðàòîð ïîçâîëÿåò ëåãêî íàñòðàèâàòü è ñîçäàâàòü ïóíêòû CSS òàáëèö ñòèëåé.
Îí íå ñîäåðæèò âñå CSS ïóíêòû — òîëüêî ñàìûå ÷àñòî èñïîëüçóåìûå.
<br><br>
</td>
</tr>
</table>
<form name='css_form'>
<table width='95%' border='0' align='center'>
<tr>
<td width='60%'>
<table width='100%' align='center' border='0' bgcolor='#000000' cellspacing='1' cellpadding='0'>
<tr>
<td>
<table width='100%' align='center' border='0' bgcolor='#EEF2F7' cellspacing='0' cellpadding='4'>
<tr>
<td width='40%'><b>Íàçâàíèå ïóíêòà CSS?</b></td>
<td width='60%'><input type='text' name='NAME'></td>
</tr>
<tr>
<td width='40%'><b>Íàçâàíèe øðèôòà (íåñêîëüêî øðèôòîâ ðàçäåëÿéòå çàïÿòîé)</b></td>
<td width='60%'><input type='text' name='FONT'></td>
</tr>
<tr>
<td width='40%'><b>Ðàçìåð øðèôòà</b></td>
<td width='60%'><input type='text' name='SIZE' size='5'> <select name='SIZE_TYPE'><option value='px'>ïèêñåëåé<option value='pt'>ïóíêòîâ<option value='em'>em</select></td>
</tr>
<tr>
<td width='40%'><b>Âåñ øðèôòà</b></td>
<td width='60%'><select name='WEIGHT'><option value='normal'>íîðìàëüíûé<option value='bold'>ïîëóæèðíûé<option value='bolder'>æèðíûé</select></td>
</tr>
<tr>
<td width='40%'><b>Öâåò</b></td>
<td width='60%'><input type='text' name='COLOUR'></td>
</tr>
<tr>
<td width='40%'><b>Öâåò ôîíà</b></td>
<td width='60%'><input type='text' name='BGCOLOUR'></td>
</tr>
<tr>
<td width='40%'><b>Ãðàíèöà...</b></td>
<td width='60%'>Âåñ (â ïèêñåëÿõ, Line truncated
|
||||
<html>
<head>
<title>CSS Generator</title>
<style type="text/css">
TABLE, TR, TD { font: 10px Verdana; color:#000000 }
BODY { font: 10px Verdana; color:#000000 }
INPUT, SUBMIT {
font-family: Courier, Courier New, Monaco;
font-size: 10pt;
font-family: verdana, helvetica, sans-serif;
vertical-align:middle;
background-color: #FFFFFF;
}
</style>
<script language='Javascript'>
// It's crappy, it's by Matt!
function do_css() {
var theForm = document.css_form;
var theName = theForm.NAME.value;
var theFont = theForm.FONT.value;
var theSize = theForm.SIZE.value;
var theSizeT = theForm.SIZE_TYPE.value;
var theWeight = theForm.WEIGHT.value;
var theColor = theForm.COLOUR.value;
var theBG = theForm.BGCOLOUR.value;
var theBW = theForm.BWEIGHT.value;
var theBC = theForm.BCOLOUR.value;
var theSpace = theForm.SPACE.value;
var theSpaceT = theForm.SPACING.value;
var theLSpace = theForm.LSPACE.value;
//defaults
var tmp_style = "solid";
var tmp_col = "black";
var tmp_thick = "1px";
// Check for empties
var msg = "";
if (theName == "") { msg = "You must enter a CSS definition name"; }
// more here eventually?
if (msg != "") {
alert(msg);
return;
}
var thecss = "#" + theName + " {\n";
// start the build the css
if (theFont != "") {
thecss += "\t font-family: " + theFont + ";\n";
}
if (theSize != "") {
thecss += "\t font-size: " + theSize + theSizeT + ";\n";
}
if (theWeight != "normal") {
thecss += "\t font-weight: " + theWeight + ";\n";
}
if (theColor != "") {
thecss += "\t color: " + theColor + ";\n";
}
if (theBG != "") {
thecss += "\t background-color: " + theBG + ";\n";
}
if (theBW != "") {
tmp_thick = theBW + "px";
}
if (theBC != "") {
tmp_col = theBC;
}
if (theBW != "" && theBC != "") {
thecss += "\t border: " + tmp_style + " " + tmp_col + " " + tmp_thick + ";\n";
}
if (theSpace != "") {
thecss += "\t line-height: " + theSpace + theSpaceT + ";\n";
}
if (theLSpace != "") {
thecss += "\t letter-spacing: " + theLSpace + "px;\n";
}
thecss += "}";
theForm.CSS.value = thecss;
return;
}
function preview() {
var theCSS = document.css_form.CSS.value;
var theID = document.css_form.NAME.value;
var Template = "<html><head><title>testing CSS</title><style type=\"text/css\">"+theCSS+"</style></head>\n<body bgcolor='#FFFFFF'>\n";
Template += "<span id='"+theID+"'>Cozy lummox gives smart squid who asks for job pen<br>Apparently....</span>";
Template += "\n</body></html>";
var newWin = window.open( '', 'PREVIEW', 'width=500,height=200,top=0,left=0,resizable=1,scrollbars=1,location=no,directories=no,status=no,menubar=no,toolbar=no');
newWin.document.write(Template);
newWin.document.close();
}
<!--
//-->
</script>
</head>
<body bgcolor='#FFFFFF'>
<table width='95%' align='center' border='0' cellspacing='1' cellpadding='0'>
<tr>
<td>
<b><span style='font-family: verdana, arial; font-size:20px; color:#4C77B6; font-weight:bold; letter-spacing:-1px'>Simple CSS Generator</span></b>
<br><br>
This is designed to generate a simple CSS definition. It does not contain
all the CSS attributes, just the most commonly used ones.
<br><br>
</td>
</tr>
</table>
<form name='css_form'>
<table width='95%' border='0' align='center'>
<tr>
<td width='60%'>
<table width='100%' align='center' border='0' bgcolor='#000000' cellspacing='1' cellpadding='0'>
<tr>
<td>
<table width='100%' align='center' border='0' bgcolor='#EEF2F7' cellspacing='0' cellpadding='4'>
<tr>
<td width='40%'><b>CSS ID Definition name?</b></td>
<td width='60%'><input type='text' name='NAME'></td>
</tr>
<tr>
<td width='40%'><b>Font name (separate many with a comma)</b></td>
<td width='60%'><input type='text' name='FONT'></td>
</tr>
<tr>
<td width='40%'><b>Font size</b></td>
<td width='60%'><input type='text' name='SIZE' size='5'> <select name='SIZE_TYPE'><option value='px'>Pixels<option value='pt'>Points<option value='em'>em</select></td>
</tr>
<tr>
<td width='40%'><b>Font Weight</b></td>
<td width='60%'><select name='WEIGHT'><option value='normal'>normal<option value='bold'>Bold<option value='bolder'>Bolder</select></td>
</tr>
<tr>
<td width='40%'><b>Font Colour</b></td>
<td width='60%'><input type='text' name='COLOUR'></td>
</tr>
<tr>
<td width='40%'><b>Background Colour</b></td>
<td width='60%'><input type='text' name='BGCOLOUR'></td>
</tr>
<tr>
<td width='40%'><b>Border...</b></td>
<td width='60%'>Weight (in pixels or leave blank) <input type='textLine truncated
|
||||
@@ -1,5 +1 @@
|
||||
<html>
|
||||
<head><title></title></head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
<html>␍<head><title></title></head>␍<body>␍</body>␍</html>␍
|
||||
|
After Width: | Height: | Size: 173 B |
|
After Width: | Height: | Size: 174 B |
|
After Width: | Height: | Size: 174 B |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 233 B After Width: | Height: | Size: 410 B |
|
After Width: | Height: | Size: 717 B |
|
After Width: | Height: | Size: 733 B |
|
After Width: | Height: | Size: 689 B |
|
After Width: | Height: | Size: 800 B |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 774 B |
|
After Width: | Height: | Size: 174 B |
|
After Width: | Height: | Size: 99 B |
|
After Width: | Height: | Size: 664 B |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 580 B |
|
After Width: | Height: | Size: 844 B |
|
After Width: | Height: | Size: 759 B |
|
After Width: | Height: | Size: 138 B |
|
After Width: | Height: | Size: 259 B |
|
After Width: | Height: | Size: 287 B |
|
After Width: | Height: | Size: 258 B |
|
After Width: | Height: | Size: 169 B |
|
After Width: | Height: | Size: 844 B |
@@ -1 +1 @@
|
||||
R0lGODlhhgAfAMQAAAAAAP///+/v79/f38/Pz7+/v6+vr5+fn4+Pj4CAgHBwcGBgYFBQUEBAQDAwMCAgIBAQEAAAAAAAAAA␍R0lGODlhhgAfAMQAAAAAAP///+/v79/f38/Pz7+/v6+vr5+fn4+Pj4CAgHBwcGBgYFBQUEBAQDAwMCAgIBAQEAAAAAAAAAA␍R0lGODlhhgAfAMQAAAAAAP///+/v79/f38/Pz7+/v6+vr5+fn4+Pj4CAgHBwcGBgYFBQUEBAQDAwMCAgIBAQEAAAAAAAAAA␍2d174325a5cb8288,///+/v79,fdab03b953f0e659␍R0lGODlhhgAfAMQAAAAAAP///+/v79/f38/Pz7+/v6+vr5+fn4+Pj4CAgHBwcGBgYFBQUEBAQDAwMCAgIBAQEAAAAAAAAAA
|
||||
R0lGODlhhgAfAMQAAAAAAP///+/v79/f38/Pz7+/v6+vr5+fn4+Pj4CAgHBwcGBgYFBQUEBAQDAwMCAgIBAQEAAAAAAAAAA␍R0lGODlhhgAfAMQAAAAAAP///+/v79/f38/Pz7+/v6+vr5+fn4+Pj4CAgHBwcGBgYFBQUEBAQDAwMCAgIBAQEAAAAAAAAAA␍R0lGODlhhgAfAMQAAAAAAP///+/v79/f38/Pz7+/v6+vr5+fn4+Pj4CAgHBwcGBgYFBQUEBAQDAwMCAgIBAQEAAAAAAAAAA␍<{%dyn.down.var.md5p1%}>,///+/v79,<{%dyn.down.var.md5p2%}>␍R0lGODlhhgAfAMQAAAAAAP///+/v79/f38/Pz7+/v6+vr5+fn4+Pj4CAgHBwcGBgYFBQUEBAQDAwMCAgIBAQEAAAAAAAAAA
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 1001 B |
|
After Width: | Height: | Size: 721 B |
|
After Width: | Height: | Size: 985 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1019 B |
|
After Width: | Height: | Size: 942 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 997 B |
|
After Width: | Height: | Size: 971 B |
|
After Width: | Height: | Size: 985 B |
|
After Width: | Height: | Size: 629 B |
|
After Width: | Height: | Size: 972 B |
|
After Width: | Height: | Size: 985 B |
|
After Width: | Height: | Size: 97 B |
|
After Width: | Height: | Size: 999 B |
|
After Width: | Height: | Size: 940 B |
|
After Width: | Height: | Size: 1.0 KiB |
@@ -1,15 +1 @@
|
||||
<html>
|
||||
<head><title>Ошибка < Русская версия Invision Power Board</title></head>
|
||||
<body>
|
||||
<h1>Ошибка < Русская версия Invision Power Board</h1>
|
||||
<hr>
|
||||
Вы попали на несуществующую страницу!<br>Пожалуйста нажмите на кнопочку «<b>Назад</b>»
|
||||
в вашем браузере для возвращения на предыдущую страницу.
|
||||
<hr>
|
||||
<b>Invision Power Board:</b>
|
||||
<ul>
|
||||
<li><a href="http://www.bestwarez.ru" title="BestWarez.Ru - Только лучший Варез!">Русская версия</a></li>
|
||||
<li><a href="http://www.invisionboard.com" title="Official Site">English version</a></li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
<html>␍<head><title>Invision Power Board - Bulletin Board System</title></head>␍<body>␍<h1>403: Invision Power Board -> Forbidden</h1>␍<hr>␍You have reached this Page in error, please use␍your back button to return to Invision Board.␍<hr>␍<a href="http://www.invisionboard.com/">Invision Power Board</a>␍</body>␍</html>␍
|
||||
|
After Width: | Height: | Size: 49 B |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 100 B |
|
After Width: | Height: | Size: 91 B |
|
Before Width: | Height: | Size: 782 B After Width: | Height: | Size: 689 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.3 KiB |