Download Zaloguj się, by sprawdzić wiadomości Album Chat
Strona główna Grupy Użytkownicy Twoje konto Statystyki Rejestracja Zaloguj

Poprzedni temat «» Następny temat
[Tutorial] Instalacja hacków
Autor Wiadomość
Butch 
User


Dołączył: 08 Maj 2006
Posty: 421
Skąd: localhost
Wysłany: Czw 12 Paź, 2006   [Tutorial] Instalacja hacków

przykładowy hack na szybką rejestrację (koala nie dał go na tej swojej liście więc macie go tu)

Kod:

#################################################################
## Mod Title: Registration Form On Main Index
## Mod Version: 1.0.0
## Author: Brandons < Webmaster@DcTalkFans.com > - www.dctalkfans.com

## Description: This Mod Allows You To Put A Registration form on the main index.php of your boards. OR it also allows you to put the registration form on any non-phpbb site of yours!


##
## Installation Level: easy
## Installation Time: 2 minutes
## Files To Edit: /templates/subsilver/index_body.tpl
## Included Files: (NA)
#################################################################
##
## Author Note:

If Your putting this on a non-phpbb site then all you need to do to make this work is change the <form action ""> Path To Your Path To Your Phpbb2 Root Path

This Mod Has A Part of The Gender Mod In It. If You Don't Have The Gender Mod Then Simply Take Out That Part The <input> for it and the words "Your Gender". After That It'll Work Fine. You Can Replace That Empty Spot With Anything You'd Like.

Note That We Only Have The Required Fields. To Many Fields Can Deter People From Registering. That Is Why. So Somewhere You Must Tell Your Users They Can Edit Everything Else By Going To "Edit Profile"

#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################


#
#-----[ OPEN /templates/subsilver/index_body.tpl ]------------------------------------------
#

#
#-----[ FIND ]------------------------------------------
#
   <!-- BEGIN switch_user_logged_out -->


<form method="post" action="{S_LOGIN_ACTION}">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"><tr><td class="catHead" height="28"><a name="login"></a><
span class="cattitle">{L_LOGIN_LOGOUT}</span></td></tr><tr>     

<td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}:<input class="post" type="text" name="username" size="10" />&nbsp;&nbsp;&nbsp;{L_PASSWORD}:       

<input class="post" type="password" name="password" size="10" />&nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN} <input class="text" type="checkbox" name="autologin" />&nbsp;&nbsp;&nbsp;<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /></span></td></tr></table></form>
   
#
#-----[ AFTER, ADD ]------------------------------------------
#

<form method="post" action="profile.php"> 

<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">   
<tr><td class="catHead" height="28" colspan="4">
<a href="http://t4cministries.com/php/boards/profile.php?mode=register&agreed=TRUE" class="nav"><span class="nav"><font color="006699">Register | Its Free</span></a>
</td></tr>


<tr colspan="4">

<td class="row1" width="25%"><span class="genmed">Pick A Username You Want: *</span></td><td class="row2" width=25%><input type="text" class="post" style="width:150px" name="username" size="25" maxlength="20" value="" /></td>   


<td class="row1" width=25%><span class="genmed">Your Email Address: *</span></td>      <td class="row2"><input type="text" class="post" style="width:150px" name="email" size="25" maxlength="255" value="" /></td>

</TR><TR colspan="4">

<td class="row1" width=25%><span class="genmed">Choose A Password: *</span><br /><span class="gensmall"></span></td><td class="row2"><input type="password" class="post" style="width: 150px" name="new_password" size="25" maxlength="100" value="" /></td>   

<td class="row1" width=25%><span class="genmed">Confirm Your Password: * </span>
<br /><span class="gensmall"></span></td><td class="row2" width=25%> <input type="password" class="post" style="width: 150px" name="password_confirm" size="25" maxlength="100" value="" /></td>


</tr><tr colspan="4">

<td class="row1"><span class="genmed" width=25%>Your Gender: *</span></td><td class="row2" width=25% div align=left><input type="hidden"  name="gender" value="0" checked="checked"/><div align=left><span class="gen"></span><input type="radio" name="gender" value="1" /><span class="genmed">Male</span>&nbsp;&nbsp;<input type="radio" name="gender" value="2" /><span class="genmed">Female</span></td>


