|
| Re: Customizing login [message #3650 is a reply to message #3649] |
Sun, 14 February 2010 15:08   |
|
open include/functions.php and find
function loginrequired($level, $guickclose = false) {
global $user, $gfx_check, $autoscrape;
and add after
echo "<meta http-equiv=\"refresh\" content=\"0;url=login.php?returnto=" . urlencode($_SERVER["REQUEST_URI"]).">";
include'footer.php';
then add to root
login.php
<?php
/*
*----------------------------phpMyBitTorrent V 2.0-beta4-----------------------*
*--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---*
*-------------- Created By Antonio Anzivino (aka DJ Echelon) --------------*
*------------- http://www.p2pmania.it -------------*
*------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------*
*------------- http://www.bittorrent.com -------------*
*------------------------------------------------------------------------------*
*------------------------------------------------------------------------------*
*-- This program is free software; you can redistribute it and/or modify --*
*-- it under the terms of the GNU General Public License as published by --*
*-- the Free Software Foundation; either version 2 of the License, or --*
*-- (at your option) any later version. --*
*-- --*
*-- This program is distributed in the hope that it will be useful, --*
*-- but WITHOUT ANY WARRANTY; without even the implied warranty of --*
*-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --*
*-- GNU General Public License for more details. --*
*-- --*
*-- You should have received a copy of the GNU General Public License --*
*-- along with this program; if not, write to the Free Software --*
*-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --*
*-- --*
*------------------------------------------------------------------------------*
*------ ©2005 phpMyBitTorrent Development Team ------*
*----------- http://phpmybittorrent.com -----------*
*------------------------------------------------------------------------------*
*----------------- Sunday, September 14, 2008 9:05 PM ---------------------*
*/
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"<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";
$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";
}
echo "</head>";
echo "<body>\n";
$returnto="";
if (!empty($_GET["returnto"]) OR !$returnto =="") {
$returnto = "?returnto=".$_GET["returnto"];
}
$loginbox = "<br><br><form method=\"POST\" action=\"user.php".$returnto."\">\n<input type=\"hidden\" name=\"op\" value=\"login\" />\n
<p align=\"center\">"._btusername."<br><input type=\"text\" name=\"username\" size=\"20\" />\n<br>"._btpassword."<br><input type=\"password\" name=\"password\" size=\"20\" />\n<br>Remember Me<br><input type=\"checkbox\" name=\"remember\" value=\"yes\" /></p>\n";
if ($gfx_check) {
$rnd_code = strtoupper(RandomAlpha(5));
$loginbox .= "<p align=\"center\">"._btsecuritycode."<br><img src=\"gfxgen.php?code=".base64_encode($rnd_code)."\" alt=\"Security Code\"><br>\n<input type=\"text\" name=\"gfxcode\" size=\"10\" maxlength=\"6\">";
$loginbox .= "<input type=\"hidden\" name=\"gfxcheck\" value=\"".md5($rnd_code)."\">\n\n";
}
$loginbox .= "<p><input type=\"submit\" value=\""._btlogin."\" /></p></form>\n";
$loginbox .= "<a href=\"user.php?op=lostpassword\">"._btlostpassword."</a></p>\n\n";
OpenTable(_btlogin);
OpenErrTable('login');
echo "<p>"._btdenuser."</p>";
echo $loginbox;
CloseErrTable();
CloseTable();
echo '</body>
</html>';
?>
You can customize it to how you want it
[Updated on: Fri, 04 June 2010 00:25] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: Customizing login [message #4904 is a reply to message #4902] |
Mon, 20 September 2010 14:29   |
|
erm well, i guess, if you wanted to change the language, it would be in language/ and if your using English, i guess it would be english.php
Edited:. i have officially given up on helping you mate, your site is once again a big mess.


For cheap, fast, reliable webhosting, please click here on my affiliate link!
[Updated on: Mon, 20 September 2010 14:32] Report message to a moderator
|
|
|
|