LordofDead DareDevil


Data inscrierii: 26/Iun/2009 Mesaje: 160 Localitate: In Hell!
|
Trimis: 27/06/2009 08:55 Titlul subiectului: [Mu Online]Cum adaugi autounban/ban + banlist pe site-ul tau |
|
|
Prima data downloadeaza scriptu:
| Cod: | | http://rapidshare.com/files/47342265/autounbann.rar.html |
Dupa ce downloadezi scriptu, du-te unde e instalat muweb 0.8 in fisieru modules si dezarhiveaza scriptu acolo
Al 2-lea pas
Downloadeaza acest fisier (banlist) pentru muweb
| Cod: | | http://rapidshare.com/files/47447046/banned.rar.html |
Dupa ce-l downloadezi dezarhiveaza-l in fisieru modules din nou
Al 3-lea pas
Deschide index.php si apasa ctrl+f si cauta Forum si ai sa vezi ceva de genu:
| Cod: | <tr>
<td><div align="right"><img src="images/arrow.jpg" alt="Arrow" width="9" height="9"></div></td>
<td class="link_menu" align="left"><a href="index.php?op=forum">Forum</a></td>
</tr>
</table> |
Inainte de </table> si dupa </tr> adauga acest cod:
| Cod: | <tr>
<td><div align="right"><img src="images/arrow.jpg" alt="Arrow" width="9" height="9"></div></td>
<td class="link_menu" align="left"><a href="index.php?op=banned">BanList</a></td>
</tr> |
Trebuie sa arate asa:
| Cod: | <tr>
<td><div align="right"><img src="images/arrow.jpg" alt="Arrow" width="9" height="9"></div></td>
<td class="link_menu" align="left"><a href="index.php?op=forum">Forum</a></td>
</tr>
<tr>
<td><div align="right"><img src="images/arrow.jpg" alt="Arrow" width="9" height="9"></div></td>
<td class="link_menu" align="left"><a href="index.php?op=banned">BanList</a></td>
</tr>
</table> |
Suntem gata sa adaugam in Meniu
Al 4-lea pas cel mai important
Deschide index.php si la sfarsit trebuie sa fie:
| Cod: | <?
ob_end_flush();
?> |
adauga cod`ul asta :
| Cod: | <?
$con=mssql_connect($host,$user,$pass);
$sel=mssql_select_db('muonline',$con);
$time=time();
$run=mssql_query("update dbo.desban set bantime='$time'");
$row=mssql_fetch_row(mssql_query("select name,bantime,unbantime from desban"));
if($row[1]>=$row[2]){
$run1=mssql_query("delete from dbo.desban where name='$row[0]'");
$run2=mssql_query("update dbo.character set ctlcode='0' where name='$row[0]'");
}
?> |
Acum sfarsitul trebuie sa arate asa:
| Cod: | </html>
<?
ob_end_flush();
?>
<?
$con=mssql_connect($host,$user,$pass);
$sel=mssql_select_db('muonline',$con);
$time=time();
$run=mssql_query("update dbo.desban set bantime='$time'");
$row=mssql_fetch_row(mssql_query("select name,bantime,unbantime from desban"));
if($row[1]>=$row[2]){
$run1=mssql_query("delete from dbo.desban where name='$row[0]'");
$run2=mssql_query("update dbo.character set ctlcode='0' where name='$row[0]'");
}
?> |
|
|