<input type="hidden" name="viewemail" value="0" checked="checked" />
<input type="hidden" name="hideonline" value="0" checked="checked" />
<input type="hidden" name="notifyreply" value="0" checked="checked" />

<input type="hidden" name="notifypm" value="1" checked="checked" />

<input type="hidden" name="popup_pm" value="1" checked="checked" />
   
<input type="hidden" name="attachsig" value="1" checked="checked" />   
   
<input type="hidden" name="allowbbcode" value="1" checked="checked" />

<input type="hidden" name="allowhtml" value="0" checked="checked" />   
<input type="hidden" name="allowsmilies" value="1" checked="checked" />   
   
<input type="hidden" name="dateformat" value="D M d, Y g:i a" maxlength="14" class="post" />   

<td class="row1" width=25%><span class="genmed">Now Click Submit: *</span></td><td class="row2" colspan="1" align="left" height="28" width=25%><input type="hidden" name="mode" value="register" />

<input type="hidden" name="agreed" value="true" />
<input type="hidden" name="coppa" value="0" />

<input type="submit" name="submit" value="Submit" class="liteoption" />&nbsp;&nbsp;
<input type="reset" value="Reset" name="reset" class="liteoption" /></td>   

</tr></form>
</table>
   

#
#-----[ SAVE AND CLOSE ALL FILES ]------------------------------------------
#

#EOF - Enjoy


przeanalizujmy go

Kod:

#################################################################
## Mod Title: Registration Form On Main Index
## Mod Version: 1.0.0
## Author: Brandons < Webmaster@DcTalkFans.com > - www.dctalkfans.com

## Description: This Mod Allows You To Put A Registration form on the main index.php of your boards. OR it also allows you to put the registration form on any non-phpbb site of yours!


##
## Installation Level: easy
## Installation Time: 2 minutes
## Files To Edit: /templates/subsilver/index_body.tpl
## Included Files: (NA)
#################################################################


Title: nazwa hacka
Author: autor hacka
version: wersja
description: opis

instalation level: poziom trudności, są 3 główne (easy, medium i hard) i posrednie (intermediate, moderate, fairly easy, advanced itp.)
instalation time: przewidywany czas instalacji (nie wiem dla kogo oni to liczą, mi średnio to zajmuje prawie 3x tyle czasu co jest napisane)

files to edit: pliki jakie będziemy edytować
included files: dołączone pliki *jeśli któregoś brakuje ściągnij hack z innego źródła, w przypadku grafiki możesz ją sobie sam zrobić :)

dobra bierzemy następną część
Kod:

#################################################################
##
## Author Note:

If Your putting this on a non-phpbb site then all you need to do to make this work is change the <form action ""> Path To Your Path To Your Phpbb2 Root Path

This Mod Has A Part of The Gender Mod In It. If You Don't Have The Gender Mod Then Simply Take Out That Part The <input> for it and the words "Your Gender". After That It'll Work Fine. You Can Replace That Empty Spot With Anything You'd Like.

Note That We Only Have The Required Fields. To Many Fields Can Deter People From Registering. That Is Why. So Somewhere You Must Tell Your Users They Can Edit Everything Else By Going To "Edit Profile"

#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################


tu nie ma sie co rozpisywać, są to notki autora, oraz info że na przykład ten hack nie pójdzie bez innego lub z jakimś hackiem się pogryzie
i oczywiście stała gadka "przed instalacją zrób kopię zapasową wszystkich edytowanych plików"

idziemy do najważniejszej części
Kod:

#
#-----[ OPEN /templates/subsilver/index_body.tpl ]------------------------------------------
#

#
#-----[ FIND ]------------------------------------------
#
   <!-- BEGIN switch_user_logged_out -->


<form method="post" action="{S_LOGIN_ACTION}">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"><tr><td class="catHead" height="28"><a name="login"></a><
span class="cattitle">{L_LOGIN_LOGOUT}</span></td></tr><tr>     

<td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}:<input class="post" type="text" name="username" size="10" />&nbsp;&nbsp;&nbsp;{L_PASSWORD}:       

<input class="post" type="password" name="password" size="10" />&nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN} <input class="text" type="checkbox" name="autologin" />&nbsp;&nbsp;&nbsp;<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /></span></td></tr></table></form>
   
#
#-----[ AFTER, ADD ]------------------------------------------
#

<form method="post" action="profile.php"> 

