Version 2.3.6
This commit is contained in:
1 parent
a3bb603c96
commit
19b38c7c74
764 files changed
+143731
-118164
No files matched your search
@@ -1,205 +1,197 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:54 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-10-05 11:04:08 -0500 (Thu, 05 Oct 2006) $
|
||||
| > $Revision: 609 $
|
||||
| > $Author: matt $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > ACP Prefs functions
|
||||
| > Module written by Matt Mecham
|
||||
| > Date started: 22nd May 2003
|
||||
|
|
||||
| > Module Version Number: 1.0.0
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
if ( ! defined( 'IN_ACP' ) )
|
||||
{
|
||||
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class ad_prefs {
|
||||
|
||||
var $base_url;
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Show the wee form
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $this->ipsclass->input['set'] == 1 )
|
||||
{
|
||||
$this->msg = 'Savings set';
|
||||
|
||||
if ( $this->ipsclass->input['tx'] == "" or $this->ipsclass->input['ty'] == "" )
|
||||
{
|
||||
$this->msg = 'Ïîæàëóéñòà, çàïîëíèòå ôîðìó';
|
||||
|
||||
print $this->get_html();
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ipsclass->my_setcookie( 'acpprefs', $this->ipsclass->input['menu'] .','. $this->ipsclass->input['tx'] .','. $this->ipsclass->input['ty'] .','. $this->ipsclass->input['preview']);
|
||||
|
||||
$this->msg = 'Íàñòðîéêè ñîõðàíåíû ';
|
||||
|
||||
$this->tx = $this->ipsclass->input['tx'];
|
||||
$this->ty = $this->ipsclass->input['ty'];
|
||||
|
||||
if ( $this->ipsclass->input['menu'] )
|
||||
{
|
||||
$this->s_yes = 'selected';
|
||||
$this->s_no = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->s_yes = '';
|
||||
$this->s_no = 'selected';
|
||||
}
|
||||
|
||||
if ( $this->ipsclass->input['preview'] )
|
||||
{
|
||||
$this->p_yes = 'selected';
|
||||
$this->p_no = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->p_yes = '';
|
||||
$this->p_no = 'selected';
|
||||
}
|
||||
|
||||
print $this->get_html();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$state = 0;
|
||||
$tx = 80;
|
||||
$ty = 40;
|
||||
|
||||
if ( $cookie = $this->ipsclass->my_getcookie('acpprefs') )
|
||||
{
|
||||
list( $state, $tx, $ty, $prev_show ) = explode( ",", $cookie );
|
||||
}
|
||||
|
||||
$this->tx = $tx;
|
||||
$this->ty = $ty;
|
||||
|
||||
if ( $state )
|
||||
{
|
||||
$this->s_yes = 'selected';
|
||||
$this->s_no = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->s_yes = '';
|
||||
$this->s_no = 'selected';
|
||||
}
|
||||
|
||||
if ( $prev_show )
|
||||
{
|
||||
$this->p_yes = 'selected';
|
||||
$this->p_no = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->p_yes = '';
|
||||
$this->p_no = 'selected';
|
||||
}
|
||||
|
||||
print $this->get_html();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function get_html()
|
||||
{
|
||||
global $SKIN;
|
||||
|
||||
$hit_muhl = <<<EOF
|
||||
<html>
|
||||
<head>
|
||||
<title>IPB-âàøè ïðåäïî÷òåíèÿ</title>
|
||||
<style type='text/css'>
|
||||
BODY {
|
||||
font-size: 10px;
|
||||
font-family: Verdana, Arial, Sans-Serif;
|
||||
color:#000;
|
||||
padding:0px;
|
||||
margin:5px 5px 5px 5px;
|
||||
background-color: #F5F9FD
|
||||
}
|
||||
|
||||
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 }
|
||||
input {vertical-align:middle}
|
||||
.textinput { background-color: #DFE6EF;; color:Ê#000; font-size:10px; font-family: Verdana,Arial, Sans-Serif; padding:2px; }
|
||||
|
||||
</style>
|
||||
<script type='text/javascript'>
|
||||
var msg = "{$this->msg}";
|
||||
|
||||
if ( msg != "" )
|
||||
{
|
||||
alert( msg );
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form action="{$this->ipsclass->base_url}&act=prefs&set=1" method="post">
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<fieldset style='padding:10px'>
|
||||
<legend>Âàøè ïðåäïî÷òåíèÿ â àäìèíöåíòðå</legend>
|
||||
<strong>Ñîõðàíèòü ðàñïîëîæåíèå ìåíþ àäìèíöåíòðà</strong> <select class='textinput' name='menu'><option value='1' {$this->s_yes}>Äà</option><option value='0' {$this->s_no}>Íåò</option></select>
|
||||
<br /><br />
|
||||
<strong>Ðàçìåð øðèôòà â òåêñòáîêñàõ</strong> <input class='textinput' type='text' size='3' name='tx' value='{$this->tx}' /> <strong>X</strong> <input class='textinput' type='text' size='3' name='ty' value='{$this->ty}' />
|
||||
<br /><br />
|
||||
<strong>Ïîêàçûâàòü ïðåäïðîñìîòðò ìàêðîñà</strong> <select class='textinput' name='preview'><option value='1' {$this->p_yes}>Äà</option><option value='0' {$this->p_no}>Íåò</option></select>
|
||||
<br /><br />
|
||||
<center><input type='submit' class='textinput' value='Ñîõðàíèòü' /></center>
|
||||
</fieldset>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
EOF;
|
||||
|
||||
return $hit_muhl;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-10-05 12:04:08 -0400 (Thu, 05 Oct 2006) $
|
||||
| > $Revision: 609 $
|
||||
| > $Author: matt $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > ACP Prefs functions
|
||||
| > Module written by Matt Mecham
|
||||
| > Date started: 22nd May 2003
|
||||
|
|
||||
| > Module Version Number: 1.0.0
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
if ( ! defined( 'IN_ACP' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class ad_prefs {
|
||||
|
||||
var $base_url;
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Show the wee form
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $this->ipsclass->input['set'] == 1 )
|
||||
{
|
||||
$this->msg = 'Savings set';
|
||||
|
||||
if ( $this->ipsclass->input['tx'] == "" or $this->ipsclass->input['ty'] == "" )
|
||||
{
|
||||
$this->msg = 'Please complete the form';
|
||||
|
||||
print $this->get_html();
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ipsclass->my_setcookie( 'acpprefs', $this->ipsclass->input['menu'] .','. $this->ipsclass->input['tx'] .','. $this->ipsclass->input['ty'] .','. $this->ipsclass->input['preview']);
|
||||
|
||||
$this->msg = 'Settings saved';
|
||||
|
||||
$this->tx = $this->ipsclass->input['tx'];
|
||||
$this->ty = $this->ipsclass->input['ty'];
|
||||
|
||||
if ( $this->ipsclass->input['menu'] )
|
||||
{
|
||||
$this->s_yes = 'selected';
|
||||
$this->s_no = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->s_yes = '';
|
||||
$this->s_no = 'selected';
|
||||
}
|
||||
|
||||
if ( $this->ipsclass->input['preview'] )
|
||||
{
|
||||
$this->p_yes = 'selected';
|
||||
$this->p_no = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->p_yes = '';
|
||||
$this->p_no = 'selected';
|
||||
}
|
||||
|
||||
print $this->get_html();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$state = 0;
|
||||
$tx = 80;
|
||||
$ty = 40;
|
||||
|
||||
if ( $cookie = $this->ipsclass->my_getcookie('acpprefs') )
|
||||
{
|
||||
list( $state, $tx, $ty, $prev_show ) = explode( ",", $cookie );
|
||||
}
|
||||
|
||||
$this->tx = $tx;
|
||||
$this->ty = $ty;
|
||||
|
||||
if ( $state )
|
||||
{
|
||||
$this->s_yes = 'selected';
|
||||
$this->s_no = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->s_yes = '';
|
||||
$this->s_no = 'selected';
|
||||
}
|
||||
|
||||
if ( $prev_show )
|
||||
{
|
||||
$this->p_yes = 'selected';
|
||||
$this->p_no = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->p_yes = '';
|
||||
$this->p_no = 'selected';
|
||||
}
|
||||
|
||||
print $this->get_html();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function get_html()
|
||||
{
|
||||
global $SKIN;
|
||||
|
||||
$hit_muhl = <<<EOF
|
||||
<html>
|
||||
<head>
|
||||
<title>IPB-ACP Prefs</title>
|
||||
<style type='text/css'>
|
||||
BODY {
|
||||
font-size: 10px;
|
||||
font-family: Verdana, Arial, Sans-Serif;
|
||||
color:#000;
|
||||
padding:0px;
|
||||
margin:5px 5px 5px 5px;
|
||||
background-color: #F5F9FD
|
||||
}
|
||||
|
||||
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 }
|
||||
input {vertical-align:middle}
|
||||
.textinput { background-color: #DFE6EF;; color:Ê#000; font-size:10px; font-family: Verdana,Arial, Sans-Serif; padding:2px; }
|
||||
|
||||
</style>
|
||||
<script type='text/javascript'>
|
||||
var msg = "{$this->msg}";
|
||||
|
||||
if ( msg != "" )
|
||||
{
|
||||
alert( msg );
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form action="{$this->ipsclass->base_url}&act=prefs&set=1" method="post">
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' />
|
||||
<fieldset style='padding:10px'>
|
||||
<legend>Your ACP Prefs</legend>
|
||||
<strong>Save ACP Menu State</strong> <select class='textinput' name='menu'><option value='1' {$this->s_yes}>Yes</option><option value='0' {$this->s_no}>No</option></select>
|
||||
<br /><br />
|
||||
<strong>Template's Textbox Size</strong> <input class='textinput' type='text' size='3' name='tx' value='{$this->tx}' /> <strong>X</strong> <input class='textinput' type='text' size='3' name='ty' value='{$this->ty}' />
|
||||
<br /><br />
|
||||
<strong>Show Macro Preview?</strong> <select class='textinput' name='preview'><option value='1' {$this->p_yes}>Yes</option><option value='0' {$this->p_no}>No</option></select>
|
||||
<br /><br />
|
||||
<center><input type='submit' class='textinput' value='Save' /></center>
|
||||
</fieldset>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
EOF;
|
||||
|
||||
return $hit_muhl;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user