Avalanch
ТоЛеГ & ТоПеГ
- Регистрация
- 9 Янв 2007
- Сообщения
- 1.140
- Реакции
- 615
Мне лень ради этого библиотеку качать ... , стукни мне в асю
309-337
в асе не отвечаешь. Топик апаю.
Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
Мне лень ради этого библиотеку качать ... , стукни мне в асю
309-337
покажи нам файл C:\Program Files\VertrigoServ\www\engine\inc\options.php ошибка в нём, на 227 строке. криво вставил массив опций.
<?PHP
/*
=====================================================
DataLife Engine Nulled by M.I.D-Team
-----------------------------------------------------
http://www.mid-team.ws/
-----------------------------------------------------
Copyright (c) 2004,2008 SoftNews Media Group
=====================================================
Данный код защищен авторскими правами
=====================================================
Файл: options.php
-----------------------------------------------------
Назначение: опции
=====================================================
*/
if(!defined('DATALIFEENGINE'))
{
die("Hacking attempt!");
}
// ********************************************************************************
// Options Menu
// ********************************************************************************
if (isset ($_REQUEST['subaction'])) $subaction = $_REQUEST['subaction']; else $subaction = "";
if (isset ($_REQUEST['do_template'])) $do_template = $_REQUEST['do_template']; else $do_template = "";
if($action == "options" or $action == '')
{
echoheader("options",$lang['opt_head']);
//----------------------------------
// Predefine Options
//----------------------------------
// access means the lower level of user allowed; 1:admin, 2:editor+admin, 3:editor+admin+journalist, 4:all
$options = array();
$options['config'] = array(
array(
'name' => $lang['opt_all'],
'url' => "$PHP_SELF?mod=options&action=syscon",
'descr' => $lang['opt_allc'],
'image' => "tools.png",
'access' => "1",
),
array(
'name' => $lang['opt_cat'],
'url' => "$PHP_SELF?mod=categories",
'descr' => $lang['opt_catc'],
'image' => "cats.png",
'access' => "1",
),
array(
'name' => $lang['opt_db'],
'url' => "$PHP_SELF?mod=dboption",
'descr' => $lang['opt_dbc'],
'image' => "dbset.png",
'access' => "1",
),
array(
'name' => $lang['opt_xfil'],
'url' => "$PHP_SELF?mod=xfields&xfieldsaction=configure",
'descr' => $lang['opt_xfilc'],
'image' => "xfset.png",
'access' => "1",
),
);
$options['user'] = array(
array(
'name' => $lang['opt_priv'],
'url' => "$PHP_SELF?mod=options&action=personal",
'descr' => $lang['opt_privc'],
'image' => "pset.png",
'access' => "all",
),
array(
'name' => $lang['opt_user'],
'url' => "$PHP_SELF?mod=editusers&action=list",
'descr' => $lang['opt_userc'],
'image' => "uset.png",
'access' => "1",
),
array(
'name' => $lang['opt_xprof'],
'url' => "$PHP_SELF?mod=userfields&xfieldsaction=configure",
'descr' => $lang['opt_xprofd'],
'image' => "xprof.png",
'access' => "1",
),
array(
'name' => $lang['opt_group'],
'url' => "$PHP_SELF?mod=usergroup",
'descr' => $lang['opt_groupc'],
'image' => "usersgroup.png",
'access' => "1",
),
);
$options['templates'] = array(
array(
'name' => $lang['opt_t'],
'url' => "$PHP_SELF?mod=templates&user_hash=".$dle_login_hash,
'descr' => $lang['opt_tc'],
'image' => "tmpl.png",
'access' => "1",
),
array(
'name' => $lang['opt_email'],
'url' => "$PHP_SELF?mod=email",
'descr' => $lang['opt_emailc'],
'image' => "mset.png",
'access' => "1",
),
);
$options['filter'] = array(
array(
'name' => $lang['opt_fil'],
'url' => "$PHP_SELF?mod=wordfilter",
'descr' => $lang['opt_filc'],
'image' => "fset.png",
'access' => "2",
),
array(
'name' => $lang['opt_ipban'],
'url' => "$PHP_SELF?mod=blockip",
'descr' => $lang['opt_ipbanc'],
'image' => "blockip.png",
'access' => "1",
),
array(
'name' => $lang['opt_iptools'],
'url' => "$PHP_SELF?mod=iptools",
'descr' => $lang['opt_iptoolsc'],
'image' => "iptools.png",
'access' => "1",
),
array(
'name' => $lang['opt_sfind'],
'url' => "$PHP_SELF?mod=search",
'descr' => $lang['opt_sfindc'],
'image' => "find_base.png",
'access' => "1",
),
);
$options['others'] = array(
array(
'name' => $lang['opt_static'],
'url' => "$PHP_SELF?mod=static",
'descr' => $lang['opt_staticd'],
'image' => "spset.png",
'access' => "1",
),
// Модуль Files
array(
'name' => "Архив файлов",
'url' => "$PHP_SELF?mod=admin_files&action=list",
'descr' => "Архив файлов",
'image' => "files.png",
'access' => "5",
),
// Модуль Files
array(
'name' => $lang['opt_banner'],
'url' => "$PHP_SELF?mod=banners&action=list",
'descr' => $lang['opt_bannerc'],
'image' => "ads.png",
'access' => "1",
),
array(
'name' => $lang['opt_vote'],
'url' => "$PHP_SELF?mod=editvote",
'descr' => $lang['opt_votec'],
'image' => "votes.png",
'access' => "1",
),
array(
'name' => $lang['main_newsl'],
'url' => "$PHP_SELF?mod=newsletter",
'descr' => $lang['main_newslc'],
'image' => "email.png",
'access' => "1",
),
array(
'name' => $lang['opt_img'],
'url' => "$PHP_SELF?mod=files",
'descr' => $lang['opt_imgc'],
'image' => "iset.png",
'access' => "1",
),
array(
'name' => $lang['opt_clean'],
'url' => "$PHP_SELF?mod=clean",
'descr' => $lang['opt_cleanc'],
'image' => "clean.png",
'access' => "1",
),
array(
'name' = > 'Управление библиотекой',
'url' => "$PHP_SELF?mod=library&action=do",
'descr' => 'Настройка параметров вывода книг',
'image' => "book.png",
'access' => "1",
),
array(
'name' => $lang['opt_rss'],
'url' => "$PHP_SELF?mod=rss",
'descr' => $lang['opt_rssc'],
'image' => "rss.gif",
'access' => "1",
),
array(
'name' => $lang['opt_rssinform'],
'url' => "$PHP_SELF?mod=rssinform",
'descr' => $lang['opt_rssinformc'],
'image' => "rss.gif",
'access' => "1",
),
array(
'name' => $lang['opt_google'],
'url' => "$PHP_SELF?mod=googlemap",
'descr' => $lang['opt_googlec'],
'image' => "googlemap.png",
'access' => "1",
),
);
//------------------------------------------------
// Cut the options for wich we don't have access
//------------------------------------------------
foreach($options as $sub_options => $value)
{
$count_options = count($value);
for($i=0; $i < $count_options; $i++){
if($member_db[1] > $value[$i]['access'] AND $value[$i]['access'] != "all"){
unset($options[$sub_options][$i]);
}
}
}
$subs = 0;
foreach($options as $sub_options)
{
if ($subs == 1) $lang['opt_hopt'] = $lang['opt_s_acc'];
if ($subs == 2) $lang['opt_hopt'] = $lang['opt_s_tem'];
if ($subs == 3) $lang['opt_hopt'] = $lang['opt_s_fil'];
if ($subs == 4) $lang['opt_hopt'] = $lang['opt_s_oth'];
$subs++;
if (!count($sub_options)) continue;
echo <<<HTML
<div style="padding-top:5px;padding-bottom:2px;">
<table width="100%">
<tr>
<td width="4"><img src="engine/skins/images/tl_lo.gif" width="4" height="4" border="0"></td>
<td background="engine/skins/images/tl_oo.gif"><img src="engine/skins/images/tl_oo.gif" width="1" height="4" border="0"></td>
<td width="6"><img src="engine/skins/images/tl_ro.gif" width="6" height="4" border="0"></td>
</tr>
<tr>
<td background="engine/skins/images/tl_lb.gif"><img src="engine/skins/images/tl_lb.gif" width="4" height="1" border="0"></td>
<td style="padding:5px;" bgcolor="#FFFFFF">
<table width="100%">
<tr>
<td bgcolor="#EFEFEF" height="29" style="padding-left:10px;"><div class="navigation">{$lang['opt_hopt']}</div></td>
</tr>
</table>
<div class="unterline"></div><table width="100%"><tr>
HTML;
$i=0;
foreach($sub_options as $option)
{
if ($i > 1) {echo "</tr><tr>"; $i=0;}
$i++;
echo "<td width=\"50%\"><div class=\"quick\"><a href=\"{$option['url']}\"><img src=\"engine/skins/images/{$option['image']}\" border=\"0\" align=\"left\"><h3>{$option['name']}</h3>{$option['descr']}</a></div></td>";
}
echo <<<HTML
</tr></table>
</td>
<td background="engine/skins/images/tl_rb.gif"><img src="engine/skins/images/tl_rb.gif" width="6" height="1" border="0"></td>
</tr>
<tr>
<td><img src="engine/skins/images/tl_lu.gif" width="4" height="6" border="0"></td>
<td background="engine/skins/images/tl_ub.gif"><img src="engine/skins/images/tl_ub.gif" width="1" height="6" border="0"></td>
<td><img src="engine/skins/images/tl_ru.gif" width="6" height="6" border="0"></td>
</tr>
</table>
</div>
HTML;
}
echofooter();
}
// ********************************************************************************
// Show Personal Options
// ********************************************************************************
elseif($action == "personal")
{
echoheader("user",$lang['opt_priv']);
$registrationdate = langdate("l, j F Y - H:i",$member_db[0]); //registration date
if($member_db[7] == 0) $ifchecked = "Checked"; else $ifchecked = ""; //if user wants to hide his e-mail
foreach($member_db as $key=>$value){
$member_db[$key] = stripslashes(preg_replace(array("'\"'", "'\''"), array(""", "'"),$member_db[$key]));
}
echo <<<HTML
<form method="post" action="" name="personal">
<div style="padding-top:5px;padding-bottom:2px;">
<table width="100%">
<tr>
<td width="4"><img src="engine/skins/images/tl_lo.gif" width="4" height="4" border="0"></td>
<td background="engine/skins/images/tl_oo.gif"><img src="engine/skins/images/tl_oo.gif" width="1" height="4" border="0"></td>
<td width="6"><img src="engine/skins/images/tl_ro.gif" width="6" height="4" border="0"></td>
</tr>
<tr>
<td background="engine/skins/images/tl_lb.gif"><img src="engine/skins/images/tl_lb.gif" width="4" height="1" border="0"></td>
<td style="padding:5px;" bgcolor="#FFFFFF">
<table width="100%">
<tr>
<td bgcolor="#EFEFEF" height="29" style="padding-left:10px;"><div class="navigation">{$lang['opt_hprv']}</div></td>
</tr>
</table>
<div class="unterline"></div>
<table width="100%">
<tr>
<td width="150" style="padding:2px;">{$lang['user_name']}</td>
<td>{$member_db[2]}</td>
</tr>
<tr>
<td style="padding:2px;">{$lang['user_acc']}</td>
<td>{$user_group[$member_db[1]]['group_name']}</td>
</tr>
<tr>
<td style="padding:2px;">{$lang['user_news']}</td>
<td>{$member_db[6]}</td>
</tr>
<tr>
<td style="padding:2px;">{$lang['user_reg']}</td>
<td>{$registrationdate}</td>
</tr>
<tr>
<tr>
<td colspan="2"><div class="hr_line"></div></td>
</tr>
<td style="padding:2px;">{$lang['user_mail']}</td>
<td><input class="edit" type="text" name="editmail" value="{$member_db[5]}"> <input type="checkbox" name="edithidemail" {$ifchecked} id="edithidemail"> <label for="edithidemail">{$lang['opt_hmail']}</label></td>
</tr>
<tr>
<td style="padding:2px;">{$lang['opt_fullname']}</td>
<td><input class="edit" name="editfullname" value="{$member_db[11]}" ></td>
</tr>
<tr>
<td style="padding:2px;">{$lang['opt_land']}</td>
<td><input class="edit" name="editland" value="{$member_db[12]}"></td>
</tr>
<tr>
<td style="padding:2px;">{$lang['opt_icq']}</td>
<td><input class="edit" name="editicq" value="{$member_db[13]}"></td>
</tr>
<tr>
<td colspan="2"><div class="hr_line"></div></td>
</tr>
<tr>
<td style="padding:2px;">{$lang['opt_altpassw']}</td>
<td><input class="edit" name="altpass" type="password"><a href="#" class="hintanchor" onMouseover="showhint('{$lang[hint_pass]}', this, event, '250px')">[?]</a></td>
</tr>
<tr>
<td style="padding:2px;">{$lang['user_newpass']}</td>
<td><input class="edit" name="editpassword"></td>
</tr>
<tr>
<td colspan="2"><div class="hr_line"></div></td>
</tr>
<tr>
<td colspan="2" style="padding-left:5px;"><input type="submit" class="buttons" value="{$lang['user_save']}">
<input type="hidden" name="mod" value="options">
<input type="hidden" name="user_hash" value="$dle_login_hash" />
<input type="hidden" name="action" value="dosavepersonal"></td>
</tr>
</table>
</td>
<td background="engine/skins/images/tl_rb.gif"><img src="engine/skins/images/tl_rb.gif" width="6" height="1" border="0"></td>
</tr>
<tr>
<td><img src="engine/skins/images/tl_lu.gif" width="4" height="6" border="0"></td>
<td background="engine/skins/images/tl_ub.gif"><img src="engine/skins/images/tl_ub.gif" width="1" height="6" border="0"></td>
<td><img src="engine/skins/images/tl_ru.gif" width="6" height="6" border="0"></td>
</tr>
</table>
</div></form>
HTML;
echofooter();
}
// ********************************************************************************
// Save Personal Options
// ********************************************************************************
elseif($action == "dosavepersonal")
{
if ($_REQUEST['user_hash'] == "" OR $_REQUEST['user_hash'] != $dle_login_hash) {
die("Hacking attempt! User not found");
}
$editpassword = $_POST['editpassword'];
$edithidemail = $db->safesql($_POST['edithidemail']);
$editmail = $db->safesql($_POST['editmail']);
$editfullname = $db->safesql($_POST['editfullname']);
$editland = $db->safesql($_POST['editland']);
$editicq = $db->safesql($_POST['editicq']);
$altpass = md5($_POST['altpass']);
if($edithidemail){ $edithidemail = 0;}else{ $edithidemail = 1; }
if($editpassword != ""){
if ($altpass == $cmd5_password)
{
$editpassword = md5(md5($editpassword));
$sql_update = "UPDATE " . USERPREFIX . "_users SET email='$editmail', fullname='$editfullname', land='$editland', icq='$editicq', allow_mail='$edithidemail', password='$editpassword' where name='$member_db[2]'";
} else msg("error", "Error !!!", $lang['opt_errpass'], "$PHP_SELF?mod=options&action=personal");
} else {
$sql_update = "UPDATE " . USERPREFIX . "_users set email='$editmail', fullname='$editfullname', land='$editland', icq='$editicq', allow_mail='$edithidemail' where name='$member_db[2]'";
}
$db->query ($sql_update);
$personal_success = TRUE;
if($personal_success){ msg("info", $lang['user_editok'], $lang['opt_peok'], "$PHP_SELF?mod=options&action=personal"); }
else{ msg("error", "Error !!!", $lang['user_nouser'], "$PHP_SELF?mod=options&action=personal"); }
}
// ********************************************************************************
// System Configuration
// ********************************************************************************
elseif($action == "syscon")
{
if($member_db[1] != 1){ msg("error", $lang['opt_denied'], $lang['opt_denied']); }
include_once ENGINE_DIR.'/classes/parse.class.php';
$parse = new ParseFilter(Array(), Array(), 1, 1);
$config['offline_reason'] = str_replace('"', '"', $config['offline_reason']);
$config['offline_reason'] = $parse->decodeBBCodes($config['offline_reason'], false);
if ($auto_detect_config) $config['http_home_url'] = "";
echoheader("options", $lang['opt_all']);
function showRow($title="", $description="", $field="")
{
echo"<tr>
<td style=\"padding:4px\" class=\"option\">
<b>$title</b><br /><span class=small>$description</span>
<td width=394 align=middle >
$field
</tr><tr><td background=\"engine/skins/images/mline.gif\" height=1 colspan=2></td></tr>";
$bg = ""; $i++;
}
function makeDropDown($options, $name, $selected)
{
$output = "<select name=\"$name\">\r\n";
foreach($options as $value=>$description)
{
$output .= "<option value=\"$value\"";
if($selected == $value){ $output .= " selected "; }
$output .= ">$description</option>\n";
}
$output .= "</select>";
return $output;
}
if(!$handle = opendir("./templates")){ die("Невозможно открыть директорию ./templates"); }
while (false !== ($file = readdir($handle))) {
if(is_dir(ROOT_DIR."/templates/$file") and ($file != "." and $file!="..")){
$sys_con_skins_arr[$file] = $file;
}
}
closedir($handle);
if(!$handle = opendir("./language")){ die("Невозможно открыть директорию ./data/language/"); }
while (false !== ($file = readdir($handle))) {
if(is_dir(ROOT_DIR."/language/$file") and ($file != "." and $file!="..")){
$sys_con_langs_arr[$file] = $file;
}
}
closedir($handle);
foreach ($user_group as $group)
$sys_group_arr[$group['id']] = $group['group_name'];
echo <<<HTML
<script language='JavaScript' type="text/javascript">
function ChangeOption(selectedOption) {
document.getElementById('general').style.display = "none";
document.getElementById('security').style.display = "none";
document.getElementById('news').style.display = "none";
document.getElementById('comments').style.display = "none";
document.getElementById('optimisation').style.display = "none";
document.getElementById('files').style.display = "none";
document.getElementById('mail').style.display = "none";
document.getElementById('users').style.display = "none";
document.getElementById('imagesconf').style.display = "none";
document.getElementById('rss').style.display = "none";
if(selectedOption == 'general') {document.getElementById('general').style.display = "";}
if(selectedOption == 'security') {document.getElementById('security').style.display = "";}
if(selectedOption == 'news') {document.getElementById('news').style.display = "";}
if(selectedOption == 'comments') {document.getElementById('comments').style.display = "";}
if(selectedOption == 'optimisation') {document.getElementById('optimisation').style.display = "";}
if(selectedOption == 'files') {document.getElementById('files').style.display = "";}
if(selectedOption == 'mail') {document.getElementById('mail').style.display = "";}
if(selectedOption == 'users') {document.getElementById('users').style.display = "";}
if(selectedOption == 'imagesconf') {document.getElementById('imagesconf').style.display = "";}
if(selectedOption == 'rss') {document.getElementById('rss').style.display = "";}
}
</script>
<div style="padding-top:5px;padding-bottom:2px;">
<table width="100%">
<tr>
<td width="4"><img src="engine/skins/images/tl_lo.gif" width="4" height="4" border="0"></td>
<td background="engine/skins/images/tl_oo.gif"><img src="engine/skins/images/tl_oo.gif" width="1" height="4" border="0"></td>
<td width="6"><img src="engine/skins/images/tl_ro.gif" width="6" height="4" border="0"></td>
</tr>
<tr>
<td background="engine/skins/images/tl_lb.gif"><img src="engine/skins/images/tl_lb.gif" width="4" height="1" border="0"></td>
<td style="padding:5px;" bgcolor="#FFFFFF">
<table width="100%">
<tr>
<td bgcolor="#EFEFEF" height="29" style="padding-left:10px;"><div class="navigation">{$lang['opt_general_sys']}</div></td>
</tr>
</table>
<div class="unterline"></div>
<table width="100%">
<tr>
<td style="padding:2px;">
<table style="text-align:center;" width="100%" height="35px">
<tr style="vertical-align:middle;" >
<td class=tableborder><a href="javascript:ChangeOption('general');"><img title="$lang[opt_allsys]" src="engine/skins/images/general.png" border="0"></a>
<td class=tableborder><a href="javascript:ChangeOption('security');"><img title="$lang[opt_secrsys]" src="engine/skins/images/sred.png" border="0"></a>
<td class=tableborder><a href="javascript:ChangeOption('news');"><img title="$lang[opt_newssys]" src="engine/skins/images/news.png" border="0"></a>
<td class=tableborder><a href="javascript:ChangeOption('comments');"><img title="$lang[opt_commsys]" src="engine/skins/images/comments.png" border="0"></a>
<td class=tableborder><a href="javascript:ChangeOption('optimisation');"><img title="$lang[opt_dbsys]" src="engine/skins/images/db_opt.png" border="0"></a>
<td class=tableborder><a href="javascript:ChangeOption('files');"><img title="$lang[opt_filesys]" src="engine/skins/images/folder.png" border="0"></a>
<td class=tableborder><a href="javascript:ChangeOption('mail');"><img title="$lang[opt_sys_mail]" src="engine/skins/images/email.png" border="0"></a>
<td class=tableborder><a href="javascript:ChangeOption('users');"><img title="$lang[opt_usersys]" src="engine/skins/images/users.png" border="0"></a>
<td class=tableborder><a href="javascript:ChangeOption('imagesconf');"><img title="$lang[opt_imagesys]" src="engine/skins/images/conf_images.png" border="0"></a>
<td class=tableborder><a href="javascript:ChangeOption('rss');"><img title="$lang[opt_rsssys]" src="engine/skins/images/rss.gif" border="0"></a>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td background="engine/skins/images/tl_rb.gif"><img src="engine/skins/images/tl_rb.gif" width="6" height="1" border="0"></td>
</tr>
<tr>
<td><img src="engine/skins/images/tl_lu.gif" width="4" height="6" border="0"></td>
<td background="engine/skins/images/tl_ub.gif"><img src="engine/skins/images/tl_ub.gif" width="1" height="6" border="0"></td>
<td><img src="engine/skins/images/tl_ru.gif" width="6" height="6" border="0"></td>
</tr>
</table>
</div>
HTML;
echo <<<HTML
<form action="" method="post">
<div style="padding-top:5px;padding-bottom:2px;">
<table width="100%">
<tr>
<td width="4"><img src="engine/skins/images/tl_lo.gif" width="4" height="4" border="0"></td>
<td background="engine/skins/images/tl_oo.gif"><img src="engine/skins/images/tl_oo.gif" width="1" height="4" border="0"></td>
<td width="6"><img src="engine/skins/images/tl_ro.gif" width="6" height="4" border="0"></td>
</tr>
<tr>
<td background="engine/skins/images/tl_lb.gif"><img src="engine/skins/images/tl_lb.gif" width="4" height="1" border="0"></td>
<td style="padding:5px;" bgcolor="#FFFFFF">
<table width="100%">
HTML;
echo <<<HTML
<tr style='' id="general"><td>
<table width="100%">
<tr>
<td bgcolor="#EFEFEF" height="29" style="padding-left:10px;"><div class="navigation">{$lang['opt_sys_all']}</div></td>
</tr>
</table>
<div class="unterline"></div><table width="100%">
HTML;
showRow($lang['opt_sys_ht'], $lang['opt_sys_htd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[home_title]' value='{$config['home_title']}' size=40>");
showRow($lang['opt_sys_hu'], $lang['opt_sys_hud'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[http_home_url]' value='{$config['http_home_url']}' size=40>");
showRow($lang['opt_sys_chars'], $lang['opt_sys_charsd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[charset]' value='{$config['charset']}' size=30>");
showRow($lang['opt_sys_descr'], $lang['opt_sys_descrd'], "<input class=edit type=text name='save_con[description]' value='{$config['description']}' size=40>");
showRow($lang['opt_sys_key'], $lang['opt_sys_keyd'], "<textarea class=edit style=\"width:250px;height:50px;\" name='save_con[keywords]'>{$config['keywords']}</textarea>");
showRow($lang['opt_sys_short_name'], $lang['opt_sys_short_named'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[short_title]' value='{$config['short_title']}' size=40>");
showRow($lang['opt_sys_at'], $lang['opt_sys_atd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[date_adjust]' value=\"{$config['date_adjust']}\" size=10>");
showRow($lang['opt_sys_dc'], $lang['opt_sys_dcd'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[allow_alt_url]", "{$config['allow_alt_url']}"));
showRow($lang['opt_sys_seotype'], $lang['opt_sys_seotyped'], makeDropDown(array("1"=>$lang['opt_sys_seo_1'],"2"=>$lang['opt_sys_seo_2'],"0"=>$lang['opt_sys_seo_3']), "save_con[seo_type]", "{$config['seo_type']}"));
showRow($lang['opt_sys_al'], $lang['opt_sys_ald'], makeDropDown($sys_con_langs_arr, "save_con[langs]", "{$config['langs']}"));
showRow($lang['opt_sys_as'], $lang['opt_sys_asd'], makeDropDown($sys_con_skins_arr, "save_con[skin]", "{$config['skin']}"));
showRow($lang['opt_sys_ag'], $lang['opt_sys_agd'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[allow_gzip]", "{$config['allow_gzip']}"));
showRow($lang['opt_sys_wda'], $lang['opt_sys_wdad'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[allow_admin_wysiwyg]", "{$config['allow_admin_wysiwyg']}"));
showRow($lang['opt_sys_wdst'], $lang['opt_sys_wdad'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[allow_static_wysiwyg]", "{$config['allow_static_wysiwyg']}"));
showRow($lang['opt_sys_offline'], $lang['opt_sys_offlined'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[site_offline]", "{$config['site_offline']}"));
showRow($lang['opt_sys_reason'], $lang['opt_sys_reasond'], "<textarea class=edit style=\"width:350px;height:100px;\" name='save_con[offline_reason]'>{$config['offline_reason']}</textarea>");
echo "</table></td></tr>";
echo <<<HTML
<tr style='display:none' id="security"><td>
<table width="100%">
<tr>
<td bgcolor="#EFEFEF" height="29" style="padding-left:10px;"><div class="navigation">{$lang['opt_secrsys']}</div></td>
</tr>
</table>
<div class="unterline"></div><table width="100%">
HTML;
showRow($lang['opt_sys_path'], $lang['opt_sys_pathd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[admin_path]' value='{$config['admin_path']}' size=20>");
showRow($lang['opt_sys_logextra'], $lang['opt_sys_logextrad'], makeDropDown(array("0"=>$lang['opt_sys_stdm'],"1"=>$lang['opt_sys_extram']), "save_con[extra_login]", "{$config['extra_login']}"));
showRow($lang['opt_sys_ip'], $lang['opt_sys_ipd'], makeDropDown(array("0"=>$lang['opt_sys_ipn'],"1"=>$lang['opt_sys_ipm'],"2"=>$lang['opt_sys_iph']), "save_con[ip_control]", "{$config['ip_control']}"));
showRow($lang['opt_sys_loghash'], $lang['opt_sys_loghashd'], makeDropDown(array("1"=>$lang['opt_sys_yes'],"0"=>$lang['opt_sys_no']), "save_con[log_hash]", "{$config['log_hash']}"));
showRow($lang['opt_sys_sxfield'], $lang['opt_sys_sxfieldd'], makeDropDown(array("1"=>$lang['opt_sys_yes'],"0"=>$lang['opt_sys_no']), "save_con[safe_xfield]", "{$config['safe_xfield']}"));
echo "</table></td></tr>";
echo <<<HTML
<tr style='display:none' id="news"><td>
<table width="100%">
<tr>
<td bgcolor="#EFEFEF" height="29" style="padding-left:10px;"><div class="navigation">{$lang['opt_newssys']}</div></td>
</tr>
</table>
<div class="unterline"></div><table width="100%">
HTML;
showRow($lang['opt_sys_newc'], $lang['opt_sys_newd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[news_number]' value=\"{$config['news_number']}\" size=10>");
showRow($lang['opt_sys_related_num'], $lang['opt_sys_related_numd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[related_number]' value=\"{$config['related_number']}\" size=10>");
showRow($lang['opt_sys_max_mod'], $lang['opt_sys_max_modd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[max_moderation]' value=\"{$config['max_moderation']}\" size=10>");
showRow($lang['opt_sys_am'], $lang['opt_sys_amd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[smilies]' value=\"{$config['smilies']}\" size=40>");
showRow($lang['opt_sys_an'], "<a onClick=\"javascript:Help('date')\" class=main href=\"#\">$lang[opt_sys_and]</a>", "<input class=edit type=text style=\"text-align: center;\" name='save_con[timestamp_active]' value='{$config['timestamp_active']}' size=40>");
showRow($lang['opt_sys_sort'], $lang['opt_sys_sortd'], makeDropDown(array("date"=>$lang['opt_sys_sdate'],"rating"=>$lang['opt_sys_srate'],"news_read"=>$lang['opt_sys_sview'],"title"=>$lang['opt_sys_salph']), "save_con[news_sort]", "{$config['news_sort']}"));
showRow($lang['opt_sys_msort'], $lang['opt_sys_msortd'], makeDropDown(array("DESC"=>$lang['opt_sys_mminus'],"ASC"=>$lang['opt_sys_mplus']), "save_con[news_msort]", "{$config['news_msort']}"));
showRow($lang['opt_sys_catsort'], $lang['opt_sys_catsortd'], makeDropDown(array("date"=>$lang['opt_sys_sdate'],"rating"=>$lang['opt_sys_srate'],"news_read"=>$lang['opt_sys_sview'],"title"=>$lang['opt_sys_salph']), "save_con[catalog_sort]", "{$config['catalog_sort']}"));
showRow($lang['opt_sys_catmsort'], $lang['opt_sys_catmsortd'], makeDropDown(array("DESC"=>$lang['opt_sys_mminus'],"ASC"=>$lang['opt_sys_mplus']), "save_con[catalog_msort]", "{$config['catalog_msort']}"));
showRow($lang['opt_sys_align'], $lang['opt_sys_alignd'], makeDropDown(array(""=>$lang['opt_sys_none'],"left"=>$lang['opt_sys_left'],"center"=>$lang['opt_sys_center'], "right"=>$lang['opt_sys_right']), "save_con[image_align]", "{$config['image_align']}"));
showRow($lang['opt_sys_nmail'], $lang['opt_sys_nmaild'], makeDropDown(array("1"=>$lang['opt_sys_yes'],"0"=>$lang['opt_sys_no']), "save_con[mail_news]", "{$config['mail_news']}"));
showRow($lang['opt_sys_sub'], $lang['opt_sys_subd'], makeDropDown(array("1"=>$lang['opt_sys_yes'],"0"=>$lang['opt_sys_no']), "save_con[show_sub_cats]", "{$config['show_sub_cats']}"));
showRow($lang['opt_sys_asrate'], $lang['opt_sys_asrated'], makeDropDown(array("1"=>$lang['opt_sys_yes'],"0"=>$lang['opt_sys_no']), "save_con[short_rating]", "{$config['short_rating']}"));
showRow($lang['opt_sys_ad'], $lang['opt_sys_add'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[hide_full_link]", "{$config['hide_full_link']}"));
showRow($lang['opt_sys_wds'], $lang['opt_sys_wdsd'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[allow_site_wysiwyg]", "{$config['allow_site_wysiwyg']}"));
showRow($lang['opt_sys_news_c'], $lang['opt_sys_news_cd'], makeDropDown(array("1"=>$lang['opt_sys_yes'],"0"=>$lang['opt_sys_no']), "save_con[news_captcha]", "{$config['news_captcha']}"));
echo "</table></td></tr>";
echo <<<HTML
<tr style='display:none' id="comments"><td>
<table width="100%">
<tr>
<td bgcolor="#EFEFEF" height="29" style="padding-left:10px;"><div class="navigation">{$lang['opt_sys_cch']}</div></td>
</tr>
</table>
<div class="unterline"></div><table width="100%">
HTML;
showRow($lang['opt_sys_alc'], $lang['opt_sys_alcd'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[allow_comments]", "{$config['allow_comments']}"));
showRow($lang['opt_sys_cm'], $lang['opt_sys_cmd'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[allow_url_instead_mail]", "{$config['allow_url_instead_mail']}"));
showRow($lang['opt_sys_maxc'], $lang['opt_sys_maxcd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[comments_maxlen]' value=\"{$config['comments_maxlen']}\" size=10>");
showRow($lang['opt_sys_cpm'], $lang['opt_sys_cpmd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[comm_nummers]' value=\"{$config['comm_nummers']}\" size=10>");
showRow($lang['opt_sys_csort'], $lang['opt_sys_csortd'], makeDropDown(array("DESC"=>$lang['opt_sys_mminus'],"ASC"=>$lang['opt_sys_mplus']), "save_con[comm_msort]", "{$config['comm_msort']}"));
showRow($lang['opt_sys_af'], $lang['opt_sys_afd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[flood_time]' value=\"{$config['flood_time']}\" size=10>");
showRow($lang['opt_sys_aw'], $lang['opt_sys_awd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[auto_wrap]' value=\"{$config['auto_wrap']}\" size=10>");
showRow($lang['opt_sys_ct'], "<a onClick=\"javascript:Help('date')\" class=main href=\"#\">$lang[opt_sys_and]</a>", "<input class=edit type=text style=\"text-align: center;\" name='save_con[timestamp_comment]' value='{$config['timestamp_comment']}' size=40>");
showRow($lang['opt_sys_cmail'], $lang['opt_sys_cmaild'], makeDropDown(array("1"=>$lang['opt_sys_yes'],"0"=>$lang['opt_sys_no']), "save_con[mail_comments]", "{$config['mail_comments']}"));
showRow($lang['opt_sys_wdcom'], $lang['opt_sys_wdscomd'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[allow_comments_wysiwyg]", "{$config['allow_comments_wysiwyg']}"));
echo "</table></td></tr>";
echo <<<HTML
<tr style='display:none' id="optimisation"><td>
<table width="100%">
<tr>
<td bgcolor="#EFEFEF" height="29" style="padding-left:10px;"><div class="navigation">{$lang['opt_sys_dch']}</div></td>
</tr>
</table>
<div class="unterline"></div><table width="100%">
HTML;
showRow($lang['opt_sys_search'], $lang['opt_sys_searchd'], makeDropDown(array("1"=>$lang['opt_sys_advance'],"0"=>$lang['opt_sys_simple']), "save_con[full_search]", "{$config['full_search']}"));
showRow($lang['opt_sys_ur'], $lang['opt_sys_urd'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[allow_registration]", "{$config['allow_registration']}"));
showRow($lang['opt_sys_cac'], $lang['opt_sys_cad'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[allow_cache]", "{$config['allow_cache']}"));
showRow($lang['opt_sys_multiple'], $lang['opt_sys_multipled'], makeDropDown(array("1"=>$lang['opt_sys_yes'],"0"=>$lang['opt_sys_no']), "save_con[allow_multi_category]", "{$config['allow_multi_category']}"));
showRow($lang['opt_sys_related'], $lang['opt_sys_relatedd'], makeDropDown(array("1"=>$lang['opt_sys_yes'],"0"=>$lang['opt_sys_no']), "save_con[related_news]", "{$config['related_news']}"));
showRow($lang['opt_sys_nodate'], $lang['opt_sys_nodated'], makeDropDown(array("1"=>$lang['opt_sys_yes'],"0"=>$lang['opt_sys_no']), "save_con[no_date]", "{$config['no_date']}"));
showRow($lang['opt_sys_sbar'], $lang['opt_sys_sbard'], makeDropDown(array("1"=>$lang['opt_sys_yes'],"0"=>$lang['opt_sys_no']), "save_con[speedbar]", "{$config['speedbar']}"));
showRow($lang['opt_sys_ban'], $lang['opt_sys_band'], makeDropDown(array("1"=>$lang['opt_sys_yes'],"0"=>$lang['opt_sys_no']), "save_con[allow_banner]", "{$config['allow_banner']}"));
showRow($lang['opt_sys_cmod'], $lang['opt_sys_cmodd'], makeDropDown(array("1"=>$lang['opt_sys_yes'],"0"=>$lang['opt_sys_no']), "save_con[allow_cmod]", "{$config['allow_cmod']}"));
showRow($lang['opt_sys_voc'], $lang['opt_sys_vocd'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[allow_votes]", "{$config['allow_votes']}"));
showRow($lang['opt_sys_toc'], $lang['opt_sys_tocd'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[allow_topnews]", "{$config['allow_topnews']}"));
showRow($lang['opt_sys_rn'], $lang['opt_sys_rnd'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[allow_read_count]", "{$config['allow_read_count']}"));
showRow($lang['cache_c'], $lang['cache_cd'], makeDropDown(array("1"=>$lang['opt_sys_yes'],"0"=>$lang['opt_sys_no']), "save_con[cache_count]", "{$config['cache_count']}"));
showRow($lang['opt_sys_dk'], $lang['opt_sys_dkd'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[allow_calendar]", "{$config['allow_calendar']}"));
showRow($lang['opt_sys_da'], $lang['opt_sys_dad'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[allow_archives]", "{$config['allow_archives']}"));
showRow($lang['opt_sys_inform'], $lang['opt_sys_informd'], makeDropDown(array("1"=>$lang['opt_sys_yes'],"0"=>$lang['opt_sys_no']), "save_con[rss_informer]", "{$config['rss_informer']}"));
showRow($lang['opt_sys_ajax'], $lang['opt_sys_ajaxd'], makeDropDown(array("1"=>$lang['opt_sys_yes'],"0"=>$lang['opt_sys_no']), "save_con[ajax]", "{$config['ajax']}"));
echo "</table></td></tr>";
echo <<<HTML
<tr style='display:none' id="files"><td>
<table width="100%">
<tr>
<td bgcolor="#EFEFEF" height="29" style="padding-left:10px;"><div class="navigation">{$lang['opt_filesys']}</div></td>
</tr>
</table>
<div class="unterline"></div><table width="100%">
HTML;
showRow($lang['opt_sys_file'], $lang['opt_sys_filed'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[files_allow]", "{$config['files_allow']}"));
showRow($lang['opt_sys_file1'], $lang['opt_sys_file1d'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[files_type]' value=\"{$config['files_type']}\" size=40>");
showRow($lang['opt_sys_file4'], $lang['opt_sys_file4d'], makeDropDown(array("1"=>$lang['opt_sys_yes'],"0"=>$lang['opt_sys_no']), "save_con[files_force]", "{$config['files_force']}"));
showRow($lang['opt_sys_file5'], $lang['opt_sys_file5d'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[files_max_speed]' value=\"{$config['files_max_speed']}\" size=10>");
showRow($lang['opt_sys_file3'], $lang['opt_sys_file3d'], makeDropDown(array("1"=>$lang['opt_sys_yes'],"0"=>$lang['opt_sys_no']), "save_con[files_antileech]", "{$config['files_antileech']}"));
showRow($lang['opt_sys_file2'], $lang['opt_sys_file2d'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[files_count]", "{$config['files_count']}"));
echo "</table></td></tr>";
echo <<<HTML
<tr style='display:none' id="mail"><td>
<table width="100%">
<tr>
<td bgcolor="#EFEFEF" height="29" style="padding-left:10px;"><div class="navigation">{$lang['opt_sys_mail']}</div></td>
</tr>
</table>
<div class="unterline"></div><table width="100%">
HTML;
showRow($lang['opt_sys_amail'], $lang['opt_sys_amaild'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[admin_mail]' value='{$config['admin_mail']}' size=30>");
showRow($lang['opt_sys_mm'], $lang['opt_sys_mmd'], makeDropDown(array("php"=> "PHP Mail()","smtp"=> "SMTP"), "save_con[mail_metod]", "{$config['mail_metod']}"));
showRow($lang['opt_sys_smtph'], $lang['opt_sys_smtphd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[smtp_host]' value=\"{$config['smtp_host']}\" size=30>");
showRow($lang['opt_sys_smtpp'], $lang['opt_sys_smtppd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[smtp_port]' value=\"{$config['smtp_port']}\" size=30>");
showRow($lang['opt_sys_smtup'], $lang['opt_sys_smtpud'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[smtp_user]' value=\"{$config['smtp_user']}\" size=30>");
showRow($lang['opt_sys_smtupp'], $lang['opt_sys_smtpupd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[smtp_pass]' value=\"{$config['smtp_pass']}\" size=30>");
showRow($lang['opt_sys_mbcc'], $lang['opt_sys_mbccd'], makeDropDown(array("1"=> $lang['opt_sys_yes'],"0"=> $lang['opt_sys_no']), "save_con[mail_bcc]", "{$config['mail_bcc']}"));
echo "</table></td></tr>";
echo <<<HTML
<tr style='display:none' id="users"><td>
<table width="100%">
<tr>
<td bgcolor="#EFEFEF" height="29" style="padding-left:10px;"><div class="navigation">{$lang['opt_sys_uch']}</div></td>
</tr>
</table>
<div class="unterline"></div><table width="100%">
HTML;
showRow($lang['opt_sys_reggroup'], $lang['opt_sys_reggroupd'], makeDropDown($sys_group_arr, "save_con[reg_group]", $config['reg_group']));
showRow($lang['opt_sys_ut'], $lang['opt_sys_utd'], makeDropDown(array("0"=>$lang['opt_sys_reg'],"1"=>$lang['opt_sys_reg_1']), "save_con[registration_type]", "{$config['registration_type']}"));
showRow($lang['opt_sys_code'], $lang['opt_sys_coded'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[allow_sec_code]", "{$config['allow_sec_code']}"));
showRow($lang['opt_sys_sc'], $lang['opt_sys_scd'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[allow_skin_change]", "{$config['allow_skin_change']}"));
showRow($lang['opt_sys_um'], $lang['opt_sys_umd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[max_users]' value=\"{$config['max_users']}\" size=10>");
showRow($lang['opt_sys_ud'], $lang['opt_sys_udd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[max_users_day]' value=\"{$config['max_users_day']}\" size=10>");
echo "</table></td></tr>";
echo <<<HTML
<tr style='display:none' id="imagesconf"><td>
<table width="100%">
<tr>
<td bgcolor="#EFEFEF" height="29" style="padding-left:10px;"><div class="navigation">{$lang['opt_sys_ich']}</div></td>
</tr>
</table>
<div class="unterline"></div><table width="100%">
HTML;
showRow($lang['opt_sys_maxside'], $lang['opt_sys_maxsided'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[max_up_side]' value=\"{$config['max_up_side']}\" size=10>");
showRow($lang['opt_sys_maxsize'], $lang['opt_sys_maxsized'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[max_up_size]' value=\"{$config['max_up_size']}\" size=10>");
showRow($lang['opt_sys_dim'], $lang['opt_sys_dimd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[max_image_days]' value=\"{$config['max_image_days']}\" size=10>");
showRow($lang['opt_sys_iw'], $lang['opt_sys_iwd'], makeDropDown(array("yes"=>$lang['opt_sys_yes'],"no"=>$lang['opt_sys_no']), "save_con[allow_watermark]", "{$config['allow_watermark']}"));
showRow($lang['opt_sys_im'], $lang['opt_sys_imd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[max_watermark]' value=\"{$config['max_watermark']}\" size=10>");
showRow($lang['opt_sys_ia'], $lang['opt_sys_iad'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[max_image]' value=\"{$config['max_image']}\" size=10>");
showRow($lang['opt_sys_ij'], $lang['opt_sys_ijd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[jpeg_quality]' value=\"{$config['jpeg_quality']}\" size=10>");
showRow($lang['opt_sys_imw'], $lang['opt_sys_imwd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[tag_img_width]' value=\"{$config['tag_img_width']}\" size=10>");
echo "</table></td></tr>";
echo <<<HTML
<tr style='display:none' id="rss"><td>
<table width="100%">
<tr>
<td bgcolor="#EFEFEF" height="29" style="padding-left:10px;"><div class="navigation">{$lang['opt_rsssys']}</div></td>
</tr>
</table>
<div class="unterline"></div><table width="100%">
HTML;
showRow($lang['opt_sys_arss'], $lang['opt_sys_arssd'], makeDropDown(array("1"=>$lang['opt_sys_yes'],"0"=>$lang['opt_sys_no']), "save_con[allow_rss]", "{$config['allow_rss']}"));
showRow($lang['opt_sys_trss'], $lang['opt_sys_trssd'], makeDropDown(array("0"=>$lang['opt_sys_rss_type_0'],"1"=>$lang['opt_sys_rss_type_1']), "save_con[rss_mtype]", "{$config['rss_mtype']}"));
showRow($lang['opt_sys_nrss'], $lang['opt_sys_nrssd'], "<input class=edit type=text style=\"text-align: center;\" name='save_con[rss_number]' value=\"{$config['rss_number']}\" size=10>");
showRow($lang['opt_sys_frss'], $lang['opt_sys_frssd'], makeDropDown(array("0"=>$lang['opt_sys_rss_type_2'],"1"=>$lang['opt_sys_rss_type_3'],"2"=>$lang['opt_sys_rss_type_4']), "save_con[rss_format]", "{$config['rss_format']}"));
echo "</table></td></tr>";
echo <<<HTML
<tr>
<td style="padding-top:10px; padding-bottom:10px;padding-right:10px;"><input type=hidden name=mod value=options>
<input type=hidden name=action value=dosavesyscon><input type="hidden" name="user_hash" value="$dle_login_hash" /><input type="submit" class="buttons" value="{$lang['user_save']}"></td>
</tr>
</table>
</td>
<td background="engine/skins/images/tl_rb.gif"><img src="engine/skins/images/tl_rb.gif" width="6" height="1" border="0"></td>
</tr>
<tr>
<td><img src="engine/skins/images/tl_lu.gif" width="4" height="6" border="0"></td>
<td background="engine/skins/images/tl_ub.gif"><img src="engine/skins/images/tl_ub.gif" width="1" height="6" border="0"></td>
<td><img src="engine/skins/images/tl_ru.gif" width="6" height="6" border="0"></td>
</tr>
</table>
</div></form>
HTML;
echofooter();
}
// ********************************************************************************
// Save System Configuration
// ********************************************************************************
elseif($action == "dosavesyscon")
{
if ($_REQUEST['user_hash'] == "" OR $_REQUEST['user_hash'] != $dle_login_hash) {
die("Hacking attempt! User not found");
}
$save_con = $_POST['save_con'];
include_once ENGINE_DIR.'/classes/parse.class.php';
$parse = new ParseFilter(Array(), Array(), 1, 1);
$save_con['offline_reason'] = $parse->process(stripslashes(trim($save_con['offline_reason'])));
$save_con['offline_reason'] = str_replace('"', '"', $parse->BB_Parse($save_con['offline_reason'], false));
$find[] = "'\r'";
$replace[] = "";
$find[] = "'\n'";
$replace[] = "";
$save_con['version_id'] = "7.0";
if ($auto_detect_config) $config['http_home_url'] = "";
$save_con = $save_con + $config;
if($member_db[1] != 1){ msg("error", $lang['opt_denied'], $lang['opt_denied']); }
$handler = fopen(ENGINE_DIR.'/data/config.php', "w");
fwrite($handler, "<?PHP \n\n//System Configurations\n\n\$config = array (\n\n");
foreach($save_con as $name => $value)
{
if ($name != "offline_reason") {
$value=trim(stripslashes ($value));
$value=htmlspecialchars ($value, ENT_QUOTES);
$value = preg_replace($find,$replace,$value);
}
fwrite($handler, "'{$name}' => \"{$value}\",\n\n");
}
fwrite($handler, ");\n\n?>");
fclose($handler);
clear_cache ();
msg("info", $lang['opt_sysok'], "$lang[opt_sysok_1]<br /><br /><a href=$PHP_SELF?mod=options&action=syscon>$lang[db_prev]</a>");
}
?>
'name' = > 'Управление библиотекой',
'name' => 'Управление библиотекой',
Grunuk,
замени
наPHP:'name' = > 'Управление библиотекой',
т.е. просто убери пробел после "="PHP:'name' => 'Управление библиотекой',
Warning: mysql_query(): Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Program Files\VertrigoServ\www\engine\inc\book_edit.php on line 27 Warning: mysql_query(): A link to the server could not be established in C:\Program Files\VertrigoServ\www\engine\inc\book_edit.php on line 27 Warning: mysql_select_db(): Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Program Files\VertrigoServ\www\engine\inc\book_edit.php on line 28 Warning: mysql_select_db(): A link to the server could not be established in C:\Program Files\VertrigoServ\www\engine\inc\book_edit.php on line 28
// Подключение к базе
mysql_query("SET NAMES cp1251");
mysql_select_db(DBNAME);
$table_bd1 = PREFIX."_bibl";
$table_bd2 = PREFIX."_bibl_inf";
$root_dir = $config_l['root_dir'];
$file_count_books = 'count.dat';
$count_book_page = $config_l['count_book_page'];
$er_user = $config_l['msg_user'];
$b='';
О, супер! Спасибо! Помогло!
Вот только еще одно но, вот что пишет вверху страницы:
вот эти строки:PHP:Warning: mysql_query(): Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Program Files\VertrigoServ\www\engine\inc\book_edit.php on line 27 Warning: mysql_query(): A link to the server could not be established in C:\Program Files\VertrigoServ\www\engine\inc\book_edit.php on line 27 Warning: mysql_select_db(): Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Program Files\VertrigoServ\www\engine\inc\book_edit.php on line 28 Warning: mysql_select_db(): A link to the server could not be established in C:\Program Files\VertrigoServ\www\engine\inc\book_edit.php on line 28
PHP:// Подключение к базе mysql_query("SET NAMES cp1251"); mysql_select_db(DBNAME); $table_bd1 = PREFIX."_bibl"; $table_bd2 = PREFIX."_bibl_inf"; $root_dir = $config_l['root_dir']; $file_count_books = 'count.dat'; $count_book_page = $config_l['count_book_page']; $er_user = $config_l['msg_user']; $b='';
это:
mysql_select_db(DBNAME);
mysql_query("SET NAMES cp1251")
заменить на это
@$db -> query("SET NAMES cp1251");
во всех файлах где есть соединение с базой
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in C:\Program Files\VertrigoServ\www\engine\modules\library.php on line 174
// Сумма скачиваний книг
$zapros_sum = "SELECT MAX(rate) FROM `$table_bd2`";
$result_sum = $db -> query($zapros_sum);
$rec_sum = mysql_fetch_row($result_sum);