Вход Регистрация
Файл: _gladiators2_/gladiators2/gladiators/gladiators/system/index.php
Строк: 11
<?

  
function comment ($type, $vars)
  {
    global 
$HTTP_SERVER_VARS;
    
$file = @file ($HTTP_SERVER_VARS['DOCUMENT_ROOT'] . '/battle/comment/' . $type . '.dat');
    
$frase = $file[rand (0, count ($file) - 1)];
    
$vars = explode (';', $vars);
    for (
$i = 0; $i <= count ($vars) - 1; $i++)
    {
      
$row = explode ('=', $vars[$i]);
      
$frase = str_replace ('{' . $row[0] . '}', $row[1], $frase);
    }

    
$fp = @fopen ($HTTP_SERVER_VARS['DOCUMENT_ROOT'] . '/');
  }

  
header ('Location: /index.php');
?>
Онлайн: 1
Реклама