" . $lang_table['edit_status_0'] . ""; break; case "1": $status = "" . $lang_table['edit_status_1'] . ""; break; case "2": $status = "" . $lang_table['edit_status_2'] . ""; break; case "3": $status = "" . $lang_table['edit_status_3'] . ""; break; } return $status; } function menu() { global $lang_table; echo <<< HTML
HTML; } if( isset( $_REQUEST['author'] ) ) $author = $db->safesql( trim( htmlspecialchars( $_REQUEST['author'] ) ) ); else $author = ""; if( isset( $_REQUEST['ifdelete'] ) ) $ifdelete = $_REQUEST['ifdelete']; else $ifdelete = ""; if( isset( $_REQUEST['search_cat'] ) ) $search_cat = $db->safesql( trim( htmlspecialchars( $_REQUEST['search_cat'] ) ) ); else $search_cat = ""; if( $action == "list" ) { $_SESSION['admin_referrer'] = $_SERVER['REQUEST_URI']; echoheader( "table", $lang_table['edit_head'] ); $search_field = $db->safesql( trim( htmlspecialchars( stripslashes( urldecode( $_REQUEST['search_field'] ) ), ENT_QUOTES ) ) ); $search_author = $db->safesql( trim( htmlspecialchars( stripslashes( urldecode( $_REQUEST['search_author'] ) ), ENT_QUOTES ) ) ); $fromordersdate = $db->safesql( trim( htmlspecialchars( stripslashes( $_REQUEST['fromordersdate'] ), ENT_QUOTES ) ) ); $toordersdate = $db->safesql( trim( htmlspecialchars( stripslashes( $_REQUEST['toordersdate'] ), ENT_QUOTES ) ) ); $start_from = intval( $_REQUEST['start_from'] ); $news_per_page = intval( $_REQUEST['news_per_page'] ); $gopage = intval( $_REQUEST['gopage'] ); $_REQUEST['orders_status'] = intval ($_REQUEST['orders_status']); $orders_status_sel = array ('1'=>'','2'=>'','3'=>'','4'=>'','5'=>''); $orders_status_sel[$_REQUEST['orders_status']] = 'selected="selected"'; if( ! $news_per_page or $news_per_page < 1 ) { $news_per_page = 50; } if( $gopage ) $start_from = ($gopage - 1) * $news_per_page; if( $start_from < 0 ) $start_from = 0; $where = array (); if( $search_field != "" ) { $where[] = "(runame like '%$search_field%' OR enname like '%$search_field%' OR link like '%$search_field%')"; } if( $search_author != "" ) { $where[] = "autor like '$search_author%'"; } if( $search_cat != "" ) { $where[] = "category regexp '[[:<:]]($search_cat)[[:>:]]'"; } if( $fromordersdate != "" ) { $fromdate = strtotime( $fromordersdate ); $where[] = "date >= '$fromdate'"; } if( $toordersdate != "" ) { $todate = strtotime( $toordersdate ); $where[] = "date <= '$todate'"; } if ($_REQUEST['orders_status'] == 1) $where[] = "status NOT IN (5)"; elseif ($_REQUEST['orders_status'] == 2) $where[] = "status = '0'"; elseif ($_REQUEST['orders_status'] == 3) $where[] = "status = '1'"; elseif ($_REQUEST['orders_status'] == 4) $where[] = "status = '2'"; elseif ($_REQUEST['orders_status'] == 5) $where[] = "status = '3'"; if( count( $where ) ) { $where = implode( " AND ", $where ); $where = " WHERE " . $where; } else { $where = ""; } $order_by = array (); if( $_REQUEST['search_order_m'] == "asc" or $_REQUEST['search_order_m'] == "desc" ) $search_order_m = $_REQUEST['search_order_m']; else $search_order_m = ""; if( $_REQUEST['search_order_d'] == "asc" or $_REQUEST['search_order_d'] == "desc" ) $search_order_d = $_REQUEST['search_order_d']; else $search_order_d = ""; if( $_REQUEST['search_order_t'] == "asc" or $_REQUEST['search_order_t'] == "desc" ) $search_order_t = $_REQUEST['search_order_t']; else $search_order_t = ""; if( ! empty( $search_order_m ) ) { $order_by[] = "status $search_order_m"; } if( ! empty( $search_order_d ) ) { $order_by[] = "date $search_order_d"; } if( ! empty( $search_order_t ) ) { $order_by[] = "runame $search_order_t"; } $order_by = implode( ", ", $order_by ); if( ! $order_by ) $order_by = "date desc"; $search_order_mod = array ('----' => '', 'asc' => '', 'desc' => '' ); if( isset( $_REQUEST['search_order_m'] ) ) { $search_order_mod[$search_order_m] = 'selected'; } else { $search_order_mod['----'] = 'selected'; } $search_order_date = array ('----' => '', 'asc' => '', 'desc' => '' ); if( isset( $_REQUEST['search_order_d'] ) ) { $search_order_date[$search_order_d] = 'selected'; } else { $search_order_date['desc'] = 'selected'; } $search_order_title = array ('----' => '', 'asc' => '', 'desc' => '' ); if( ! empty( $search_order_t ) ) { $search_order_title[$search_order_t] = 'selected'; } else { $search_order_title['----'] = 'selected'; } $db->query( "SELECT * FROM " . PREFIX . "_table" . $where . " ORDER BY " . $order_by . " LIMIT $start_from,$news_per_page" ); // Prelist Entries if( $start_from == "0" ) { $start_from = ""; } $i = $start_from; $entries_showed = 0; $entries = ""; while ( $row = $db->get_array() ) { $i ++; $itemdate = date( "d.m.Y G:i", $row['date'] ); if(strlen($row['runame']) > 65) $runame = substr($row['runame'],0,65)." ..."; else $runame = $row['runame']; if(strlen($row['enname']) > 65) $enname = substr($row['enname'],0,65)." ..."; else $enname = $row['enname']; $runame = htmlspecialchars( stripslashes( $runame ), ENT_QUOTES ); $enname = htmlspecialchars( stripslashes( $enname ), ENT_QUOTES ); $runame = str_replace("&","&", $runame ); $enname = str_replace("&","&", $enname ); $name = htmlspecialchars( stripslashes( $row['name'] ), ENT_QUOTES ); $fileyear = stripslashes( $row['fileyear'] ); $statusd = showStatus( $row['status'] ); $entries .= "$itemdate - "; $entries .= "$runame / $enname ( $fileyear ) "; $entries .= ""; $entries .= "$statusd"; if (!$row['category']) $my_cat = "---"; else { $my_cat = htmlspecialchars( stripslashes($row['category'])); } $entries .= "$my_cat" . $row['autor'] . " "; $entries_showed ++; if( $i >= $news_per_page + $start_from ) { break; } } // End prelisting $result_count = $db->super_query( "SELECT COUNT(*) as count FROM " . PREFIX . "_table" . $where ); $all_count_news = $result_count['count']; if( $member_id['user_group'] == 1 ) { //DLE >= 7.5 menu(); } /////////////////////////////////////////// // Options Bar $category_s = explode(",", stripslashes($table_config['category'])); //$category_list = " HTML; // End Options Bar echo << JSCRIPT; if( $entries_showed == 0 ) { echo <<
{$lang_table['orders_advanced_search']}
{$lang_table['edit_noorders']}
HTML; } else { echo <<
{$lang_table['orders_advanced_search']}
{$entries} HTML; // pagination $npp_nav = "
"; if( $start_from > 0 ) { $previous = $start_from - $news_per_page; $npp_nav .= "<< "; } if( $all_count_news > $news_per_page ) { $enpages_count = @ceil( $all_count_news / $news_per_page ); $enpages_start_from = 0; $enpages = ""; if( $enpages_count <= 10 ) { for($j = 1; $j <= $enpages_count; $j ++) { if( $enpages_start_from != $start_from ) { $enpages .= "$j "; } else { $enpages .= "$j "; } $enpages_start_from += $news_per_page; } $npp_nav .= $enpages; } else { $start = 1; $end = 10; if( $start_from > 0 ) { if( ($start_from / $news_per_page) > 4 ) { $start = @ceil( $start_from / $news_per_page ) - 3; $end = $start + 9; if( $end > $enpages_count ) { $start = $enpages_count - 10; $end = $enpages_count - 1; } $enpages_start_from = ($start - 1) * $news_per_page; } } if( $start > 2 ) { $enpages .= "1 ... "; } for($j = $start; $j <= $end; $j ++) { if( $enpages_start_from != $start_from ) { $enpages .= "$j "; } else { $enpages .= "$j "; } $enpages_start_from += $news_per_page; } $enpages_start_from = ($enpages_count - 1) * $news_per_page; $enpages .= "... $enpages_count "; $npp_nav .= $enpages; } } if( $all_count_news > $i ) { $how_next = $all_count_news - $i; if( $how_next > $news_per_page ) { $how_next = $news_per_page; } $npp_nav .= ">>"; } $npp_nav .= "
"; // pagination if( $entries_showed != 0 ) { echo << HTML; if( $all_count_news > $news_per_page ) { echo << HTML; } } echo <<
  {$lang_table['edit_date']}                      {$lang_table['edit_title']}       {$lang_table['edit_status']} {$lang_table['edit_cat']} {$lang_table['edit_author']}
{$npp_nav}
{$lang['edit_go_page']}
HTML; } echofooter(); } // ******************************************************************************** // Показ заказа и редактирование // ******************************************************************************** elseif( $action == "edit" ) { $id = intval( $_GET['id'] ); $row = $db->super_query( "SELECT * FROM " . PREFIX . "_table where id = '$id'" ); $found = FALSE; if( ! empty($id) AND $id == $row['id'] ) $found = TRUE; if( ! $found ) { msg( "error", $lang['cat_error'], $lang_table['edit_noorders'], "javascript:history.go(-1)" ); } $cat_list = explode( ',', $row['category'] ); $type_list = explode( ',', $row['type'] ); $row['date'] = date("d-m-Y G:i", $row['date']); $row['runame'] = htmlspecialchars(stripslashes($row['runame'])); $row['enname'] = htmlspecialchars(stripslashes($row['enname'])); $row['category'] = htmlspecialchars(stripslashes($row['category'])); $row['fileyear'] = htmlspecialchars(stripslashes($row['fileyear'])); $row['answer'] = htmlspecialchars(stripslashes($row['answer'])); $row['status'] = intval($row['status']); $doaction = "doedit"; echoheader( "table", $lang_table['edit_head'] ); echo ""; echo "
"; $category_s = explode(",", stripslashes($table_config['category'])); //$categories_list = "
{$lang['edit_info']} ID={$row['id']}, {$lang['edit_eau']} {$author_info}
{$lang_table['edit_runame']}
{$lang_table['edit_enname']}
{$lang['edit_edate']}
{$lang_table['edit_category']}
{$lang_table['edit_fileyear']}
{$lang_table['edit_answer']}
{$lang_table['edit_status']} HTML; echo makeDropDown(array("0" => $lang_table['edit_status_0'], "1" => $lang_table['edit_status_1'], "2" => $lang_table['edit_status_2'], "3" => $lang_table['edit_status_3']), "status", $row['status']); echo <<
 
