Version 2.2.0 RC-1
This commit is contained in:
1 parent
f73f8bff6d
commit
22f1b963ee
1034 files changed
+178610
-70897
No files matched your search
@@ -2,26 +2,17 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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 $
|
||||
| > $Date: 2006-09-22 11:28:54 +0100 (Fri, 22 Sep 2006) $
|
||||
| > $Revision: 567 $
|
||||
| > $Author: matt $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -71,17 +62,6 @@ class ad_skin_wrappers {
|
||||
$this->functions = new admin_template_functions();
|
||||
$this->functions->ipsclass =& $this->ipsclass;
|
||||
|
||||
//-----------------------------------------
|
||||
// Kill globals - globals bad, Homer good.
|
||||
//-----------------------------------------
|
||||
|
||||
$tmp_in = array_merge( $_GET, $_POST, $_COOKIE );
|
||||
|
||||
foreach ( $tmp_in as $k => $v )
|
||||
{
|
||||
unset($$k);
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
switch($this->ipsclass->input['code'])
|
||||
@@ -145,28 +125,28 @@ class ad_skin_wrappers {
|
||||
{
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->ipsclass->input['txtwrapper'] == "")
|
||||
{
|
||||
$this->ipsclass->admin->error("Ó âàñ íå ìîæåò áûòü ïóñòîãî øàáëîíà");
|
||||
$this->ipsclass->admin->error("You can't have an empty template, can you?");
|
||||
}
|
||||
|
||||
$tmpl = $this->ipsclass->admin->form_to_text( $this->ipsclass->txt_stripslashes($_POST['txtwrapper']) );
|
||||
|
||||
if ( ! preg_match( "/<% BOARD %>/", $tmpl ) )
|
||||
{
|
||||
$this->ipsclass->admin->error("Âû íå ìîæåòå óäàëèòü <% BOARD %> !");
|
||||
$this->ipsclass->admin->error("You cannot remove the <% BOARD %> tag silly!");
|
||||
}
|
||||
|
||||
if ( ! preg_match( "/<% COPYRIGHT %>/", $tmpl ) )
|
||||
{
|
||||
$this->ipsclass->admin->error("Âû íå ìîæåòå óäàëèòü <% COPYRIGHT %> !");
|
||||
$this->ipsclass->admin->error("You cannot remove the <% COPYRIGHT %> tag silly!");
|
||||
}
|
||||
|
||||
$this->ipsclass->DB->do_update( 'skin_sets', array( 'set_wrapper' => $tmpl ), 'set_skin_set_id='.$this->ipsclass->input['id'] );
|
||||
$this->ipsclass->DB->do_update( 'skin_sets', array( 'set_wrapper' => $tmpl ), 'set_skin_set_id='.$id );
|
||||
|
||||
$this->ipsclass->cache_func->_recache_wrapper( $this->ipsclass->input['id'] );
|
||||
|
||||
@@ -176,9 +156,9 @@ class ad_skin_wrappers {
|
||||
|
||||
if ( ! $this->ipsclass->input['savereload'] )
|
||||
{
|
||||
$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code ,'Óïðàâëåíèå ñòèëÿìè' );
|
||||
$this->ipsclass->main_msg = "Âåðõíèé è íèæíèé êîëîíòèòóëû ôîðóìà îáíîâëåíû";
|
||||
$this->ipsclass->admin->done_screen("Âåðõíèé è íèæíèé êîëîíòèòóëû ôîðóìà îáíîâëåíû", "Óïðàâëåíèå ñòèëÿìè", 'section='.$this->ipsclass->section_code.'&act=sets', "redirect" );
|
||||
$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code ,'Skin Manager Home' );
|
||||
$this->ipsclass->main_msg = "Board Header and Footer Wrapper Updated";
|
||||
$this->ipsclass->admin->done_screen("Board Header and Footer Wrapper Updated", "Skin Manager Home", 'section='.$this->ipsclass->section_code.'&act=sets', "redirect" );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -186,7 +166,7 @@ class ad_skin_wrappers {
|
||||
// Reload edit window
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->main_msg = "Âåðõíèé è íèæíèé êîëîíòèòóëû ôîðóìà îáíîâëåíû";
|
||||
$this->ipsclass->main_msg = "Board Header and Footer Wrapper updated";
|
||||
$this->do_form('edit');
|
||||
}
|
||||
|
||||
@@ -204,7 +184,7 @@ class ad_skin_wrappers {
|
||||
|
||||
if ($this->ipsclass->input['id'] == "")
|
||||
{
|
||||
$this->ipsclass->admin->error("Âû äîëæíû âûáðàòü ID ñóùåñòâóþùåãî îáùåãî øàáëîíà, âåðíèòåñü íàçàä è ïîïðîáóéòå ñíîâà");
|
||||
$this->ipsclass->admin->error("You must specify an existing skin set ID, go back and try again");
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -217,14 +197,14 @@ class ad_skin_wrappers {
|
||||
|
||||
if ( $this->ipsclass->input['p'] > 0 )
|
||||
{
|
||||
$in = ','.$this->ipsclass->input['p'];
|
||||
$in = ','.intval($this->ipsclass->input['p']);
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Query
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->DB->cache_add_query( 'stylesheets_do_form_concat', array( 'id' => $this->ipsclass->input['id'], 'parent' => $in ) );
|
||||
$this->ipsclass->DB->cache_add_query( 'stylesheets_do_form_concat', array( 'id' => intval($this->ipsclass->input['id']), 'parent' => $in ) );
|
||||
$this->ipsclass->DB->cache_exec_query();
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -248,24 +228,25 @@ class ad_skin_wrappers {
|
||||
if ($type == 'add')
|
||||
{
|
||||
$code = 'doadd';
|
||||
$button = 'Ñîçäàòü îáùèé øàáëîí';
|
||||
$button = 'Create Wrapper';
|
||||
}
|
||||
else
|
||||
{
|
||||
$code = 'doedit';
|
||||
$button = 'Ñîõðàíèòü îáùèé øàáëîí';
|
||||
$button = 'Save Wrapper';
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Header
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->admin->page_detail = "Âû ìîæåòå èñïîëüçîâàòü HTML âî âðåìÿ äîáàâëåíèÿ èëè èçìåíåíèÿ îáùåãî øàáëîíà.";
|
||||
$this->ipsclass->admin->page_title = "Èçìåíåíèå âåðõíåãî è íèæíåãî êîëîíòèòóëîâ ôîðóìà";
|
||||
$this->ipsclass->admin->page_detail = "You may use HTML fully when adding or editing wrappers.";
|
||||
$this->ipsclass->admin->page_title = "Editing Board Header and Footer Wrapper";
|
||||
|
||||
if ( $found_id == 1 )
|
||||
{
|
||||
$this->ipsclass->admin->page_detail .= "<br /><strong>Ýòî êîïèÿ îñíîâíîãî îáùåãî øàáëîíà, èçìåíåíèÿ â ôîðìå íèæå áóäóò ñêîïèðîâàíû, êàê íîâûé îáùèé øàáëîí ôîðóìà äëÿ âûáðàííîãî øàáëîíà.</strong>";
|
||||
$this->ipsclass->admin->page_detail .= "<br /><strong>This is a copy of the master wrapper, editing it below will copy the changes to a new wrapper unique to this skin set and any children of this set
|
||||
will inherit this wrapper</strong>";
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -291,9 +272,9 @@ class ad_skin_wrappers {
|
||||
|
||||
$this->ipsclass->html .= $this->functions->build_generic_editor_area( array( 'section' => $this->ipsclass->section_code, 'act' => 'wrap', 'title' => '', 'textareaname' => 'wrapper', 'textareainput' => $found_content ) );
|
||||
|
||||
$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 Wrapper' class='realdarkbutton'>
|
||||
</div></form>\n";
|
||||
|
||||
$this->ipsclass->html = str_replace( '<!--IPB.EDITORBOTTOM-->', $formbuttons, $this->ipsclass->html );
|
||||
@@ -305,8 +286,8 @@ class ad_skin_wrappers {
|
||||
// Output
|
||||
//-----------------------------------------
|
||||
|
||||
$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 Board Wrapper in set '.$this_set['set_name'] );
|
||||
|
||||
$this->ipsclass->admin->output();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user