Bravo List
Register
Go Back   Bravo List > Development > Tracker MODS > PMBT
Reply
  #1  
Old 08-02-10, 00:27
wolfman's Avatar
Member
 
Join Date: Aug 2009
P2P
Posts: 66
Activity Longevity
2/20 5/20
Today Posts
0/11 sssssss66
Default Tiger Login
preview attached

setup
1.open up admin panel
. go to setings
. set private tracker as "on"

2. open themes/pmbt/main.php
. look for
PHP Code:
if($pivate_mode AND !$user->user AND !newuserpage($_SERVER["PHP_SELF"])){ 
 
loginrequired("user"false); 
include
'footer.php'

.replace with
PHP Code:
if($pivate_mode AND !$user->user AND !newuserpage($_SERVER["PHP_SELF"]))
{
echo 
"<meta http-equiv=\"refresh\" content=\";url=login.php?op=ienakt\">";
die();

3. open themes/pmbt/style.css
. add
Code:
/* ********** [ LOGIN ] ********** */
.gridRow1 {
padding:8px 24px 8px 20px;
}
.headerMenuRow1 {
background:url(pics/login1.png) no-repeat top center;
height:50px;
font: bold 14px Trebuchet MS, tahoma, arial, sans-serif;
color: #333333;
text-align:center;
}
.gridTable {
background:url(pics/login2.png) repeat-y;
}
.headerMenuRow1 a:link, .headerMenuRow1 a:active, .headerMenuRow1 a:visited {
font: bold 14px Trebuchet MS, tahoma, arial, sans-serif;
color: #444444; 
text-decoration: underline;
}
.gridFooter {
position:absolute;
margin-top:8px;
}
.gridFooter2 {
height:43px;
background:url(pics/login3.png) no-repeat bottom center;
}
/* ********** [ ENDS ] ********** */
4. create file called login.php
. copy falowing in it
PHP Code:
<?php
if (defined('IN_PMBT'))die ("You can't include this file");
define('IN_PMBT'true);
require_once(
"include/config.php");
echo 
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
echo 
"<html>\n";
echo 
"<head>\n";
echo 
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n";
echo
"<script type=\"text/javascript\" language=\"JavaScript\" src=\"$siteurl/bbcode.js\"></script>";
echo 
"<!--[if lt IE 7]>
<script defer type=\"text/javascript\" src=\"$siteurl/pngfix.js\"></script><![endif]-->"
;
echo 
"<title>".$sitename."</title>\n";
if (
is_readable("themes/$theme/favicon.ico")) { 
echo 
"<link REL=\"shortcut icon\" HREF=\"$siteurl/themes/".$theme."/favicon.ico\" TYPE=\"image/x-icon\">\n"
}
$reason "";
if (
is_banned($user$reason)) {
echo 
"<meta http-equiv=\"refresh\" content=\"0;url=ban.php?reson=".urlencode($reason)."\">";        die();
}
if (
is_readable("themes/$theme/style.css")) {
echo 
"<link rel=\"StyleSheet\" href=\"$siteurl/themes/$theme/style.css\" type=\"text/css\">\n<script type=\"text/javascript\" src=\"$siteurl/global.js\"></script>\n";
}
$logintop "<center><img src=\"themes/$theme/pics/logosmall.png\"></center>
<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"> 
<tr> 
<td class=\"headerMenuRow1\" width=\"100%\" colspan=\"2\" nowrap>Neesi reģistrejies spied <a href=\"login.php?op=jauns_lietotajs\">šeit</a><br><a href=\"login.php?op=nozaudeta_parole\">Aizmirsi paroli ?</a> 
</td> 
</tr> 
</table> 
<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"> 
<tr> 
<td width=\"100%\" valign=\"top\"> 
<table width=\"410\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin:0px auto\"><tr><td> 
</td></tr></table> 
<table cellpadding=\"0\" cellspacing=\"1\" width=\"410\" class=\"gridTable\" style=\"margin:0px auto\">"
;
$loginbottom "</table></td></tr><td class=\"gridFooter2\" width=\"100%\"></td></table>";
echo
"</head><body>";
switch (
$op) { 
case 
"ienakt": {
echo 
"$logintop
<form method=\"POST\" action=\"user.php"
.$returnto."\">
<input type=\"hidden\" name=\"op\" value=\"login\" />
<tr> 
<td class=\"gridRow1\" nowrap>Niks</td> 
<td width=\"100%\" class=\"gridRow1\"><input class=\"textarea\" type=\"text\" name=\"username\" size=\"34\" /></td> 
</tr>

<tr> 
<td class=\"gridRow1\" nowrap>Parole</td> 
<td width=\"100%\" class=\"gridRow1\"> 
<input class=\"textarea\" type=\"password\" name=\"password\" size=\"34\" /> 
</td> 
</tr>

<tr> 
<td class=\"gridFooter\" colspan=\"2\"> 
<center><input class=\"button\" type=\"submit\" value=\""
._btlogin."\" /></center> 
</td> 
</tr>
</form>$loginbottom\n"
;
break;
}
case 
"nozaudeta_parole": {
echo 
"$logintop
<form action=\"user.php?op=lostpassword\" method=\"POST\">
<tr> 
<td class=\"gridRow1\" nowrap>Niks</td> 
<td width=\"100%\" class=\"gridRow1\"><input class=\"textarea\" type=\"text\" name=\"username\" size=\"34\"></td> 
</tr>

<tr> 
<td class=\"gridRow1\" nowrap>Parole</td> 
<td width=\"100%\" class=\"gridRow1\"><input class=\"textarea\" type=\"password\" name=\"npasswd\" size=\"34\"> 
</td> 
</tr>

<tr> 
<td class=\"gridRow1\" nowrap>Velreiz</td> 
<td width=\"100%\" class=\"gridRow1\"><input class=\"textarea\" type=\"password\" name=\"cpasswd\" size=\"34\"> 
</td> 
</tr>"
;
if (
$gfx_check) { 
$rnd_code strtoupper(RandomAlpha(5)); 
echo 
"<tr><td class=\"gridRow1\" nowrap>Kods</td>";
echo 
"<td width=\"100%\" class=\"gridRow1\"><img src=\"gfxgen.php?code=".base64_encode($rnd_code)."\"></td></tr>";
echo 
"<tr><td class=\"gridRow1\" nowrap>Ieraksti</td>"
echo 
"<td width=\"100%\" class=\"gridRow1\"><input type=\"text\" name=\"gfxcode\" size=\"10\" maxlength=\"6\"><input type=\"hidden\" name=\"gfxcheck\" value=\"".md5($rnd_code)."\"></td></tr>\n\n\n\n"
}
echo
"
<tr> 
<td class=\"gridFooter\" colspan=\"2\"> 
<center><input class=\"button\" type=\"submit\" name=\"postback\" value=\"OK\"><input class=\"button\" type=\"reset\" value=\"Atcelt\"></center> 
</td> 
</tr>
</form>$loginbottom\n"
;
break;
}
case 
"jauns_lietotajs": {
echo 
"$logintop
<form method=\"POST\" action=\"user.php\"><input type=\"hidden\" name=\"op\" value=\"takeregister\">"
;
if (
$disclaimer_check) { 
$disclaimer "";
echo 
"<tr> 
<td class=\"gridRow1\" nowrap>Izlasi</td>"

if (
is_readable("disclaimer/".$language.".txt")) { 
$fp fopen("disclaimer/".$language.".txt","r"); 
while (!
feof($fp)) $disclaimer.= fread($fp,1000);
} else { 
$fp fopen("disclaimer/english.txt","r"); 
while (!
feof($fp)) $disclaimer.= fread($fp,1000); 

fclose($fp); 
$search = Array("*MYBT*","*URL*","*EMAIL*"); 
$replace = Array($sitename,$siteurl,spellmail($admin_email)); 
echo 
"<td width=\"100%\" class=\"gridRow1\">"
echo 
str_replace($search,$replace,$disclaimer); 
echo 
"</td></tr>"
echo 
"<tr> 
<td class=\"gridRow1\" nowrap>Piekrītu</td><td width=\"100%\" class=\"gridRow1\"><input type=\"radio\" value=\"yes\" name=\"disclaimer\"></td></tr>"

echo
"<tr> 
<td class=\"gridRow1\" nowrap>Nepiekrītu</td><td width=\"100%\" class=\"gridRow1\"><input type=\"radio\" name=\"disclaimer\" value=\"no\" checked></td></tr>"

}
echo 
"
<tr> 
<td class=\"gridRow1\" nowrap>Niks</td> 
<td width=\"100%\" class=\"gridRow1\"><input class=\"textarea\" type=\"text\" name=\"username\" size=\"34\"></td> 
</tr>

<tr> 
<td class=\"gridRow1\" nowrap>E-pasts</td> 
<td width=\"100%\" class=\"gridRow1\"><input class=\"textarea\" type=\"text\" name=\"email\"size=\"34\"></td> 
</tr>

<tr> 
<td class=\"gridRow1\" nowrap>Parole</td> 
<td width=\"100%\" class=\"gridRow1\"><input class=\"textarea\" type=\"password\" name=\"password\" size=\"34\"> 
</td> 
</tr>

<tr> 
<td class=\"gridRow1\" nowrap>Velreiz</td> 
<td width=\"100%\" class=\"gridRow1\"><input class=\"textarea\" type=\"password\" name=\"cpassword\" size=\"34\"> 
</td> 
</tr>"
;
if (
$gfx_check) { 
$rnd_code strtoupper(RandomAlpha(5)); 
echo 
"<tr><td class=\"gridRow1\" nowrap>Kods</td>";
echo 
"<td width=\"100%\" class=\"gridRow1\"><img src=\"gfxgen.php?code=".base64_encode($rnd_code)."\"></td></tr>";
echo 
"<tr><td class=\"gridRow1\" nowrap>Ieraksti</td>"
echo 
"<td width=\"100%\" class=\"gridRow1\"><input type=\"text\" name=\"gfxcode\" size=\"10\" maxlength=\"6\"><input type=\"hidden\" name=\"gfxcheck\" value=\"".md5($rnd_code)."\"></td></tr>\n\n\n\n"
}
echo
"
<tr> 
<td class=\"gridFooter\" colspan=\"2\"> 
<center><input class=\"button\" type=\"submit\" value=\"OK\"><input class=\"button\" type=\"reset\" value=\"Atcelt\"></center> 
</td> 
</tr>
</form>$loginbottom\n"
;
break;
}
case 
"logoutconfirm": {
echo 
"<meta http-equiv=\"refresh\" content=\"3;url=index.php\">";
echo 
"$logintop<tr> 
<td class=\"gridRow1\" nowrap>Iziet</td>
<td width=\"100%\" class=\"gridRow1\">Tiksimies vēlāk ...</td> 
</tr>$loginbottom\n"
;
break;
}
case 
"loginfailure": {
echo 
"<meta http-equiv=\"refresh\" content=\"3;url=index.php\">"
echo
"$logintop<tr> 
<td class=\"gridRow1\" nowrap>"
._btlogin."</td>
<td width=\"100%\" class=\"gridRow1\">"
._btuserpasswrong."</td> 
</tr> 
$loginbottom\n"

break; 
}
case 
"notactive": {
echo 
"<meta http-equiv=\"refresh\" content=\"3;url=index.php\">"
echo
"$logintop<tr> 
<td class=\"gridRow1\" nowrap>"
._btlogin."</td>
<td width=\"100%\" class=\"gridRow1\">"
._btuserinactive."</td> 
</tr> 
$loginbottom\n"

break; 
}
}
echo 
'</body></html>';
?>
.save it
.move it to main location of ur source

5. translate login.php it's a bit latvian but shoudn't be hard
. if it is coding is not for u and u shoud ask someone to do it for u

6. download attached archive
and upload pictures from it to themes/pmbt/pics/

7. go to ur page
8. report errors
9. say thanks ore die
10 . realy say thanks

Click image for larger version

Name:	Ekranattels.png
Views:	35
Size:	231.2 KB
ID:	2165
Attached Files
File Type: zip must_be_in_pics.zip (75.0 KB, 7 views)
Reply With Quote
The Following 3 Users Say Thank You to wolfman For This Useful Post:
chanserv (09-02-10), Fynnon (08-02-10), joeroberts (08-02-10)
  #2  
Old 08-02-10, 00:29
joeroberts's Avatar
phpMyBitTorrent developer
 
Join Date: Jan 2008
United States
Posts: 876
Activity Longevity
6/20 19/20
Today Posts
1/11 ssssss876
Default
that looks good you going to create a theme to match?
looks Like I well need to edit hard coded words to use language files Maybe l8tr
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in phpMyBitTorrent forum
Reply With Quote
  #3  
Old 08-02-10, 00:31
wolfman's Avatar
Member
 
Join Date: Aug 2009
P2P
Posts: 66
Activity Longevity
2/20 5/20
Today Posts
0/11 sssssss66
Default
Quote:
Originally Posted by joeroberts View Post
that looks good you going to create a theme to match?
themes is mostly done but will req some moding so i'm optimizing it
Reply With Quote
  #4  
Old 09-02-10, 01:10
chanserv's Avatar
Senior Member
 
Join Date: Jan 2010
P2P
Posts: 15
Activity Longevity
1/20 2/20
Today Posts
0/11 sssssss15
Default
Having done all these steps index.php display only the banner!.
Reply With Quote
Sponsored Links
Advertisement
  #5  
Old 09-02-10, 01:11
joeroberts's Avatar
phpMyBitTorrent developer
 
Join Date: Jan 2008
United States
Posts: 876
Activity Longevity
6/20 19/20
Today Posts
1/11 ssssss876
Default
change
PHP Code:
echo "<meta http-equiv=\"refresh\" content=\";url=login.php?op=ienakt\">"
to
PHP Code:
echo "<meta http-equiv=\"refresh\" content=\"0;url=login.php?op=ienakt\">"
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in phpMyBitTorrent forum
Reply With Quote
  #6  
Old 09-02-10, 01:22
chanserv's Avatar
Senior Member
 
Join Date: Jan 2010
P2P
Posts: 15
Activity Longevity
1/20 2/20
Today Posts
0/11 sssssss15
Default
after changing this line
Code:
echo "<meta http-equiv=\"refresh\" content=\";url=login.php?op=ienakt\">";
i got this error:

Click the image to open in full size.
Reply With Quote
  #7  
Old 09-02-10, 01:27
wolfman's Avatar
Member
 
Join Date: Aug 2009
P2P
Posts: 66
Activity Longevity
2/20 5/20
Today Posts
0/11 sssssss66
Default
lol
change call from orginal to header location sincu ur using chrome what is like IE
Reply With Quote
  #8  
Old 09-02-10, 01:28
joeroberts's Avatar
phpMyBitTorrent developer
 
Join Date: Jan 2008
United States
Posts: 876
Activity Longevity
6/20 19/20
Today Posts
1/11 ssssss876
Default
turn on allow short tags in wamp/xamp php settings
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in phpMyBitTorrent forum
Reply With Quote
  #9  
Old 09-02-10, 01:40
chanserv's Avatar
Senior Member
 
Join Date: Jan 2010
P2P
Posts: 15
Activity Longevity
1/20 2/20
Today Posts
0/11 sssssss15
Default
Quote:
Originally Posted by joeroberts View Post
turn on allow short tags in wamp/xamp php settings
the problem still exists even with IE and FireFox
Reply With Quote
  #10  
Old 09-02-10, 01:44
wolfman's Avatar
Member
 
Join Date: Aug 2009
P2P
Posts: 66
Activity Longevity
2/20 5/20
Today Posts
0/11 sssssss66
Default
try this

PHP Code:
if($pivate_mode AND !$user->user AND !newuserpage($_SERVER["PHP_SELF"]))
{
echo 
"<meta http-equiv=\"refresh\" content=\";url=login.php?op=ienakt\">";
die();

if don't work deleate these line and look for
PHP Code:
function newuserpage($page)
{
if(
preg_match("/user.php/",$page))return true;
if(
preg_match("/takeconfirminvite.php/",$page))return true;
if(
preg_match("/confirminvite.php/",$page))return true;
return 
false;

and add lines again right UNDER these lines
Reply With Quote
Reply

Tags
login , tiger

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:59. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Advertisement System V2.6 By   Branden