[MOD] Username or E-Mail Address Login / Girişte Mail Adresi

EftelyA

Yaşayan Forum Efsanesi
22 Kas 2007
9,097
59
EsEs
Açıklama : Girişte Kullanıcı adı yada mail adresi ( üyelikte kullanılan ) ile giriş izni..



##############################################################
## MOD Title: Username Or Email Login Mod
## MOD Author: Johnpg82 < [email protected] > https://tik.lat/wysJx Code changes by bonelifer and *=Matt=* from Phpbb.com
## MOD Description: This mod allows your users to login using their email address or username
## MOD Version: 1.0.3
##
## Installation Level: Easy
## Installation Time: 3 minutes
## Files To Edit: login.php
## includes/page_header.php
## templates/subSilver/login_body.tpl
## language/lang_english/lang_main.php
##
##############################################################
## Author Notes:
##
## Copyright © Johnpg82, 2006-2006
##
## For any concerns please contact me at https://tik.lat/HdMvf
##
##############################################################
## This MOD is released under the GPL License: https://tik.lat/z12dM GNU General Public License v2
## Intellectual Property is retained by the MOD Author(s) listed above
##############################################################
## MOD History:
##
## v1.0.3
## - Johnpg82 removed user_email select from the query as it was not necesary.
##
##
## v1.0.2
## - *=Matt=* made a few changes here is a direct quote See the "'" that makes the php die "Parse error: syntax error, unexpected '=' in ***" so what I did to make this work is" This was a mistake by bonelifter when doing code changes in 1.0.2
##
## v1.0.1
## - bonelifer made a few changes for better use with easymod
##
## v1.0.0
## - Initial Release
##
##############################################################
##
## Demo/Discussion Forum: https://tik.lat/45AJx or https://tik.lat/01Ybj
##
##
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
login.php
#
#-----[ FIND ]------------------------------------------
#
WHERE username = '" . str_replace("\\'", "''", $username) . "'";

#
#-----[ IN-LINE FIND ]------------------------------------------
#
$username) . "'"

#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
$username) . "' or user_email = '" . str_replace("\\'", "''", $username) . "'"

#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
'L_USERNAME' => $lang['Username'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_USERNAME_EMAIL' => $lang['Username_Email'],
#
#-----[ OPEN ]------------------------------------------
#
language/lang_turkish/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Username'] = 'Kullanıcı Adı';
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['Username_Email'] = 'Kullanıcı Adı yada E-mail Adresi';
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/login_body.tpl
#
#-----[ FIND ]------------------------------------------
#
{L_USERNAME}
#
#-----[ REPLACE WITH ]------------------------------------------
#
{L_USERNAME_EMAIL}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
 
Üst

Turkhackteam.org internet sitesi 5651 sayılı kanun’un 2. maddesinin 1. fıkrasının m) bendi ile aynı kanunun 5. maddesi kapsamında "Yer Sağlayıcı" konumundadır. İçerikler ön onay olmaksızın tamamen kullanıcılar tarafından oluşturulmaktadır. Turkhackteam.org; Yer sağlayıcı olarak, kullanıcılar tarafından oluşturulan içeriği ya da hukuka aykırı paylaşımı kontrol etmekle ya da araştırmakla yükümlü değildir. Türkhackteam saldırı timleri Türk sitelerine hiçbir zararlı faaliyette bulunmaz. Türkhackteam üyelerinin yaptığı bireysel hack faaliyetlerinden Türkhackteam sorumlu değildir. Sitelerinize Türkhackteam ismi kullanılarak hack faaliyetinde bulunulursa, site-sunucu erişim loglarından bu faaliyeti gerçekleştiren ip adresini tespit edip diğer kanıtlarla birlikte savcılığa suç duyurusunda bulununuz.