Hacking Attampt "level MOD"
Verfasst: 30.06.2006 17:42
Hallo , hab den Level MOD eingebaut..
Nun .. ist wenn ich mir ein Post anschauen will kommt. "Hacking Attampt"
Was muss cih tun ? Hier mal die install :
Nun .. ist wenn ich mir ein Post anschauen will kommt. "Hacking Attampt"
Was muss cih tun ? Hier mal die install :
Code: Alles auswählen
##############################################################
## MOD Title: Levels Mod
## MOD Author: NightHawk < jon@asylumsw.com > (Jon Borzilleri) http://www.asylumsw.com
## MOD Description: Adds HP/MP/EXP/Level values for a user in Topic view and Profile view.
## MOD Version: 0.9.2 beta
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: 4
## includes/usercp_viewprofile.php
## viewtopic.php
## templates/subSilver/viewtopic_body.php
## templates/subSilver/profile_view_body.php
##
## Included Files:
## level_mod.php
## level_mod_images/exp_bar_fil.gif
## level_mod_images/exp_bar_filexp_bar_fil_end.gif
## level_mod_images/exp_bar_filexp_bar_left.gif
## level_mod_images/exp_bar_filhp_bar_fil.gif
## level_mod_images/exp_bar_filhp_bar_fil_end.gif
## level_mod_images/exp_bar_filhp_bar_left.gif
## level_mod_images/exp_bar_fillevel_bar_emp.gif
## level_mod_images/exp_bar_fillevel_bar_right.gif
## level_mod_images/exp_bar_filmp_bar_fil.gif
## level_mod_images/exp_bar_filmp_bar_fil_end.gif
## level_mod_images/exp_bar_filmp_bar_left.gif
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## Remember to upload the folder of images into you're the image folder within the template folder.
## The path to these images should be:
## ./templates/subSilver/images/level_mod_images/
##
## This mod uses the original backbone developed by me, combined with some of Antony's code and ideas.
## The formulas for how HP and MP have been significantly changed to represnt distinctly different things.
##
## HP: This is a representation of how much "substane" a user posts. It compares the number of characters they have posted with the number of posts they have made recently. Thus, the longer a user's posts are, the more HP they will have. A user who consistently makes very short posts will have a low HP, while a user who consistently posts very large posts will have high HP.
## MP: This is a representation of how often the user has posted recently. It looks at the number of posts made recently. Each post a user has made within that time period costs the user MP. Thus, a user who has posted a large ammount recently will use more MP than someone who has not.
##
## As a comparison, HP is a measure of "Quality" where MP is a measure of "Quantity." Most variables can be edited so for busier or lighter boards, to normalize these values.
##
## Additional Credits:
## Thanks to Antony and Mac, and others for keeping up with this for me.
##
##
##############################################################
## MOD History:
##
## 2003-6-29 - Version 0.9.2 beta
## - Consolidated sql statements into a single query for efficiancy
## 2003-6-15 - Version 0.9.1 beta
## - Fixed a minor bug that was causing Exp to not update correctly.
##Ê Ê2003-6-15 - Version 0.9.0 beta
##Ê ÊÊ Ê- Revsision of initial mod, revised to use a separate file, and formatted to meet MOD standards.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------
#
copy level_mod.php to ./
copy level_mod_images to template/subSilver/images/
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#
$search = '<a href="' . $temp_url . '">' . $lang['Search_user_posts'] . '</a>';
#
#-----[ AFTER, ADD ]------------------------------------------
#
/* BEGIN LEVEL MOD */
include('level_mod.php');
/* END LEVEL MOD */
#
#-----[ FIND ]------------------------------------------
#
'U_SEARCH_USER' => append_sid("search.$phpEx?search_author=" . urlencode($profiledata['username'])),
#
#-----[ AFTER, ADD ]------------------------------------------
#
/* BEGIN LEVEL MOD */
'LEVEL' => $level_level,
'EXP' => $level_exp,
'EXP_WIDTH' => $level_exp_percent,
'EXP_EMPTY' => (100 - $level_exp_percent),
'HP' => $level_hp,
'HP_WIDTH' => $level_hp_percent,
'HP_EMPTY' => (100 - $level_hp_percent),
'MP' => $level_mp,
'MP_WIDTH' => $level_mp_percent,
'MP_EMPTY' => (100 - $level_mp_percent),
/* END LEVEL MOD */
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
/* BEGIN LEVEL MOD */
include('level_mod.php');
/* END LEVEL MOD */
#
#-----[ FIND ]------------------------------------------
#
'DELETE' => $delpost,
#
#-----[ AFTER, ADD ]------------------------------------------
#
/* BEGIN LEVEL MOD */
'LEVEL' => $level_level,
'EXP' => $level_exp,
'EXP_WIDTH' => $level_exp_percent,
'EXP_EMPTY' => (100 - $level_exp_percent),
'HP' => $level_hp,
'HP_WIDTH' => $level_hp_percent,
'HP_EMPTY' => (100 - $level_hp_percent),
'MP' => $level_mp,
'MP_WIDTH' => $level_mp_percent,
'MP_EMPTY' => (100 - $level_mp_percent),
/* END LEVEL MOD */
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_view_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_INTERESTS}:</span></td>
<td> <b><span class="gen">{INTERESTS}</span></b></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- [BEGIN LEVEL MOD] -->
<tr>
<td valign="top" align="right"><span class="gen">Level:</span></td>
<td><b><span class="gen">{LEVEL}</span></b></td>
</tr>
<tr>
<td> </td>
<td align="left">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="left"><span class="postdetails">EXP:</span></td>
<td align="right"><span class="postdetails"><b>{EXP}</b></span></td>
<td> </td>
</tr>
<tr>
<td colspan="2">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src="templates/subSilver/images/level_mod_images/exp_bar_left.gif" width="2" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/exp_bar_fil.gif" width="{EXP_WIDTH}" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/exp_bar_fil_end.gif" width="1" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/level_bar_emp.gif" width="{EXP_EMPTY}" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/level_bar_right.gif" width="1" height="12" /></td>
</tr>
</table>
</td>
<td align="left"><span class="gen"> {EXP_WIDTH}%</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td>
<td align="left">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="left"><span class="postdetails">HP:</span></td>
<td align="right"><span class="postdetails"><b>{HP}</b></span></td>
<td> </td>
</tr>
<tr>
<td colspan="2">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src="templates/subSilver/images/level_mod_images/hp_bar_left.gif" width="2" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/hp_bar_fil.gif" width="{HP_WIDTH}" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/hp_bar_fil_end.gif" width="1" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/level_bar_emp.gif" width="{HP_EMPTY}" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/level_bar_right.gif" width="1" height="12" /></td>
</tr>
</table>
</td>
<td align="left"><span class="gen"> {HP_WIDTH}%</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td>
<td align="left">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="left"><span class="postdetails">MP:</span></td>
<td align="right"><span class="postdetails"><b>{MP}</b></span></td>
<td> </td>
</tr>
<tr>
<td colspan="2">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src="templates/subSilver/images/level_mod_images/mp_bar_left.gif" width="2" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/mp_bar_fil.gif" width="{MP_WIDTH}" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/mp_bar_fil_end.gif" width="1" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/level_bar_emp.gif" width="{MP_EMPTY}" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/level_bar_right.gif" width="1" height="12" /></td>
</tr>
</table>
</td>
<td align="left"><span class="gen"> {MP_WIDTH}%</span></td>
</tr>
</table>
</td>
</tr>
<!-- [END LEVEL MOD] -->
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ IN-LINE FIND ]------------------------------------------
#
{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}</span><br />
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
<!-- [BEGIN LEVEL MOD] -->
<span class="postdetails">
Level: <b>{postrow.LEVEL}</b>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="left"><span class="postdetails">EXP:</span></td>
<td align="right"><span class="postdetails"><b>{postrow.EXP}</b></span></td>
<td> </td>
</tr>
<tr>
<td colspan="2">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src="templates/subSilver/images/level_mod_images/exp_bar_left.gif" width="2" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/exp_bar_fil.gif" width="{postrow.EXP_WIDTH}" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/exp_bar_fil_end.gif" width="1" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/level_bar_emp.gif" width="{postrow.EXP_EMPTY}" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/level_bar_right.gif" width="1" height="12" /></td>
</tr>
</table>
</td>
<td align="left"><span class="gen"> {postrow.EXP_WIDTH}%</span></td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="left"><span class="postdetails">HP:</span></td>
<td align="right"><span class="postdetails"><b>{postrow.HP}</b></span></td>
<td> </td>
</tr>
<tr>
<td colspan="2">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src="templates/subSilver/images/level_mod_images/hp_bar_left.gif" width="2" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/hp_bar_fil.gif" width="{postrow.HP_WIDTH}" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/hp_bar_fil_end.gif" width="1" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/level_bar_emp.gif" width="{postrow.HP_EMPTY}" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/level_bar_right.gif" width="1" height="12" /></td>
</tr>
</table>
</td>
<td align="left"><span class="gen"> {postrow.HP_WIDTH}%</span></td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="left"><span class="postdetails">MP:</span></td>
<td align="right"><span class="postdetails"><b>{postrow.MP}</b></span></td>
<td> </td>
</tr>
<tr>
<td colspan="2">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src="templates/subSilver/images/level_mod_images/mp_bar_left.gif" width="2" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/mp_bar_fil.gif" width="{postrow.MP_WIDTH}" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/mp_bar_fil_end.gif" width="1" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/level_bar_emp.gif" width="{postrow.MP_EMPTY}" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod_images/level_bar_right.gif" width="1" height="12" /></td>
</tr>
</table>
</td>
<td align="left"><span class="gen"> {postrow.MP_WIDTH}%</span></td>
</tr>
</table>
</span>
<!-- [END LEVEL MOD] -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM