Version 2.2.0 RC-1

This commit is contained in:
Neo committed 2025-12-19 00:22:37 -08:00
1 parent f73f8bff6d
commit 22f1b963ee
1034 files changed
+178610 -70897

No files matched your search

+89 -109
View File
@@ -2,27 +2,18 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| Invision Power Board
| =============================================
| by Matthew Mecham
| (c) 2001 - 2005 Invision Power Services, Inc.
| (c) 2001 - 2006 Invision Power Services, Inc.
| http://www.invisionpower.com
| =============================================
| Web: http://www.invisionboard.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| Licence Info: http://www.invisionboard.com/?license
| http://www.ibresource.ru/license
+---------------------------------------------------------------------------
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
+---------------------------------------------------------------------------
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
+---------------------------------------------------------------------------
| > $Date: 2005-10-10 14:08:54 +0100 (Mon, 10 Oct 2005) $
| > $Revision: 23 $
| > $Author: matt $
| > $Date: 2006-10-12 21:32:23 +0100 (Thu, 12 Oct 2006) $
| > $Revision: 634 $
| > $Author: bfarber $
+---------------------------------------------------------------------------
|
| > CSS management functions
@@ -36,7 +27,7 @@
if ( ! defined( 'IN_ACP' ) )
{
print "<h1>Íåâåðíûé âõîä</h1> Ó Âàñ íåò äîñòóïà ê äèðåêòèâå ýòîãî ôàéëà. Åñëè Âû ïðîâîäèëè îáíîâëåíèÿ, óáåäèòåñü, ÷òî íå çàáûëè îáíîâèòü 'admin.php'.";
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
exit();
}
@@ -65,17 +56,6 @@ class ad_skin_css
function auto_run()
{
//-----------------------------------------
// Kill globals - globals bad, Homer good.
//-----------------------------------------
$tmp_in = array_merge( $_GET, $_POST, $_COOKIE );
foreach ( $tmp_in as $k => $v )
{
unset($$k);
}
//-----------------------------------------
// Get the libraries
//-----------------------------------------
@@ -135,7 +115,7 @@ class ad_skin_css
break;
default:
print "Äåéñòâèÿ íå âûáðàíû"; exit();
print "No action taken"; exit();
break;
//case 'wrapper':
@@ -170,16 +150,20 @@ class ad_skin_css
if ($this->ipsclass->input['id'] == "")
{
$this->ipsclass->admin->error("Íå âûáðàí ID øàáëîíà, âåðíèòåñü íàçàä è ïîâòîðèòå ïîïûòêó");
$this->ipsclass->admin->error("You must specify an existing wrapper ID, go back and try again");
}
//-----------------------------------------
$this->ipsclass->DB->query("SELECT cssid, css_text, css_name, css_comments FROM ibf_skin_css WHERE cssid='".$this->ipsclass->input['id']."'");
$this->ipsclass->DB->build_query( array( 'select' => 'cssid, css_text, css_name, css_comments',
'from' => 'skin_css',
'where' => 'cssid='.intval($this->ipsclass->input['id'])
) );
$this->ipsclass->DB->exec_query();
if ( ! $cssinfo = $this->ipsclass->DB->fetch_row() )
{
$this->ipsclass->admin->error("Íåëüçÿ ïîëó÷èòü CSS èç áàçû äàííûõ");
$this->ipsclass->admin->error("Could not query the CSS details from the database");
}
if ( $this->ipsclass->input['favour'] == 'cache' )
@@ -194,12 +178,10 @@ class ad_skin_css
}
else
{
$this->ipsclass->admin->error("Íåëüçÿ íàéòè Êåø CSS ôàéëà @ $cache_file");
$this->ipsclass->admin->error("Could not locate cached CSS file @ $cache_file");
}
$dbr = $this->ipsclass->DB->compile_db_update_string( array( 'css_text' => $cache_data ) );
$this->ipsclass->DB->query("UPDATE ibf_skin_css SET $dbr WHERE cssid='".$this->ipsclass->input['id']."'");
$this->ipsclass->DB->do_update( 'skin_css', array( 'css_text' => $cache_data ), 'cssid='.intval($this->ipsclass->input['id']) );
}
else
{
@@ -230,8 +212,8 @@ class ad_skin_css
{
//-----------------------------------------
$this->ipsclass->admin->page_detail = "Íàéäåíî íåñîîòâåòñòâèå ìåæäó êåø ñòèëåì ñòðàíèöû è òàáëèöîé ñòèëåé ñîõðàíåííîé â áàçå äàííûõ.";
$this->ipsclass->admin->page_title = " Ñèíõðîíèçàöèÿ òàáëèöû ñòèëåé";
$this->ipsclass->admin->page_detail = "A mismatch has been found between the cached style sheet and the style sheet stored in the database";
$this->ipsclass->admin->page_title = "Resynchronise Style Sheet";
//-----------------------------------------
@@ -249,18 +231,18 @@ class ad_skin_css
$favour = 'db';
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Ñèíõðàíèçèðîâàòü CSS ïåðåä åãî ðåäàêòèðîâàíèåì..." );
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Resynch CSS before editing..." );
if ( intval($cache_mtime) > intval($db_mtime) )
{
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array(
"<b>CSS â áàçå äàííûõ, ïîñëåäíåå îáíîâëåíèå:</b> ".$this->ipsclass->admin->get_date($db_mtime, 'LONG'),
"<b>CSS â áàçå äàííûõ, êîë-âî ñèìâîëîâ:</b> $db_length",
"<b>CSS in database last updated:</b> ".$this->ipsclass->admin->get_date($db_mtime, 'LONG'),
"<b>CSS in database, # characters:</b> $db_length",
) );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array(
"<span style='color:red'><b>CSS â êåøå, ïîñëåäíåå îáíîâëåíèå:</b> ".$this->ipsclass->admin->get_date($cache_mtime, 'LONG')."</span>",
"<span style='color:red'><b>CSS â êåøå, êîë-âî ñèìâîëîâ:</b> $cache_length</span>",
"<span style='color:red'><b>CSS in CACHE last updated:</b> ".$this->ipsclass->admin->get_date($cache_mtime, 'LONG')."</span>",
"<span style='color:red'><b>CSS in CACHE, # characters:</b> $cache_length</span>",
) );
$favour = 'cache';
@@ -268,25 +250,25 @@ class ad_skin_css
else
{
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array(
"<span style='color:red'><b>CSS â áàçå äàííûõ, ïîñëåäíåå îáíîâëåíèå:</b> ".$this->ipsclass->admin->get_date($db_mtime, 'LONG')."</span>",
"<span style='color:red'><b>CSS â áàçå äàííûõ, êîë-âî ñèìâîëîâ:</b> $db_length</span>",
"<span style='color:red'><b>CSS in database last updated:</b> ".$this->ipsclass->admin->get_date($db_mtime, 'LONG')."</span>",
"<span style='color:red'><b>CSS in database, # characters:</b> $db_length</span>",
) );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array(
"<b>CSS â êåøå, ïîñëåäíåå îáíîâëåíèå:</b> ".$this->ipsclass->admin->get_date($cache_mtime, 'LONG'),
"<b>CSS â êåøå, êîë-âî ñèìâîëîâ:</b> $cache_length",
"<b>CSS in CACHE last updated:</b> ".$this->ipsclass->admin->get_date($cache_mtime, 'LONG'),
"<b>CSS in CACHE, # characters:</b> $cache_length",
) );
}
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array(
"<b>Èñïîëüçîâàòü ñèíõðîíèçàöèÿ....</b>",
"<b>Resynchronise using....</b>",
$this->ipsclass->adskin->form_dropdown( 'favour', array(
0 => array( 'cache', 'Ïåðåïèñàòü âåðñèþ áàçû äàííûõ ñ êåø âåðñèåé'),
1 => array( 'db' , 'Îáíîâèòü âåðñèþ êåøà èç áàçû äàííûõ' ),
0 => array( 'cache', 'Overwrite database version with cached version'),
1 => array( 'db' , 'Update cached version from the database' ),
), $favour ),
) );
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Ñèíõðîíèçèðîâàòü");
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Resynchronise");
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
@@ -294,12 +276,9 @@ class ad_skin_css
//-------------------------------
$this->ipsclass->admin->output();
}
//-----------------------------------------
// OPTIMIZE STYLE SHEET
//-----------------------------------------
@@ -308,16 +287,17 @@ class ad_skin_css
{
if ($this->ipsclass->input['id'] == "")
{
$this->ipsclass->admin->error("Âû äîëæíû óòî÷íèòü òåêóùèé CSS ID, âåðíèòåñü è ïîâòîðèòå çàíîâî");
$this->ipsclass->admin->error("You must specify an existing CSS ID, go back and try again");
}
//-----------------------------------------
$this->ipsclass->DB->query("SELECT * from ibf_skin_css WHERE cssid='".$this->ipsclass->input['id']."'");
$this->ipsclass->DB->build_query( array( 'select' => '*', 'from' => 'skin_css', 'where' => 'cssid='.intval($this->ipsclass->input['id']) ) );
$this->ipsclass->DB->exec_query();
if ( ! $row = $this->ipsclass->DB->fetch_row() )
{
$this->ipsclass->admin->error("Íåâîçìîæíî çàïðîñèòü èíôîðìàöèþ èç áàçû äàííûõ");
$this->ipsclass->admin->error("Could not query the information from the database");
}
//-----------------------------------------
@@ -352,7 +332,7 @@ class ad_skin_css
if ( count($parsed) < 1)
{
$this->ipsclass->admin->error("Òàáëèöû ñòèëÿ íàõîäèòñÿ â ôîðìàòå êîòîðûé íå ïîíèìàåò Invision Power Board, îïòèìèçàöèÿ íå ïðîèçâåäåíà.");
$this->ipsclass->admin->error("The stylesheet is in a format that Invision Power Board cannot understand, no optimization done.");
}
//-----------------------------------------
@@ -395,16 +375,16 @@ class ad_skin_css
if ($final_size < 1000)
{
$this->ipsclass->admin->error("Òàáëèöû ñòèëÿ íàõîäèòñÿ â ôîðìàòå êîòîðûé íå ïîíèìàåò Invision Power Board, îïòèìèçàöèÿ íå ïðîèçâåäåíà.");
$this->ipsclass->admin->error("The stylesheet is in a format that Invision Power Board cannot understand, no optimization done.");
}
//-----------------------------------------
// Update the DB
//-----------------------------------------
$dbs = $this->ipsclass->DB->compile_db_update_string( array( 'css_text' => $final ) );
$dbs = $this->ipsclass->DB->compile_db_update_string( );
$this->ipsclass->DB->query("UPDATE ibf_skin_css SET $dbs WHERE cssid='".$this->ipsclass->input['id']."'");
$this->ipsclass->DB->do_update( 'skin_css', array( 'css_text' => $final ), 'cssid='.intval($this->ipsclass->input['id']) );
$saved = $orig_size - $final_size;
$pc_saved = 0;
@@ -414,10 +394,7 @@ class ad_skin_css
$pc_saved = sprintf( "%.2f", ($saved / $orig_size) * 100);
}
$this->ipsclass->admin->done_screen("Òàáëèöà ñòèëåé îáíîâëåíà: Èçìåíåíèÿ ñîõðàíåíû: $saved ($pc_saved %)", "Íàñòðîéêà òàáëèöû ñòèëåé", "{$this->ipsclass->form_code}" );
$this->ipsclass->admin->done_screen("Stylesheet updated: Characters Saved: $saved ($pc_saved %)", "Manage Style Sheets", "{$this->ipsclass->form_code}" );
}
@@ -427,6 +404,8 @@ class ad_skin_css
function save_css( $type='add' )
{
$this->ipsclass->input['id'] = intval($this->ipsclass->input['id']);
//-----------------------------------------
// Check input
//-----------------------------------------
@@ -435,14 +414,14 @@ class ad_skin_css
{
if ($this->ipsclass->input['id'] == "")
{
$this->ipsclass->admin->error("Âû äîëæíû óòî÷íèòü òåêóùèé CSS ID, âåðíèòåñü è ïîâòîðèòå çàíîâî");
$this->ipsclass->admin->error("You must specify an existing CSS ID, go back and try again");
}
}
if ($this->ipsclass->input['txtcss'] == "")
{
$this->ipsclass->admin->error("Âàøà òàáëèöà ñòèëåé íå äîëæíà áûòü ïóñòîé");
$this->ipsclass->admin->error("You can't have an empty stylesheet, can you?");
}
@@ -455,7 +434,7 @@ class ad_skin_css
// Update cache?
//-----------------------------------------
$extra = "<b>Ôàéë êåøà òàáëèöû ñòèëåé îáíîâëåí</b>";
$extra = "<b>Stylesheet cache file updated</b>";
$message = $this->ipsclass->cache_func->_write_css_to_cache( $this->ipsclass->input['id'] );
@@ -465,9 +444,9 @@ class ad_skin_css
if ( ! $this->ipsclass->input['savereload'] )
{
$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code ,'Óïðàâëåíèå ñòèëåì' );
$this->ipsclass->main_msg = "Òàáëèöà ñòèëåé îáíîâëåíà: $extra";
$this->ipsclass->admin->redirect( $this->ipsclass->base_url.'&section='.$this->ipsclass->section_code.'&act=sets', "Òàáëèöà ñòèëåé îáíîâëåíà, âåðíèòåñü ê óïðàâëåíèþ ñêèíîì" );
$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code ,'Skin Manager Home' );
$this->ipsclass->main_msg = "Stylesheet updated : $extra";
$this->ipsclass->admin->redirect( $this->ipsclass->base_url.'&section='.$this->ipsclass->section_code.'&act=sets', "Stylesheet updated, returning to the skin manager" );
}
else
{
@@ -475,14 +454,12 @@ class ad_skin_css
// Reload edit window
//-----------------------------------------
$this->ipsclass->main_msg = "Òàáëèöà ñòèëåé îáíîâëåíà: $extra";
$this->ipsclass->main_msg = "Stylesheet updated : $extra";
$this->do_form('edit');
}
}
//-----------------------------------------
// Show Add/Edit form
//-----------------------------------------
@@ -493,9 +470,11 @@ class ad_skin_css
if ($this->ipsclass->input['id'] == "")
{
$this->ipsclass->admin->error("Âû äîëæíû óòî÷íèòü ID òåêóùåãî øàáëîíà, âåðíèòåñü è ïîâòîðèòå çàíîâî");
$this->ipsclass->admin->error("You must specify an existing wrapper ID, go back and try again");
}
$this->ipsclass->input['id'] = intval($this->ipsclass->input['id']);
//-----------------------------------------
// check tree...
//-----------------------------------------
@@ -504,10 +483,7 @@ class ad_skin_css
$found_content = "";
$this_set = "";
if ( $this->ipsclass->input['p'] > 0 )
{
$in = ','.$this->ipsclass->input['p'];
}
$in = $this->ipsclass->input['p'] > 0 ? ','.intval($this->ipsclass->input['p']) : '';
//-----------------------------------------
// Query
@@ -540,7 +516,7 @@ class ad_skin_css
$css = $found_content;
$code = 'doedit';
$button = 'Ñîõðàíèòü';
$button = 'Save Stylesheet';
//-----------------------------------------
// COLURS!ooO!
@@ -571,8 +547,8 @@ class ad_skin_css
//-----------------------------------------
$this->ipsclass->admin->page_detail = "Âû ìîæåòå ïîëíîñòüþ èñïîëüçîâàòü CSS êîãäà äîáàâëÿåòå èëè ðåäàêòèðóåòå òàáëèöó ñòèëåé.";
$this->ipsclass->admin->page_title = " Íàñòðîéêà òàáëèöû ñòèëåé";
$this->ipsclass->admin->page_detail = "You may use CSS fully when adding or editing stylesheets.";
$this->ipsclass->admin->page_title = "Manage Style Sheets";
//-----------------------------------------
@@ -611,9 +587,9 @@ class ad_skin_css
$this->ipsclass->html .= $this->functions->build_generic_editor_area( array( 'section' => $this->ipsclass->section_code, 'act' => 'style', 'title' => '', 'textareaname' => 'css', 'textareainput' => $css ) );
$formbuttons = "<div align='center' class='pformstrip'>
$formbuttons = "<div align='center' class='tablesubheader'>
<input type='submit' name='submit' value='$button' class='realdarkbutton'>
<input type='submit' name='savereload' value='Ñîõðàíèòü è ïåðåçàãðóçèòü' class='realdarkbutton'>
<input type='submit' name='savereload' value='Save and Reload Stylesheet' class='realdarkbutton'>
</div></form>\n";
$this->ipsclass->html = str_replace( '<!--IPB.EDITORBOTTOM-->', $formbuttons, $this->ipsclass->html );
@@ -634,13 +610,13 @@ class ad_skin_css
$this->ipsclass->adskin->td_header[] = array( "&nbsp;" , "20%" );
$this->ipsclass->adskin->td_header[] = array( "&nbsp;" , "80%" );
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Èíôîðìàöèÿ îá èñïîëüçîâàíèè CSS êëàññîâ" );
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Find CSS Usage" );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array(
"Ïîêàçàòü, ãäå â øàáëîíàõ èñïîëüçóåòñÿ: ",
$this->ipsclass->adskin->form_dropdown('csschoice', $css_elements).'&nbsp;'
.'<input type="button" value="Ïîêàçàòü!" onClick="cssSearch(\''.$this->ipsclass->input['id'].'\');" id="editbutton">'
.'&nbsp;<input type="button" value="Ïðåäïðîñìîòð ñòèëÿ" onClick="cssPreview(\''.$this->ipsclass->input['id'].'\');" id="editbutton">'
"Show me where...",
$this->ipsclass->adskin->form_dropdown('csschoice', $css_elements).' ... is used within the templates &nbsp;'
.'<input type="button" value="Go!" onClick="cssSearch(\''.$this->ipsclass->input['id'].'\');" id="editbutton">'
.'&nbsp;<input type="button" value="Preview CSS Style" onClick="cssPreview(\''.$this->ipsclass->input['id'].'\');" id="editbutton">'
) );
$this->ipsclass->html .= $this->ipsclass->adskin->end_form();
@@ -651,8 +627,8 @@ class ad_skin_css
//-----------------------------------------
$this->ipsclass->admin->nav[] = array( 'section='.$this->ipsclass->section_code.'&act=sets' ,'Íàñòðîéêè ñòèëÿ' );
$this->ipsclass->admin->nav[] = array( '' ,'Ðåäàêòèðîâàíèå òàáëèöåé ñòèëåé â '.$this_set['set_name'] );
$this->ipsclass->admin->nav[] = array( 'section='.$this->ipsclass->section_code.'&act=sets' ,'Skin Manager Home' );
$this->ipsclass->admin->nav[] = array( '' ,'Editing Style Sheet in set '.$this_set['set_name'] );
$this->ipsclass->admin->output();
@@ -669,9 +645,11 @@ class ad_skin_css
if ($this->ipsclass->input['id'] == "")
{
$this->ipsclass->admin->error("Âû äîëæíû óòî÷íèòü ID òåêóùåãî øàáëîíà, âåðíèòåñü è ïîâòîðèòå ïîïûòêó ñíîâà");
$this->ipsclass->admin->error("You must specify an existing wrapper ID, go back and try again");
}
$this->ipsclass->input['id'] = intval($this->ipsclass->input['id']);
//-----------------------------------------
// check tree...
//-----------------------------------------
@@ -682,7 +660,7 @@ class ad_skin_css
if ( $this->ipsclass->input['p'] > 0 )
{
$in = ','.$this->ipsclass->input['p'];
$in = ','.intval($this->ipsclass->input['p']);
}
//-----------------------------------------
@@ -773,17 +751,17 @@ class ad_skin_css
if ( count($colours) < 1 )
{
$this->ipsclass->admin->error("CSS ðàáîòàåò íå íàäåæíî! Öâåòà äëÿ ðåäàêòèðîâàíèÿ íå âûáðàíû");
$this->ipsclass->admin->error("CSS all gone wonky! No colours to edit");
}
//-----------------------------------------
// Get $skin_names stuff
require './sources/lib/skin_info.php';
require ROOT_PATH .'sources/lib/skin_info.php';
$this->ipsclass->admin->page_detail = "Íèæå âû ìîæåòå îòðåäàêòèðîâàòü òåêóùèå öâåòà. <strong><a href='skin_acp/IPB2_Standard/colours.html' target='_blank'>Âûáðàòü öâåò</a></center></strong>";
$this->ipsclass->admin->page_title = " Íàñòðîéêà òàáëèöû ñòèëåé [Öâåòà]";
$this->ipsclass->admin->page_detail = "You edit the existing colours below. <strong><a href='{$this->ipsclass->vars['board_url']}/skin_acp/IPB2_Standard/colours.html' target='_blank'>Launch Colour Picker</a></center></strong>";
$this->ipsclass->admin->page_title = "Manage Style Sheets [ Colours ]";
@@ -822,12 +800,12 @@ class ad_skin_css
document.theAdminForm.initformval.value = formfield;
PopUp( 'skin_acp/IPB2_Standard/colours.html', 'PopPicker', 400, 500 );
PopUp( '{$this->ipsclass->vars['board_url']}/skin_acp/IPB2_Standard/colours.html', 'PopPicker', 400, 500 );
}
</script>";
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Öâåòà CSS" );
$this->ipsclass->html .= "<td class='tdrow2'>";
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "CSS Colours" );
$this->ipsclass->html .= "<td class='tablerow2'>";
foreach ( $colours as $prop => $val )
{
@@ -839,7 +817,7 @@ class ad_skin_css
if ( $desc == "" )
{
$desc = 'Íåäîñòóïíî';
$desc = 'None available';
}
$name = $prop;
@@ -854,25 +832,25 @@ class ad_skin_css
$font_box = $this->ipsclass->adskin->form_simple_input('f'.$md5.'color' , $val['color'], "14");
$bgcol_box = $this->ipsclass->adskin->form_simple_input('f'.$md5.'backgroundcolor' , $val['background-color'], "14");
$this->ipsclass->html .= "<div class='tdrow1'>
$this->ipsclass->html .= "<div class='tablerow1'>
<fieldset>
<legend><strong style='font-size:14px'>{$name}</strong></legend>
<table width='100%' border='0' cellpadding='4' cellspacing='0'>
<tr>
<td width='40%' valign='top'>
<fieldset>
<legend><strong>Öâåò øðèôòà</strong></legend>
{$font_box}&nbsp;&nbsp;<input type='text' id='{$md5}color' onclick=\"updatecolor('{$md5}color')\" size='6' style='border:1px solid black;background-color:{$val['color']}' readonly='readonly'>&nbsp;<a href='#' title='íàñòðîéêà öâåòà' onclick=\"poppicker('{$val['color']}', '{$md5}color'); return false;\"><img src='{$this->ipsclass->skin_url}/images/colorselect.png' border='0' /></a>
<legend><strong>Font Color</strong></legend>
{$font_box}&nbsp;&nbsp;<input type='text' id='{$md5}color' onclick=\"updatecolor('{$md5}color')\" size='6' style='border:1px solid black;background-color:{$val['color']}' readonly='readonly'>&nbsp;<a href='#' title='launch color picker' onclick=\"poppicker('{$val['color']}', '{$md5}color'); return false;\"><img src='{$this->ipsclass->skin_acp_url}/images/colorselect.png' border='0' /></a>
</fieldset>
<br />
<fieldset>
<legend><strong>Öâåò çàäíåãî ôîíà</strong></legend>
{$bgcol_box}&nbsp;&nbsp;<input type='text' id='{$md5}backgroundcolor' onclick=\"updatecolor('{$md5}backgroundcolor')\" size='6' style='border:1px solid black;background-color:{$val['background-color']}' readonly='readonly'>&nbsp;<a href='#' title='íàñòðîéêà öâåòà' onclick=\"poppicker('{$val['background-color']}', '{$md5}backgroundcolor'); return false;\"><img src='{$this->ipsclass->skin_url}/images/colorselect.png' border='0' /></a>
<legend><strong>Background Color</strong></legend>
{$bgcol_box}&nbsp;&nbsp;<input type='text' id='{$md5}backgroundcolor' onclick=\"updatecolor('{$md5}backgroundcolor')\" size='6' style='border:1px solid black;background-color:{$val['background-color']}' readonly='readonly'>&nbsp;<a href='#' title='launch color picker' onclick=\"poppicker('{$val['background-color']}', '{$md5}backgroundcolor'); return false;\"><img src='{$this->ipsclass->skin_acp_url}/images/colorselect.png' border='0' /></a>
</fieldset>
</td>
<td width='60%' valign='top'>
<fieldset>
<legend><strong>Äðóãèå àòðèáóòû CSS</strong></legend>
<legend><strong>Other CSS Attributes</strong></legend>
<textarea class='textinput' cols='40' rows='5' style='width:100%' name='f{$md5}extra'>{$val['_extra']}</textarea>
</fieldset>
</td>
@@ -883,7 +861,7 @@ class ad_skin_css
}
$this->ipsclass->html .= "</td>";
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Èçìåíèòü");
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Edit");
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
@@ -902,9 +880,11 @@ class ad_skin_css
if ($this->ipsclass->input['id'] == "")
{
$this->ipsclass->admin->error("Âû äîëæíû óòî÷íèòü ID òåêóùåãî øàáëîíà, âåðíèòåñü è ïîâòîðèòå ïîïûòêó ñíîâà");
$this->ipsclass->admin->error("You must specify an existing wrapper ID, go back and try again");
}
$this->ipsclass->input['id'] = intval($this->ipsclass->input['id']);
//-----------------------------------------
// check tree...
//-----------------------------------------
@@ -915,7 +895,7 @@ class ad_skin_css
if ( $this->ipsclass->input['p'] > 0 )
{
$in = ','.$this->ipsclass->input['p'];
$in = ','.intval($this->ipsclass->input['p']);
}
//-----------------------------------------
@@ -1022,7 +1002,7 @@ class ad_skin_css
if ( count($colours) < 1 )
{
$this->ipsclass->admin->error("Íåò öâåòîâ äëÿ ðåäàêòèðîâàíèÿ");
$this->ipsclass->admin->error("CSS all gone wonky! No colours to edit");
}
//-----------------------------------------