<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">   
<tr><td class="catHead" height="28" colspan="4">
<a href="http://t4cministries.com/php/boards/profile.php?mode=register&agreed=TRUE" class="nav"><span class="nav"><font color="006699">Register | Its Free</span></a>
</td></tr>


<tr colspan="4">

<td class="row1" width="25%"><span class="genmed">Pick A Username You Want: *</span></td><td class="row2" width=25%><input type="text" class="post" style="width:150px" name="username" size="25" maxlength="20" value="" /></td>   


<td class="row1" width=25%><span class="genmed">Your Email Address: *</span></td>      <td class="row2"><input type="text" class="post" style="width:150px" name="email" size="25" maxlength="255" value="" /></td>

</TR><TR colspan="4">

<td class="row1" width=25%><span class="genmed">Choose A Password: *</span><br /><span class="gensmall"></span></td><td class="row2"><input type="password" class="post" style="width: 150px" name="new_password" size="25" maxlength="100" value="" /></td>   

<td class="row1" width=25%><span class="genmed">Confirm Your Password: * </span>
<br /><span class="gensmall"></span></td><td class="row2" width=25%> <input type="password" class="post" style="width: 150px" name="password_confirm" size="25" maxlength="100" value="" /></td>


</tr><tr colspan="4">

<td class="row1"><span class="genmed" width=25%>Your Gender: *</span></td><td class="row2" width=25% div align=left><input type="hidden"  name="gender" value="0" checked="checked"/><div align=left><span class="gen"></span><input type="radio" name="gender" value="1" /><span class="genmed">Male</span>&nbsp;&nbsp;<input type="radio" name="gender" value="2" /><span class="genmed">Female</span></td>


<input type="hidden" name="viewemail" value="0" checked="checked" />
<input type="hidden" name="hideonline" value="0" checked="checked" />
<input type="hidden" name="notifyreply" value="0" checked="checked" />

<input type="hidden" name="notifypm" value="1" checked="checked" />

<input type="hidden" name="popup_pm" value="1" checked="checked" />
   
<input type="hidden" name="attachsig" value="1" checked="checked" />   
   
<input type="hidden" name="allowbbcode" value="1" checked="checked" />

<input type="hidden" name="allowhtml" value="0" checked="checked" />   
<input type="hidden" name="allowsmilies" value="1" checked="checked" />   
   
<input type="hidden" name="dateformat" value="D M d, Y g:i a" maxlength="14" class="post" />   

<td class="row1" width=25%><span class="genmed">Now Click Submit: *</span></td><td class="row2" colspan="1" align="left" height="28" width=25%><input type="hidden" name="mode" value="register" />

<input type="hidden" name="agreed" value="true" />
<input type="hidden" name="coppa" value="0" />

<input type="submit" name="submit" value="Submit" class="liteoption" />&nbsp;&nbsp;
<input type="reset" value="Reset" name="reset" class="liteoption" /></td>   

</tr></form>
</table>
   

#
#-----[ SAVE AND CLOSE ALL FILES ]------------------------------------------
#



OPEN - otwórz plik
FIND - znajdź w pliku
IN LINE FIND - w tej linii znajdź
REPLACE WITH - zamień na
AFTER, ADD - dodaj po
BEFORE, ADD - dodaj przed
IN LINE AFTER ADD - dodaj po w tej linii
IN LINE BEFORE ADD - dodaj przed w tej linii
IN LINE REPLACE WITH - zamień na w tej linii
COPY - skopiuj plik
SQL - wykonaj zapytanie SQL np. w phpbbmyadmin
SAVE AND EXIT ALL FILES - zapisz i zamkniej wszystkie pliki

jeszcze odnośnie notek przy komendach:
top of file - początek pliku
end/bottom of file - koniec pliku

to chyba na tyle, oczywiście nie zawsze linie do szukania są identyczne jak w instrukcji, wtedy trzeba troche pomyśleć, szukać linii po kawałkach itp.
 
 
Wyświetl posty z ostatnich:   
Odpowiedz do tematu
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Nie możesz załączać plików na tym forum
Nie możesz ściągać załączników na tym forum
Dodaj temat do Ulubionych
Wersja do druku

Skocz do:  

Powered by phpBB modified by Przemo © 2003 phpBB Group
Support forum phpbb by phpBB Assistant
Strona wygenerowana w 0,05 sekundy. Zapytań do SQL: 26