HTML; echo <<
HTML; echofooter(); } // ******************************************************************************** // Сохранение или удаление // ******************************************************************************** elseif( $action == "doedit" ) { if( $_REQUEST['user_hash'] == "" or $_REQUEST['user_hash'] != $dle_login_hash ) { die( "Hacking attempt! User not found" ); } $id = intval( $_GET['id'] ); $okdeleted = FALSE; if( $ifdelete != "yes" ) { $okchanges = TRUE; $runame = $db->safesql( trim( htmlspecialchars( $_POST['runame'] ) ) ) ; $enname = $db->safesql( trim( htmlspecialchars( $_POST['enname'] ) ) ) ; $fileyear = $db->safesql( trim( htmlspecialchars( $_POST['fileyear'] ) ) ) ; $category = $db->safesql( trim( htmlspecialchars( $_POST['category'] ) ) ) ; if ( trim( $runame ) != "" or $runame ){ $name = $runame; } if ( trim( $enname ) != "" or $enname ){ $name = $enname; } if( !$name ){msg( "error", $lang['cat_error'], $lang_table['orders_err_name'], "javascript:history.go(-1)" );} if( strlen( $fileyear ) > 4 ) { msg( "error", $lang['cat_error'], $lang_table['orders_err_year'], "javascript:history.go(-1)" ); } if( strlen( $category ) > 20 ) { msg( "error", $lang['cat_error'], $lang_table['addorders_err_category'], "javascript:history.go(-1)" ); } if (!is_numeric($fileyear)) { msg( "error", $lang['cat_error'], $lang_table['orders_err_year_type'], "javascript:history.go(-1)" ); } $answer = $db->safesql(strip_tags(trim($_POST['answer']))); $editor = $db->safesql( trim( htmlspecialchars( $member_id['name'] ) ) ) ; //DLE > 7.5 $status = intval($_POST['status']); $StatusSend = showStatus(intval($_POST['status'])); if ( $table_config['msgs_usr'] == "yes" ) { $result = $db->super_query("SELECT " . USERPREFIX . "_users.name, " . USERPREFIX . "_users.email, " . PREFIX . "_table.autor, " . USERPREFIX . "_users.user_id FROM " . USERPREFIX . "_users INNER JOIN " . PREFIX . "_table ON (" . USERPREFIX . "_users.name = " . PREFIX . "_table.autor) WHERE id='$id'"); $path = $config['http_home_url']; $subject = $lang_table['msgs_subject_usr']; $user_from = $lang_table['msg_user_from']; $time_send = time()+($config['date_adjust']*60); $editors = "" . $editor . ""; $table_config['msgs_type1'] = stripslashes( html_entity_decode( $table_config['msgs_type1'] ) ); $table_config['msgs_type1'] = str_replace( "{%id%}", $id, $table_config['msgs_type1'] ); $table_config['msgs_type1'] = str_replace( "{%username%}", $result['name'], $table_config['msgs_type1'] ); $table_config['msgs_type1'] = str_replace( "{%username_editor%}", $editors, $table_config['msgs_type1'] ); $table_config['msgs_type1'] = str_replace( "{%date%}", date("d.m.Y H:i:s", $time_send), $table_config['msgs_type1'] ); $table_config['msgs_type1'] = str_replace( "{%status%}", $StatusSend, $table_config['msgs_type1'] ); if ( $table_config['msgs_type'] == "0" ) { if( ! $result['user_id'] ) { msg( "error", $lang['cat_error'], $lang_table['not_user_id'], "javascript:history.go(-1)" ); exit(); } $db->query("INSERT INTO " . USERPREFIX . "_pm (subj, text, user, user_from, date, pm_read, folder) values ('$subject', '$table_config[msgs_type1]', '$result[user_id]', '$user_from', '$time_send', 'no', 'inbox')"); $db->query("UPDATE " . USERPREFIX . "_users set pm_all=pm_all+1, pm_unread=pm_unread+1 WHERE user_id='$result[user_id]'"); } else { include_once SYSTEM_DIR . '/classes/mail.class.php'; $mail = new dle_mail( $config, true ); $mail->from = $config['admin_mail']; $mail->send( $result['email'], $subject, $table_config['msgs_type1'] ); if( $mail->send_error ) msg( "info", $lang['all_info'], $mail->smtp_msg ); } $db->free($result); } $db->query("UPDATE " . PREFIX . "_table SET runame = '$runame', enname = '$enname', fileyear='$fileyear', category = '$category', answer='$answer', status='$status', editor='$editor' WHERE id='$id'"); header("Location: http://" . $_SERVER["HTTP_HOST"] . $_SERVER["PHP_SELF"] . "?mod=table"); } else { $db->query( "DELETE FROM " . PREFIX . "_table WHERE id='$id'" ); $okdeleted = TRUE; } if( ! $_SESSION['admin_referrer'] ) { $_SESSION['admin_referrer'] = "?mod=table&action=list"; } if( $okdeleted ) { msg( "info", $lang_table['edit_delok'], $lang_table['edit_delok_1'], $_SESSION['admin_referrer'] ); } elseif( $okchanges ) { msg( "info", $lang['edit_alleok'], $lang['edit_alleok_1'], $_SESSION['admin_referrer'] ); } else { msg( "error", $lang['word_error'], $lang_table['edit_allerr'], $_SESSION['admin_referrer'] ); } $cache->clear(); } // ******************************************************************************** // Options // ******************************************************************************** elseif ($_REQUEST['action'] == 'options') { if( $member_id['user_group'] != 1 ){ msg( "error", $lang['opt_denied'], $lang['opt_denied'] ); } //DLE >= 7.5 include_once SYSTEM_DIR . '/classes/parse.class.php'; $parse = new ParseFilter( Array (), Array (), 1, 1 ); //$table_config['msgs_type0'] = str_replace( '"', '"', $table_config['msgs_type0'] ); //$table_config['msgs_type0'] = $parse->decodeBBCodes( $table_config['msgs_type0'], false ); //$table_config['msgs_type1'] = str_replace( '"', '"', $table_config['msgs_type1'] ); //$table_config['msgs_type1'] = $parse->decodeBBCodes( $table_config['msgs_type1'], false ); echoheader( "options", $lang['opt_all'] ); if( $member_id['user_group'] == 1 ) { //DLE >= 7.5 menu(); } echo <<< HTML
HTML; /* Nullеd by DоtNеt */ echo ''; showRow( $lang_table['opt_tab_offline'], $lang_table['opt_tab_offlined'], makeDropDown(array("no" => $lang['opt_sys_no'], "yes" => $lang['opt_sys_yes']), "save_con[table_offline]", "{$table_config['table_offline']}")); showRow( $lang_table['opt_tab_category'], $lang_table['opt_tab_categoryd'], ""); showRow( $lang_table['opt_tab_an'], "$lang[opt_sys_and]", "" ); showRow( $lang_table['opt_tab_msort'], $lang_table['opt_tab_msortd'], makeDropDown( array ("DESC" => $lang['opt_sys_mminus'], "ASC" => $lang['opt_sys_mplus'] ), "save_con[orders_msort]", "{$table_config['orders_msort']}" ) ); showRow( $lang_table['opt_tab_orders_number'], $lang_table['opt_tab_orders_numberd'], ""); showRow( $lang_table['opt_tab_timeweek'], $lang_table['opt_tab_timeweekd'], ""); showRow( $lang_table['opt_tab_auto_wrap'], $lang_table['opt_tab_auto_wrapd'], ""); showRow( $lang_table['opt_tab_msgs'], $lang_table['opt_tab_msgsd'], makeDropDown(array("yes" => $lang['opt_sys_yes'], "no" => $lang['opt_sys_no']), "save_con[msgs_adm]", "{$table_config['msgs_adm']}")); showRow( $lang_table['opt_tab_msgs1'], $lang_table['opt_tab_msgsd1'], makeDropDown(array("yes" => $lang['opt_sys_yes'], "no" => $lang['opt_sys_no']), "save_con[msgs_usr]", "{$table_config['msgs_usr']}")); showRow( $lang_table['opt_tab_msgs_type'], $lang_table['opt_tab_msgs_typed'], makeDropDown(array("0" => $lang_table['opt_tab_msgs_type1'], "1" => $lang_table['opt_tab_msgs_type2']), "save_con[msgs_type]", "{$table_config['msgs_type']}")); $tr_hidden = " style='display:none'"; echo << function ShowOrHide(d1, d2) { if (d1 != '') DoDiv(d1); if (d2 != '') DoDiv(d2); } function DoDiv(id) { var item = null; if (document.getElementById) { item = document.getElementById(id); } else if (document.all){ item = document.all[id]; } else if (document.layers){ item = document.layers[id]; } if (!item) { } else if (item.style) { if (item.style.display == "none"){ item.style.display = ""; } else {item.style.display = "none"; } }else{ item.visibility = "show"; } } HTML; echo ''; echo ''; $groups = get_groups(); $groups = get_groups(explode(',', $table_config['grouplevel'])); echo << HTML; echo <<< HTML
' . $lang_table['opt_tab_mail_info1'] . '
' . $lang_table['opt_tab_mail_info2'] .'
' . $lang_table['mail_pm_info1'] . '
' . $lang_table['opt_tab_mail_info1'] . '
' . $lang_table['opt_tab_mail_info3'] .'
' . $lang_table['mail_pm_info2'] . '
{$lang_table['opt_tab_grouplevel']}
{$lang_table['opt_tab_groupleveld']}
HTML; echofooter(); echo <<< HTML
HTML; } elseif( $action == "massactions" ) { if( ! $_SESSION['admin_referrer'] ) { $_SESSION['admin_referrer'] = "?mod=table&action=list"; } if( $member_id['user_group'] !=1 ) { //DLE >= 7.5 msg( "error", $lang['mass_error'], $lang['mass_ddenied'], $_SESSION['admin_referrer'] ); } $selected_orders = $_REQUEST['selected_orders']; if( ! $selected_orders ) { msg( "error", $lang['mass_error'], $lang_table['mass_denied'], $_SESSION['admin_referrer'] ); } if( $_REQUEST['user_hash'] == "" or $_REQUEST['user_hash'] != $dle_login_hash ) { die( "Hacking attempt! User not found" ); } $s_action = htmlspecialchars( strip_tags( stripslashes( $_POST['s_action'] ) ) ); /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Подтвреждение удаления ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ if( $s_action == "mass_delete" ) { echoheader( "options", $lang_table['mass_head'] ); echo <<
{$lang_table['mass_confirm']} HTML; /* Nulled by N2C-TEAM(DotNet) */ echo "(" . count( $selected_orders ) . ") $lang_table[mass_confirm_1]

  "; foreach ( $selected_orders as $ordersid ) { $ordersid = intval($ordersid); echo "\n"; } echo <<
HTML; echofooter(); exit(); } /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Удаление новостей ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ elseif( $s_action == "do_mass_delete" ) { $deleted_articles = 0; foreach ( $selected_orders as $id ) { $id = intval( $id ); $deleted_articles ++; $db->query( "DELETE FROM " . PREFIX . "_table WHERE id='$id'" ); } if( count( $selected_orders ) == $deleted_articles ) { msg( "info", $lang_table['mass_head'], $lang_table['mass_delok'], $_SESSION['admin_referrer'] ); } else { msg( "error", $lang['mass_notok'], "$deleted_articles $lang[mass_i] " . count( $selected_orders ) . " $lang[mass_notok_1]", $_SESSION['admin_referrer'] ); } } /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ничего не выбрано ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ else { msg( "info", $lang['mass_noact'], $lang['mass_noact_1'], $_SESSION['admin_referrer'] ); } } // ******************************************************************************** // Write options // ******************************************************************************** if( $action == "save" ) { if( $_REQUEST['user_hash'] == "" or $_REQUEST['user_hash'] != $dle_login_hash ) { die( "Hacking attempt! User not found" ); } $save_con = $_POST['save_con']; include_once SYSTEM_DIR . '/classes/parse.class.php'; $parse = new ParseFilter( Array (), Array (), 1, 1 ); $save_con['msgs_type0'] = $parse->process( stripslashes( trim( $save_con['msgs_type0'] ) ) ); $save_con['msgs_type0'] = str_replace( '"', '"', $parse->BB_Parse( $save_con['msgs_type0'], false ) ); $save_con['msgs_type1'] = $parse->process( stripslashes( trim( $save_con['msgs_type1'] ) ) ); $save_con['msgs_type1'] = str_replace( '"', '"', $parse->BB_Parse( $save_con['msgs_type1'], false ) ); $find[] = "'\r'"; $replace[] = ""; $find[] = "'\n'"; $replace[] = ""; $save_con['version_id'] = "2.5"; $save_con = $save_con + $table_config; if( $member_id['user_group'] != 1 ){ msg( "error", $lang['opt_denied'], $lang['opt_denied'] ); } //DLE >= 7.5 $handler = fopen( SYSTEM_DIR . '/data/tableconfig.php', "w" ); fwrite( $handler, " $value ) { if( $name != "msgs_type0" OR $name != "msgs_type1") { $value = trim( stripslashes( $value ) ); $value = htmlspecialchars( $value, ENT_QUOTES); $value = preg_replace( $find, $replace, $value ); $name = trim( stripslashes( $name ) ); $name = htmlspecialchars( $name, ENT_QUOTES ); $name = preg_replace( $find, $replace, $name ); } $value = str_replace( "$", "$", $value ); $value = str_replace( "{", "{", $value ); $value = str_replace( "}", "}", $value ); $name = str_replace( "$", "$", $name ); $name = str_replace( "{", "{", $name ); $name = str_replace( "}", "}", $name ); fwrite( $handler, "'{$name}' => \"{$value}\",\n\n" ); } fwrite( $handler, ");\n\n?>" ); fclose( $handler ); $cache->clear(); msg( "info", $lang['opt_sysok'], "$lang[opt_sysok_1]

$lang[db_prev]" ); } ?>