 |
blacksabbath-raoul.MyForum.ro Fa-ti si tu propriul forum, pe www.myforum.ro!
|
| Subiectul anterior :: Subiectul urmator |
| Autor |
Mesaj |
LordofDead Administrator

Data inscrierii: 26/Aug/2008 Mesaje: 29
|
Trimis: 27/08/2008 07:20 Titlul subiectului: Tutorial : Autoban + Ban List Pentru MuWeb 08 |
|
|
Prima data downloadeaza scriptu:[url]http://rapidshare.com/files/47342265/autounbann.rar.html[/url]
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 0.8:
[url]http://rapidshare.com/files/47447046/banned.rar.html[/url]
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]'");
}
?> |
|
| Sus |
|
 |
|
|
Nu puteti crea un subiect nou in acest forum Nu puteti raspunde in subiectele acestui forum Nu puteti modifica mesajele proprii din acest forum Nu puteti sterge mesajele proprii din acest forum Nu puteti vota in chestionarele din acest forum
|
Powered by phpBB © 2001, 2005 phpBB Group Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro
|