Php!
Code: Select all
<?
$dir = 'C:\\DreaMServer\\Account'; if(!$_POST){ echo '
<form action='.$_SERVER['PHP_SELF'].' method=post>
<p> Cuenta:
<input type=text name=acc>
<br>
<br>
Contraseña Actual:
<input type=password name=pass>
<br>
<br>
Contraseña Nueva:
<input type=password name=nwpass>
<br>
<br>
<input type=submit name=submit Value="Cambiar Password!">
<br>
<br>
<a href="mailto:braian_james@hotmail.com">Script By : JameS!</a>
<a href="http://www.comunidadhb.com.ar">Comunidad HB</a>
<a href="http://www.dreamforums.com.ar">DreaM Forums</a>
</form>
';
}
else{
$acc = $_POST['acc'];
$pass = $_POST['pass'];
$nwpass = $_POST['nwpass'];
$fl = substr($acc, 0, 1);
$ascii = ord($fl);
$filename = $dir . '\\ASCII' . $ascii . '\\' . $acc . '.txt';
$lines = file($filename);
$a=0;
foreach($lines as $a){
$a = trim($a);
if($a == 'account-password = '.$pass.''){ $passflag=TRUE; }
}
if(!$passflag){ echo 'Password Incorrecto'; }
else{
$fl = substr($acc, '0', '1');
$casc = ord($acc);
$filenames = $dir . '\\ASCII' . $ascii . '\\' . $acc . '.txt';
$lines = file($filenames);
$a=0;
foreach($lines as $b){
if(substr_count($b, 'account-password') > '.$pass.'){ $sline = $a; }
$a++;
}
$lines[$sline] = 'account-password = '.$nwpass.'
';
$lines = implode('', $lines);
$fo = fopen("$filename", 'w+');
fwrite($fo, $lines);
echo 'Password De Account Cambiado Satisfactoriamente - By JameS!';
}
}
?>
<img src='http://img.photobucket.com/albums/v482/ ... ingFan.jpg' border='0' alt='user posted image' /><br><a href='http://www.hbdreams.com.ar' target='_blank'><b>- Helbreath Dream Team -</a></b><br><a href='http://www.dreamforums.com.ar/top50' target='_blank'><b>- Dream Top 50 Owner Admin -</a></b><br>- <b>Contacto Por Mail</b> : <a href='mailto:james@dreamforums.com.ar'>james@dreamforums.com.ar</a>
sry does not specify that type of server use, php that I walk looking for is for 3,51 original by SQL. With config, common.James! wrote::ph34r:Code: Select all
<? $dir = 'C:\\DreaMServer\\Account'; if(!$_POST){ echo ' <form action='.$_SERVER['PHP_SELF'].' method=post> <p> Cuenta: <input type=text name=acc> <br> <br> Contraseña Actual: <input type=password name=pass> <br> <br> Contraseña Nueva: <input type=password name=nwpass> <br> <br> <input type=submit name=submit Value="Cambiar Password!"> <br> <br> <a href="mailto:braian_james@hotmail.com">Script By : JameS!</a> <a href="http://www.comunidadhb.com.ar">Comunidad HB</a> <a href="http://www.dreamforums.com.ar">DreaM Forums</a> </form> '; } else{ $acc = $_POST['acc']; $pass = $_POST['pass']; $nwpass = $_POST['nwpass']; $fl = substr($acc, 0, 1); $ascii = ord($fl); $filename = $dir . '\\ASCII' . $ascii . '\\' . $acc . '.txt'; $lines = file($filename); $a=0; foreach($lines as $a){ $a = trim($a); if($a == 'account-password = '.$pass.''){ $passflag=TRUE; } } if(!$passflag){ echo 'Password Incorrecto'; } else{ $fl = substr($acc, '0', '1'); $casc = ord($acc); $filenames = $dir . '\\ASCII' . $ascii . '\\' . $acc . '.txt'; $lines = file($filenames); $a=0; foreach($lines as $b){ if(substr_count($b, 'account-password') > '.$pass.'){ $sline = $a; } $a++; } $lines[$sline] = 'account-password = '.$nwpass.' '; $lines = implode('', $lines); $fo = fopen("$filename", 'w+'); fwrite($fo, $lines); echo 'Password De Account Cambiado Satisfactoriamente - By JameS!'; } } ?>
nahh.... way too compilcated... B)Jaap wrote: You COULD just change your password ingame you know..
<a href='http://tfps.fateback.com/scripts/index.html' target='_blank'>my php scripts</a>
-
- Outpost bitch
- Posts: 559
- Joined: Wed Mar 30, 2005 6:45 am
The html tags you attempted to use are not allowedEvil^ wrote: sry does not specify that type of server use, php that I walk looking for is for 3,51 original by SQL. With config, common.
[ Go Back ]
can't put here my php:-/
<img src='http://helbreath.pri.ee/userbars/hbest-gamemaster2.jpg' border='0' alt='user posted image' /> <img src='http://helbreath.pri.ee/userbars/hbsoccer-owner.jpg' border='0' alt='user posted image' /> <img src='http://helbreath.pri.ee/userbars/scorpa-rider.jpg' border='0' alt='user posted image' /> <img src='http://helbreath.pri.ee/userbars/logout-master.jpg' border='0' alt='user posted image' /> <br>.<br>................................Ego sum Rage, flagellum Dei!<br><br>The problem with America is stupidity. I'm not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? (bash.org)
Just forward port 80 on your router to your computer. If you don't know how, goto <a href='http://portforward.com/english/routers/ ... rindex.htm' target='_blank'>http://portforward.com/english/routers/ ... dex.htm</a> and look up your router onthe huge list, and it'll give you a step - by - step guide for port forwarding with your particular router.babyniles wrote: hey i wanted to know how to use php with a router any help ??? thanks please give a good tutorial for us all!