
10.09.2008, 18:22
|
|
Reservists Of Antichat - Level 6
Регистрация: 25.04.2008
Сообщений: 827
Провел на форуме: 2769640
Репутация:
1304
|
|
P3L3NG, на всякий случай убирает повторы уинов и паролей
Будет работать только для PHP5 из-за file_put_contents.
PHP код:
<html><head></head><body>
<form method="post">
<TEXTAREA style="width=500;height=1500" name="logins">
</TEXTAREA>
<input type="submit" name="go"></form>
<?php
if(isset($_POST['go']))
{
if (preg_match_all('#([^:\r\n]*):([^\r\n]*)#i',$_POST['logins'],$match))
{
file_put_contents('login.txt',implode("\r\n",array_unique($match[1])));
file_put_contents('pass.txt',implode("\r\n",array_unique($match[2])));
}
}
?>
</body></html>
Последний раз редактировалось Gifts; 10.09.2008 в 18:26..
|
|
|