Version 2.1.7
No files matched your search
@@ -0,0 +1,290 @@
|
||||
//------------------------------------------
|
||||
// Invision Power Board v2.1.7
|
||||
// ACP Specific JS File
|
||||
// (c) 2005 Invision Power Services, Inc.
|
||||
//
|
||||
// http://www.invisionboard.com
|
||||
//------------------------------------------
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Initiate object
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function components()
|
||||
{
|
||||
this.mainbox = null;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Init
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function bbedit_components_init() {}
|
||||
|
||||
components.prototype.init = function()
|
||||
{
|
||||
this.mainbox = document.getElementById('components-menu-box');
|
||||
this.draw_menu();
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Draw main menu box
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function bbedit_components_draw_menu() {}
|
||||
|
||||
components.prototype.draw_menu = function()
|
||||
{
|
||||
//-------------------------------
|
||||
// INIT
|
||||
//-------------------------------
|
||||
|
||||
var html = '';
|
||||
var qhtml = '';
|
||||
|
||||
//-------------------------------
|
||||
// Draw all current menu items
|
||||
//-------------------------------
|
||||
|
||||
for ( var i in menu_text )
|
||||
{
|
||||
var menu_box;
|
||||
|
||||
//-------------------------------
|
||||
// MENU TEXT
|
||||
//-------------------------------
|
||||
|
||||
menu_box = lang_build_string( html_box_text, i, _make_form_safe( menu_text[i] ) );
|
||||
|
||||
//-------------------------------
|
||||
// MENU URL
|
||||
//-------------------------------
|
||||
|
||||
menu_box += lang_build_string( html_box_url, i, _make_form_safe( menu_url[i] ) );
|
||||
|
||||
//-------------------------------
|
||||
// MENU REDIRECT
|
||||
//-------------------------------
|
||||
|
||||
menu_box += lang_build_string( html_box_redirect, i, menu_redirect[i] );
|
||||
|
||||
//-------------------------------
|
||||
// MENU PERMBIT
|
||||
//-------------------------------
|
||||
|
||||
menu_box += lang_build_string( html_box_permbit, i, _make_form_safe( menu_permbit[i] ) );
|
||||
|
||||
//-------------------------------
|
||||
// MENU LANG
|
||||
//-------------------------------
|
||||
|
||||
menu_box += lang_build_string( html_box_permlang, i, _make_form_safe( menu_permlang[i] ) );
|
||||
|
||||
//-------------------------------
|
||||
// Add...
|
||||
//-------------------------------
|
||||
|
||||
html += lang_build_string( html_menu_wrap, menu_box, i );
|
||||
}
|
||||
|
||||
//-------------------------------
|
||||
// Add on "More..."
|
||||
//-------------------------------
|
||||
|
||||
html += html_add_menu_row;
|
||||
|
||||
//-------------------------------
|
||||
// Add wrapped question w/choice
|
||||
//-------------------------------
|
||||
|
||||
this.mainbox.innerHTML = html;
|
||||
|
||||
//-------------------------------
|
||||
// Correct check boxes
|
||||
//-------------------------------
|
||||
|
||||
for ( var i in menu_redirect )
|
||||
{
|
||||
if ( parseInt(menu_redirect[i]) == 1 )
|
||||
{
|
||||
document.getElementById( 'menu_redirect_' + i ).checked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById( 'menu_redirect_' + i ).checked = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Add menu row
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function bbedit_components_add_menu_row() {}
|
||||
|
||||
components.prototype.add_menu_row = function()
|
||||
{
|
||||
var maxid = 0;
|
||||
|
||||
for ( var i in menu_text )
|
||||
{
|
||||
if ( i > maxid )
|
||||
{
|
||||
maxid = i;
|
||||
}
|
||||
}
|
||||
|
||||
maxid += 1;
|
||||
|
||||
this.update_form_array();
|
||||
|
||||
menu_text[ maxid ] = '';
|
||||
menu_url[ maxid ] = '';
|
||||
menu_redirect[ maxid ] = 0;
|
||||
menu_permbit[ maxid ] = '';
|
||||
menu_permlang[ maxid ] = '';
|
||||
|
||||
this.draw_menu();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Remove menu row
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function bbedit_components_remove_menu_row() {}
|
||||
|
||||
components.prototype.remove_menu_row = function( id )
|
||||
{
|
||||
if ( confirm( "Âû óâåðåíû, ÷òî æåëàåòå óäàëèòü ýòîò ïóíêò ìåíþ?" ) )
|
||||
{
|
||||
//-------------------------------
|
||||
// Delete All bits
|
||||
//-------------------------------
|
||||
|
||||
delete( menu_text[ id ] );
|
||||
delete( menu_url[ id ] );
|
||||
delete( menu_redirect[ id ] );
|
||||
delete( menu_permbit[ id ] );
|
||||
delete( menu_permlang[ id ] );
|
||||
|
||||
this.update_form_array();
|
||||
this.draw_menu();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Update form array
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function bbedit_components_update_form_array() {}
|
||||
|
||||
components.prototype.update_form_array = function()
|
||||
{
|
||||
//-------------------------------
|
||||
// Update menu array with form
|
||||
//-------------------------------
|
||||
|
||||
var tmp_menu_text = {};
|
||||
var tmp_menu_url = {};
|
||||
var tmp_menu_redirect = {};
|
||||
var tmp_menu_permbit = {};
|
||||
var tmp_menu_permlang = {};
|
||||
|
||||
for ( var i in menu_text )
|
||||
{
|
||||
//-------------------------------
|
||||
// Get form value...
|
||||
//-------------------------------
|
||||
|
||||
try
|
||||
{
|
||||
tmp_menu_text[ i ] = document.getElementById( 'menu_text_' + i ).value;
|
||||
}
|
||||
catch(e) { }
|
||||
}
|
||||
|
||||
for ( var i in menu_url )
|
||||
{
|
||||
//-------------------------------
|
||||
// Get form value...
|
||||
//-------------------------------
|
||||
|
||||
try
|
||||
{
|
||||
tmp_menu_url[ i ] = document.getElementById( 'menu_url_' + i ).value;
|
||||
}
|
||||
catch(e) { }
|
||||
}
|
||||
|
||||
for ( var i in menu_redirect )
|
||||
{
|
||||
//-------------------------------
|
||||
// Get form value...
|
||||
//-------------------------------
|
||||
|
||||
try
|
||||
{
|
||||
tmp_menu_redirect[ i ] = document.getElementById( 'menu_redirect_' + i ).checked ? 1 : 0;
|
||||
}
|
||||
catch(e) { }
|
||||
}
|
||||
|
||||
for ( var i in menu_permbit )
|
||||
{
|
||||
//-------------------------------
|
||||
// Get form value...
|
||||
//-------------------------------
|
||||
|
||||
try
|
||||
{
|
||||
tmp_menu_permbit[ i ] = document.getElementById( 'menu_permbit_' + i ).value;
|
||||
}
|
||||
catch(e) { }
|
||||
}
|
||||
|
||||
for ( var i in menu_permlang )
|
||||
{
|
||||
//-------------------------------
|
||||
// Get form value...
|
||||
//-------------------------------
|
||||
|
||||
try
|
||||
{
|
||||
tmp_menu_permlang[ i ] = document.getElementById( 'menu_permlang_' + i ).value;
|
||||
}
|
||||
catch(e) { }
|
||||
}
|
||||
|
||||
//-------------------------------
|
||||
// Update
|
||||
//-------------------------------
|
||||
|
||||
menu_text = tmp_menu_text;
|
||||
menu_url = tmp_menu_url;
|
||||
menu_redirect = tmp_menu_redirect;
|
||||
menu_permbit = tmp_menu_permbit;
|
||||
menu_permlang = tmp_menu_permlang;
|
||||
}
|
||||
|
||||
/*--------------------------------------------*/
|
||||
// FORM MAKE SAFE
|
||||
/*--------------------------------------------*/
|
||||
|
||||
function _make_form_safe( t )
|
||||
{
|
||||
if ( ! t )
|
||||
{
|
||||
return t;
|
||||
}
|
||||
|
||||
t = t.replace( /'/g, ''' );
|
||||
t = t.replace( /"/g, '"' );
|
||||
|
||||
return t;
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
/* ======================================== */
/* GLOBAL ELEMENTS */
/* ======================================== */
BODY
{
font-size: 10px;
font-family: Verdana, Arial, Sans-Serif;
color:#000;
padding:0px;
margin:0px 3px 0px 3px;
}
TABLE, TD, TR
{
font-family: Verdana,Arial, Sans-Serif;
color:#000;
font-size: 10px;
}
a:link,
a:visited,
a:active
{
color:#000055;
}
a:hover
{
color:#333377;
text-decoration:underline
}
form { display:inline }
input { vertical-align:middle }
img { vertical-align:middle }
/* ======================================== */
/* Page links
/* ======================================== */
.pagelink
{
background-color: #F0F5FA;
border: 1px solid #072A66;
padding:1px 3px 1px 3px;
color: #000;
font-weight:normal;
}
.pagelinklast
{
background-color: #DFE6EF;
border: 1px solid #072A66;
padding:1px 3px 1px 3px;
color: #000;
font-weight:normal;
}
.pagecurrent
{
background-color: #FFC9A5;
border: 1px solid #072A66;
padding:1px 3px 1px 3px;
color: #000;
font-weight:normal;
}
.pagelink a:active,
.pagelink a:visited,
.pagelink a:link,
.pagelinklast a:active,
.pagelinklast a:visited,
.pagelinklast a:link,
.pagecurrent a:active,
.pagecurrent a:visited,
.pagecurrent a:link
{
text-decoration:none;
color: #000;
font-weight:normal;
}
/* ======================================== */
/* MENU STYLES */
/* ======================================== */
.menulinkwrap
{
font-size:9px;
background-color:#EEF2F7;
padding:2px 0px 2px 0px;
line-height:1.7em;
}
.menulinkwrap a:link,
.menulinkwrap a:visited,
.menulinkwrap a:active
{
color: #000;
border-left:2px solid #EEF2F7;
}
.menulinkon
{
background-color:#DFE6EF;
border-right:2px solid #3860BB;
border-left:2px solid #3860BB;
}
.menulinkoff
{
border-left:2px solid #EEF2F7;
background-color:#EEF2F7;
}
.descbox
{
padding:4px;
border:1px solid #CCC;
position:absolute;
background-color:#FAFFAF;
font-size:10px;
font-weight:normal;
color: #000;
width: 120px;
}
.menumaintopon
{
font-size:10px;
vertical-align:middle;
font-weight:bold;
color:#FFF;
padding:6px;
background-image: url(tile_cat.gif);
background-color:#5176B5;
}
.menumaintopoff
{
font-size:10px;
vertical-align:middle;
font-weight:bold;
color:#FFF;
padding:5px 0px 8px 5px;
background-image: url(menu_collapsed.gif);
background-color:#5176B5;
}
.menumaintopon a:link,
.menumaintopon a:visited,
.menumaintopon a:active,
.menumaintopoff a:link,
.menumaintopoff a:visited,
.menumaintopoff a:active
{
text-decoration: none;
color: #FFF
}
.menumaintopon a:hover,
.menumaintopoff a:hover
{
text-decoration: underline
}
/* ======================================== */
/* BOARD NAVIGATION STYLES */
/* ======================================== */
.navstrip
{
background-color: transparent;
color: #999;
font-size: 12px;
font-weight: bold;
padding: 6px 0px 6px 0px;
}
.navstrip a:link,
.navstrip a:visited,
.navstrip a:active
{
background-color: transparent;
color: #222;
text-decoration: none;
}
.navstrip a:hover
{
background-color: transparent;
color: #5176B5;
text-decoration: none;
}
#logostrip
{
background-color: #3860BB;
background-image: url(tile_back.gif);
border-bottom: 5px solid #072A66;
border-left: 1px solid #072A66;
border-right: 1px solid #072A66;
border-top: 1px solid #072A66;
height: 52px;
margin: 0px;
padding: 0px;
}
#logostripinner
{
background-color: transparent;
background-image: url(logobg.gif);
background-position: right;
background-repeat: no-repeat;
height: 52px;
margin: 0px;
padding: 0px;
}
#submenu
{
border:1px solid #BCD0ED;
background-color: #DFE6EF;
font-size:10px;
margin:3px 0px 3px 0px;
color:#3A4F6C;
font-weight:bold;
}
#submenu a:link,
#submenu a:visited,
#submenu a:active
{
font-weight:bold;
font-size:10px;
text-decoration: none;
color: #3A4F6C;
}
.offdiv
{
font-size:12px;
font-weight:bold
}
/* ======================================== */
/* TITLE ELEMENTS */
/* ======================================== */
.maintitle
{
font-size:12px;
vertical-align:middle;
font-weight:bold;
color:#FFF;
padding:8px;
background-image: url(tile_cat.gif);
background-color:##345487;
}
.maintitle a:link,
.maintitle a:visited,
.maintitle a:active
{
text-decoration: none;
color: #FFF
}
.maintitle a:hover
{
text-decoration: underline
}
.titlemedium
{
border:1px solid #FFF;
font-weight:bold;
color:#3A4F6C;
padding:5px 0px 8px 2px;
background-image: url(tile_sub.gif)
}
.titlemedium a:link,
.titlemedium a:visited,
.titlemedium a:active
{
text-decoration: underline;
color: #3A4F6C
}
#maintop
{
font-size:14px;
color:#FFF;
font-weight:bold;
letter-spacing:-1px;
padding:5px 5px 8px 5px;
border:1px solid #345487;
background-image: url(tile_cat.gif);
background-color:#5176B5;
}
.pformstrip
{
background-color: #D1DCEB;
color:#3A4F6C;
font-weight:bold;
padding:5px;
margin-top:1px
}
#normal
{
font: 10px Verdana;
color:#333333
}
#detail
{
fonLine truncated
|
||||
/*===============================================*/
/* New Styles */
/*===============================================*/
del,
.diffred
{
background-color: #D7BBC8;
text-decoration:none;
}
ins,
.diffgreen
{
background-color: #BBD0C8;
text-decoration:none;
}
.perms-red
{
background-color: #D7BBC8;
}
.perms-green
{
background-color: #BBD0C8;
}
.perms-gray
{
background-color: #CCC;
}
.input-warn,
.input-warn-content
{
border: 1px solid #C00;
}
.input-ok,
.input-ok-content
{
border: 1px solid #0C0;
}
.input-warn-content
{
padding: 4px;
margin: 4px;
background-color: #FCC;
}
.input-ok-content
{
padding: 4px;
margin: 4px;
background-color: #CFC;
}
.img-boxed
{
border:2px inset #345487;
background-color:#E4EAF2;
padding:2px;
}
.img-boxed-off
{
border:1px outset #E4EAF2;
background-color:transparent;
padding:3px;
}
.tablesubheader,
.tablefooter
{
background-color: #D1DCEB;
color:#3A4F6C;
font-weight:bold;
padding:6px;
margin-top:1px
}
.tablerow1
{
background-color:#E4EAF2;
padding:6px;
border-bottom:1px solid #D1DCEB;
border-right:1px solid #D1DCEB ;
border-top:1px solid #FFF;
border-left:1px solid #FFF;
}
.tablerow2
{
background-color:#F5F9FD;
padding:6px;
border-bottom:1px solid #D1DCEB;
border-right:1px solid #D1DCEB;
border-top:1px solid #FFF;
border-left:1px solid #FFF;
}
.tablerow3
{
background-color:#D1DCEB;
padding:6px;
border-bottom:1px solid #D1DCEB;
border-right:1px solid #D1DCEB;
border-top:1px solid #FFF;
border-left:1px solid #FFF;
}
.tablerow4
{
background-color:#C0CBDA;
padding:6px;
border-bottom:1px solid #D1DCEB;
border-right:1px solid #D1DCEB;
border-top:1px solid #FFF;
border-left:1px solid #FFF;
}
.popupmenu
{
background-color: #E4EAF2;
border:1px solid #345487;
text-align:left;
font-size:10px;
padding:3px 5px 3px 3px;
/*width:300px;*/
}
.menusep
{
white-space: nowrap; /* stop menu collapsing in IE */
padding-top:1px;
padding-bottom:1px;
border-bottom:1px solid #DDD;
}
.menuseplast
{
white-space: nowrap; /* stop menu collapsing in IE */
padding-top:1px;
padding-bottom:1px;
}
.menusep a:link,
.menusep a:visited,
.menusep a:active,
.menuseplast a:link,
.menuseplast a:visited,
.menuseplast a:active
{
text-decoration:none;
font-weight:bold;
}
/* ======================================== */
/* GLOBAL ELEMENTS */
/* ======================================== */
html
{
overflow-x: auto; /* fixes MSIE scrollbar bug DO NOT REMOVE */
}
body,
.body-bg
{
color: #000;
font-family: Verdana, Tahoma, Arial, Trebuchet MS, Sans-Serif, Georgia, Courier, Times New Roman, Serif;
font-size: 10px;
margin: 0px;
padding: 0px;
text-align: center;
/* centers board in MSIE known bug workaround */
background-repeat: repeat-x;
background-image: url(images/acp_logo_strip_bg.gif);
background-color: #D4D9E1;
}
table, tr, td
{
color: #000;
font-family: Verdana, Tahoma, Arial, Trebuchet MS, Sans-Serif, Georgia, Courier, Times New Roman, Serif;
font-size: 10px;
}
a:link,
a:visited,
a:active
{
color:#000055;
}
a:hover
{
color:#333377;
text-decoration:underline
}
form { display:inline }
input { vertical-align:middle }
img { vertical-align:middle }
/* ======================================== */
/* MAIN WRAPPER ID */
/* ======================================== */
/* Adjust main width here. Leave margins alone to auto-center content */
#ipdwrapper
{
text-align: left; /* re_aligns text to left second part of two part MSIE centering workaround */
padding: 6px;
}
/* ======================================== */
/* MAIN BLOCKS
/* ======================================== */
#leftblock
{
border: 1px solid #555;
background-color:#FFF;
padding:10px;
}
#rightblock
{
padding:10px;
border: 1px solid #555;
background-color:#FFF;
}
#tablewrap
{
height:100%;
}
/* ======================================== */
/* TABS
/* ======================================== */
.tabon
{
border-top:1px solid #999;
border-left:1px solid #999;
border-right:1px solid #999;
background-color:#FFF;
padding:8px;
font-size:11px;
float:left;
width:auto;
margin-top:3px;
}
.taboff
{
border-top: 1px solid #777;
border-left: 1px solid #777;
border-right: 1px solid #777;
background-color: #B5C3D9;
color: #333;
padding: 8px;
font-size:11px;
float: left;
width: auto;
background-image: url(images/taboffshade2.gif);
background-repeat: no-repeat;
background-position: left bottom;
margin-top:3px;
}
.topbutton
{
border-top: 1px solid #345487;
border-left: 1px solid #345487;
border-right: 1px solid #345487;
background-color: #E4EAF2;
color: #555;
padding: 6px;
font-size: 10px;
white-space: nowrap;
position: relative;
text-align: center;
float: left;
background-image: url(images/acp_topbutton_shadow.gif);
background-repeat: repeat-x;
background-position: left bottom;
}
.topbuttonnext
{
border-top: 1px solid #345487;
border-right: 1px solid #345487;
background-color: #E4EAF2;
color: #555;
paddLine truncated
|
||||
@@ -1,16 +1,77 @@
|
||||
//------------------------------------------
|
||||
// Invision Power Board v2.0
|
||||
// Invision Power Board v2.1.7
|
||||
// ACP Specific JS File
|
||||
// (c) 2003 Invision Power Services, Inc.
|
||||
//
|
||||
// http://www.invisionboard.com
|
||||
//------------------------------------------
|
||||
|
||||
/*--------------------------------------------*/
|
||||
// IE TWEAKS
|
||||
/*--------------------------------------------*/
|
||||
|
||||
|
||||
//==========================================
|
||||
// AJAX REFRESH
|
||||
//==========================================
|
||||
|
||||
function ajax_refresh( url, text, addtotext )
|
||||
{
|
||||
/*--------------------------------------------*/
|
||||
// Main function to do on request
|
||||
// Must be defined first!!
|
||||
/*--------------------------------------------*/
|
||||
|
||||
do_request_function = function()
|
||||
{
|
||||
//----------------------------------
|
||||
// Ignore unless we're ready to go
|
||||
//----------------------------------
|
||||
|
||||
if ( ! xmlobj.readystate_ready_and_ok() )
|
||||
{
|
||||
// Could do a little loading graphic here?
|
||||
return;
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// INIT
|
||||
//----------------------------------
|
||||
|
||||
var html = xmlobj.xmlhandler.responseText;
|
||||
|
||||
eval( html );
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// LOAD XML
|
||||
//----------------------------------
|
||||
|
||||
if ( url )
|
||||
{
|
||||
xmlobj = new ajax_request();
|
||||
xmlobj.onreadystatechange( do_request_function );
|
||||
xmlobj.process( url );
|
||||
}
|
||||
|
||||
if ( text )
|
||||
{
|
||||
// Put it to the top
|
||||
if ( addtotext )
|
||||
{
|
||||
document.getElementById('refreshbox').innerHTML = text + '<br />' + document.getElementById('refreshbox').innerHTML;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById('refreshbox').innerHTML = text;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//==========================================
|
||||
// POP UP YA WINDA
|
||||
//==========================================
|
||||
|
||||
|
||||
function pop_win(theUrl, winName, theWidth, theHeight)
|
||||
{
|
||||
if (winName == '') { winName = 'Preview'; }
|
||||
@@ -122,8 +183,9 @@ function collapsemenu()
|
||||
|
||||
function changefont()
|
||||
{
|
||||
savearray = new Array();
|
||||
idarray = new Array();
|
||||
var savearray = new Array();
|
||||
var idarray = new Array();
|
||||
var rootdoc = '';
|
||||
|
||||
if ( template_bit_ids )
|
||||
{
|
||||
@@ -135,12 +197,29 @@ function changefont()
|
||||
savearray = tmp.split(",");
|
||||
}
|
||||
|
||||
chosenfont = document.theform.fontchange.options[document.theform.fontchange.selectedIndex].value;
|
||||
chosensize = document.theform.sizechange.options[document.theform.sizechange.selectedIndex].value;
|
||||
chosenback = document.theform.backchange.options[document.theform.backchange.selectedIndex].value;
|
||||
fontcolor = document.theform.fontcolor.options[document.theform.fontcolor.selectedIndex].value;
|
||||
widthchange = document.theform.widthchange.options[document.theform.widthchange.selectedIndex].value;
|
||||
highchange = document.theform.highchange.options[document.theform.highchange.selectedIndex].value;
|
||||
try
|
||||
{
|
||||
if ( document.getElementById( 'te-iframe' ) )
|
||||
{
|
||||
rootdoc = window.frames['te-iframe'].document;
|
||||
}
|
||||
else
|
||||
{
|
||||
rootdoc = document;
|
||||
}
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
//alert(e);
|
||||
}
|
||||
|
||||
|
||||
chosenfont = rootdoc.theform.fontchange.options[rootdoc.theform.fontchange.selectedIndex].value;
|
||||
chosensize = rootdoc.theform.sizechange.options[rootdoc.theform.sizechange.selectedIndex].value;
|
||||
chosenback = rootdoc.theform.backchange.options[rootdoc.theform.backchange.selectedIndex].value;
|
||||
fontcolor = rootdoc.theform.fontcolor.options[rootdoc.theform.fontcolor.selectedIndex].value;
|
||||
widthchange = rootdoc.theform.widthchange.options[rootdoc.theform.widthchange.selectedIndex].value;
|
||||
highchange = rootdoc.theform.highchange.options[rootdoc.theform.highchange.selectedIndex].value;
|
||||
|
||||
if ( idarray.length )
|
||||
{
|
||||
@@ -148,7 +227,7 @@ function changefont()
|
||||
{
|
||||
id = idarray[i];
|
||||
|
||||
itm = my_getbyid(id);
|
||||
itm = rootdoc.getElementById( id );
|
||||
|
||||
if ( chosenfont != '-' )
|
||||
{
|
||||
@@ -200,20 +279,106 @@ function autojumpmenu(fobj)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//==========================================
|
||||
// Check for no special chars
|
||||
//==========================================
|
||||
|
||||
function no_specialchars(type)
|
||||
{
|
||||
var name;
|
||||
|
||||
if (type == 'sets')
|
||||
{
|
||||
var field = document.theAdminForm.sname;
|
||||
name = 'Íàçâàíèå ñòèëÿ';
|
||||
}
|
||||
|
||||
if (type == 'wrapper')
|
||||
{
|
||||
var field = document.theAdminForm.name;
|
||||
name = 'Íàçâàíèå îáùåãî øàáëîíà';
|
||||
}
|
||||
|
||||
if (type == 'csssheet')
|
||||
{
|
||||
var field = document.theAdminForm.name;
|
||||
name = 'Íàçâàíèå CSS';
|
||||
}
|
||||
|
||||
if (type == 'templates')
|
||||
{
|
||||
var field = document.theAdminForm.skname;
|
||||
name = 'Íàçâàíèå íàáîðà øàáëîíîâ';
|
||||
}
|
||||
|
||||
if (type == 'images')
|
||||
{
|
||||
var field = document.theAdminForm.setname;
|
||||
name = 'Íàçâàíèå ìàêðîñîâ';
|
||||
}
|
||||
|
||||
var valid = 'abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890.()[]:;~+-_';
|
||||
var ok = 1;
|
||||
var temp;
|
||||
|
||||
for (var i=0; i < field.value.length; i++)
|
||||
{
|
||||
temp = "" + field.value.substring(i,i+1);
|
||||
|
||||
if (valid.indexOf(temp) == "-1")
|
||||
{
|
||||
ok = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (ok == 0)
|
||||
{
|
||||
alert('Íåêîððåêòíàÿ çàïèñü: ' + name + ', âû ìîæåòå èñïîëüçîâàòü òîëüêî ÷èñëà è ñëåäóþùèå ñïåöèàëüíûå ñèìâîëû.\n. ( ) : ; ~ + - _');
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
//==========================================
|
||||
// IPS Kernel method
|
||||
//==========================================
|
||||
|
||||
function confirm_action( url, msg )
|
||||
{
|
||||
return maincheckdelete( url, msg );
|
||||
}
|
||||
|
||||
//==========================================
|
||||
// Backwards compatible check delete
|
||||
//==========================================
|
||||
|
||||
function checkdelete( url )
|
||||
{
|
||||
return maincheckdelete( ipb_var_base_url + '&' + url );
|
||||
}
|
||||
|
||||
//==========================================
|
||||
// Main check delete
|
||||
//==========================================
|
||||
|
||||
function maincheckdelete(url, msg)
|
||||
{
|
||||
if ( ! msg )
|
||||
{
|
||||
msg = 'PLEASE CONFIRM:\nOK to proceed with delete?';
|
||||
msg = 'Ïîæàëóéñòà ïîäòâåðäèòå óäàëåíèå.';
|
||||
}
|
||||
|
||||
if (confirm( msg ))
|
||||
{
|
||||
window.location.href = url;
|
||||
document.location.href = url;
|
||||
}
|
||||
else
|
||||
{
|
||||
alert ( 'OK, action cancelled!' );
|
||||
alert ( 'Äåéñòâèå îòìåíåíî!' );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// IPS BASIC MENU CLASS (EXTENSION: BUILD SIMPLE MENU)
|
||||
// (c) 2005 Invision Power Services, Inc
|
||||
// Assumes that "ips_menu.js" has been loaded
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
//----------------------------------
|
||||
// INIT some CSS classes
|
||||
//----------------------------------
|
||||
|
||||
var css_mainwrap = 'popupmenu';
|
||||
var css_menusep = 'menusep';
|
||||
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' />";
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Return formed image
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function make_image( img )
|
||||
{
|
||||
return "<img src='" + ipb_skin_url + "/images/" + img + "' border='0' alt='-' class='ipd' />";
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// menu_build_menu
|
||||
// cid: ID of opener object (img, div, etc)
|
||||
// menuinput: Array of menu entries | Variable of menu HTML
|
||||
// complexmenu: Treat as HTML stream if true, else treat as array of HTML
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function menu_build_menu(cid, menuinput, complexmenu)
|
||||
{
|
||||
var html = "\n<div class='" + css_mainwrap + "' id='" + cid + "_menu' style='display:none;z-index:100'>\n";
|
||||
|
||||
if ( ! complexmenu )
|
||||
{
|
||||
len = parseInt(menuinput.length);
|
||||
|
||||
if ( len > 0 )
|
||||
{
|
||||
for( var i in menuinput )
|
||||
{
|
||||
t = parseInt(i) + 1;
|
||||
|
||||
thisclass = ( t == len ) ? css_menusep_last : css_menusep;
|
||||
|
||||
if ( menuinput[i].match( /^--NODIV--/ ) )
|
||||
{
|
||||
html += menuinput[i].replace( /^--NODIV--/, '' );
|
||||
}
|
||||
else
|
||||
{
|
||||
html += "<div class='" + thisclass + "'>\n" + menuinput[i] + "\n</div>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
html += menuinput;
|
||||
}
|
||||
|
||||
html += "\n</div>\n";
|
||||
|
||||
//----------------------------------
|
||||
// Workaround for IE bug which shows
|
||||
// select boxes and other windows GUI
|
||||
// over divs. Write iframe
|
||||
//----------------------------------
|
||||
|
||||
if ( is_ie )
|
||||
{
|
||||
html += "\n"+'<iframe id="if_' + cid + '" src="' + ipb_skin_url + '/iframe.html" scrolling="no" frameborder="0" style="position:absolute;top:0px;left:0px;display:none;"></iframe>'+"\n";
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// Write the html
|
||||
//----------------------------------
|
||||
|
||||
if ( html != '' )
|
||||
{
|
||||
document.open();
|
||||
document.writeln( html );
|
||||
document.close();
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// Register and init
|
||||
//----------------------------------
|
||||
|
||||
menu_register( cid );
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,794 @@
|
||||
//------------------------------------------
|
||||
// Invision Power Board v2.1.7
|
||||
// ACP Specific JS File
|
||||
// (c) 2005 Invision Power Services, Inc.
|
||||
//
|
||||
// http://www.invisionboard.com
|
||||
//------------------------------------------
|
||||
|
||||
var _this;
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Initiate object
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function acpperms()
|
||||
{
|
||||
this.div_wrapper = document.getElementById('perms-wrapper');
|
||||
this.div_content = document.getElementById('perms-content');
|
||||
this.div_drag = document.getElementById('perms-drag');
|
||||
this.div_status = document.getElementById('perms-status');
|
||||
this.div_status_msg = document.getElementById('perms-status-msg');
|
||||
this.obj_center = new center_div();
|
||||
this.form_code = 'section=admin&act=acpperms';
|
||||
this.initialized = 0;
|
||||
this.member_id = 0;
|
||||
this.xmlobj = null;
|
||||
this.loading_fired = 0;
|
||||
this.save_cache = new Array();
|
||||
this.perm_main = '';
|
||||
this.perm_child = '';
|
||||
this.reg_tabs = new Array( 'content', 'lookandfeel', 'tools', 'components', 'admin' );
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Save perm bits
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function bbedit_acpperms_save_group( perm_main, perm_child, doreturn ) {}
|
||||
|
||||
acpperms.prototype.save_group = function( perm_main, perm_child, member_id, result )
|
||||
{
|
||||
//----------------------------------
|
||||
// INIT
|
||||
//----------------------------------
|
||||
|
||||
this.member_id = member_id;
|
||||
|
||||
//----------------------------------
|
||||
// Sync...
|
||||
//----------------------------------
|
||||
|
||||
this.perm_main = perm_main;
|
||||
this.perm_child = perm_child;
|
||||
tab = this.perm_main;
|
||||
|
||||
/*--------------------------------------------*/
|
||||
// Main function to do on request
|
||||
// Must be defined first!! Chill
|
||||
/*--------------------------------------------*/
|
||||
|
||||
_this = this;
|
||||
|
||||
this.do_request_function = function()
|
||||
{
|
||||
//----------------------------------
|
||||
// Ignore unless we're ready to go
|
||||
//----------------------------------
|
||||
|
||||
if ( ! _this.xmlobj.readystate_ready_and_ok() )
|
||||
{
|
||||
_this.show_loading( 'Ñîõðàíåíèå...' );
|
||||
return;
|
||||
}
|
||||
|
||||
_this.hide_loading();
|
||||
|
||||
//----------------------------------
|
||||
// INIT
|
||||
//----------------------------------
|
||||
|
||||
var html = _this.xmlobj.xmlhandler.responseText;
|
||||
|
||||
_this.div_content.innerHTML = html;
|
||||
|
||||
//----------------------------------
|
||||
// INIT tabs
|
||||
//----------------------------------
|
||||
|
||||
_this.init_tabs();
|
||||
}
|
||||
|
||||
this.xmlobj = new ajax_request();
|
||||
this.xmlobj.onreadystatechange( this.do_request_function );
|
||||
|
||||
//----------------------------------
|
||||
// LOAD XML
|
||||
//----------------------------------
|
||||
|
||||
this.xmlobj.process( ipb_var_base_url + '&' + this.form_code + '&code=acpperms-xml-save-group&member_id=' + this.member_id + '&perm_child=' + this.perm_child + '&perm_main=' + this.perm_main + '&result=' + result );
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Loads and init's display
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function bbedit_acpperms_undo_bits() {}
|
||||
|
||||
acpperms.prototype.undo_bits = function()
|
||||
{
|
||||
//----------------------------------
|
||||
// Loop through save bits cache....
|
||||
//----------------------------------
|
||||
|
||||
for( var i in this.save_cache )
|
||||
{
|
||||
var perm_bit = i;
|
||||
var switcheroo = document.getElementById( 'pb_' + perm_bit ).value ? 0 : 1;
|
||||
var classname = switcheroo ? 'perms-red' : 'perms-green';
|
||||
|
||||
//----------------------------------
|
||||
// Reset....
|
||||
//----------------------------------
|
||||
|
||||
document.getElementById( 'pb_' + perm_bit ).value = switcheroo;
|
||||
|
||||
document.getElementById( 'td_' + perm_bit + '_a' ).className = classname;
|
||||
document.getElementById( 'td_' + perm_bit + '_b' ).className = classname;
|
||||
document.getElementById( 'td_' + perm_bit + '_c' ).className = classname;
|
||||
document.getElementById( 'td_' + perm_bit + '_d' ).className = classname;
|
||||
|
||||
//----------------------------------
|
||||
// Change img classname
|
||||
//----------------------------------
|
||||
|
||||
try
|
||||
{
|
||||
if ( ! switcheroo )
|
||||
{
|
||||
document.getElementById( 'img-' + perm_bit + '-cross' ).className = 'img-boxed-off';
|
||||
document.getElementById( 'img-' + perm_bit + '-tick' ).className = 'img-boxed';
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById( 'img-' + perm_bit + '-cross' ).className = 'img-boxed';
|
||||
document.getElementById( 'img-' + perm_bit + '-tick' ).className = 'img-boxed-off';
|
||||
}
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
//alert(e);
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// Reset the array....
|
||||
//----------------------------------
|
||||
|
||||
this.save_cache = new Array();
|
||||
|
||||
//----------------------------------
|
||||
// Reset save / undo buttons....
|
||||
//----------------------------------
|
||||
|
||||
document.getElementById( 'perms-save-box' ).className = 'input-ok-content';
|
||||
document.getElementById( 'perms-undo-box' ).className = 'input-ok-content';
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Loads and init's display
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function bbedit_acpperms_clicked() {}
|
||||
|
||||
acpperms.prototype.clicked = function( perm_bit, onoff )
|
||||
{
|
||||
//----------------------------------
|
||||
// Function off, but image clicked?
|
||||
//----------------------------------
|
||||
|
||||
if ( perm_bit != 'mainbit' && ( ! document.getElementById( 'pb_mainbit' ).value || document.getElementById( 'pb_mainbit' ).value == 0 ) )
|
||||
{
|
||||
alert( "Äëÿ âêëþ÷åíèÿ èíäèâèäóàëüíûõ íàñòðîåê äîñòóïà ïîæàëóéñòà âêëþ÷èòå 'ÐÀÇÐÅØÈÒÜ ÄÎÑÒÓÏ Ê ÝÒÎÉ ÔÓÍÊÖÈÈ'" );
|
||||
return false;
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// Just clicked mainbit?
|
||||
//----------------------------------
|
||||
|
||||
if ( perm_bit == 'mainbit' )
|
||||
{
|
||||
this.save_mainbit( onoff );
|
||||
return false;
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// Add to save_cache
|
||||
//----------------------------------
|
||||
|
||||
this.save_cache[ perm_bit ] = onoff;
|
||||
|
||||
//----------------------------------
|
||||
// Change save / undo button img
|
||||
//----------------------------------
|
||||
|
||||
document.getElementById( 'perms-save-box' ).className = 'input-warn-content';
|
||||
document.getElementById( 'perms-undo-box' ).className = 'input-warn-content';
|
||||
|
||||
//----------------------------------
|
||||
// Add to save_cache
|
||||
//----------------------------------
|
||||
|
||||
document.getElementById( 'pb_' + perm_bit ).value = onoff;
|
||||
|
||||
//----------------------------------
|
||||
// Change row colours
|
||||
//----------------------------------
|
||||
|
||||
var classname = onoff ? 'perms-green' : 'perms-red';
|
||||
|
||||
try
|
||||
{
|
||||
document.getElementById( 'td_' + perm_bit + '_a' ).className = classname;
|
||||
document.getElementById( 'td_' + perm_bit + '_b' ).className = classname;
|
||||
document.getElementById( 'td_' + perm_bit + '_c' ).className = classname;
|
||||
document.getElementById( 'td_' + perm_bit + '_d' ).className = classname;
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
//alert(e);
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// Change img classname
|
||||
//----------------------------------
|
||||
|
||||
try
|
||||
{
|
||||
if ( onoff )
|
||||
{
|
||||
document.getElementById( 'img-' + perm_bit + '-cross' ).className = 'img-boxed-off';
|
||||
document.getElementById( 'img-' + perm_bit + '-tick' ).className = 'img-boxed';
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById( 'img-' + perm_bit + '-cross' ).className = 'img-boxed';
|
||||
document.getElementById( 'img-' + perm_bit + '-tick' ).className = 'img-boxed-off';
|
||||
}
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
//alert(e);
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Inits tabs
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function bbedit_acpperms_init_tabs() {}
|
||||
|
||||
acpperms.prototype.init_tabs = function()
|
||||
{
|
||||
//----------------------------------
|
||||
// Change style depending on status
|
||||
//----------------------------------
|
||||
|
||||
for ( i = 0 ; i < this.reg_tabs.length ; i++ )
|
||||
{
|
||||
var tab = this.reg_tabs[ i ];
|
||||
|
||||
if ( ! document.getElementById( 'tab_' + tab ).value || document.getElementById( 'tab_' + tab ).value == 0 || typeof(document.getElementById( 'tab_' + tab ).value) == 'undefined' )
|
||||
{
|
||||
// Change text colo(?:u)?r
|
||||
document.getElementById( 'href_' + tab ).style.color = '#777';
|
||||
|
||||
// Change image too...
|
||||
document.getElementById( 'img-' + tab + '-cross' ).className = 'img-boxed';
|
||||
}
|
||||
else
|
||||
{
|
||||
// Change text colo(?:u)?r
|
||||
document.getElementById( 'href_' + tab ).style.color = '#000';
|
||||
|
||||
// Change image too...
|
||||
document.getElementById( 'img-' + tab + '-tick' ).className = 'img-boxed';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Save perm bits
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function bbedit_acpperms_save_bits() {}
|
||||
|
||||
acpperms.prototype.save_bits = function( doreturn )
|
||||
{
|
||||
//----------------------------------
|
||||
// If it's the first screen loaded
|
||||
// after clicking the tab, the this.perm_child
|
||||
// won't have any info.. so grab it from the HTML
|
||||
//----------------------------------
|
||||
|
||||
this.perm_child = document.getElementById('perms-perm-child-id').value;
|
||||
|
||||
//----------------------------------
|
||||
// INIT
|
||||
//----------------------------------
|
||||
|
||||
var urlbits = new Array();
|
||||
var needsave = 0;
|
||||
|
||||
for( var i in this.save_cache )
|
||||
{
|
||||
var perm_bit = i;
|
||||
|
||||
if ( perm_bit )
|
||||
{
|
||||
needsave = 1;
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// Add to array
|
||||
//----------------------------------
|
||||
|
||||
urlbits[ 'pbfs_' + perm_bit ] = this.save_cache[i];
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// Need to save?
|
||||
//----------------------------------
|
||||
|
||||
if ( needsave == 0 )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// Show neat little "save.." msg
|
||||
// Not always here, so...
|
||||
//----------------------------------
|
||||
|
||||
try
|
||||
{
|
||||
document.getElementById( 'perms-save-box' ).className = 'input-ok-content';
|
||||
document.getElementById( 'perms-save-box' ).innerHTML = "Àâòî-ñîõðàíåíèå...";
|
||||
}
|
||||
catch(e) { }
|
||||
|
||||
/*--------------------------------------------*/
|
||||
// Main function to do on request
|
||||
// Must be defined first!! Chill
|
||||
/*--------------------------------------------*/
|
||||
|
||||
_this = this;
|
||||
|
||||
this.do_request_function = function()
|
||||
{
|
||||
//----------------------------------
|
||||
// Ignore unless we're ready to go
|
||||
//----------------------------------
|
||||
|
||||
if ( ! _this.xmlobj.readystate_ready_and_ok() )
|
||||
{
|
||||
_this.show_loading( 'Ñîõðàíåíèå...' );
|
||||
return;
|
||||
}
|
||||
|
||||
_this.hide_loading();
|
||||
|
||||
//----------------------------------
|
||||
// INIT
|
||||
//----------------------------------
|
||||
|
||||
var html = _this.xmlobj.xmlhandler.responseText;
|
||||
}
|
||||
|
||||
this.xmlobj = new ajax_request();
|
||||
this.xmlobj.onreadystatechange( this.do_request_function );
|
||||
|
||||
//----------------------------------
|
||||
// LOAD XML
|
||||
//----------------------------------
|
||||
|
||||
this.xmlobj.process( ipb_var_base_url + '&' + this.form_code + '&code=acpperms-xml-save-bits&member_id=' + this.member_id
|
||||
+ '&perm_child=' + this.perm_child
|
||||
+ '&perm_main=' + this.perm_main, 'POST', this.xmlobj.format_for_post( urlbits ) );
|
||||
|
||||
this.save_cache = new Array();
|
||||
|
||||
if ( doreturn == 1 )
|
||||
{
|
||||
this.init( this.perm_main, this.member_id, this.perm_child );
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Save main bit
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function bbedit_acpperms_save_mainbit() {}
|
||||
|
||||
acpperms.prototype.save_mainbit = function( result )
|
||||
{
|
||||
//----------------------------------
|
||||
// If it's the first screen loaded
|
||||
// after clicking the tab, the this.perm_child
|
||||
// won't have any info.. so grab it from the HTML
|
||||
//----------------------------------
|
||||
|
||||
this.perm_child = document.getElementById('perms-perm-child-id').value;
|
||||
|
||||
/*--------------------------------------------*/
|
||||
// Main function to do on request
|
||||
// Must be defined first!! Chill
|
||||
/*--------------------------------------------*/
|
||||
|
||||
_this = this;
|
||||
|
||||
this.do_request_function = function()
|
||||
{
|
||||
//----------------------------------
|
||||
// Ignore unless we're ready to go
|
||||
//----------------------------------
|
||||
|
||||
if ( ! _this.xmlobj.readystate_ready_and_ok() )
|
||||
{
|
||||
_this.show_loading( 'Ñîõðàíåíèå...' );
|
||||
return;
|
||||
}
|
||||
|
||||
_this.hide_loading();
|
||||
|
||||
//----------------------------------
|
||||
// INIT
|
||||
//----------------------------------
|
||||
|
||||
var html = _this.xmlobj.xmlhandler.responseText;
|
||||
|
||||
_this.div_content.innerHTML = html;
|
||||
|
||||
//----------------------------------
|
||||
// INIT tabs
|
||||
//----------------------------------
|
||||
|
||||
_this.init_tabs();
|
||||
}
|
||||
|
||||
this.xmlobj = new ajax_request();
|
||||
this.xmlobj.onreadystatechange( this.do_request_function );
|
||||
|
||||
//----------------------------------
|
||||
// LOAD XML
|
||||
//----------------------------------
|
||||
|
||||
this.xmlobj.process( ipb_var_base_url + '&' + this.form_code + '&code=acpperms-xml-save-mainbit&member_id=' + this.member_id + '&perm_child=' + this.perm_child + '&perm_main=' + this.perm_main + '&result=' + result );
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Save main tab
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function bbedit_acpperms_save_tab() {}
|
||||
|
||||
acpperms.prototype.save_tab = function( perm_main, member_id, result )
|
||||
{
|
||||
//----------------------------------
|
||||
// INIT
|
||||
//----------------------------------
|
||||
|
||||
this.member_id = member_id;
|
||||
|
||||
//----------------------------------
|
||||
// Sync...
|
||||
//----------------------------------
|
||||
|
||||
this.perm_main = perm_main;
|
||||
|
||||
tab = this.perm_main;
|
||||
|
||||
/*--------------------------------------------*/
|
||||
// Main function to do on request
|
||||
// Must be defined first!! Chill
|
||||
/*--------------------------------------------*/
|
||||
|
||||
_this = this;
|
||||
|
||||
this.do_request_function = function()
|
||||
{
|
||||
//----------------------------------
|
||||
// Ignore unless we're ready to go
|
||||
//----------------------------------
|
||||
|
||||
if ( ! _this.xmlobj.readystate_ready_and_ok() )
|
||||
{
|
||||
_this.show_loading( 'Ñîõðàíåíèå...' );
|
||||
return;
|
||||
}
|
||||
|
||||
_this.hide_loading();
|
||||
|
||||
//----------------------------------
|
||||
// INIT
|
||||
//----------------------------------
|
||||
|
||||
var html = _this.xmlobj.xmlhandler.responseText;
|
||||
|
||||
_this.div_content.innerHTML = html;
|
||||
|
||||
//----------------------------------
|
||||
// INIT tabs
|
||||
//----------------------------------
|
||||
|
||||
_this.init_tabs();
|
||||
}
|
||||
|
||||
this.xmlobj = new ajax_request();
|
||||
this.xmlobj.onreadystatechange( this.do_request_function );
|
||||
|
||||
//----------------------------------
|
||||
// LOAD XML
|
||||
//----------------------------------
|
||||
|
||||
this.xmlobj.process( ipb_var_base_url + '&' + this.form_code + '&code=acpperms-xml-save-tabs&member_id=' + this.member_id + '&perm_main=' + this.perm_main + '&result=' + result );
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Loads and inits display
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function bbedit_acpperms_init() {}
|
||||
|
||||
acpperms.prototype.init = function( tab, member_id, perm_child )
|
||||
{
|
||||
//----------------------------------
|
||||
// BEFORE WE GO, CHECK FOR SAVE
|
||||
// We need to do this now before
|
||||
// we reset this.* vars
|
||||
//----------------------------------
|
||||
|
||||
if ( this.member_id && this.perm_main )
|
||||
{
|
||||
this.save_bits( 0 );
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// INIT
|
||||
//----------------------------------
|
||||
|
||||
this.member_id = member_id;
|
||||
perm_child = typeof(perm_child) == "undefined" ? "" : perm_child;
|
||||
|
||||
//----------------------------------
|
||||
// Sync...
|
||||
//----------------------------------
|
||||
|
||||
this.perm_main = tab;
|
||||
this.perm_child = perm_child;
|
||||
|
||||
//----------------------------------
|
||||
// Close menu?
|
||||
//----------------------------------
|
||||
|
||||
try
|
||||
{
|
||||
menu_action_close();
|
||||
}
|
||||
catch(e) { }
|
||||
|
||||
/*--------------------------------------------*/
|
||||
// Main function to do on request
|
||||
// Must be defined first!! Chill
|
||||
/*--------------------------------------------*/
|
||||
|
||||
_this = this;
|
||||
|
||||
this.do_request_function = function()
|
||||
{
|
||||
//----------------------------------
|
||||
// Ignore unless we're ready to go
|
||||
//----------------------------------
|
||||
|
||||
if ( ! _this.xmlobj.readystate_ready_and_ok() )
|
||||
{
|
||||
_this.show_loading( 'Çàãðóçêà...' );
|
||||
return;
|
||||
}
|
||||
|
||||
_this.hide_loading();
|
||||
|
||||
//----------------------------------
|
||||
// INIT
|
||||
//----------------------------------
|
||||
|
||||
var html = _this.xmlobj.xmlhandler.responseText;
|
||||
|
||||
//----------------------------------
|
||||
// Stop IE showing select boxes over
|
||||
// floating div [ 1 ]
|
||||
//----------------------------------
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
_this.div_content.innerHTML = html;
|
||||
|
||||
//----------------------------------
|
||||
// Stop IE showing select boxes over
|
||||
// floating div [ 2 ]
|
||||
//----------------------------------
|
||||
|
||||
if ( is_ie )
|
||||
{
|
||||
perm_shim = document.getElementById('perm-shim');
|
||||
perm_shim.style.width = _this.div_content.offsetWidth;
|
||||
perm_shim.style.height = _this.div_content.offsetHeight;
|
||||
perm_shim.style.zIndex = _this.div_content.style.zIndex - 1;
|
||||
perm_shim.style.top = _this.div_content.style.top;
|
||||
perm_shim.style.left = _this.div_content.style.left;
|
||||
perm_shim.style.display = "block";
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// INIT tabs
|
||||
//----------------------------------
|
||||
|
||||
_this.init_tabs();
|
||||
}
|
||||
|
||||
this.xmlobj = new ajax_request();
|
||||
this.xmlobj.onreadystatechange( this.do_request_function );
|
||||
|
||||
//----------------------------------
|
||||
// LOAD XML
|
||||
//----------------------------------
|
||||
|
||||
if ( ! tab )
|
||||
{
|
||||
this.xmlobj.process( ipb_var_base_url + '&' + this.form_code + '&code=acpperms-xml-display&member_id=' + this.member_id + '&perm_child=' + perm_child );
|
||||
}
|
||||
else
|
||||
{
|
||||
this.xmlobj.process( ipb_var_base_url + '&' + this.form_code + '&code=acpperms-xml-display&member_id=' + this.member_id + '&perm_child=' + perm_child + '&tab=' + tab );
|
||||
}
|
||||
|
||||
this.div_wrapper.style.position = 'absolute';
|
||||
this.div_wrapper.style.display = 'block';
|
||||
this.div_wrapper.style.zIndex = 99;
|
||||
|
||||
//----------------------------------
|
||||
// Not loaded? INIT
|
||||
//----------------------------------
|
||||
|
||||
if ( ! this.initialized )
|
||||
{
|
||||
|
||||
this.initialized = 1;
|
||||
|
||||
//----------------------------------
|
||||
// Figure width and height
|
||||
//----------------------------------
|
||||
|
||||
var my_width = 0;
|
||||
var my_height = 0;
|
||||
|
||||
if ( typeof( window.innerWidth ) == 'number' )
|
||||
{
|
||||
//----------------------------------
|
||||
// Non IE
|
||||
//----------------------------------
|
||||
|
||||
my_width = window.innerWidth;
|
||||
my_height = window.innerHeight;
|
||||
}
|
||||
else if ( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
|
||||
{
|
||||
//----------------------------------
|
||||
// IE 6+
|
||||
//----------------------------------
|
||||
|
||||
my_width = document.documentElement.clientWidth;
|
||||
my_height = document.documentElement.clientHeight;
|
||||
}
|
||||
else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
|
||||
{
|
||||
//----------------------------------
|
||||
// Old IE
|
||||
//----------------------------------
|
||||
|
||||
my_width = document.body.clientWidth;
|
||||
my_height = document.body.clientHeight;
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// Get div height && width
|
||||
//----------------------------------
|
||||
|
||||
var divheight = parseInt( this.div_wrapper.style.Height );
|
||||
var divwidth = parseInt( this.div_wrapper.style.Width );
|
||||
|
||||
divheight = divheight ? divheight : 400;
|
||||
divwidth = divwidth ? divwidth : 400;
|
||||
|
||||
//----------------------------------
|
||||
// Got it stored in a cookie?
|
||||
//----------------------------------
|
||||
|
||||
var divxy = my_getcookie( 'ipb-perms-div' );
|
||||
var co_ords;
|
||||
|
||||
if ( divxy && divxy != null )
|
||||
{
|
||||
co_ords = divxy.split( ',' );
|
||||
|
||||
//----------------------------------
|
||||
// Got co-ords?
|
||||
//----------------------------------
|
||||
|
||||
if ( co_ords.length )
|
||||
{
|
||||
var final_width = co_ords[0];
|
||||
var final_height = co_ords[1];
|
||||
|
||||
if ( co_ords[0] > my_width )
|
||||
{
|
||||
//----------------------------------
|
||||
// Keep it on screen
|
||||
//----------------------------------
|
||||
|
||||
final_width = my_width - divwidth;
|
||||
}
|
||||
|
||||
if ( co_ords[1] > my_height )
|
||||
{
|
||||
//----------------------------------
|
||||
// Keep it on screen
|
||||
//----------------------------------
|
||||
|
||||
final_height = my_height - divheight;
|
||||
}
|
||||
|
||||
this.div_wrapper.style.left = final_width + 'px';
|
||||
this.div_wrapper.style.top = final_height + 'px';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//----------------------------------
|
||||
// Reposition DIV roughly centered
|
||||
//----------------------------------
|
||||
|
||||
this.div_wrapper.style.left = my_width / 2 - (divwidth / 2) + 'px';
|
||||
this.div_wrapper.style.top = my_height / 2 - (divheight / 2 ) + 'px';
|
||||
}
|
||||
|
||||
Drag.cookiename = 'ipb-perms-div';
|
||||
Drag.init( this.div_drag, this.div_wrapper );
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Show message
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
acpperms.prototype.show_loading = function( status_msg )
|
||||
{
|
||||
if ( ! this.loading_fired )
|
||||
{
|
||||
this.loading_fired = 1;
|
||||
this.div_status_msg.innerHTML = '<div style="width:auto" class="input-warn-content"><strong>' + status_msg + '</strong></strong>';
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/*--------------------------------------------*/
|
||||
// Hide message
|
||||
/*--------------------------------------------*/
|
||||
|
||||
acpperms.prototype.hide_loading = function()
|
||||
{
|
||||
this.div_status_msg.innerHTML = '<div style="width:auto" class="input-ok-content">Ïðèìåíèòü</span>';
|
||||
|
||||
this.loading_fired = 0;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,737 @@
|
||||
<?php
|
||||
|
||||
class cp_skin_admin {
|
||||
|
||||
var $ipsclass;
|
||||
|
||||
//===========================================================================
|
||||
// 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'>
|
||||
<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>
|
||||
</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
|
||||
//===========================================================================
|
||||
function acp_perms_add_admin_form() {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$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">
|
||||
<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='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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='center' class='pformstrip' colspan='2' ><input type='submit' value='Äàëåå >>' id='button' accesskey='s'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
// INIT find names
|
||||
init_js( 'postingform', 'entered_name');
|
||||
// Run main loop
|
||||
var tmp = setTimeout( 'main_loop()', 10 );
|
||||
</script>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// RSS
|
||||
//===========================================================================
|
||||
function acp_perms_overview($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$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'>
|
||||
<div class="tableborder" style='border-width:2px'>
|
||||
<div class='maintitle' 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>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Îãðàíè÷åíèÿ äîñòóïà â àäìèíöåíòð</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>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
</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='MAX_FILE_SIZE' value='10000000000'>
|
||||
<div class='tableborder'>
|
||||
<div class='maintitle'>Èìïîðòèðîâàíèå XML ôàéëà ñ äàííûìè ïî îãðàíè÷åíèÿì</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>
|
||||
</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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='center' class='pformstrip' colspan='2' ><input type='submit' value='Èìïîðòèðîâàòü äàííûå' id='button' accesskey='s'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
EOF;
|
||||
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>
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
</div>
|
||||
EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
var permobj = new acpperms();
|
||||
menu_build_menu(
|
||||
"menumainone",
|
||||
new Array(
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=acpperms-member-add'>Íàéòè è äîáàâèòü àäìèíèñòðàòîðà...</a>"
|
||||
) );
|
||||
//]]>
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// RSS
|
||||
//===========================================================================
|
||||
function acp_perms_row( $data ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<img src='{$this->ipsclass->skin_url}/images/lock_close.gif' border='0' alt='@' style='vertical-align:top' /></a>
|
||||
<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>
|
||||
</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>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// ACP Perms
|
||||
//===========================================================================
|
||||
function acp_xml_welcome($member=array()) {
|
||||
global $ibforums;
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tablerow2'>
|
||||
<input type='hidden' id='perms-perm-child-id' value=' ' />
|
||||
Îãðàíè÷åíèÿ äîñòóïà â àäìèíöåíòð äëÿ <strong>{$member['members_display_name']}</strong>
|
||||
<br />
|
||||
<br />
|
||||
Íàæìèòå íà òàáëèöó âûøå, ÷òîáû óñòàíîâèòü óðîâåíü äîñòóïà äî âñåõ ôóíêöèé â ýòîé òàáëèöå.
|
||||
Åñëè âû õîòèòå âûáðàòü óðîâåíü äîñòóïà ê êàæäîé ôóíêöèè, íàæìèòå íà ññûëêó, ïîêàçûâàþùåéñÿ â îïöèÿõ ýòèõ ôóíêöèé.
|
||||
</div>
|
||||
EOF;
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// ACP Perms
|
||||
//===========================================================================
|
||||
function acp_xml_tab_no_access($member=array()) {
|
||||
global $ibforums;
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tablerow2'>
|
||||
<input type='hidden' id='perms-perm-child-id' value='' />
|
||||
Îãðàíè÷åíèÿ äîñòóïà â àäìèíöåíòð äëÿ <strong>{$member['members_display_name']}</strong>
|
||||
<br />
|
||||
<br />
|
||||
Äîñòóï ê ýòîé òàáëèöå åùå íå âêëþ÷åí. Äëÿ âêëþ÷åíèÿ èíäèâèäóàëüíûõ íàñòðîåê äîñòóïà äëÿ ýòîé òàáëèöû
|
||||
ïðîñòî íàæìèòå íà çåëåíóþ èêîíêó, êîòîðàÿ íàõîäèòñÿ çà çàãîëîâêîì òàáëèöû.
|
||||
<br />
|
||||
<br />
|
||||
Çàòåì âû ñìîæåòå óñòàíàâëèâàòü èíäèâèäóàëüíûå íàñòðîéêè äîñòóïà äëÿ êàæäîé ôóíêöèè, êîòîðàÿ ñãðóïïèðîâàíà ïîä ýòîé òàáëèöåé.
|
||||
</div>
|
||||
EOF;
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// ACP Perms
|
||||
//===========================================================================
|
||||
function acp_xml_tabs($onoff="", $member_id=0, $tabinit="") {
|
||||
global $ibforums;
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div style='height:34px;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' />
|
||||
</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' />
|
||||
</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' />
|
||||
</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' />
|
||||
</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' />
|
||||
</div>
|
||||
</div>
|
||||
EOF;
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// ACP Perms
|
||||
//===========================================================================
|
||||
function acp_xml_wrap($tabs, $content) {
|
||||
global $ibforums;
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='body-bg'>
|
||||
{$tabs}
|
||||
</div>
|
||||
<div style='background-color:#FFF'>
|
||||
$content
|
||||
</div>
|
||||
EOF;
|
||||
//--endhtml--//
|
||||
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
|
||||
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>
|
||||
</tr>
|
||||
EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
</table>
|
||||
</div>
|
||||
<div class='desctext' style='padding:4px'>
|
||||
Êîãäà "ÐÀÇÐÅØÈÒÜ ÄÎÑÒÓÏ Ê ÝÒÎÉ ÔÓÍÊÖÈÈ" âêëþ÷åí, âû ìîæåòå óñòàíàâëèâàòü èíäèâèäóàëüíûå íàñòðîéêè äîñòóïà äëÿ ïîä-ôóíêöèé ýòîé îñíîâíîé ôóíêöèè. Èíà÷å, èçìåíåíèÿ èíäèâèäóàëüíûõ íàñòðîåê äîñòóïà íå áóäóò ðàáîòàòü.</div>
|
||||
EOF;
|
||||
//--endhtml--//
|
||||
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='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>
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<td colspan='2' class='{$class_name}'> </td>
|
||||
EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='4' style='padding:1px;height:4px'><!-- ta --></td>
|
||||
</tr>
|
||||
EOF;
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// ACP Perms
|
||||
//===========================================================================
|
||||
function acp_xml_global_sidebar_wrap($content) {
|
||||
global $ibforums;
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div>
|
||||
$content
|
||||
</div>
|
||||
EOF;
|
||||
//--endhtml--//
|
||||
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' />
|
||||
|
||||
EOF;
|
||||
if ( $allow != 0 )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<span style='color:#000;font-weight:bold'>{$lang_bit}</span>
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<span style='color:#777;font-weight:bold'>{$lang_bit}</span>
|
||||
EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
</div>
|
||||
EOF;
|
||||
//--endhtml--//
|
||||
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--//
|
||||
|
||||
|
||||
$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' />
|
||||
|
||||
EOF;
|
||||
if ( $allow != 0 )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<span style='color:#000;font-weight:bold'>{$lang_bit}</span>
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<span style='color:#777;font-weight:bold'>{$lang_bit}</span>
|
||||
EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
</div>
|
||||
EOF;
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// ACP Perms
|
||||
//===========================================================================
|
||||
function acp_xml_main_wrap($sidebar="", $content="") {
|
||||
global $ibforums;
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div id='perms-main-wrap'>
|
||||
<table cellspacing='0' cellpadding='0' width='100%'>
|
||||
<tr>
|
||||
<td width='220' valign='top' class='tablerow1' style='padding:0px;border:0px'>{$sidebar}</td>
|
||||
<td width='*' valign='top' class='tablerow3'>{$content}</td>
|
||||
</tr>
|
||||
<table>
|
||||
</div>
|
||||
EOF;
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
class cp_skin_components {
|
||||
|
||||
var $ipsclass;
|
||||
|
||||
//===========================================================================
|
||||
// Member: validating
|
||||
//===========================================================================
|
||||
function welcome_page() {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tablesubheader'>IPB Èíôîðìàöèÿ</div>
|
||||
<div class='tablerow1'>
|
||||
Ýòà ñåêöèÿ ñîçäàíà äëÿ ëþáûõ êîìïîíåíòîâ, òàêèõ êàê Invision Gallery, Invision Chat è Invision Community Blog.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,858 @@
|
||||
<?php
|
||||
|
||||
class cp_skin_forums {
|
||||
|
||||
var $ipsclass;
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Forum: Header
|
||||
//===========================================================================
|
||||
function forum_wrapper($content, $r, $reorder, $show_buttons=1, $show_reorder=0) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>
|
||||
EOF;
|
||||
if ( $show_buttons )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<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;' 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' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
else if ( $show_reorder )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<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;' 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" )' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
{$r['name']}
|
||||
EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
$content
|
||||
</table>
|
||||
</div>
|
||||
<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>"
|
||||
) );
|
||||
</script>
|
||||
<br />
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Forum: Render REORDER row
|
||||
//===========================================================================
|
||||
function render_reorder_row( $r, $reorder="", $depth_guide="" ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1' width='10%'>
|
||||
{$reorder}
|
||||
</td>
|
||||
<td class='tablerow1' align='left' width='90%'>
|
||||
{$depth_guide} {$r['name']}
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Forum: Render forum_footer
|
||||
//===========================================================================
|
||||
function render_forum_header() {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type='text/javascript'>
|
||||
//<![CDATA[
|
||||
var modshown = 0;
|
||||
|
||||
function toggle_mod_settings()
|
||||
{
|
||||
var divs = document.getElementsByTagName('div');
|
||||
|
||||
for ( var i = 0 ; i <= divs.length ; i++ )
|
||||
{
|
||||
var e = divs[i];
|
||||
|
||||
if ( e && e.id )
|
||||
{
|
||||
var name = e.id;
|
||||
var mainname = name.replace( /^(.+?)-.+?$/ , "$1" );
|
||||
|
||||
if ( mainname == 'moddiv' )
|
||||
{
|
||||
e.style.display = modshown ? 'none' : '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
document.getElementById( 'togglemod' ).innerHTML = modshown ? 'Ïîêàçàòü ìîäåðàòîðñêèå Îïöèè' : 'Ñêðûòü ìîäåðàòîðñêèå Îïöèè';
|
||||
modshown = modshown == 1 ? 0 : 1;
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
<div class='topbutton'>
|
||||
EOF;
|
||||
if ( $this->ipsclass->input['showall'] )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&showall=0'>Ïîêàçàòü èåðàðõèþ ôîðóìîâ</a>
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&showall=1'>Ïîêàçàòü ôîðóìû áåç èåðàðõèè</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>
|
||||
<br clear='all' />
|
||||
<div id='mainforumwrapper'>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Forum: Render forum_footer
|
||||
//===========================================================================
|
||||
function render_moderator_entry( $data='' ) {
|
||||
|
||||
$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>
|
||||
<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>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Forum: Render forum_footer
|
||||
//===========================================================================
|
||||
function render_forum_footer( $choose="", $mem_group ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
</div>
|
||||
<script type='text/javascript'>
|
||||
//<![CDATA[
|
||||
function gochildrenofthecorn()
|
||||
{
|
||||
var chosenroot = document.forms[0].roots.options[document.forms[0].roots.selectedIndex].value;
|
||||
|
||||
self.location.href = '{$this->ipsclass->base_url}&{$this->ipsclass->form_code_js}&code=reorder&f=' + chosenroot;
|
||||
}
|
||||
|
||||
function gomodform()
|
||||
{
|
||||
var checkboxes = document.getElementsByTagName('input');
|
||||
|
||||
document.getElementById('modforumids').value = '';
|
||||
|
||||
for ( var i = 0 ; i <= checkboxes.length ; i++ )
|
||||
{
|
||||
var cb = checkboxes[i];
|
||||
|
||||
if ( cb && cb.type == 'checkbox' && cb.checked == true )
|
||||
{
|
||||
var name = cb.id;
|
||||
var mainname = name.replace( /^(.+?)_.+?$/ , "$1" );
|
||||
var idname = name.replace( /^(.+?)_(.+?)$/, "$2" );
|
||||
|
||||
if ( mainname == 'id' )
|
||||
{
|
||||
document.getElementById('modforumids').value += ',' + idname;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
document.getElementById('modform').submit();
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
<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>
|
||||
</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='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>
|
||||
Èìÿ ïîëüçîâàòåëÿ <input class='realbutton' type='text' name='name' size='20' value='' /> <strong><i>ÈËÈ</i></strong> Ãðóïïà {$mem_group}
|
||||
</td>
|
||||
<td width='1%' valign='middle'><input type='button' class='realbutton' value='Äîáàâèòü' onclick='gomodform()' /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Forum: Render normal row
|
||||
//===========================================================================
|
||||
function render_forum_row( $desc, $r, $depthguide, $skin ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1' width='95%'>
|
||||
{$depth_guide}
|
||||
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='Ýòîò ôîðóì - Êîðçèíà' />
|
||||
EOF;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<strong style='font-size:11px'>{$r['name']}</strong>
|
||||
EOF;
|
||||
|
||||
if ( ($r['skin_id'] != "") and ($r['skin_id'] >= 0) )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<br>[ Èñïîëüçóåò Ñòèëü: {$skin} ]
|
||||
EOF;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='graytext'>{$desc}</div>
|
||||
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>
|
||||
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>
|
||||
</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>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Forum: Build Permissions
|
||||
//===========================================================================
|
||||
function render_forum_permissions( $global=array(), $content="", $title='Îãðàíè÷åíèÿ óðîâíåé äîñòóïà' ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type='text/javascript'>
|
||||
//<![CDATA[
|
||||
|
||||
var formobj = document.getElementById('adminform');
|
||||
|
||||
//----------------------------------
|
||||
// Check all column
|
||||
//----------------------------------
|
||||
|
||||
function check_all( permtype )
|
||||
{
|
||||
var checkboxes = formobj.getElementsByTagName('input');
|
||||
|
||||
for ( var i = 0 ; i <= checkboxes.length ; i++ )
|
||||
{
|
||||
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) )
|
||||
{
|
||||
var s = e.id;
|
||||
var a = s.replace( /^(.+?)_.+?$/, "$1" );
|
||||
|
||||
if (a == permtype)
|
||||
{
|
||||
e.checked = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( document.getElementById( permtype + '_ALL' ).checked )
|
||||
{
|
||||
document.getElementById( permtype + '_ALL' ).checked = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById( permtype + '_ALL' ).checked = true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// Object has been checked
|
||||
//----------------------------------
|
||||
|
||||
function obj_checked( permtype, pid )
|
||||
{
|
||||
var totalboxes = 0;
|
||||
var total_on = 0;
|
||||
|
||||
if ( pid )
|
||||
{
|
||||
document.getElementById( permtype+'_'+pid ).checked = document.getElementById( permtype+'_'+pid ).checked ? false : true;
|
||||
}
|
||||
|
||||
var checkboxes = formobj.getElementsByTagName('input');
|
||||
|
||||
for ( var i = 0 ; i <= checkboxes.length ; i++ )
|
||||
{
|
||||
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) )
|
||||
{
|
||||
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 + '_ALL' ).checked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById( permtype + '_ALL' ).checked = false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// Check column
|
||||
//----------------------------------
|
||||
|
||||
function checkcol( permtype ,status)
|
||||
{
|
||||
var checkboxes = formobj.getElementsByTagName('input');
|
||||
|
||||
for ( var i = 0 ; i <= checkboxes.length ; i++ )
|
||||
{
|
||||
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) )
|
||||
{
|
||||
var s = e.id;
|
||||
var a = s.replace( /^(.+?)_.+?$/, "$1" );
|
||||
|
||||
if ( a == permtype )
|
||||
{
|
||||
if ( status == 1 )
|
||||
{
|
||||
e.checked = true;
|
||||
document.getElementById( permtype + '_ALL' ).checked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
e.checked = false;
|
||||
document.getElementById( permtype + '_ALL' ).checked = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// Remote click box
|
||||
//----------------------------------
|
||||
|
||||
function toggle_box( compiled_permid )
|
||||
{
|
||||
if ( document.getElementById( compiled_permid ).checked )
|
||||
{
|
||||
document.getElementById( compiled_permid ).checked = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById( compiled_permid ).checked = true;
|
||||
}
|
||||
|
||||
obj_checked( compiled_permid.replace( /^(.+?)_.+?$/, "$1" ) , '');
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// INIT
|
||||
//----------------------------------
|
||||
|
||||
function init_perms()
|
||||
{
|
||||
var tds = formobj.getElementsByTagName('td');
|
||||
|
||||
for ( var i = 0 ; i <= tds.length ; i++ )
|
||||
{
|
||||
var thisobj = tds[i];
|
||||
|
||||
if ( thisobj && thisobj.id )
|
||||
{
|
||||
var name = thisobj.id;
|
||||
var firstpart = name.replace( /^(.+?)_.+?$/, "$1" );
|
||||
|
||||
if ( firstpart == 'clickable' )
|
||||
{
|
||||
try
|
||||
{
|
||||
document.getElementById( tds[i].id ).style.cursor = "pointer";
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
document.getElementById( tds[i].id ).style.cursor = "hand";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// Check row
|
||||
//----------------------------------
|
||||
|
||||
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;
|
||||
|
||||
obj_checked("READ");
|
||||
obj_checked("REPLY");
|
||||
obj_checked("START");
|
||||
obj_checked("UPLOAD");
|
||||
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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='6' class='tablerow1'>
|
||||
<fieldset>
|
||||
<legend><strong>Ãëîáàëüíûå íàñòðîéêè äîñòóïà</strong> (Âñå òåêóùèå è áóäóùèå ìàñêè äîñòóïà)</legend>
|
||||
<table cellpadding='4' cellspacing='0' border='0' class='tdrow1' 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>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</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>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<script type='text/javascript'>
|
||||
//<![CDATA[
|
||||
init_perms();
|
||||
//]]>
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Forum: Build Permissions
|
||||
//===========================================================================
|
||||
function render_forum_permissions_row( $perm=array(), $data=array() ) {
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td colspan='6' 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>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Forums form
|
||||
//===========================================================================
|
||||
function forum_permission_form( $forum, $relative, $perm_matrix ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$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'>
|
||||
{$perm_matrix }
|
||||
<div class='tableborder'><div class='pformstrip' align='center'>
|
||||
EOF;
|
||||
if ( $relative['next'] > 0 )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<input type='submit' name='donext' value='Ñîõðàíèòü è èçìåíèòü ñëåä.' class='realdarkbutton' />
|
||||
EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
<input type='submit' value='Ñîõðàíèòü' class='realbutton' />
|
||||
<input type='submit' name='reload' value='Ñîõðàíèòü è ïåðåçàãðóçèòü îêíî' class='realbutton' />
|
||||
EOF;
|
||||
if ( $relative['next'] > 0 )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<input type='submit' name='doprevious' value='Ñîõðàíèòü è èçìåíèòü ïðåä.' class='realdarkbutton' />
|
||||
EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
</div></div></form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Forums form
|
||||
//===========================================================================
|
||||
function forum_form( $form, $button, $code, $title, $button, $forum, $perm_matrix ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$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'>
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>
|
||||
<div style='float:left'>$title</div>
|
||||
<div align='right' style='padding-right:5px'> </div>
|
||||
</div>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1' colspan='2'>
|
||||
<fieldset>
|
||||
<legend><strong>Îñíîâíûå íàñòðîéêè</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Íàçâàíèå ôîðóìà</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['name']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Îïèñàíèå</strong><div class='desctext'>HTML ðàçðåøåí.<br />Ïåðåíîñû ñòðîê àâòîìàòè÷åñêè çàìåíÿþòñÿ íà <br>.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['description']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âûáåðèòå ðîäèòåëüñêèé ôîðóì èëè êàòåãîðèþ</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['parent_id']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ñîñòîÿíèå ôîðóìà</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['status']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ýòî îáû÷íûé ôîðóì (íå êàòåãîðèÿ)?</strong><div class='desctext'>Åñëè âû âûáåðèòå «<b>Äà</b>», òî ôîðóì áóäåò îáû÷íûì, â íåì áóäóò ðàçðåøåíî îòêðûòèå òåì, ïóáëèêàöèÿ ñîîáùåíèé (åñëè ýòî ðàçðåøåíî).<br><br>Åñëè âûáåðèòå «<b>Íåò</b>», òî ôîðóì áóäåò êàòåãîðèåé, â íåì áóäóò çàïðåùåíî îòêðûòèå òåì è ïóáëèêàöèÿ ñîîáùåíèé, ñîîòâåòñòâåííî, âñå íèæåñëåäóþùèå íàñòðîéêè íå áóäóò èìåòü ñèëû.</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['sub_can_post']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1' colspan='2'>
|
||||
<fieldset>
|
||||
<legend><strong>Íàñòðîéêè ïåðåàäðåñàöèè</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>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='60%' class='tablerow2'>{$form['redirect_on']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Êîëè÷åñòâî íàæàòèé íà ññûëêó (ïåðåìåùåíèé)</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['redirect_hits']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1' colspan='2'>
|
||||
<fieldset>
|
||||
<legend><strong>Íàñòðîéêè äîñòóïà</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='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='60%' class='tablerow2'>{$form['permission_custom_error']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1' colspan='2'>
|
||||
<fieldset>
|
||||
<legend><strong>Íàñòðîéêè ñîîáùåíèé</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='60%' class='tablerow2'>{$form['use_html']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ðàçðåøèòü èñïîëüçîâàíèå BB-êîäîâ ôîðóìà?</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['use_ibc']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âêëþ÷èòü ôîðìó áûñòðîãî îòâåòà äëÿ ýòîãî ôîðóìà?</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['quick_reply']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ðàçðåøèòü ñîçäàíèå ãîëîñîâàíèé (åñëè ýòî ðàçðåøåíî ãðóïïå)?</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='60%' class='tablerow2'>{$form['allow_pollbump']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âêëþ÷èòü ðåéòèíã òåì (åñëè ýòî ðàçðåøåíî ãðóïïå)</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='60%' class='tablerow2'>{$form['inc_postcount']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1' colspan='2'>
|
||||
<fieldset>
|
||||
<legend><strong>Íàñòðîéêè ôîðóìà: Ìîäåðàöèÿ</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='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='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='60%' class='tablerow2'>{$form['password']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1' colspan='2'>
|
||||
<fieldset>
|
||||
<legend><strong>Íàñòðîéêè ôîðóìà: Ñîðòèðîâêà</strong></legend>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ïî óìîë÷àíèþ âûâîäèòü òåìû çà</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['prune']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ïî óìîë÷àíèþ ñîðòèðîâàòü ïî</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['sort_key']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ïîðÿäîê ñîðòèðîâêè ïî óìîë÷àíèþ</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['sort_order']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ôèëüòð ñîðòèðîâêè ïî óìîë÷àíèþ</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['topicfilter']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
EOF;
|
||||
if ( $perm_matrix )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<br />
|
||||
$perm_matrix
|
||||
<br />
|
||||
EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div align='center' class='tablefooter'><input type='submit' class='realbutton' value='$button' /></div>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,770 @@
|
||||
<?php
|
||||
|
||||
class cp_skin_global
|
||||
{
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// global_popup
|
||||
//===========================================================================
|
||||
|
||||
function global_popup($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head><title>Ðóññêàÿ âåðñèÿ IPB</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
|
||||
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache" />
|
||||
<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache" />
|
||||
<meta HTTP-EQUIV="Expires" CONTENT="Mon, 06 May 1996 04:57:00 GMT" />
|
||||
<link rel="stylesheet" type="text/css" media="all" href="{$this->ipsclass->skin_url}/acp_css.css" />
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
var ipb_var_st = "{$this->ipsclass->input['st']}";
|
||||
var ipb_lang_tpl_q1 = "{$this->ipsclass->lang['tpl_q1']}";
|
||||
var ipb_var_phpext = "{$this->ipsclass->vars['php_ext']}";
|
||||
var ipb_var_base_url = "{$this->ipsclass->base_url}&";
|
||||
var ipb_var_cookieid = "{$this->ipsclass->vars['cookie_id']}";
|
||||
var ipb_var_cookie_domain = "{$this->ipsclass->vars['cookie_domain']}";
|
||||
var ipb_var_cookie_path = "{$this->ipsclass->vars['cookie_path']}";
|
||||
var ipb_skin_url = "{$this->ipsclass->skin_url}";
|
||||
var use_enhanced_js = {$this->ipsclass->can_use_fancy_js};
|
||||
//-->
|
||||
</script>
|
||||
<script type="text/javascript" src='jscripts/ipb_global.js'></script>
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_url}/acp_js.js'></script>
|
||||
<script type="text/javascript" src='jscripts/ips_menu.js'></script>
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_url}/acp_js_skin/ips_menu_html.js'></script>
|
||||
<script type="text/javascript" src='jscripts/ips_xmlhttprequest.js'></script>
|
||||
</head>
|
||||
|
||||
<body style='background-image:url({$this->ipsclass->skin_url}/images/blank.gif);text-align:left'>
|
||||
$content
|
||||
<script type="text/javascript">
|
||||
menu_do_global_init();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// global_wrapper
|
||||
//===========================================================================
|
||||
|
||||
function global_main_wrapper() {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset={$this->ipsclass->vars['gb_char_set']}" />
|
||||
<title><%TITLE%></title>
|
||||
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache" />
|
||||
<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache" />
|
||||
<meta HTTP-EQUIV="Expires" CONTENT="Mon, 06 May 1996 04:57:00 GMT" />
|
||||
<link rel="stylesheet" type="text/css" media="all" href="{$this->ipsclass->skin_url}/acp_css.css" />
|
||||
<link rel="shortcut icon" href="favicon.ico" />
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
var ipb_var_st = "{$this->ipsclass->input['st']}";
|
||||
var ipb_lang_tpl_q1 = "{$this->ipsclass->lang['tpl_q1']}";
|
||||
var ipb_var_phpext = "{$this->ipsclass->vars['php_ext']}";
|
||||
var ipb_var_base_url = "{$this->ipsclass->base_url}&";
|
||||
var ipb_var_cookieid = "{$this->ipsclass->vars['cookie_id']}";
|
||||
var ipb_var_cookie_domain = "{$this->ipsclass->vars['cookie_domain']}";
|
||||
var ipb_var_cookie_path = "{$this->ipsclass->vars['cookie_path']}";
|
||||
var ipb_skin_url = "{$this->ipsclass->skin_url}";
|
||||
var ipb_md5_check = "{$this->ipsclass->md5_check}";
|
||||
var use_enhanced_js = {$this->ipsclass->can_use_fancy_js};
|
||||
//-->
|
||||
</script>
|
||||
<script type="text/javascript" src='jscripts/ipb_global.js'></script>
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_url}/acp_js.js'></script>
|
||||
<script type="text/javascript" src='jscripts/ips_menu.js'></script>
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_url}/acp_js_skin/ips_menu_html.js'></script>
|
||||
<script type="text/javascript" src='jscripts/ips_xmlhttprequest.js'></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id='ipdwrapper'><!-- IPDWRAPPER -->
|
||||
<%CONTENT%>
|
||||
</div><!-- / IPDWRAPPER -->
|
||||
<script type="text/javascript">
|
||||
menu_do_global_init();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Global in-line message
|
||||
//===========================================================================
|
||||
function global_help_block($title, $msg) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div><strong>$title</strong>
|
||||
<div class='desctext'>$msg</div></div>
|
||||
<br />
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Global in-line message
|
||||
//===========================================================================
|
||||
function global_message() {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tablesubheader'>Ñîîáùåíèå Invision Power Board</div>
|
||||
<div class='tablerow1' style='font-size:11px'>{$this->ipsclass->main_msg}</div>
|
||||
</div>
|
||||
<br />
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Main Frames
|
||||
//===========================================================================
|
||||
function global_frame_wrapper() {
|
||||
|
||||
$year = date( 'Y' );
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
|
||||
<!-- TOP TABS -->
|
||||
<div style='height:35px'>
|
||||
<%TABS%>
|
||||
<div class='logoright'><img src='{$this->ipsclass->skin_url}/images/acp_logo.gif' alt='IPDynamic' border='0' /></div>
|
||||
</div>
|
||||
<!-- / TOP TABS -->
|
||||
<div class='outerdiv' id='global-outerdiv'><!-- OUTERDIV -->
|
||||
<table cellpadding='0' cellspacing='8' width='100%' id='tablewrap'>
|
||||
<tr>
|
||||
<td width='20%' valign='top' id='leftblock'>
|
||||
<div>
|
||||
<!-- LEFT CONTEXT SENSITIVE MENU -->
|
||||
<%MENU%>
|
||||
<!-- / LEFT CONTEXT SENSITIVE MENU -->
|
||||
</div>
|
||||
</td>
|
||||
<td width='80%' valign='top' id='rightblock'>
|
||||
<div><!-- RIGHT CONTENT BLOCK -->
|
||||
<%NAV%>
|
||||
<%HELP%>
|
||||
<%MSG%>
|
||||
<%SECTIONCONTENT%>
|
||||
<br />
|
||||
<div class='copyright' align='center'>
|
||||
<a href='http://www.bestwarez.ru' style='text-decoration:none' target='_blank'>Ðóññêàÿ âåðñèÿ</a> <a href='http://www.invisionboard.com' style='text-decoration:none' target='_blank'>Invision Power Board</a> © {$year} IPS, Inc.
|
||||
</div>
|
||||
</div><!-- / RIGHT CONTENT BLOCK -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><!-- / OUTERDIV -->
|
||||
<%QUERIES%>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Top TABS
|
||||
//===========================================================================
|
||||
function global_tabs($onoff="") {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='{$onoff['content']}'><img src='{$this->ipsclass->skin_url}/images/content.png' style='vertical-align:middle' /> <a href='{$this->ipsclass->base_url}§ion=content'>ÓÏÐÀÂËÅÍÈÅ</a></div>
|
||||
<div class='{$onoff['lookandfeel']}'><img src='{$this->ipsclass->skin_url}/images/mainmenu.png' style='vertical-align:middle' /> <a href='{$this->ipsclass->base_url}§ion=lookandfeel'>ÂÍÅØÍÈÉ ÂÈÄ</a></div>
|
||||
<div class='{$onoff['tools']}'><img src='{$this->ipsclass->skin_url}/images/config.png' style='vertical-align:middle' /> <a href='{$this->ipsclass->base_url}§ion=tools'>ÍÀÑÒÐÎÉÊÈ</a></div>
|
||||
<div class='{$onoff['components']}'><img src='{$this->ipsclass->skin_url}/images/users.png' style='vertical-align:middle' /> <a href='{$this->ipsclass->base_url}§ion=components'>ÊÎÌÏÎÍÅÍÒÛ</a></div>
|
||||
<div class='{$onoff['admin']}'><img src='{$this->ipsclass->skin_url}/images/config.png' style='vertical-align:middle' /> <a href='{$this->ipsclass->base_url}§ion=admin'>ÏÐÎ×ÅÅ</a></div>
|
||||
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Query HTML
|
||||
//===========================================================================
|
||||
function global_query_output($queries="") {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<br /><br />
|
||||
<div align='center' style='margin-left:auto;margin-right:auto'>
|
||||
<div class='tableborder' style='vertical-align:bottom;text-align:left;width:75%;color:#555'>
|
||||
<div style='padding:5px'><b>Çàïðîñîâ</b></div>
|
||||
<div class='tdrow1' style='padding:6px;color:#555;font-size:10px'>$queries</div>
|
||||
</div>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Log in form
|
||||
//===========================================================================
|
||||
function log_in_form($query_string="", $message="", $name="") {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<script type='text/javascript'>
|
||||
//<![CDATA[
|
||||
if (top.location != self.location) { top.location = self.location }
|
||||
|
||||
function passfocus()
|
||||
{
|
||||
try
|
||||
{
|
||||
if ( document.getElementById('namefield').value != '' )
|
||||
{
|
||||
document.getElementById('passfield').focus();
|
||||
}
|
||||
}
|
||||
catch(e) {}
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
<form id='loginform' action='{$this->ipsclass->base_url}&act=login&code=login-complete' method='post'>
|
||||
<input type='hidden' name='qstring' value='$query_string' />
|
||||
<div style='width:650px;margin-left:auto;margin-right:auto;'>
|
||||
<div style='border:1px solid #555;'>
|
||||
<div style='background:#FFF;border:1px solid #AAA'>
|
||||
<table width='100%' cellpadding='0' cellspacing='0' border='0'>
|
||||
<tr>
|
||||
<td width='1%'><img src='{$this->ipsclass->skin_url}/images/logo_keyb.jpg' alt='' border='0' /></td>
|
||||
<td width='99%' valign='top'>
|
||||
<table width='100%' cellpadding='5' cellspacing='0' border='0'>
|
||||
<tr>
|
||||
<td colspan='2' align='center'>
|
||||
<br /><img src='{$this->ipsclass->skin_url}/images/logo_text.gif' alt='' border='0' />
|
||||
<div style='font-weight:bold;color:red'>$message</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='right'><strong>Èìÿ Ïîëüçîâàòåëÿ</strong></td>
|
||||
<td><input style='border:1px solid #AAA' type='text' size='20' name='username' id='namefield' value='$name'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='right'><strong>Ïàðîëü</strong></td>
|
||||
<td><input style='border:1px solid #AAA' type='password' size='20' name='password' id='passfield' value=''></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' align='center'><input type='submit' style='border:1px solid #AAA' value='Âîéòè' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2'><br />
|
||||
<div style='font-size:9px;color:gray'>© Invision Power Services, Inc.
|
||||
<br />Ýòà ïðîãðàììà çàùèùåíà â ñîîòâåòñòâèè ñ ìåæäóíàðîäíûìè çàêîíàìè îá àâòîðñêîì ïðàâå.
|
||||
</td>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Log in redirect
|
||||
//===========================================================================
|
||||
function global_redirect_hit($url, $text="", $time=1) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<link rel="stylesheet" type="text/css" media="all" href="{$this->ipsclass->skin_url}/acp_css.css" />
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
var ipb_var_st = "{$this->ipsclass->input['st']}";
|
||||
var ipb_lang_tpl_q1 = "{$this->ipsclass->lang['tpl_q1']}";
|
||||
var ipb_var_phpext = "{$this->ipsclass->vars['php_ext']}";
|
||||
var ipb_var_base_url = "{$this->ipsclass->base_url}";
|
||||
var ipb_var_cookieid = "{$this->ipsclass->vars['cookie_id']}";
|
||||
var ipb_var_cookie_domain = "{$this->ipsclass->vars['cookie_domain']}";
|
||||
var ipb_var_cookie_path = "{$this->ipsclass->vars['cookie_path']}";
|
||||
var ipb_skin_url = "{$this->ipsclass->skin_url}";
|
||||
var menu_ids = "<!--{IDS}-->";
|
||||
//-->
|
||||
</script>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<meta http-equiv='refresh' content='{$time}; url=$url' />
|
||||
<div style='width:500px;margin-left:auto;margin-right:auto;'>
|
||||
<div class='tableborder'>
|
||||
<div class='alttitle'>
|
||||
<div style='float:right'><img src='{$this->ipsclass->skin_url}/images/acp_logo.gif' alt='IPB' border='0' /></div>
|
||||
<div style='padding-left:3px;padding-top:14px;font-size:16px;'>Ïåðåàäðåñàöèÿ....</div>
|
||||
</div>
|
||||
<div style='background-color:#FFF;padding:10px;'>
|
||||
<strong>{$text}</strong>
|
||||
<br />
|
||||
<br />
|
||||
<a href='$url'>( íàæìèòå ñþäà, åñëè íå õîòèòå æäàòü )</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Log in redirect
|
||||
//===========================================================================
|
||||
function global_redirect_done($text='Complete!') {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<link rel="stylesheet" type="text/css" media="all" href="{$this->ipsclass->skin_url}/acp_css.css" />
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
var ipb_var_st = "{$this->ipsclass->input['st']}";
|
||||
var ipb_lang_tpl_q1 = "{$this->ipsclass->lang['tpl_q1']}";
|
||||
var ipb_var_phpext = "{$this->ipsclass->vars['php_ext']}";
|
||||
var ipb_var_base_url = "{$this->ipsclass->base_url}";
|
||||
var ipb_var_cookieid = "{$this->ipsclass->vars['cookie_id']}";
|
||||
var ipb_var_cookie_domain = "{$this->ipsclass->vars['cookie_domain']}";
|
||||
var ipb_var_cookie_path = "{$this->ipsclass->vars['cookie_path']}";
|
||||
var ipb_skin_url = "{$this->ipsclass->skin_url}";
|
||||
var menu_ids = "<!--{IDS}-->";
|
||||
//-->
|
||||
</script>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<div style='width:500px;margin-left:auto;margin-right:auto;'>
|
||||
<div class='tableborder'>
|
||||
<div class='alttitle'>
|
||||
<div style='float:right'><img src='{$this->ipsclass->skin_url}/images/acp_logo.gif' alt='IPB' border='0' /></div>
|
||||
<div style='padding-left:3px;padding-top:14px;font-size:16px;'>Îïåðàöèÿ çàâåðøåíà</div>
|
||||
</div>
|
||||
<div style='background-color:#FFF;padding:10px;'>
|
||||
<strong>{$text}</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Log in redirect
|
||||
//===========================================================================
|
||||
function global_redirect($url, $time=2, $text="") {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<script type='text/javascript'>
|
||||
<!--
|
||||
if (top.location != self.location) { top.location = self.location }
|
||||
//-->
|
||||
</script>
|
||||
<meta http-equiv='refresh' content='{$time}; url=$url' />
|
||||
<div style='width:500px;margin-left:auto;margin-right:auto;'>
|
||||
<div class='tableborder'>
|
||||
<div class='alttitle'>
|
||||
<div style='float:right'><img src='{$this->ipsclass->skin_url}/images/acp_logo.gif' alt='IPDynamic' border='0' /></div>
|
||||
<div style='padding-left:3px;padding-top:14px;font-size:16px;'>Ïåðåàäðåñàöèÿ...</div>
|
||||
</div>
|
||||
<div style='background-color:#FFF;padding:10px;'>
|
||||
<strong>{$text}</strong>
|
||||
<br />
|
||||
<br />
|
||||
<a href='$url'>( íàæìèòå ñþäà, åñëè íå õîòèòå æäàòü... )</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Mini header
|
||||
//===========================================================================
|
||||
|
||||
function global_mini_header( $extra="style='background-color:#D6D6D6' onload='passfocus()'")
|
||||
{
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset={$this->ipsclass->vars['gb_char_set']}" />
|
||||
<title>IPB: ACP</title>
|
||||
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache" />
|
||||
<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache" />
|
||||
<meta HTTP-EQUIV="Expires" CONTENT="Mon, 06 May 1996 04:57:00 GMT" />
|
||||
<link rel="stylesheet" type="text/css" media="all" href="{$this->ipsclass->skin_url}/acp_css.css" />
|
||||
<link rel="shortcut icon" href="favicon.ico" />
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
var ipb_var_st = "{$this->ipsclass->input['st']}";
|
||||
var ipb_lang_tpl_q1 = "{$this->ipsclass->lang['tpl_q1']}";
|
||||
var ipb_var_phpext = "{$this->ipsclass->vars['php_ext']}";
|
||||
var ipb_var_base_url = "{$this->ipsclass->base_url}";
|
||||
var ipb_var_cookieid = "{$this->ipsclass->vars['cookie_id']}";
|
||||
var ipb_var_cookie_domain = "{$this->ipsclass->vars['cookie_domain']}";
|
||||
var ipb_var_cookie_path = "{$this->ipsclass->vars['cookie_path']}";
|
||||
var ipb_skin_url = "{$this->ipsclass->skin_url}";
|
||||
var menu_ids = "<!--{IDS}-->";
|
||||
//-->
|
||||
</script>
|
||||
<script type="text/javascript" src='jscripts/ipb_global.js'></script>
|
||||
<script type="text/javascript" src='jscripts/ips_menu.js'></script>
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_url}/acp_js.js'></script>
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_url}/acp_js_skin/ips_menu_html.js'></script>
|
||||
</head>
|
||||
|
||||
<body $extra>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Mini header
|
||||
//===========================================================================
|
||||
|
||||
function global_mini_footer()
|
||||
{
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
</body>
|
||||
</html>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// GLOBAL MENU CAT LINK
|
||||
//===========================================================================
|
||||
|
||||
function global_menu_cat_link( $cid, $pid, $icon, $extra_css, $name, $url, $theurl ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='menulinkoff' id='m_{$cid}_{$pid}'> {$icon} <a href='{$theurl}&$url' style='text-decoration:none{$extra_css}'>$name</a></div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// GLOBAL WRAP NAV
|
||||
//===========================================================================
|
||||
|
||||
function global_menu_cat_wrap($show, $name="", $links="", $id = "", $desc, $color='#FFF', $extra='') {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
$extra
|
||||
<div style='padding:4px;background-color:$color'>
|
||||
<div class='tableborder'>
|
||||
<div class='menumaintopon'>$name</div>
|
||||
<div class='menulinkwrap'>$links</div>
|
||||
</div>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// GLOBAL WRAP NAV
|
||||
//===========================================================================
|
||||
|
||||
function global_wrap_nav($links="") {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='navstrip'>$links</div>
|
||||
</div>
|
||||
<br />
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// GLOBAL FRAMESET
|
||||
//===========================================================================
|
||||
|
||||
/*function global_frame_set($extra_query="") {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<html>
|
||||
<head><title>Invision Power Board Administration Center</title></head>
|
||||
<frameset cols='185, *' frameborder='no' border='0' framespacing='0'>
|
||||
<frame name='menu' noresize scrolling='auto' src='{$this->ipsclass->base_url}&act=menu'>
|
||||
<frame name='body' noresize scrolling='auto' src='{$this->ipsclass->base_url}&{$extra_query}'>
|
||||
</frameset>
|
||||
</html>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// GLOBAL MAIN ACP HEADER
|
||||
//===========================================================================
|
||||
|
||||
function global_menu_header() {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<html>
|
||||
<head><title>Menu</title>
|
||||
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
||||
<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
|
||||
<meta HTTP-EQUIV="Expires" CONTENT="Mon, 06 May 1996 04:57:00 GMT">
|
||||
<link rel="stylesheet" type="text/css" media="all" href="{$this->ipsclass->skin_url}/acp_css.css" />
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
var ipb_var_st = "{$this->ipsclass->input['st']}";
|
||||
var ipb_lang_tpl_q1 = "{$this->ipsclass->lang['tpl_q1']}";
|
||||
var ipb_var_phpext = "{$this->ipsclass->vars['php_ext']}";
|
||||
var ipb_var_base_url = "{$this->ipsclass->base_url}";
|
||||
var ipb_var_cookieid = "{$this->ipsclass->vars['cookie_id']}";
|
||||
var ipb_var_cookie_domain = "{$this->ipsclass->vars['cookie_domain']}";
|
||||
var ipb_var_cookie_path = "{$this->ipsclass->vars['cookie_path']}";
|
||||
var ipb_skin_url = "{$this->ipsclass->skin_url}";
|
||||
var menu_ids = "<!--{IDS}-->";
|
||||
//-->
|
||||
</script>
|
||||
<script type="text/javascript" src='jscripts/ipb_global.js'></script>
|
||||
<script type="text/javascript" src='jscripts/ips_menu.js'></script>
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_url}/acp_js.js'></script>
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_url}/acp_js_skin/ips_menu_html.js'></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div align='center' id='logostrip'><img src='{$this->ipsclass->skin_url}/images/logo4.gif' border='0'></div>
|
||||
<div class='tableborder'>
|
||||
<div class='menulinkwrap'>
|
||||
<img src='{$this->ipsclass->skin_url}/images/item.gif' border='0' alt='' valign='absmiddle'> <a href='javascript:expandmenu();'>Expand</a> · <a href='javascript:collapsemenu();'>Collapse</a> Menu
|
||||
<br /> <img src='{$this->ipsclass->skin_url}/images/item.gif' border='0' alt='' valign='absmiddle'> <a href='{$this->ipsclass->base_url}&act=index' target='body'>ACP</a> · <a href='{$this->ipsclass->vars['board_url']}/index.{$this->ipsclass->vars['php_ext']}' target='body'>Board</a> Home
|
||||
<br /> <img src='{$this->ipsclass->skin_url}/images/item.gif' border='0' alt='' valign='absmiddle'> <a href='{$this->ipsclass->base_url}&act=ips&code=docs' target='body' style='text-decoration:none'>IPB Documentation</a>
|
||||
<br /> <img src='{$this->ipsclass->skin_url}/images/item.gif' border='0' alt='' valign='absmiddle'> <a href='{$this->ipsclass->base_url}&act=op&code=phpinfo' style='text-decoration:none' target='body'>PHP Info</a>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// GLOBAL MAIN ACP MENU FOOTER
|
||||
//===========================================================================
|
||||
|
||||
function global_menu_footer() {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
</body>
|
||||
</html>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}*/
|
||||
|
||||
//===========================================================================
|
||||
// GLOBAL MAIN ACP FOOTER
|
||||
//===========================================================================
|
||||
|
||||
function global_footer($date="") {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<br />
|
||||
<div align='right' id='jwrap'><strong>Áûñòðûé ïåðåõîä</strong> <!--JUMP--></div>
|
||||
<div class='copy' align='center'>Invision Power Board © $date <a href='http://www.invisionpower.com' target='_blank'>IPS, Inc.</a></div>
|
||||
<script type="text/javascript">
|
||||
menu_do_global_init();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// GLOBAL MAIN ACP HEADER
|
||||
//===========================================================================
|
||||
|
||||
function global_header($title="",$desc="") {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset={$this->ipsclass->vars['gb_char_set']}" />
|
||||
<title>IPB :: ACP</title>
|
||||
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache" />
|
||||
<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache" />
|
||||
<meta HTTP-EQUIV="Expires" CONTENT="Mon, 06 May 1996 04:57:00 GMT" />
|
||||
<link rel="stylesheet" type="text/css" media="all" href="{$this->ipsclass->skin_url}/acp_css.css" />
|
||||
<link rel="shortcut icon" href="favicon.ico" />
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
var ipb_var_st = "{$this->ipsclass->input['st']}";
|
||||
var ipb_lang_tpl_q1 = "{$this->ipsclass->lang['tpl_q1']}";
|
||||
var ipb_var_phpext = "{$this->ipsclass->vars['php_ext']}";
|
||||
var ipb_var_base_url = "{$this->ipsclass->base_url}";
|
||||
var ipb_var_cookieid = "{$this->ipsclass->vars['cookie_id']}";
|
||||
var ipb_var_cookie_domain = "{$this->ipsclass->vars['cookie_domain']}";
|
||||
var ipb_var_cookie_path = "{$this->ipsclass->vars['cookie_path']}";
|
||||
var ipb_skin_url = "{$this->ipsclass->skin_url}";
|
||||
//-->
|
||||
</script>
|
||||
<script type="text/javascript" src='jscripts/ipb_global.js'></script>
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_url}/acp_js.js'></script>
|
||||
<script type="text/javascript" src='jscripts/ips_menu.js'></script>
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_url}/acp_js_skin/ips_menu_html.js'></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id='logostrip'>
|
||||
<div id='logostripinner'><div style='font-weight:bold;font-size:12px;color:#FFF;padding-top:14px;padding-left:4px'>$title</div></div>
|
||||
</div>
|
||||
|
||||
<table width='100%' cellspacing='6' id='submenu'>
|
||||
<tr>
|
||||
<td><a href='{$this->ipsclass->base_url}&act=menu&show=all' target='menu'>Ðàñêðûòü Menu</a> · <a href='{$this->ipsclass->base_url}&act=menu&show=none' target='menu'>Ñêðûòü Menu</a></td>
|
||||
<td align='right'><a href='#' onclick='window.location=window.location'>Îáíîâèòü îêíî</a> · <a href='{$this->ipsclass->base_url}&act=index' target='body'>Íà ãëàâíóþ</a> · <a href='{$this->ipsclass->vars['board_url']}/index.{$this->ipsclass->vars['php_ext']}' target='_blank'>Íà ôîðóì</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<!--NAV-->
|
||||
<div id='description'>$desc</div>
|
||||
<!--IPB.ERROR-->
|
||||
<!--IPB.MESSAGE-->
|
||||
<br />
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,220 @@
|
||||
<?php
|
||||
|
||||
class cp_skin_groups {
|
||||
|
||||
var $ipsclass;
|
||||
|
||||
//===========================================================================
|
||||
// Groups: Overview scream :o :o
|
||||
//===========================================================================
|
||||
function groups_overview_wrapper($content, $form) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Óïðàâëåíèå ïîëüçîâàòåëüñêèìè ãðóïïàìè</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>
|
||||
</tr>
|
||||
{$content}
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=add' method='POST' >
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Ñîçäàòü ãðóïïó ïîëüçîâàòåëåé</div>
|
||||
<table cellpadding='4' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablerow2' width='40%'><strong>Îñíîâàííóþ íà...</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>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Groups
|
||||
//===========================================================================
|
||||
function groups_overview_wrapper_row( $r="" ) {
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tdrow2' style='font-weight:bold'>
|
||||
EOF;
|
||||
if ( $r['g_id'] != 1 and $r['g_id'] != 2 )
|
||||
{
|
||||
$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>
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
{$r['_title']}
|
||||
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>
|
||||
</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>",
|
||||
EOF;
|
||||
if ( $r['g_id'] > 4 )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=delete&id={$r['g_id']}'>Óäàëèòü</a>"
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
img_item + " <em>Óäàëèòü íåâîçìîæíî</em>"
|
||||
EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Groups
|
||||
//===========================================================================
|
||||
function groups_perm_splash_wrapper($content, $dlist) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tablesubheader'>IPB Èíôîðìàöèÿ</div>
|
||||
<div class='tablerow1'>
|
||||
<b>Èñïîëüçîâàíî ãðóïïàìè</b> - óêàçûâàåò íà ãðóïïû ïîëüçîâàòåëåé, èñïîëüçóþùèå äàííóþ ìàñêó äîñòóïà.
|
||||
<br /><b>Èñïîëüçóåòñÿ ïîëüçîâàòåëÿìè</b> - óêàçûâàåò êîëè÷åñòâî ïîëüçîâàòåëåé, èñïîëüçóþùèõ äàííóþ ìàñêó äîñòóïà.
|
||||
<br /><b>Ïðåäïðîñìîòð</b> äàåò âîçìîæíîñòü ïðîòåñòèðîâàòü äàííóþ ìàñêó äîñòóïà.
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Ìàñêè äîñòóïà ê ôîðóìàì</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>
|
||||
</tr>
|
||||
{$content}
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<br />
|
||||
<form name='theAdminForm' id='adminform' action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=dopermadd' method='post'>
|
||||
<div class='tableborder'>
|
||||
<div class='maintitle'>Ñîçäàíèå íîâîé ìàñêè äîñòóïà</div>
|
||||
<table cellpadding='4' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>Íàçâàíèå ìàñêè äîñòóïà</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='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>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Groups
|
||||
//===========================================================================
|
||||
function groups_perm_splash_row( $r="" ) {
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tdrow2'><strong>{$r['name']}</strong>{$coppa}</td>
|
||||
<td class='tdrow1'>{$r['groups']}</td>
|
||||
<td class='tdrow1' 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>)
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
0
|
||||
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>
|
||||
</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>",
|
||||
EOF;
|
||||
if ( ! $r['isactive'] )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
img_item + " <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=pdelete&id={$r['id']}'>Óäàëèòü...</a>"
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
img_item + " <em>Èñïîëüçóåòñÿ!</em>"
|
||||
EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,580 @@
|
||||
<?php
|
||||
|
||||
class cp_skin_index {
|
||||
|
||||
var $ipsclass;
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function update_img( $data ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<iframe id='ips-security-check' src="http://www.invisionpower.com/download/versioncheck/check220.php?{$data}" scrolling='auto' frameborder="0" style='border:0px;width:100%;padding:0px;margin:0px;height:88px;background:transparent'></iframe>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function acp_licensed() {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder' style='height:125px'>
|
||||
<div class='maintitle'>Ðóññêàÿ âåðñèÿ Invision Power Board</div>
|
||||
<div class='tablerow1'>
|
||||
<!--updateimg-->
|
||||
<br />
|
||||
<br />Ïîñåòèòå <a href='https://www.ibresource.ru/clientarea' style='text-decoration:none' target='_blank'>êëèåíò-öåíòð</a> äëÿ ïîëó÷åíèÿ ïîìîùè, íîâîñòåé è îáíîâëåíèé.
|
||||
</div>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function acp_unlicensed() {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder' style='height:120px'>
|
||||
<div class='maintitle'>Íåçàðåãèñòðèðîâàííàÿ âåðñèÿ Invision Power Board</div>
|
||||
<div class='tablerow1'>
|
||||
<!--updateimg-->
|
||||
<br /><strong>Äàííàÿ âåðñèÿ Invision Power Board <span style='color:red'>íå çàðåãèñòðèðîâàíà.</span></strong>
|
||||
<br />Óçíàòü ïîäðîáíåå î ðåãèñòðàöèè ìîæíî <a href='http://www.ibresource.ru/products/invisionpowerboard/' target='_blank'>çäåñü</a>!
|
||||
</div>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function acp_ips_news($news_url) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder' style='height:125px'>
|
||||
<div class='tableheaderalt'>Ïîñëåäíèå íîâîñòè BestWarez.Ru</div>
|
||||
<div class='tablerow1' style='overflow:auto'>
|
||||
<iframe src="http://www.bestwarez.ru/bestwarez_news.php" scrolling='auto' frameborder="0" style='border:0px;width:100%;padding:0px;margin:0px;height:80px;background:#E4EAF2'></iframe></div>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function acp_notes($notes) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<form action='{$this->ipsclass->base_url}&act=index&save=1' method='post'>
|
||||
<textarea name='notes' style='background-color:#F9FFA2;border:1px solid #CCC;width:95%;font-family:verdana;font-size:10px' rows='8' cols='25'>{$notes}</textarea>
|
||||
<div align='center'><br /><input type='submit' value='Ñîõðàíèòü' class='realdarkbutton' /></div>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function acp_board_offline() {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td colspan='3'>
|
||||
<div class='tableborder'>
|
||||
<div class='tablesubheader'>Ôîðóì Îòêëþ÷åí</div>
|
||||
<div class='tablerow2'>Âàø ôîðóì â äàííûé ìîìåíò âûêëþ÷åí<br><br>» <a href='{$this->ipsclass->base_url}§ion=tools&act=op&code=findsetting&key=boardoffline'>Âêëþ÷èòü ôîðóì</a></div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='3'> </td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function acp_quick_clicks() {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<script language='javascript'>
|
||||
//<![CDATA[
|
||||
function edit_member() {
|
||||
|
||||
if (document.forms[1].username.value == "") {
|
||||
alert("Íåîáõîäèìî ââåñòè èìÿ ïîëüçîâàòåëÿ!");
|
||||
} else {
|
||||
window.location = '{$this->ipsclass->adskin->base_url}' + '§ion=content&act=mem&code=searchresults&searchtype=normal&members_display_name=' + escape(document.forms[1].username.value);
|
||||
}
|
||||
}
|
||||
|
||||
function new_forum() {
|
||||
|
||||
if (document.forms[1].forum_name.value == "") {
|
||||
alert("Íåîáõîäèìî ââåñòè íàçâàíèå ôîðóìà!");
|
||||
} else {
|
||||
window.location = '{$this->ipsclass->adskin->base_url}' + '§ion=content&act=forum&code=new&name=' + escape(document.forms[1].forum_name.value);
|
||||
}
|
||||
}
|
||||
|
||||
function phplookup() {
|
||||
|
||||
if (document.forms[1].phpfunc.value == "") {
|
||||
alert("Íåîáõîäèìî ââåñòè èìÿ PHP ôóíêöèè!");
|
||||
} else {
|
||||
window.location = 'http://www.php.net/' + escape(document.forms[1].phpfunc.value);
|
||||
}
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
<form name='DOIT' action=''>
|
||||
<div class='tableborder'>
|
||||
<div class='maintitle'>Áûñòðûå Äåéñòâèÿ</div>
|
||||
<table width='100%' cellpadding='4' cellspacing='0'>
|
||||
<tr>
|
||||
<td class='tablerow1' width='40%'>Ðåäàêòèðîâàíèå ïîëüçîâàòåëÿ</td>
|
||||
<td class='tablerow2' width='60%'><input type='text' size='20' class='textinput' name='username' value='Èìÿ ïîëüçîâàòåëÿ' onfocus='this.value=""'> <input type='button' value='Èçìåíèòü' id='button' onclick='edit_member()'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1' width='40%'>Ñîçäàíèå ôîðóìà</td>
|
||||
<td class='tablerow2' width='60%'><input type='text' size='20' name='forum_name' class='textinput' value='Íàçâàíèå ôîðóìà' onfocus='this.value=""'> <input type='button' value='Ñîçäàòü' id='button' onclick='new_forum()'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1' width='40%'>Ïîìîùü ïî PHP-ôóíêöèÿì</td>
|
||||
<td class='tablerow2' width='60%'><input type='text' size='20' name='phpfunc' class='textinput' value='Èìÿ PHP-ôóíêöèè' onfocus='this.value=""'> <input type='button' value='Íàéòè' id='button' onclick='phplookup()'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function acp_version_history_row( $r ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>{$r['upgrade_version_human']} ({$r['upgrade_version_id']})</td>
|
||||
<td class='tablerow2'>{$r['_date']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function acp_version_history_wrapper($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='maintitle'>Èñòîðèÿ Îáíîâëåíèé</div>
|
||||
<table width='100%' cellpadding='4' cellspacing='0'>
|
||||
$content
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function acp_onlineadmin_row( $r ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>{$r['members_display_name']}</td>
|
||||
<!--<td class='tablerow2' align='center'><a href='javascript:alert("Host Name: {$r['_host']}")' title='Get host name'>{$r['session_ip_address']}</a></td>-->
|
||||
<td class='tablerow2' align='center'>{$r['session_ip_address']}</td>
|
||||
<td class='tablerow2' align='center'>{$r['_log_in']}</td>
|
||||
<td class='tablerow2' align='center'>{$r['_click']}</td>
|
||||
<td class='tablerow2' align='center'>{$r['session_location']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function acp_onlineadmin_wrapper($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='maintitle'>Àêòèâíûå â àäìèíöåíòðå</div>
|
||||
<table width='100%' cellpadding='4' cellspacing='0'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='20%'>Èìÿ</td>
|
||||
<td class='tablesubheader' width='20%' align='center'>IP-àäðåñ</td>
|
||||
<td class='tablesubheader' width='20%' align='center'>Âõîä áûë</td>
|
||||
<td class='tablesubheader' width='20%' align='center'>Ïîñëåäíåå äåéñòâèå</td>
|
||||
<td class='tablesubheader' width='20%' align='center'>Ñòðàíèöà</td>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function acp_lastactions_row( $rowb ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'><b>{$rowb['members_display_name']}</b></td>
|
||||
<td class='tablerow2'>{$rowb['note']}</td>
|
||||
<td class='tablerow2'>{$rowb['_ctime']}</td>
|
||||
<td class='tablerow2'>{$rowb['ip_address']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function acp_lastactions_wrapper($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='maintitle'>Ïîñëåäíèå Àäìèíèñòðàòîðñêèå Äåéñòâèÿ</div>
|
||||
<table width='100%' cellpadding='4' cellspacing='0'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='20%'>Àäìèíèñòðàòîð</td>
|
||||
<td class='tablesubheader' width='40%'>Äåéñòâèå</td>
|
||||
<td class='tablesubheader' width='20%'>Äàòà</td>
|
||||
<td class='tablesubheader' width='20%'>IP àäðåñ</td>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function acp_stats_wrapper($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='maintitle'>Èíôîðìàöèÿ î Ñèñòåìå</div>
|
||||
<table width='100%' cellpadding='4' cellspacing='0'>
|
||||
<tr>
|
||||
<td class='tablerow1' width='40%'><strong>Âåðñèÿ IPB</strong></td>
|
||||
<td class='tablerow2' width='60%'><span style='color:red'>{$content['ipb_version']} (ID: {$content['ipb_id']})</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>Âåðñèÿ SQL</strong></td>
|
||||
<td class='tablerow2'><span style='color:red'>{$content['sql_driver']} ({$content['sql_version']})</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>Âåðñèÿ PHP</strong></td>
|
||||
<td class='tablerow2'><span style='color:red'>{$content['php_version']} ({$content['php_sapi']})</span> ( <a href='{$this->ipsclass->base_url}&phpinfo=1'>PHP INFO</a> )</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>Ñòàòèñòèêà ôîðóìà</strong></td>
|
||||
<td class='tablerow2'>Òåì: <strong><em>{$content['topics']}</em></strong> <br />Ñîîáùåíèé: <strong><em>{$content['replies']}</em></strong> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>Ïîëüçîâàòåëåé</strong></td>
|
||||
<td class='tablerow2'>Çàðåãèñòðèðîâàííûõ: <strong><em>{$content['members']}</em></strong>
|
||||
<br />Íåàêòèâèðîâàííûõ: <strong><em>{$content['validate']}</em></strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>Ðàçìåð ïàïêè /uploads/</strong></td>
|
||||
<td class='tablerow2'><strong><em>{$content['uploads']}</strong></em></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function acp_php_version_warning( $phpversion ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td colspan='3'>
|
||||
<div style='color:red;border:1px solid red;background:#FFC0C3;padding:10px'>
|
||||
<span style='font-size:20px;font-weight:bold'>ÂÍÈÌÀÍÈÅ: Âåðñèÿ PHP íà ñåðâåðå ($phpversion) íå ñîîòâåòñòâóåò òðåáîâàíèÿì.</span>
|
||||
<br /><br /><span style='font-size:14px;'>Äëÿ ðàáîòû Invision Power Board òðåáóåòñÿ êàê ìèíèìóì PHP âåðñèè 4.3.0.<br />Íåêîòîðûå ðàçäåëû Àäìèíöåíòðà ìîãóò íå ðàáîòàòü èëè ðàáîòàòü íå âåðíî, ïîêà Âû íå îáíîâèòå PHP íà íîâóþ âåðñèþ.</span></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='3'> </td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function warning_unlocked_installer() {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td colspan='3'>
|
||||
<div style='color:red;border:1px solid red;background:#FFC0C3;padding:10px'>
|
||||
<span style='font-size:20px;font-weight:bold'>ÂÍÈÌÀÍÈÅ: Îáíàðóæåí íåçàáëîêèðîâàííûé ñêðèïò óñòàíîâùèêà ôîðóìà</span>
|
||||
<br /><br /><span style='font-size:14px;'>Óäàëèòå ôàéë <b>install/index.php</b> ñ Âàøåãî ñåðâåðà!
|
||||
<br />Îñòàâëåíèå ýòîãî ôàéëà íà ñåðâåðå ÌÎÆÅÒ ïîñòàâèòü ïîä óãðîçó áåçîïàñíîñòü Âàøèõ ôîðóìîâ.</span></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='3'> </td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function warning_installer() {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td colspan='3'>
|
||||
<div style='color:red;border:1px solid red;background:#FFE1E2;padding:10px'>
|
||||
<span style='font-size:14px;font-weight:bold'>ÂÍÈÌÀÍÈÅ: Ñêðèïò óñòàíîâêè ôîðóìà âñå åùå íå óäàëåí!</span>
|
||||
<br /><br /><span style='font-size:10px;'>Ñêðèïò óñòàíîâêè ôîðóìà çàáëîêèðîâàí (ïîêà ôàéë install.lock íå áóäåò óäàëåí — óñòàíîâêà ôîðóìà íåâîçìîæíà), íî ïðèñóòñòâóåò íà ñåðâåðå, ìû ðåêîìåíäóåì óäàëèòü åãî äëÿ ïîâûøåíèÿ áåçîïàñíîñòè âàøåãî ôîðóìà!
|
||||
<br />Äëÿ óäàëåíèÿ ñêðèïòà óñòàíîâêè äîñòàòî÷íî óäàëèòü ôàéë <b>/install/index.php</b>, è ýòîãî ïðåäóïðåæäåíèÿ âû áîëüøå íå óâèäåòå.</span></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='3'> </td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function warning_rebuild_emergency() {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td colspan='3'>
|
||||
<div style='color:red;border:1px solid red;background:#FFC0C3;padding:10px'>
|
||||
<span style='font-size:20px;font-weight:bold'>Âíèìàíèå: Îøèáêà ñòèëÿ</span>
|
||||
<br /><br />
|
||||
Ó îäíîãî/íåñêîëüêî èç âàøèõ ïîëüçîâàòåëåé ïîÿâèëàñü ïðîáëåìà ñî ñòèëÿìè. Ýòî ìîãëî ïðîèçîéòè àâòîìàòè÷åñêè ïî ñëåäóþùèì ïðè÷èíàì:
|
||||
<ul>
|
||||
<li>Îíè ïðîáîâàëè î÷èñòèòü íàñòðîéêè ñòèëÿ.</li>
|
||||
<li>Îíè ïîïûòàëèñü ïîëó÷èòü äîñòóï ê àäìèíöåíòðó ôîðóìà.</li>
|
||||
<li>Àäìèíöåíòð ïðîïóñòèë îøèáêó ñòèëÿ è îáíîâèë ñòèëü ñ ýòîé îøèáêîé è, âîçìîæíî, èìåííî ýòî âêëþ÷èëî áåçîïàñíûé ðåæèì ñòèëåé.</li>
|
||||
</ul>
|
||||
<b>×òî òåïåðü ìîæíî è íóæíî ñäåëàòü:</b>
|
||||
<ul>
|
||||
<li>Åñëè âû íå õîòèòå èñïîëüçîâàòü áåçîïàñíûé ðåæèì ñòèëåé, ïðîâåðüòå ïðàâà äîñòóïà (CHMOD) ê äèðåêòîðèè /skin_cache/, ÷òîáû óáåäèòüñÿ â âîçìîæíîñòè çàïèñè òóäà ôàéëîâ ñ øàáëîíàìè.</li>
|
||||
<li>Åñëè ïðàâà äîñòóïà ïðàâèëüíûå, ïðîâåðüòå âàøè <a href='{$ibforums->base_url}&act=op'>Ñèñòåìíûå íàñòðîéêè -> Âñå íàñòðîéêè ôîðóìà</a>, ÷òîáû óáåäèòüñÿ â òîì, ÷òî «Áåçîïàñíûé ðåæèì ñòèëåé» îòêëþ÷åí.</li>
|
||||
<li>È ïîïðîáóéòå îáíîâèòü âñå êåøè ñòèëåé, ïðîéäÿ ïî ññûëêå íèæå.</li>
|
||||
</ul>
|
||||
<b>>> <a href='{$this->ipsclass->base_url}§ion=lookandfeel&act=sets&code=rebuildalltemplates&removewarning=1'>ÎÁÍÎÂÈÒÜ ÂÑÅ ÊÅØÈ ØÀÁËÎÍÎÂ È ÓÄÀËÈÒÜ ÝÒÎ ÏÐÅÄÓÏÐÅÆÄÅÍÈÅ</a> <<</b>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='3'> </td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Index
|
||||
//===========================================================================
|
||||
function warning_rebuild_upgrade() {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td colspan='3'>
|
||||
<div style='color:red;border:1px solid red;background:#FFC0C3;padding:10px'>
|
||||
<span style='font-size:20px;font-weight:bold'>Ñèñòåìà îïðåäåëèëà, ÷òî áûëî âûïîëíåíî îáíîâëåíèå ôîðóìà</span>
|
||||
<br /><br />
|
||||
Âàì íåîáõîäèìî îáíîâèòü âñå êåøè ñòèëåé ôîðóìà äëÿ ïðîâåðêè òîãî, ÷òî âñå íîâûå çàïèñè â øàáëîíàõ äîáàâëåíû ïðàâèëüíî.
|
||||
<br /><br /><b>>> <a href='{$this->ipsclass->base_url}§ion=lookandfeel&act=sets&code=rebuildalltemplates&removewarning=1'>ÎÁÍÎÂÈÒÜ ÂÑÅ ÊÅØÈ ØÀÁËÎÍÎÂ È ÓÄÀËÈÒÜ ÝÒÎ ÏÐÅÄÓÏÐÅÆÄÅÍÈÅ</a> <<</b>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Index http://www.invisionboard.com/acp-ipb/getnews.php
|
||||
//===========================================================================
|
||||
function acp_main_template($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<table border='0' width='100%' cellpadding='0' cellspacing='0'>
|
||||
<tr>
|
||||
<td width='49%' nowrap='nowrap' valign='middle'>{$content['reg_html']}</td>
|
||||
<td width='2%'> </td>
|
||||
<td width='49%' nowrap='nowrap' valign='middle'>{$content['latest_news']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='3'> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='49%' nowrap='nowrap' valign='middle'>{$content['stats']}</td>
|
||||
<td width='2%'> </td>
|
||||
<td width='49%' nowrap='nowrap' align='center' valign='top' class='tableborder' style='background:#F5F9FD'><div class='maintitle'>Àäìèíèñòðàòîðñêèå Çàìåòêè</div><br />{$content['ad_notes']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='3'> </td>
|
||||
</tr>
|
||||
<!--phpversioncheck-->
|
||||
<!--boardoffline-->
|
||||
<!--warninginstaller-->
|
||||
<!--warningskin-->
|
||||
<tr>
|
||||
<td width='49%' nowrap='nowrap' valign='top'>{$content['quick_clicks']}</td>
|
||||
<td width='2%'> </td>
|
||||
<td width='49%' nowrap='nowrap' valign='top'>{$content['version_history']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='3'> </td>
|
||||
</tr>
|
||||
</table>
|
||||
{$content['acp_online']}
|
||||
<br />
|
||||
<!--acpactions-->
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,600 @@
|
||||
<?php
|
||||
|
||||
class cp_skin_lookandfeel {
|
||||
|
||||
var $ipsclass;
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// LOOK AND FEEL: TEMPLATES
|
||||
//===========================================================================
|
||||
function template_bits_bit_row_image( $id, $image ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<img id='img-item-{$id}' src='{$this->ipsclass->skin_url}/images/{$image}' border='0' alt='' />
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// LOOK AND FEEL: TEMPLATES
|
||||
//===========================================================================
|
||||
function template_bits_overview_row_normal( $group, $folder_blob, $count_string ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tablerow1' id='dv-{$group['group_name']}'>
|
||||
<div style='float:right'>
|
||||
($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>
|
||||
<span id='match-{$group['group_name']}'></span>
|
||||
</div>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// LOOK AND FEEL: TEMPLATES
|
||||
//===========================================================================
|
||||
function template_bits_bit_row( $sec, $custom_bit, $remove_button, $altered_image ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tablerow1' id='dvb-{$sec['func_name']}' title='Âûáåðèòå íóæíûå ÿ÷åéêè äëÿ ðåäàêòèðîâàíèÿ ñðàçó íåñêîëüêèõ øàáëîíîâ' 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>
|
||||
</div>
|
||||
<div align='left'>
|
||||
<img src='{$this->ipsclass->skin_url}/images/file.gif' title='Template Set:{$sec['set_id']}' alt='Øàáëîí' 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>
|
||||
{$custom_bit}
|
||||
</div>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// LOOK AND FEEL: TEMPLATES
|
||||
//===========================================================================
|
||||
function template_bits_bit_overview( $group, $content, $add_button ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$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>-->
|
||||
</div>
|
||||
</div>
|
||||
<div id='template-bits-container'>
|
||||
{$content}
|
||||
</div>
|
||||
<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>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
parent.template_bits_onload();
|
||||
//]]>
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// LOOK AND FEEL: TEMPLATES
|
||||
//===========================================================================
|
||||
function template_bits_overview($content, $javascript) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
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>
|
||||
<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'>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<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='Èñêàòü â øàáëîíàõ' />
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id='template-main-wrap'>
|
||||
<div id='template-edit' style='height:0;width:100%;display:none;z-index:1'><iframe id='te-iframe' name='te-iframe' onload='template_iframe_loaded( "te" )' style='width:0;height:0px;display:none' src='javascript:;'></iframe></div>
|
||||
<div id='template-bits' style='float:right;width:0;display:none;z-index:2'><iframe id='tb-iframe' name='tb-iframe' onload='template_iframe_loaded( "tb" )' style='width:0;height:0px;display:none' src='javascript:;'></iframe></div>
|
||||
<div id='template-sections' style='width:100%;overflow:auto;height:475px;z-index:3;'>
|
||||
$content
|
||||
</div>
|
||||
</div>
|
||||
<div align='center' class='tablefooter'><!--hehe--> </div>
|
||||
</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>
|
||||
<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_width = 44;
|
||||
img_revert_height = 16;
|
||||
|
||||
template_init();
|
||||
// INIT find names
|
||||
init_js( 'quick-search-form', 'entered_template', 'get-template-names&id={$this->ipsclass->input['id']}' );
|
||||
// Run main loop
|
||||
setTimeout( 'main_loop()', 10 );
|
||||
//]]>
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// LOOK AND FEEL: TEMPLATES
|
||||
//===========================================================================
|
||||
function skin_sets_overview($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='95%' style='font-size:12px; vertical-align:middle;font-weight:bold; color:#FFF;'>Ñòèëè</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' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
$content
|
||||
</table>
|
||||
<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>
|
||||
EOF;
|
||||
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>
|
||||
</div>
|
||||
EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type="text/javascript">
|
||||
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>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// LOOK AND FEEL: TEMPLATES
|
||||
//===========================================================================
|
||||
function skin_sets_overview_row( $r, $forums, $hidden, $default, $menulist, $i_sets, $no_sets, $folder_icon, $line_image, $css_extra ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$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' />
|
||||
<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>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$r['set_skin_set_id']}",
|
||||
new Array(
|
||||
$menulist
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// LOOK AND FEEL: TEMPLATES
|
||||
//===========================================================================
|
||||
function skin_sets_overview_row_menulist( $r ) {
|
||||
|
||||
$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>",
|
||||
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>",
|
||||
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>",
|
||||
EOF;
|
||||
}
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// LOOK AND FEEL: SKIN DIFF: MAIN
|
||||
//===========================================================================
|
||||
function skin_diff_main_overview($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_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>
|
||||
</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='5%'> </a>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
<div align='right' class='tablefooter'> </div>
|
||||
</div>
|
||||
<br />
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=skin_diff' enctype='multipart/form-data' method='POST'>
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Ñîçäàòü íîâûé îò÷åò ñðàâíåíèÿ ñòèëåé</div>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>Ââåäèòå íàçâàíèå</strong><div class='desctext'>Ýòî íàçâàíèå áóäåò èñïîëüçîâàíî â ñïèñêå âûøå, êîãäà ñðàâíåíèå áóäåò çàâåðøåíî</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='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='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>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// LOOK AND FEEL: TEMPLATES
|
||||
//===========================================================================
|
||||
function skin_diff_main_row( $data ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$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>
|
||||
</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>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// LOOK AND FEEL: SKIN DIFF
|
||||
//===========================================================================
|
||||
function skin_diff_overview($content, $missing, $changed) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_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='right' width='5%' nowrap='nowrap'>
|
||||
|
||||
</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='5%'>Ðàçìåð</a>
|
||||
<td class='tablesubheader' width='5%'> </a>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
<div align='right' class='tablefooter'>$missing íîâûõ øàáëîíîâ è $changed èçìåíåííûõ</div>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// LOOK AND FEEL: TEMPLATES: NEW GROUP
|
||||
//===========================================================================
|
||||
function skin_diff_row_newgroup( $group_name ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td colspan='4' class='tablerow3'>
|
||||
<strong>{$group_name}</strong>
|
||||
</td>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// LOOK AND FEEL: TEMPLATES
|
||||
//===========================================================================
|
||||
function skin_diff_row( $template_bit_name, $template_bit_size, $template_bit_id, $diff_is, $template_bit_id_safe ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<strong>{$template_bit_name}</strong>
|
||||
</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>
|
||||
</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>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// LOOK AND FEEL: TEMPLATES
|
||||
//===========================================================================
|
||||
function skin_diff_view_bit( $template_bit_name, $template_group, $content ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div style='padding:4px;border:1px solid #000;background-color:#FFF;margin:4px;'>
|
||||
<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>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// LOOK AND FEEL: TEMPLATES
|
||||
//===========================================================================
|
||||
function skin_diff_export_row( $func_name, $func_group, $content ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$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;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// LOOK AND FEEL: TEMPLATES
|
||||
//===========================================================================
|
||||
function skin_diff_export_overview( $content, $missing, $changed, $title, $date ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<html>
|
||||
<head>
|
||||
<title>$title export</title>
|
||||
<style type="text/css">
|
||||
BODY
|
||||
{
|
||||
font-family: verdana;
|
||||
font-size:11px;
|
||||
color: #000;
|
||||
background-color: #CCC;
|
||||
}
|
||||
|
||||
del,
|
||||
.diffred
|
||||
{
|
||||
background-color: #D7BBC8;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
ins,
|
||||
.diffgreen
|
||||
{
|
||||
background-color: #BBD0C8;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
h1
|
||||
{
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
h2
|
||||
{
|
||||
font-size: 18px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div style='padding:4px;border:1px solid #000;background-color:#FFF;margin:4px;'>
|
||||
<h1>$title (ýêñïîðòèðîâàíî: $date)</h1>
|
||||
<strong>$missing íîâûõ øàáëîíîâ è $changed èçìåíåííûõ</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>
|
||||
</div>
|
||||
</body>
|
||||
<html>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,317 @@
|
||||
<?php
|
||||
|
||||
class cp_skin_management {
|
||||
|
||||
var $ipsclass;
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Menu manage:Blank Pos
|
||||
//===========================================================================
|
||||
function calendar_position_blank($cal_id) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<img src='{$this->ipsclass->skin_url}/images/blank.gif' width='12' height='12' border='0' style='vertical-align:middle' />
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Menu manage:Blank Pos
|
||||
//===========================================================================
|
||||
function calendar_position_up($cal_id) {
|
||||
|
||||
$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>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Menu manage:Blank Down
|
||||
//===========================================================================
|
||||
function calendar_position_down($cal_id) {
|
||||
|
||||
$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>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Component FORM
|
||||
//===========================================================================
|
||||
function calendar_form($form, $title, $formcode, $button, $calendar) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type='text/javascript'>
|
||||
//<![CDATA[
|
||||
|
||||
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( obj+'_all' ).checked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById( obj+'_all' ).checked = false;
|
||||
}
|
||||
}
|
||||
|
||||
function perm_check_all( obj )
|
||||
{
|
||||
var real_obj = document.getElementById( obj );
|
||||
var isselected = document.getElementById( obj+'_all').checked ? true : false;
|
||||
|
||||
for( var i = 0 ; i < real_obj.options.length ; i++ )
|
||||
{
|
||||
real_obj.options[i].selected = isselected;
|
||||
}
|
||||
|
||||
document.getElementById( obj+'_all').checked = isselected;
|
||||
}
|
||||
|
||||
|
||||
//]]>
|
||||
</script>
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=$formcode&cal_id={$calendar['cal_id']}' method='post'>
|
||||
<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='60%' class='tablerow2'>{$form['cal_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Êàëåíäàðü: Âêëþ÷èòü ìîäåðàöèþ</strong><div class='desctext'>Åñëè âêëþ÷åíî, ñîáûòèÿ îò âñåõ ãðóïï ïîëüçîâàòåëåé íå áóäóò ïîïàäàòü íà ïðîâåðêó ñîáûòèé ìîäåðàòîðàìè ïåðåä ïóáëèêàöèåé...</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='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='60%' class='tablerow2'>{$form['cal_bday_limit']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' class='tablerow1'>
|
||||
<fieldset>
|
||||
<legend><strong>RSS Îïöèè</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='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='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='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='60%' class='tablerow2'>{$form['cal_rss_update']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' class='tablerow1'>
|
||||
<fieldset>
|
||||
<legend><strong>Äîñòóï ê êàëåíäàðÿì</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='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']} /> Âûáåðèòå âñå òåêóùèå è æåëàåìûå ìàñêè
|
||||
<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='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']} /> Âûáåðèòå âñå òåêóùèå è æåëàåìûå ìàñêè
|
||||
<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='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']} /> Âûáåðèòå âñå òåêóùèå è æåëàåìûå ìàñêè
|
||||
<br /><select onchange='perm_check("perm_nomod")' id='perm_nomod' name='perm_nomod[]' size='6' multiple='true'>{$form['perm_nomod']}</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div align='center' class='tablefooter'><input type='submit' class='realbutton' value='$button' /></div>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// COMPONENTS: Overview
|
||||
//===========================================================================
|
||||
function calendar_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='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>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
</div>
|
||||
<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>" ) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// COMPONENTS: row
|
||||
//===========================================================================
|
||||
function calendar_row( $data ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$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>
|
||||
</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>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// calendar_rss_recurring
|
||||
//===========================================================================
|
||||
function calendar_rss_recurring( $event ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$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>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// calendar_rss_recurring
|
||||
//===========================================================================
|
||||
function calendar_rss_range( $event ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$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>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// calendar_rss_recurring
|
||||
//===========================================================================
|
||||
function calendar_rss_single( $event ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<p>{$event['event_content']}</p>
|
||||
<br />
|
||||
<p>Îäíîäíåâíîå ñîáûòèå ñ äàòîé: {$event['_from_month']}/{$event['_from_day']}/{$event['_from_year']}</p>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,151 @@
|
||||
<?php
|
||||
|
||||
class cp_skin_member {
|
||||
|
||||
var $ipsclass;
|
||||
|
||||
//===========================================================================
|
||||
// Member: delete stuff start
|
||||
//===========================================================================
|
||||
function member_delete_posts_start( $member, $topics, $posts ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=deleteposts_process&mid={$member['id']}' method='POST'>
|
||||
<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>
|
||||
</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>
|
||||
</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>
|
||||
</tr>
|
||||
</table>
|
||||
<div align='center' class='tablefooter'><input type='submit' class='realbutton' value='{$this->ipsclass->acp_lang['mem_delete_process']}' /></div>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Member: validating
|
||||
//===========================================================================
|
||||
function member_validating_wrapper($content, $st, $new_ord, $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='40%' style='font-size:12px; vertical-align:middle;font-weight:bold; color:#FFF;'>Óïðàâëåíèå íåàêòèâèðîâàííûìè</td>
|
||||
<td align='right' width='60%'>
|
||||
<form name='selectform' id='selectform' action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=mod' method='post'>
|
||||
<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>
|
||||
</select>
|
||||
<input type='submit' class='realbutton' value=' >>' />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<form name='theAdminForm' id='adminform' action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=domod' method='post'>
|
||||
<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>
|
||||
</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>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Member: validating
|
||||
//===========================================================================
|
||||
function member_validating_row( $r="" ) {
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$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>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,316 @@
|
||||
<?php
|
||||
|
||||
class cp_skin_paysubs {
|
||||
|
||||
var $ipsclass;
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Gateways
|
||||
//===========================================================================
|
||||
function gateway_install_wrapper($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='pformstrip'>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.
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div class='tableborder'>
|
||||
<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>
|
||||
</tr>
|
||||
{$content}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Gateway
|
||||
//===========================================================================
|
||||
function gateway_install_row( $gateway, $installed ) {
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow2'><strong>$gateway</strong></td>
|
||||
EOF;
|
||||
if ( $installed == 1 )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<td class='tablerow2' align='center'><em>Installed</em></td>
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<td class='tablerow2' align='center'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=install-gateway&name=$gateway'>Install</a></td>
|
||||
EOF;
|
||||
}
|
||||
$IPBHTML .= <<<EOF
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Gateways
|
||||
//===========================================================================
|
||||
function gateways_menu_item($row) {
|
||||
|
||||
$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>",
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Gateways
|
||||
//===========================================================================
|
||||
function tools_wrapper($form) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=find_transactions' method="POST">
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Find / Edit Transactions</div>
|
||||
<table cellpadding='4' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablerow2' width='40%'><strong>Payment Status</strong></td>
|
||||
<td class='tablerow1' width='60%'>{$form['status']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow2'><strong>Subscription Package</strong></td>
|
||||
<td class='tablerow1'>{$form['package']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow2'><strong>Optional Query</strong></td>
|
||||
<td class='tablerow1'>{$form['searchtype']} contains... {$form['search']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow2'><strong>Subscription expires within <em>n</em> days</strong><div class='desctext'>Optional</div></td>
|
||||
<td class='tablerow1'>{$form['expiredays']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class='pformstrip' 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">
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Search Transaction Logs</div>
|
||||
<table cellpadding='4' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablerow2' width='40%'><strong>Search</strong></td>
|
||||
<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>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Member: validating
|
||||
//===========================================================================
|
||||
function tools_trans_row( $row="" ) {
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow2'><strong>{$row['sub_title']}</strong><div class='desctext'>{$row['sub_desc']}</div></td>
|
||||
<td class='tablerow2' align='center'>{$row['_cost']}</td>
|
||||
<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>
|
||||
</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>",
|
||||
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>"
|
||||
) );
|
||||
</script>
|
||||
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Gateways
|
||||
//===========================================================================
|
||||
function packages_wrapper($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<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>
|
||||
</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>
|
||||
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Member: validating
|
||||
//===========================================================================
|
||||
function packages_row( $row="" ) {
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow2'><strong>{$row['sub_title']}</strong><div class='desctext'>{$row['sub_desc']}</div></td>
|
||||
<td class='tablerow2' align='center'>{$row['_cost']}</td>
|
||||
<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>
|
||||
</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>",
|
||||
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>"
|
||||
) );
|
||||
</script>
|
||||
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Gateways
|
||||
//===========================================================================
|
||||
function gateways_wrapper($content, $totals) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<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>
|
||||
</tr>
|
||||
{$content}
|
||||
<tr>
|
||||
<td class='tablerow1' colspan='3' align='right'><strong>Cumulative Revenue: ({$totals['_culm']})</strong></td>
|
||||
<td class='tablerow1' align='center'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=find_transactions&status=paid'>{$totals['_paid']}</a></td>
|
||||
<td class='tablerow1' align='center'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=find_transactions&status=pending'>{$totals['_pending']}</a></td>
|
||||
<td class='tablerow1' align='center'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=find_transactions&status=failed'>{$totals['_failed']}</a></td>
|
||||
<td class='tablerow1'> </td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Member: validating
|
||||
//===========================================================================
|
||||
function gateways_row( $row="", $menu="" ) {
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow2'><strong>{$row['submethod_title']}</strong></td>
|
||||
<td class='tablerow2' align='center'>{$row['_active']}</td>
|
||||
<td class='tablerow2' align='center'> {$row['_total']} </td>
|
||||
<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>
|
||||
</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>"
|
||||
) );
|
||||
</script>
|
||||
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,389 @@
|
||||
<?php
|
||||
|
||||
class cp_skin_rss {
|
||||
|
||||
var $ipsclass;
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// RSS
|
||||
//===========================================================================
|
||||
function rss_export_overview($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>RSS Ýêïîðòíûå ïîòîêè</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>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
</div>
|
||||
<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>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// RSS
|
||||
//===========================================================================
|
||||
function rss_export_overview_row( $data ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$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>
|
||||
<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>
|
||||
</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>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// RSS FORM
|
||||
//===========================================================================
|
||||
function rss_export_form($form, $title, $formcode, $button, $rssstream) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=$formcode&rss_export_id={$rssstream['rss_export_id']}' method='post'>
|
||||
<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='60%' class='tablerow2'>{$form['rss_export_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Îïèñàíèå ïîòîêà RSS Ýêñïîðòà (êàíàë)</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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>RSS Ýêñïîðò âêëþ÷åí</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='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='60%' class='tablerow2'>{$form['rss_export_count']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ñîðòèðîâàòü RSS Ýêñïîðò</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='60%' class='tablerow2'>{$form['rss_export_sort']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ýêñïîðòèðîâàòü òåìû èç ôîðóìîâ</strong><div class='desctext'>ÂÀÆÍÎ: Ìàñêè äîñòóïà íå ðàáîòàþò çäåñü. Òåìû áóäóò ýêñïîðòèðîâàíû èç âûáðàííûõ ôîðóì, íåçàâèñèìî îò ìàñîê äîñòóïà ê ôîðóìàì.</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>
|
||||
</tr>
|
||||
</table>
|
||||
<div align='center' class='tablefooter'><input type='submit' class='realbutton' value='$button' /></div>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// RSS FORM
|
||||
//===========================================================================
|
||||
function rss_import_remove_articles_form( $rssstream, $article_count ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$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'>
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Óäàëèòü òåìû èç ïîòîêà: {$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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Óäàëèòü ïîñëåäíèå <em>n</em> èìïîðòèðîâàííûõ òåì</strong><div class='desctext'>Îñòàâüòå ïîëå ïóñòûì äëÿ óäàëåíèÿ âñåõ</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>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// RSS FORM
|
||||
//===========================================================================
|
||||
function rss_import_form($form, $title, $formcode, $button, $rssstream) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
|
||||
<script type='text/javascript'>
|
||||
<!--
|
||||
function enable_auth_boxes()
|
||||
{
|
||||
auth_req = document.getElementById('rss_import_auth_userinfo');
|
||||
if( auth_req.style.display == 'none' )
|
||||
{
|
||||
auth_req.style.display = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
auth_req.style.display = 'none';
|
||||
}
|
||||
}
|
||||
// -->
|
||||
</script>
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=$formcode&rss_import_id={$rssstream['rss_import_id']}' method='post'>
|
||||
<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>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Çàãîëîâîê ïîòîêà RSS Èìïîðòà</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='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='60%' class='tablerow2'>{$form['rss_import_charset']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âêëþ÷èòü RSS Èìïîðò?</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_import_enabled']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<fieldset>
|
||||
<legend><strong>htaccess àóòåíòèôèêàöèÿ RSS Èìïîðòà</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='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='60%' class='tablerow2'>{$form['rss_import_auth_user']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Ïàðîëü ïîòîêà RSS Èìïîðòà</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['rss_import_auth_pass']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<fieldset>
|
||||
<legend><strong>Êîíòåíò RSS Èìïîðòà</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='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='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='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='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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Îòêðûòîñòü òåì RSS Èìïîðòà</strong><div class='desctext'>Åñëè 'Äà', òî òåìà áóäåò ñîçäàíà îòêðûòàÿ. 'Íåò' - òåìà áóäåò çàêðûòà</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='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='60%' class='tablerow2'>{$form['rss_import_topic_pre']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<fieldset>
|
||||
<legend><strong>Íàñòðîéêè RSS Èìïîðòà</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='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='60%' class='tablerow2'>{$form['rss_import_time']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div align='center' class='tablefooter'><input type='submit' class='realbutton' value='$button' /></div>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// RSS
|
||||
//===========================================================================
|
||||
function rss_import_overview($content) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Ïîòîêè RSS Èìïîðòà</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>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
</div>
|
||||
<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>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// RSS
|
||||
//===========================================================================
|
||||
function rss_import_overview_row( $data ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$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>
|
||||
<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>
|
||||
</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>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,412 @@
|
||||
<?php
|
||||
|
||||
class cp_skin_taskmanager {
|
||||
|
||||
var $ipsclass;
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// TASK MANAGER: Overview
|
||||
//===========================================================================
|
||||
function task_manager_logsshow_wrapper( $last5 ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>:Æóðíàë âûïîëíåííûõ çàäà÷</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader'>Çàäà÷à</td>
|
||||
<td class='tablesubheader'>Âðåìÿ çàïóñêà</td>
|
||||
<td class='tablesubheader'>Èíôîðìàöèÿ</td>
|
||||
</tr>
|
||||
$last5
|
||||
</table>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// TASK MANAGER: Overview
|
||||
//===========================================================================
|
||||
function task_manager_logs_wrapper( $last5, $form ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Last 5 Run Tasks</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader'>Task Run</td>
|
||||
<td class='tablesubheader'>Date Run</td>
|
||||
<td class='tablesubheader'>Log Info</td>
|
||||
</tr>
|
||||
$last5
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&do=task_log_show' method='post'>
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>View Task Manager Logs</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>View logs for task</strong></td>
|
||||
<td class='tablerow2'>{$form['task_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>Show <em>n</em> log entries</strong></td>
|
||||
<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>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<br />
|
||||
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&do=task_log_delete' method='post'>
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Delete Task Manager Logs</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>Delete logs for task</strong></td>
|
||||
<td class='tablerow2'>{$form['task_title_delete']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>Delete logs older than <em>n</em> days</strong></td>
|
||||
<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>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// TRAFFIC: POPULAR row
|
||||
//===========================================================================
|
||||
function task_manager_last5_row( $data ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td width='25%' class='tablerow1'><strong>{$data['log_title']}</strong></td>
|
||||
<td width='15%' class='tablerow2'>{$data['log_date']}</td>
|
||||
<td width='45%' class='tablerow2'>{$data['log_desc']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Task manager form
|
||||
//===========================================================================
|
||||
function task_manager_form( $form, $button, $formbit, $type, $title, $task ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type='text/javascript' language='javascript'>
|
||||
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] = 'Ñóááîòà';
|
||||
|
||||
var output = '';
|
||||
|
||||
chosen_min = formobj.task_minute.options[formobj.task_minute.selectedIndex].value;
|
||||
chosen_hour = formobj.task_hour.options[formobj.task_hour.selectedIndex].value;
|
||||
chosen_wday = formobj.task_week_day.options[formobj.task_week_day.selectedIndex].value;
|
||||
chosen_mday = formobj.task_month_day.options[formobj.task_month_day.selectedIndex].value;
|
||||
|
||||
var output_min = '';
|
||||
var output_hour = '';
|
||||
var output_day = '';
|
||||
var timeset = 0;
|
||||
|
||||
if ( chosen_mday == -1 && chosen_wday == -1 )
|
||||
{
|
||||
output_day = '';
|
||||
}
|
||||
|
||||
if ( chosen_mday != -1 )
|
||||
{
|
||||
output_day = +chosen_mday+' ÷èñëà.';
|
||||
}
|
||||
|
||||
if ( chosen_mday == -1 && chosen_wday != -1 )
|
||||
{
|
||||
output_day = 'Â ' + dd_wday[ chosen_wday ]+'.';
|
||||
}
|
||||
|
||||
if ( chosen_hour != -1 && chosen_min != -1 )
|
||||
{
|
||||
output_hour = 'Â '+chosen_hour+':'+formatnumber(chosen_min)+'.';
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( chosen_hour == -1 )
|
||||
{
|
||||
if ( chosen_min == 0 )
|
||||
{
|
||||
output_hour = 'Êàæäûé ÷àñ';
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( output_day == '' )
|
||||
{
|
||||
if ( chosen_min == -1 )
|
||||
{
|
||||
output_min = 'Êàæäóþ ìèíóòó';
|
||||
}
|
||||
else
|
||||
{
|
||||
output_min = 'Êàæäûå '+chosen_min+' ìèíóò.';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
output_min = ' '+formatnumber(chosen_min)+' ìèíóò êàæäîãî ÷àñà';
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( output_day != '' )
|
||||
{
|
||||
output_hour = 'Â ' + chosen_hour + ':00';
|
||||
}
|
||||
else
|
||||
{
|
||||
output_hour = 'Êàæäûå ' + chosen_hour + ' ÷àñîâ';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
output = output_day + ' ' + output_hour + ' ' + output_min;
|
||||
|
||||
formobj.showtask.value = output;
|
||||
}
|
||||
|
||||
function formatnumber(num)
|
||||
{
|
||||
if ( num == -1 )
|
||||
{
|
||||
return '00';
|
||||
}
|
||||
if ( num < 10 )
|
||||
{
|
||||
return '0'+num;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 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='task_cronkey' value='{$task['task_cronkey']}' />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>
|
||||
<div style='float:left'>$title</div>
|
||||
<div align='right' style='padding-right:5px'><input type='text' name='showtask' class='realbutton' size='50' style='font-size:10px;width:auto;font-weight:normal;'/></div>
|
||||
</div>
|
||||
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Íàçâàíèå çàäà÷è</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['task_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Êðàòêîå îïèñàíèå çàäà÷è</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='60%' class='tablerow2'>./sources/tasks/ {$form['task_file']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1' colspan='2'>
|
||||
<fieldset>
|
||||
<legend><strong>Îïöèè âðåìåíè</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='60%' class='tablerow2'>{$form['task_minute']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âðåìÿ çàäà÷è: ÷àñû</strong><div class='desctext'>Âûáåðèòå 'Êàæäûé ÷àñ' äëÿ çàïóñêà êàæäûé ÷àñ èëè òî÷íîå çíà÷åíèå ÷àñà â äåíü</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='60%' class='tablerow2'>{$form['task_week_day']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âðåìÿ çàäà÷è: äåíü ìåñÿöà</strong><div class='desctext'>Âûáåðèòå 'Êàæäûé äåíü ìåñÿöà' äëÿ çàïóñêà êàæäûé äåíü èëè òî÷íîå ÷èñëî</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['task_month_day']}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âêëþ÷èòü çàïèñü æóðíàëà äåéñòâèé</strong><div class='desctext'>Ïðè âêëþ÷åííîé îïöèè âñå âûïîëíåíèÿ çàäà÷ áóäóò çàïèñàíû â áàçó äàííûõ, íå ðåêîìåíäóåòñÿ äëÿ îñíîâíûõ çàäà÷, âûïîëíÿåìûõ êàæäûå 5-10 ìèíóò.</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='60%' class='tablerow2'>{$form['task_enabled']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
//startif
|
||||
if ( $form['task_key'] != "" )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Êëþ÷ çàäà÷è</strong><div class='desctext'>Ýòà îïöèÿ èñïîëüçóåòñÿ äëÿ âûçîâà çàäà÷è òîëüêî ïðè óêàçàíèè ID</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='60%' class='tablerow2'>{$form['task_safemode']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}//endif
|
||||
$IPBHTML .= <<<EOF
|
||||
</table>
|
||||
<div align='center' class='tablefooter'><input type='submit' class='realbutton' value='$button' /></div>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// TASK MANAGER: Overview
|
||||
//===========================================================================
|
||||
function task_manager_wrapper($content, $date) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Óñòàíîâëåííûå çàäà÷è</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>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
<div align='center' class='tablesubheader'><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&do=task_add'>Äîáàâèòü íîâóþ çàäà÷ó</a></div>
|
||||
</div>
|
||||
<br />
|
||||
<div align='center' class='desctext'><em>Âñå âðåìÿ â GMT. GMT âðåìÿ ñåé÷àñ: $date</em></div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// TRAFFIC: POPULAR row
|
||||
//===========================================================================
|
||||
function task_manager_row( $row ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td width='99%' style='font-size:10px'>
|
||||
<strong{$row['_class']}>
|
||||
EOF;
|
||||
//startif
|
||||
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>
|
||||
EOF;
|
||||
}//endif
|
||||
$IPBHTML .= <<<EOF
|
||||
{$row['task_title']}{$row['_title']}</strong>
|
||||
<div style='color:gray'><em>{$row['task_description']}</em></div>
|
||||
<div align='center' style='position:absolute;width:auto;display:none;text-align:center;background:#EEE;border:2px outset #555;padding:4px' id='pop{$row['task_id']}'>
|
||||
curl -s -o /dev/null {$this->ipsclass->vars['board_url']}/index.{$this->ipsclass->vars['php_ext']}?{$this->ipsclass->form_code}&ck={$row['task_cronkey']}
|
||||
</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>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class='tablerow2'>{$row['_next_run']}</td>
|
||||
<td class='tablerow2'>{$row['task_minute']}</td>
|
||||
<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>
|
||||
</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>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,695 @@
|
||||
<?php
|
||||
|
||||
class cp_skin_tools {
|
||||
|
||||
var $ipsclass;
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Menu manage:Blank Pos
|
||||
//===========================================================================
|
||||
function components_position_blank($com_id) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<img src='{$this->ipsclass->skin_url}/images/blank.gif' width='12' height='12' border='0' style='vertical-align:middle' />
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Menu manage:Blank Pos
|
||||
//===========================================================================
|
||||
function components_position_up($com_id) {
|
||||
|
||||
$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>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Menu manage:Blank Down
|
||||
//===========================================================================
|
||||
function components_position_down($com_id) {
|
||||
|
||||
$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>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// Component FORM
|
||||
//===========================================================================
|
||||
function components_form($form, $title, $formcode, $button, $component, $menu_text, $menu_url, $menu_redirect, $menu_permbit, $menu_permlang) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<script type="text/javascript" src='{$this->ipsclass->skin_url}/acp_components.js'></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
var comp = new components();
|
||||
// Title
|
||||
var menu_text =
|
||||
{
|
||||
{$menu_text}
|
||||
};
|
||||
|
||||
var menu_url =
|
||||
{
|
||||
{$menu_url}
|
||||
};
|
||||
|
||||
var menu_redirect =
|
||||
{
|
||||
{$menu_redirect}
|
||||
};
|
||||
|
||||
var menu_permbit =
|
||||
{
|
||||
{$menu_permbit}
|
||||
};
|
||||
|
||||
var menu_permlang =
|
||||
{
|
||||
{$menu_permlang}
|
||||
};
|
||||
|
||||
// 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>";
|
||||
</script>
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=$formcode&com_id={$component['com_id']}' method='post'>
|
||||
<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='60%' class='tablerow2'>{$form['com_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âåðñèÿ êîìïîíåíòà</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['com_version']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Îïèñàíèå êîìïîíåíòà</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['com_description']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Àâòîð êîìïîíåíòà</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['com_author']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>URL ðàçðàáîò÷èêà êîìïîíåíòà</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['com_url']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1' valign='top'><strong>Äàííûå ìåíþ êîìïîíåíòà</strong>
|
||||
<div class='desctext'>
|
||||
<a href='#' onclick='pop_win("act=quickhelp&id=comp_menu", "help", 250, 400 )'>Ïîäðîáíåå î ïàðàìåòðàõ ìåíþ</a>
|
||||
</div>
|
||||
</td>
|
||||
<td width='60%' class='tablerow2'>
|
||||
<div id='components-menu-box'>
|
||||
|
||||
</div>
|
||||
<!--{$form['com_menu_data']}-->
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>URL êîìïîíåíòà íà ñòðàíèöàõ ôîðóìà</strong><div class='desctext'>{ipb.base_url} - áóäåò çàìåíåíî íà URL ôîðóìà (âêëþ÷àÿ ID ñåññèè, åñëè åñòü)</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='60%' class='tablerow2'>{$form['com_url_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âêëþ÷èòü êîìïîíåíò?</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='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='60%' class='tablerow2'>{$form['com_filename']}<strong>.php</strong></td>
|
||||
</tr>-->
|
||||
EOF;
|
||||
//startif
|
||||
if ( $form['com_safemode'] != '' )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âêëþ÷èòü áåçîïàñíûé ðåæèì? (Áóäåò íåâîçìîæíî óäàëèòü èëè ðåäàêòèðîâàòü...)</strong></td>
|
||||
<td width='60%' class='tablerow2'>{$form['com_safemode']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}//endif
|
||||
$IPBHTML .= <<<EOF
|
||||
</table>
|
||||
<div align='center' class='tablefooter'><input type='submit' class='realbutton' value='$button' /></div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
comp.init();
|
||||
</script>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// COMPONENTS: Overview
|
||||
//===========================================================================
|
||||
function component_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='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>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
</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='MAX_FILE_SIZE' value='10000000000' />
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Èìïîðòèðîâàíèå XML ôàéëà êîìïîíåíòà</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='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='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>
|
||||
</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>" ) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// COMPONENTS: row
|
||||
//===========================================================================
|
||||
function component_row( $data ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'><strong>{$data['_fullname']}</strong><div class='desctext'>{$data['com_description']}</td>
|
||||
<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>
|
||||
</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>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$data['com_id']}",
|
||||
new Array(
|
||||
EOF;
|
||||
//startif
|
||||
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>",
|
||||
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>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// CACHE: Overview
|
||||
//===========================================================================
|
||||
function cache_overview( $content ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Ñîäåðæàíèå êåøà</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' />
|
||||
</div>
|
||||
<div style='padding-top:6px'>Òèï êåøà</div>
|
||||
</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
$content
|
||||
</table>
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
</div>
|
||||
<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>" ) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// CACHE: row
|
||||
//===========================================================================
|
||||
function cache_row( $data ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$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>
|
||||
</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' />
|
||||
</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>"
|
||||
) );
|
||||
</script>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// LOGIN: Overview
|
||||
//===========================================================================
|
||||
function login_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='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>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
</div>
|
||||
|
||||
<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>" ) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// LOGIN: Overview
|
||||
//===========================================================================
|
||||
function login_diagnostics( $login=array() ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>Diagnostics for: {$login['login_title']}</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td width='49%' valign='top'>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='70%'> </td>
|
||||
<td class='tablesubheader' width='30%'> </td>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</tr>
|
||||
</table>
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
</td>
|
||||
<td width='2%' class='tablefooter'> </td>
|
||||
<td width='49%' valign='top'>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='60%'>File Name</td>
|
||||
<td class='tablesubheader' width='20%' align='center'>Exists</td>
|
||||
<td class='tablesubheader' width='20%' align='center'>Writeable</td>
|
||||
</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'>-</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'>-</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>
|
||||
</tr>
|
||||
</table>
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// LOGIN FORM
|
||||
//===========================================================================
|
||||
function login_form($form, $title, $formcode, $button, $login) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=$formcode&login_id={$login['login_id']}' method='post'>
|
||||
<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='60%' class='tablerow2'>{$form['login_title']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Îïèñàíèå</strong><div class='desctext'>Êðàòêîå îïèñàíèå ìåòîäà àâòîðèçàöèè</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='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>
|
||||
</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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Òèï àâòîðèçàöèè?</strong><div class='desctext'>Óäàëåííûé: Ýòîò ìåòîò âñåãäà èñïîëüçóåò çàïðîñû ê óäàëåííîé áàçå äëÿ àâòîðèçàöèè ïîëüçîâàòåëÿ. Âñå ó÷åòíûå çàïèñè äîëæíû áûòü ñäåëàíû óäàëåííî.<br />Ñîâìåñòíûé: Åñëè äàííûå î ïîëüçîâàòåëå íå ïðåäñòàâëåíû â áàçå äàííûõ IPB, ôîðóì áóäåò çàïðàøèâàòü óäàëåííóþ áàçó.</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='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>
|
||||
<td width='60%' class='tablerow2'>{$form['login_replace_form']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âêëþ÷èòü ìåòîä?</strong><div class='desctext'>Åñëè 'Äà', ýòîò ìåòîä àâòîðèçàöèè áóäåò âêëþ÷åí, à ëþáîé òåêóùèé îòêëþ÷èòñÿ àâòîìàòè÷åñêè.</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>
|
||||
</tr>
|
||||
<!--<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Íàëè÷èå íàñòðîåê</strong><div class='desctext'>Åñëè 'Äà', acp.php è conf.php îáÿçàíû ñóùåñòâîâàòü è áûòü äîñòóïíû äëÿ çàïèñè ôîðóìîì (ñìîòðèòå äèàãíîñòèêó äëÿ ïðîâåðêè).</div></td>
|
||||
<td width='60%' class='tablerow2'>{$form['login_settings']}</td>
|
||||
</tr>-->
|
||||
EOF;
|
||||
//startif
|
||||
if ( $form['login_safemode'] != '' )
|
||||
{
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td width='40%' class='tablerow1'><strong>Âêëþ÷èòü Safemode?</strong><div class='desctext'>Íåâîçìîæíî óäàëåíèå èëè ðåäàêòèðîâàíèå</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='60%' class='tablerow2'>{$form['login_installed']}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
}//endif
|
||||
$IPBHTML .= <<<EOF
|
||||
</table>
|
||||
<div align='center' class='tablefooter'><input type='submit' class='realbutton' value='$button' /></div>
|
||||
</div>
|
||||
</form>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// LOGIN: row
|
||||
//===========================================================================
|
||||
function login_row( $data ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$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'><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>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$data['login_id']}",
|
||||
new Array(
|
||||
EOF;
|
||||
//startif
|
||||
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>",
|
||||
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>",
|
||||
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>"
|
||||
//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>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// PORTAL: Overview
|
||||
//===========================================================================
|
||||
function portal_pop_overview( $title, $content ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>{$this->ipsclass->acp_lang['portal_pop_tags']} {$title}</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='30%'>{$this->ipsclass->acp_lang['portal_pop_name']}</td>
|
||||
<td class='tablesubheader' width='70%'>{$this->ipsclass->acp_lang['portal_pop_desc']}</td>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
</div>
|
||||
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// PORTAL: row
|
||||
//===========================================================================
|
||||
function portal_pop_row( $tag, $desc ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'><!--::<strong>{$tag}</strong>::--></td>
|
||||
<td class='tablerow1'><div class='desctext'>{$desc}</td>
|
||||
</tr>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// PORTAL: Overview
|
||||
//===========================================================================
|
||||
function portal_overview( $content ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
$IPBHTML .= <<<EOF
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>{$this->ipsclass->acp_lang['portal_main_title']}</div>
|
||||
<table cellpadding='0' cellspacing='0' width='100%'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='1%'> </td>
|
||||
<td class='tablesubheader' width='95%'>{$this->ipsclass->acp_lang['portal_main_key']}</td>
|
||||
<td class='tablesubheader' width='5%'> </td>
|
||||
</tr>
|
||||
$content
|
||||
</table>
|
||||
<div align='center' class='tablefooter'> </div>
|
||||
</div>
|
||||
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// PORTAL: row
|
||||
//===========================================================================
|
||||
function portal_row( $data ) {
|
||||
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<EOF
|
||||
<tr>
|
||||
<td class='tablerow1'><img src='{$this->ipsclass->skin_url}/images/menu.png' border='0' alt='Îïöèè' 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>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
menu_build_menu(
|
||||
"menu{$data['pc_key']}",
|
||||
new Array(
|
||||
EOF;
|
||||
//startif
|
||||
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>",
|
||||
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>"
|
||||
) );
|
||||
</script>
|
||||
EOF;
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1 +1 @@
|
||||
<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
|
||||
<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
|
||||
@@ -1 +1 @@
|
||||
<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
|
||||
<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
|
||||
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 410 B |
|
Before Width: | Height: | Size: 652 B |
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<head><title></title></head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 340 B |
|
After Width: | Height: | Size: 50 B |
|
After Width: | Height: | Size: 627 B |
|
After Width: | Height: | Size: 437 B |
|
After Width: | Height: | Size: 995 B |
|
After Width: | Height: | Size: 502 B |
|
After Width: | Height: | Size: 982 B |
|
After Width: | Height: | Size: 468 B |
|
After Width: | Height: | Size: 475 B |
|
After Width: | Height: | Size: 516 B |
|
After Width: | Height: | Size: 907 B |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 233 B |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 650 B |
@@ -0,0 +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
|
||||
|
After Width: | Height: | Size: 91 B |
@@ -0,0 +1,15 @@
|
||||
<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>
|
||||
|
After Width: | Height: | Size: 125 B |
|
After Width: | Height: | Size: 6.8 KiB |
|
After Width: | Height: | Size: 8.4 KiB |
|
After Width: | Height: | Size: 523 B |
|
After Width: | Height: | Size: 602 B |
|
After Width: | Height: | Size: 867 B |
|
After Width: | Height: | Size: 782 B |