Файл: admin/edit_counters.php
Строк: 27
<?
////////////////////////////////////////
///// Kyber ApiCMS 2013 apicms.ru //////
///// Запрещается продажа данной CMS ///
///// Автор Евгений Медянкин Kyber /////
///// ICQ 626-000-895 или 37-22-47 /////
////////////////////////////////////////
/////////////////////////////////////////
$title = 'Настройка счетчиков сайта APICMS';
require_once '../api_core/apicms_system.php';
require_once '../design/styles/'.htmlspecialchars($api_design).'/head.php';
/////////////////////////////////////////
if ($user['level'] != 1) header('location: ../');
if ($user['level'] == 1){
/////////////////////////////////////////
if (isset($_POST['txt'])){
$text = base64_encode($_POST['txt']);
mysql_query("UPDATE `settings` SET `counters` = '$text' LIMIT 1");
echo '<div class="apicms_content"><center>Изменения успешно внесены</center></div>';
}
/////////////////////////////////////////
if ($user['level']==1){
echo "<form action='?ok' method='post'>";
echo "<div class='apicms_content'><center><textarea name='txt'>".base64_decode($api_settings['counters'])."</textarea><br />";
echo "<input type='submit' value='Опубликовать'/></form></center></div>";
}else{
echo "<div class='apicms_content'>У вас нет прав изменять счетчики для сайта!</div>";
}
/////////////////////////////////////////
}
require_once '../design/styles/'.htmlspecialchars($api_design).'/footer.php';
?>