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

+64 -75
View File
@@ -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 $
+---------------------------------------------------------------------------
|
@@ -35,7 +26,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();
}
@@ -46,17 +37,6 @@ class ad_remote_template {
function auto_run()
{
//-----------------------------------------
// 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'])
@@ -201,28 +181,28 @@ class ad_remote_template {
$html = "<html>
<head>
<title>CSS Ïðåäïðîñìîòð</title>
<title>CSS Preview</title>
$css
</head>
<body topmargin='0' leftmargin='0' rightmargin='0' marginwidth='0' marginheight='0' alink='#000000' vlink='#000000'>
<table border='1' width='95%' cellspacing='0' cellpadding='4' align='center'>
<tr>
<td bgcolor='#EEEEEE' style='font-size:14px'><b>Ïðåäïðîñìîòð CSS êëàññà '$name'<br>Èç ñòèëÿ '{$this_set['set_name']}'</b></td>
<td bgcolor='#EEEEEE' style='font-size:14px'><b>Preview CSS Element '$name'<br>From style sheet '{$this_set['set_name']}'</b></td>
</tr>
</table>
<br>
<table border='1' width='95%' cellspacing='0' cellpadding='4' align='center'>
<tr>
<td><b>Ïðåäïðîñìîòð</b></td>
<td><b>Preview</b></td>
</tr>
<tr>
<td $like>Ñòðîêà ïðèìåðà: Êëàðà ó Êàðëà óêðàëà êîðàëëû, à Êàðë ó Êëàðû óêðàë êëàðíåò</td>
<td $like>Cozy Lummux Gives Smart Squid Who Asks For Job Pen ([Indeed!])</td>
</tr>
</table>
<br>
<table border='1' width='95%' cellspacing='0' cellpadding='4' align='center'>
<tr>
<td colspan='2'><b>Îòôîðìàòèðîâàííîå îïðåäåëåíèå CSS ñòèëÿ</b></td>
<td colspan='2'><b>Formatted CSS Definition</b></td>
</tr>
$def_output
</table>
@@ -258,15 +238,16 @@ class ad_remote_template {
$like = "id=_{$name}";
}
require './sources/lib/skin_info.php';
require ROOT_PATH .'sources/lib/skin_info.php';
//die("SELECT suid, set_id, group_name, func_name FROM ibf_skin_templates WHERE set_id='".$set['tmpl_id']."' AND section_content LIKE '%".$like."%' ORDER BY group_name");
$this->ipsclass->DB->query("SELECT suid, set_id, group_name, func_name FROM ibf_skin_templates WHERE set_id IN (1,".$this->ipsclass->input['id'].") AND section_content LIKE '%".$like."%' ORDER BY group_name");
$this->ipsclass->DB->build_query( array( 'select' => 'suid, set_id, group_name, func_name', 'from' => 'skin_templates', 'where' => "set_id IN (1,".$this->ipsclass->input['id'].") AND section_content LIKE '%".$like."%'", 'order' => 'group_name' ) );
$this->ipsclass->DB->exec_query();
if (! $this->ipsclass->DB->get_num_rows() )
{
$this->do_message("Íå íàéäåíî çàïèñåé â øàáëîíå ñ ID {$set['set_id']}");
$this->do_message("No matches for that string in template set ID {$set['set_id']}");
}
$results = array();
@@ -284,7 +265,7 @@ class ad_remote_template {
$this->ipsclass->html .= $this->ipsclass->adskin->start_table();
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Ðåçóëüòàòû ïîèñêà</b>" ) , 'title' );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Search Results</b>" ) , 'title' );
foreach( $result as $group_name => $sub_array )
{
@@ -297,7 +278,7 @@ class ad_remote_template {
if (is_array($sub_array) and count($sub_array) > 0 )
{
foreach( $sub_array as $idx => $data )
foreach( $sub_array as $data )
{
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "+ <a href='{$this->ipsclass->base_url}&act=rtempl&code=preview&suid={$data['suid']}&type=text&hl=".urlencode($name)."' target='preview'>{$data['func_name']}</a>" ) );
}
@@ -324,7 +305,7 @@ class ad_remote_template {
if ($this->ipsclass->input['bypass'] == 1)
{
$this->do_message("Íè÷åãî íå íàéäåíî");
$this->do_message("No Search Results");
}
//-----------------------------------------
@@ -338,20 +319,21 @@ class ad_remote_template {
if ($search_text == "")
{
$this->do_message("Âû äîëæíû ââåñòè ñòðîêó äëÿ ïîèñêà");
$this->do_message("Please enter a string to search");
}
require './sources/lib/skin_info.php';
require ROOT_PATH .'sources/lib/skin_info.php';
//-----------------------------------------
// Get template bits
//-----------------------------------------
$this->ipsclass->DB->query("SELECT suid, set_id, group_name, func_name FROM ibf_skin_templates WHERE set_id=".$this->ipsclass->input['set_id']." AND section_content LIKE '%$search_text%' ORDER BY group_name");
$this->ipsclass->DB->build_query( array( 'select' => 'suid, set_id, group_name, func_name', 'from' => 'skin_templates', 'where' => "set_id=".$this->ipsclass->input['set_id']." AND section_content LIKE '%$search_text%'", 'order' => 'group_name' ) );
$this->ipsclass->DB->exec_query();
if ( ! $this->ipsclass->DB->get_num_rows() )
{
$this->do_message("Íå íàéäåíî çàïèñåé, ñîäåðæàùèõ èñêîìóþ ñòðîêó");
$this->do_message("No matches for that string");
}
$results = array();
@@ -377,7 +359,7 @@ class ad_remote_template {
$this->ipsclass->html .= $this->ipsclass->adskin->start_table();
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Ðåçóëüòàòû ïîèñêà</b>" ) , 'title' );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Search Results</b>" ) , 'title' );
foreach( $result as $group_name => $sub_array )
{
@@ -390,7 +372,7 @@ class ad_remote_template {
if (is_array($sub_array) and count($sub_array) > 0 )
{
foreach( $sub_array as $idx => $data )
foreach( $sub_array as $data )
{
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "+ <a href='{$this->ipsclass->base_url}&act=rtempl&code=preview&suid={$data['suid']}&set_id={$this->ipsclass->input['set_id']}&type=text&hl=".urlencode(stripslashes($_POST['search']))."' target='preview'>{$data['func_name']}</a>" ) );
}
@@ -411,7 +393,7 @@ class ad_remote_template {
function do_message($message="")
{
$this->ipsclass->html = "<tr><td id='tdrow1' height='100%' align='center' valign='middle'><br><br><b>$message</b><br><br>&nbsp;</td></tr>";
$this->ipsclass->html = "<tr><td id='tablerow1' height='100%' align='center' valign='middle'><br><br><b>$message</b><br><br>&nbsp;</td></tr>";
$this->ipsclass->admin->print_popup();
@@ -433,11 +415,11 @@ class ad_remote_template {
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Ââåäèòå çàïðîñ äëÿ ïîèñêà:</b><br>".
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Enter text to search for</b><br>".
$this->ipsclass->adskin->form_input( 'search' )
) );
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Íàéòè!");
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Search!");
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
@@ -449,7 +431,7 @@ class ad_remote_template {
function search_frames()
{
$this->ipsclass->boink_it( $this->ipsclass->base_url.'&act=skintools&code=searchsplash' );
$this->ipsclass->boink_it( $this->ipsclass->base_url.'&section=lookandfeel&act=skintools&code=searchsplash' );
exit();
@@ -473,7 +455,7 @@ class ad_remote_template {
{
print "<html>
<head>
<title>Ñðàâíåíèå</title>
<title>Compare</title>
</head>
<frameset cols='50%, 50%' frameborder='yes' border='1' framespacing='0'>
<frameset rows='30, *' frameborder='yes' border='1' framespacing='0'>
@@ -482,7 +464,7 @@ class ad_remote_template {
</frameset>
<frameset rows='30, *' frameborder='yes' border='1' framespacing='0'>
<frame name='newtop' scrolling='auto' src='{$this->ipsclass->base_url}&act=rtempl&code=dotop&content=new'>
<frame name='newbot' scrolling='auto' src='{$this->ipsclass->base_url}&act=rtempl&code=donew&suid={$this->ipsclass->input['suid']}'>
<frame name='newbot' scrolling='auto' src='{$this->ipsclass->base_url}&act=rtempl&code=donew&suid={$this->ipsclass->input['suid']}&pop=".intval($this->ipsclass->input['pop'])."'>
</frameset>
</frameset>
</html>";
@@ -494,7 +476,7 @@ class ad_remote_template {
function print_compare_top()
{
$content = $this->ipsclass->input['content'] == 'orig' ? 'Ñòàíäàðòíûé øàáëîí' : 'Òåêóùèé øàáëîí';
$content = $this->ipsclass->input['content'] == 'orig' ? 'Original Template' : 'Current Template';
print "<html>
<body marginheight='0' marginwidth='0' leftmargin='0' topmargin='0' bgcolor='#000055'>
@@ -512,7 +494,7 @@ class ad_remote_template {
if ( ! $template['suid'] )
{
$this->ipsclass->admin->error("Âû äîëæíû âûáðàòü ID øàáëîíà!");
$this->ipsclass->admin->error("You must specify an existing template set ID, go back and try again");
}
$skin = $this->ipsclass->DB->simple_exec_query( array( 'select' => '*', 'from' => 'skin_sets', 'where' => 'set_skin_set_id='.$template['set_id'] ) );
@@ -526,10 +508,17 @@ class ad_remote_template {
</head>
<body>
<script language='Javascript'>
<script type='text/javascript'>";
templatedata = window.parent.opener.document.theform.txt{$this->ipsclass->input['suid']}.value;
if( !$this->ipsclass->input['pop'] )
{
print " templatedata = window.parent.opener.document.theform.txt{$this->ipsclass->input['suid']}.value;";
}
else
{
print " templatedata = window.parent.opener.document.theform.templatebit.value;";
}
print "
document.write( templatedata);
document.close();
@@ -558,13 +547,13 @@ class ad_remote_template {
//-----------------------------------------
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Ïîèñê ìàêðîñîâ" );
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Macro Look-up" );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Ââåäèòå èñêîìûé ìàêðîñ</b><br>(Íàïðèìåð: {ibf.skin.set_image_dir})",
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Enter the Macro to look up</b><br>(EG: {ibf.skin.set_image_dir})",
$this->ipsclass->adskin->form_input( 'lookup', $this->ipsclass->input['lookup'] )
) );
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Íàéòè");
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Look-up");
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
@@ -606,7 +595,7 @@ class ad_remote_template {
if ($is_valid != 1)
{
$this->macro_one("Íåïðàâèëüíûé ôîðìàò");
$this->macro_one("Wrong format");
}
if ($extra != "")
@@ -624,7 +613,7 @@ class ad_remote_template {
$answer = $this->ipsclass->member[$macro];
}
}
$result = "Èíôîðìàöèÿ ïîëüçîâàòåëÿ çàãðóæåíà";
$result = "Loaded Member Information";
}
else if ($extra == 'vars')
{
@@ -637,11 +626,11 @@ class ad_remote_template {
$answer = $safe_INFO[$macro];
$result = "Ñèñòåìíûå ïåðåìåííûå (ìîãóò áûòü çàùèùåíû)";
$result = "Config Variable Information (May be protected)";
}
else if ($extra == 'lang')
{
$result = "ßçûêîâîé òåêñò";
$result = "Language Text";
$this->ipsclass->DB->simple_construct( array( 'select' => 'group_name', 'from' => 'skin_templates', 'where' => "suid='{$this->ipsclass->input['suid']}'" ) );
$this->ipsclass->DB->simple_exec();
@@ -650,9 +639,9 @@ class ad_remote_template {
{
$filename = preg_replace( "/^skin_/", "lang_", $r['group_name'] );
if ( @file_exists( "./lang/en/$filename".".php" ) )
if ( @file_exists( ROOT_PATH. "cache/lang_cache/en/$filename".".php" ) )
{
require "./cache/lang_cache/en/$filename".".php";
require ROOT_PATH. "cache/lang_cache/en/$filename".".php";
$answer = $lang[$macro];
}
@@ -679,11 +668,11 @@ class ad_remote_template {
if ($val = $this->ipsclass->DB->fetch_row())
{
$answer = htmlentities($val['macro_replace']);
$result = "Íàéäåííûå ìàêðîñû";
$result = "From Macro Set";
}
else
{
$answer = "Ìàêðîñ íå íàéäåí";
$answer = "Macro not found";
}
}
@@ -692,13 +681,13 @@ class ad_remote_template {
//-----------------------------------------
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Ðåçóëüòàòû ïîèñêà ìàêðîñà <a href='{$this->ipsclass->base_url}&act=rtempl&code=macro_one&suid={$this->ipsclass->input['suid']}'>Ïåðåéò</a>" );
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Macro Look-up Result <a href='{$this->ipsclass->base_url}&act=rtempl&code=macro_one&suid={$this->ipsclass->input['suid']}'>Go Again</a>" );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Ââåäåííûé ìàêðîñ</b>", $this->ipsclass->input['lookup'] ) );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Entered Macro</b>", $this->ipsclass->input['lookup'] ) );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Òèï ìàêðîñà</b>", $result ) );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Macro Type</b>", $result ) );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Ðåçóëüòàò</b><br>Ìîæåò áûòü ïóñòûì, åñëè íåò èíôîðìàöèè", $answer ) );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Result</b><br>May be blank if no info", $answer ) );
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
@@ -720,7 +709,7 @@ class ad_remote_template {
if ($this->ipsclass->input['suid'] == "")
{
$this->ipsclass->admin->error("Íå âûáðàí ID øàáëîíà, âåðíèòåñü íàçàä è ïîâòîðèòå ïîïûòêó");
$this->ipsclass->admin->error("You must specify an existing template set ID, go back and try again");
}
//-----------------------------------------
@@ -732,7 +721,7 @@ class ad_remote_template {
if ( ! $template = $this->ipsclass->DB->fetch_row() )
{
$this->ipsclass->admin->error("Øàáëîí ñ ýòèì ID íå íàéäåí, âåðíèòåñü íàçàä è ïîâòîðèòå ïîïûòêó");
$this->ipsclass->admin->error("You must specify an existing template set ID, go back and try again");
}
//-----------------------------------------
@@ -745,7 +734,7 @@ class ad_remote_template {
if ( is_array($macros) and count($macros) )
{
foreach( $macros as $id => $data )
foreach( $macros as $mc )
{
$macro_orig[] = "<{".$mc['macro_value']."}>";
$macro_repl[] = $mc['macro_replace'];
@@ -754,10 +743,10 @@ class ad_remote_template {
$table = "<table width='100%' bgcolor='black' cellpadding='4' style='font-family:verdana, arial;font-size:11px;color:white'>
<tr>
<td align='center' style='font-family:verdana, arial;font-size:11px;color:white'>Ãðóïïà øàáëîíîâ: {$template['group_name']} . Ôðàãìåíò øàáëîíà: {$template['func_name']}</td>
<td align='center' style='font-family:verdana, arial;font-size:11px;color:white'>Template Group: {$template['group_name']} : Template bit: {$template['func_name']}</td>
</tr>
<tr>
<td align='center' style='font-family:verdana, arial;font-size:11px;color:white'>Ñìîòðåòü êàê [ <a href='{$this->ipsclass->base_url}&act=rtempl&code=preview&suid={$this->ipsclass->input['suid']}&type=text' style='font-family:verdana, arial;font-size:11px;color:white'>Òåêñò</a> | <a href='{$this->ipsclass->base_url}&act=rtempl&code=preview&suid={$this->ipsclass->input['suid']}&type=html' style='font-family:verdana, arial;font-size:11px;color:white'>HTML</a> | <a href='{$this->ipsclass->base_url}&act=rtempl&code=preview&suid={$this->ipsclass->input['suid']}&type=css' style='font-family:verdana, arial;font-size:11px;color:white'>HTML ñ CSS</a> ]</td>
<td align='center' style='font-family:verdana, arial;font-size:11px;color:white'>View as [ <a href='{$this->ipsclass->base_url}&act=rtempl&code=preview&suid={$this->ipsclass->input['suid']}&type=text' style='font-family:verdana, arial;font-size:11px;color:white'>Text</a> | <a href='{$this->ipsclass->base_url}&act=rtempl&code=preview&suid={$this->ipsclass->input['suid']}&type=html' style='font-family:verdana, arial;font-size:11px;color:white'>HTML</a> | <a href='{$this->ipsclass->base_url}&act=rtempl&code=preview&suid={$this->ipsclass->input['suid']}&type=css' style='font-family:verdana, arial;font-size:11px;color:white'>HTML with CSS</a> ]</td>
</tr>
</table>
<br><br>
@@ -811,7 +800,7 @@ class ad_remote_template {
$css_text = "\n<style>\n<!--\n".str_replace( "<#IMG_DIR#>", "style_images/".$r['img_dir'], $css)."\n//-->\n</style>";
@header("Content-type: text/html");
print "<html><head><title>Ïðåäïðîñìîòð</title>$css_text</head><body>$table \n";
print "<html><head><title>Preview</title>$css_text</head><body>$table \n";
print str_replace( $macro_orig, $macro_repl, $this->convert_tags($template['section_content']) );
exit();