|
Re: lug-bg: passwd i chfn prez web?
- Subject: Re: lug-bg: passwd i chfn prez web?
- From: Vladimir Smolensky <zaphod@xxxxxxxxxx>
- Date: Tue, 1 Jun 2004 18:53:43 +0300
- Organization: Ancient Media Ltd.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> Проблемът е, че не ми се пише самият уеб-интерфейс, т.е. частта с
> апачето. Трябва ми един супер-прост cgi-скрипт. Сигурно ви се струва
> елементарно, щом не ми подсказвате ;-), но аз никога не съм правил
> дори и една уеб-форма.
>
> Антон Зиновиев
> ============================================================================
[cut]
<?php
if($_REQUEST[pass1] != $_REQUEST[pass2] ) {
echo "passwords do not match";
exit;
}
// drugi prowerki
$crypted_pass = crypt($_REQUEST[pass1]);
system ( "....sudo..... usermod -p $crypted_pass $_SESSION[username]", $result);
if($result) {
echo "blabla greshka";
}
?>
<form action=<?=$PHP_SELF?> METHOD="POST">
Smqna na parola
Nowata parola<input name=pass1 type=password>
Parolata pak <input name=pass2 type=password>
<input type=submit>
</form>
[cut]
twa sega go drasnah taka che sigurno nqma trygne otma... :) dofixni si greshkite, inache principno neshto takowa ;)
- --
Vladimir Smolensky
System Administrator, Ancient Media Ltd.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAvKaHWK2Tr8wzGisRAp1yAKCYYm/xNLnPQ3IpUEV5wmA5dWvBPQCg6G98
37IlgBMPlRECKGLiHXxInHI=
=LjfW
-----END PGP SIGNATURE-----
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|
|
|