Вход Регистрация
Файл: public_html/page/adm-config.php
Строк: 92
<?php 
if (!defined('BASE_DIR')) { exit(header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found'true)); } 

if (!isset(
$_SESSION['user_id'])) { exit(header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found'true)); } 

if (!
$users_info['status']) { exit(header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found'true)); } 

$obEngine->addTitleHtml('Настройки сайта');  

if (isset(
$_POST['data_start']))
{
  
$data_start filter_var($_POST['data_start'], FILTER_SANITIZE_STRING);

  
$data_start date("Y-m-d H:i:s"strtotime($data_start));
  
  
$site_name filter_var($_POST['site_name'], FILTER_SANITIZE_STRING);
  
  
$site_email filter_var($_POST['site_email'], FILTER_SANITIZE_STRING);
  
  
$site_skype filter_var($_POST['site_skype'], FILTER_SANITIZE_STRING);
  
  
$min_pay = (int)$_POST['min_pay'];
  
  
$comm_pay = (int)$_POST['comm_pay'];
  
  
$comm_out = (int)$_POST['comm_out'];
  
  
$ref_proc = (int)$_POST['ref_proc'];
  
  
$mysqli->query("UPDATE `".PREFIX."_config` SET `data_start` = '".$data_start."',
                                                 `site_name` = '"
.$site_name."',
                                                 `site_email` = '"
.$site_email."',
                                                 `site_skype` = '"
.$site_skype."',                                                 
                                                 `min_pay` = '"
.$min_pay."',
                                                 `comm_pay` = '"
.$comm_pay."',
                                                 `comm_out` = '"
.$comm_out."',    
                                                 `ref_proc` = '"
.$ref_proc."'    
                  WHERE `id` = '1'"
); 
  
    
  exit(
header('Location: /adm-config.php?msg=100')); 
}    
?>
<div id="message"><?php echo $msg = isset($_GET['msg']) ? printMessage((int)$_GET['msg']) : ''?></div> 
<div class="wrapper">
 <div class="main">
  <div class="m_left">
   <div class="m_title">Настройки сайта</div>
   <form  name="form1" action="" method="post">
    <div class="m_l">
     <div class="adm_m_name">Старт проекта:</div>
     <div class="adm_m_pole"><input type="text" maxlength="50" name="data_start" class="tt" value="<?php echo date("d.m.Y"strtotime($obEngine->getConfig('data_start'))); ?>"></div>
    </div>
    <div class="m_l">
     <div class="adm_m_name">Название проекта:</div>
     <div class="adm_m_pole"><input type="text" maxlength="50" name="site_name" class="tt" value="<?php echo $obEngine->getConfig('site_name'); ?>"></div>
    </div>
    <div class="m_l">
     <div class="adm_m_name">E-mail проекта:</div>
     <div class="adm_m_pole"><input type="text" maxlength="50" name="site_email" class="tt" value="<?php echo $obEngine->getConfig('site_email'); ?>"></div>
    </div> 
    <div class="m_l">
     <div class="adm_m_name">Skype проекта:</div>
     <div class="adm_m_pole"><input type="text" maxlength="50" name="site_skype" class="tt" value="<?php echo $obEngine->getConfig('site_skype'); ?>"></div>
    </div>       
    <div class="m_l">
     <div class="adm_m_name">Минималка на вывод (руб):</div>
     <div class="adm_m_pole"><input type="text" maxlength="50" name="min_pay" class="tt" value="<?php echo $obEngine->getConfig('min_pay'); ?>"></div>
    </div>
    <div class="m_l">
     <div class="adm_m_name">Коммисия при выводе %:</div>
     <div class="adm_m_pole"><input type="text" maxlength="50" name="comm_out" class="tt" value="<?php echo $obEngine->getConfig('comm_out'); ?>"></div>
    </div>   
    <div class="m_l">
     <div class="adm_m_name">Коммисия при пополнении счёта %:</div>
     <div class="adm_m_pole"><input type="text" maxlength="50" name="comm_pay" class="tt" value="<?php echo $obEngine->getConfig('comm_pay'); ?>"></div>
    </div>
    <div class="m_l">
     <div class="adm_m_name">Отчисления рефералам %:</div>
     <div class="adm_m_pole"><input type="text" maxlength="50" name="ref_proc" class="tt" value="<?php echo $obEngine->getConfig('ref_proc'); ?>"></div>
    </div>   
    <div class="m_l"><button style="float:right;">Сохранить</button></div>
   </form>
  </div>               
  <?php include 'module/user_menu.php'?> 
 </div>
</div>
Онлайн: 0
Реклама