Seditio ve Ldu hakkında sınırsız arama yapın
 
 
> 1 <

Etiketler: farklı leetlogin

Author Message

sweet_zero

Members


Online status

38 posts

Location: Turkey
Occupation:
Age:

#5816   2007-08-09 19:18 GMT      



bu şekilde leet login eklentisini nasıl yapabilirim... aradım ama bulamadım... yardımcı olursanız sevinirim...

babakondaa

Members


Online status

45 posts
http://maxhack.us
Pagerank: 3

Location: Turkey
Occupation:
Age:

#5819   2007-08-09 20:48 GMT      
Code:
<?PHP

/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net

[BEGIN_SED]
File=plugins/leetlogin/leetlogin.php
Version=101
Updated=2006-apr-09
Type=Plugin
Author=Hodges
Description=
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=leetlogin
Part=main
File=leetlogin
Hooks=index.tags
Tags=index.tpl:{PLUGIN_LEETLOGIN}
Minlevel=0
Order=10
[END_SED_EXTPLUGIN]

==================== */

if (!defined('SED_CODE')) { sed_diefatal('Wrong URL.'); }

require("plugins/leetlogin/lang/leetlogin.".$usr['lang'].".lang.php");

// Retrive avatar from user
$avatar = sed_sql_query("SELECT user_avatar FROM $db_users WHERE user_id='".$usr['id']."'");
$avatar = sed_sql_fetcharray($avatar);
$el_avatar = stripslashes($avatar["user_avatar"]);
// Count total new private messages from user
$npmessages = sed_sql_query("SELECT COUNT(*) FROM $db_pm WHERE pm_touserid='".$usr['id']."' AND pm_state=0");
$el_npmessages = sed_sql_result($npmessages,0,"COUNT(*)");
// Count total old private messages from user
$olmessages = sed_sql_query("SELECT COUNT(*) FROM $db_pm WHERE pm_touserid='".$usr['id']."' AND pm_state=1");
$el_olmessages = sed_sql_result($olmessages,0,"COUNT(*)");
// Count total archived private messages from user
$apmessages = sed_sql_query("SELECT COUNT(*) FROM $db_pm WHERE pm_touserid='".$usr['id']."' AND pm_state=2");
$el_apmessages = sed_sql_result($apmessages,0,"COUNT(*)");

if($usr['id']>0)
{
if ($el_avatar == "")
{
$el_avatar = $cfg['plugin']['leetlogin']['avatar2'];
}
if ($usr['isadmin'])
{
$el_admin = "<img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"admin.php\">".$L['ll_administration']."</a><br />";
}
else
{
$el_admin = "";
}
if ($cfg['plugin']['leetlogin']['pmsound'] > 0)
{
if ($el_npmessages != 1)
{
$pluralmessage = $L['ll_plural'];
}
else
{
$pluralmessage = "";
}
$cookiepm = sed_import('LduPmTracking-usr'.$usr['id'],'C','NUM');
if ($el_npmessages > 0)
{
if ($el_npmessages > $cookiepm)
{
if ($cfg['plugin']['leetlogin']['pmsound'] == 2 || $cfg['plugin']['leetlogin']['pmsound'] == 3)
{
$pmmessage .= "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" style=\"width:1px;height:1px\"><param name=\"movie\" value=\"".$cfg['plugin']['leetlogin']['npmessages']."\"><param name=\"quality\" value=\"high\"><embed src=\"".$cfg['plugin']['leetlogin']['npmessages']."\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" style=\"width:1px;height:1px\"></embed></object>";
}
if ($cfg['plugin']['leetlogin']['pmsound'] == 1 || $cfg['plugin']['leetlogin']['pmsound'] == 3)
{
$pmmessage .= "
<script language=\"javascript\" type=\"text/javascript\">
<!--
function shownewpm()
{
viewpmconfirm = confirm('".$L['ll_msg1']." ".$el_npmessages." ".$L['ll_msg2'].$pluralmessage.".\\n".$L['ll_msg3']."');
if(viewpmconfirm == true)
{
window.location = \"pm.php\";
}
}
setTimeout('shownewpm()',1250);
-->
</script>";
}
}
}
setcookie("LduPmTracking-usr".$usr['id'], "$el_npmessages", time()+30000000);
}
$leetlogin = "<table style=\"border-collapse:collapse;text-align:center;width:98%\">";
if ($cfg['plugin']['leetlogin']['welcome'] == true)
{
$leetlogin .= "<tr><td style=\"text-align:center;padding:3px;\" colspan=\"2\"><div><strong>".$L['ll_welcome']."</strong> <a href=\"users.php?m=details&amp;id=".$usr['id']."\">".$usr['name']."!</a><br /></div></td></tr>";
}
else
{
$leetlogin .= "";
}
if ($cfg['plugin']['leetlogin']['avatar'] == true)
{
$leetlogin .= "<tr>";
$leetlogin .= "<td style=\"text-align:center;\"><a href=\"users.php?m=profile&amp;a=avatarchoose&amp;".sed_xg()."#list\"><img src=\"".$el_avatar."\" alt=\"\" /></a></td>";
$leetlogin .= "<tr>";
$leetlogin .= "<td style=\"text-align:left;width:100%;padding:0px;\"><div style=\"text-align:left;\">".$el_admin."<img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"pm.php\">".$L['ll_inbox']."</a> (<strong>".$el_npmessages."</strong>)/".$el_olmessages."/".$el_apmessages."".$pmmessage."<br /><img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"users.php?m=profile\">".$L['ll_profile']."</a><br /><img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"page.php?m=add&c=files\">".$lc_dosya."</a><br /><img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"users.php?m=logout&amp;".sed_xg()."\">".$L['ll_logout']."</a></div></td>";
$leetlogin .= "</tr>";
}
else
{
$leetlogin .= "<tr>";
$leetlogin .= "<td style=\"width:100%;padding:0px;\"><div style=\"text-align:left;\">".$el_admin."<img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"pm.php\">".$L['ll_inbox']."</a> (<strong>".$el_npmessages."</strong>)/".$el_olmessages."/".$el_apmessages."".$pmmessage."<br /><img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"users.php?m=profile\">".$L['ll_profile']."</a><br /><img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"page.php?m=add&c=files\">".$lc_dosya."</a><br /><img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"users.php?m=logout&amp;".sed_xg()."\">".$L['ll_logout']."</a></div></td>";
$leetlogin .= "</tr>";
}
$leetlogin .= "</table>";
}
else
{
$leetlogin .= "<table style=\"border-collapse:collapse;text-align:center;width:98%\">";
if ($cfg['plugin']['leetlogin']['ynlin'] == true)
{
$leetlogin .= "<tr><td style=\"text-align:center\" colspan=\"2\"><div><strong>".$L['ll_ynlin']."</strong><br /></div></td></tr>";
}
else
{
$leetlogin .= "";
}
    $leetlogin = "<br><table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"0\">";
$leetlogin .= "<form action=\"users.php?m=auth&amp;a=check\" method=\"post\" name=\"login\">";
$leetlogin .= "<tr><td><input name=\"rusername\" type=\"text\" value=\"Kullanıcı Adı\" style=\"border:1px solid gray;width: 94%;text-align: center;font-family: Arial;background-color: redfont-size: 10px; color: red\" onFocus=\"if(this.value=='Kullanıcı Adı')this.value=''\" onBlur=\"if(this.value=='')this.value='Kullanıcı Adı'\"></td></tr>";
$leetlogin .= "<tr><td><input name=\"rpassword\" type=\"password\" value=\"password\" style=\"border:1px solid gray;width: 94%;text-align: center;font-family: Arial;background-color: redfont-size: 10px; color: red\" onFocus=\"if(this.value=='password')this.value=''\" onBlur=\"if(this.value=='')this.value='password'\"></td></tr>";
$leetlogin .= "<tr><td><input name=\"Login\" type=\"submit\" value=\"Giriş\" style=\"border:1px solid gray; width: 96%;font-family: verdana; background-color: red font-size: 10px; font-weight:Bold; color: red\" onClick=\"this.value='(Bekleyiniz...)'\"></td></tr>";
$leetlogin .= "<tr><td><input name=\"Register\" type=\"button\" value=\"Üye  Ol\" style=\"border:1px solid gray; width: 96%;font-family: verdana; background-color: red font-size: 10px; font-weight:Bold; color: red\" onClick=\"parent.location='users.php?m=register';this.value='(Bekleyiniz...)'\">";
$leetlogin .= "<tr><td><input name=\"Pass\" type=\"button\" value=\"Şifremi Unuttum\" style=\"border:1px black; width: 96%;font-family: verdana; background-color: red font-size: 10px; font-weight:Bold; color: red\" onClick=\"parent.location='plug.php?e=passrecover';this.value='(Bekleyiniz...)'\">";
$leetlogin .= "</form>";
$leetlogin .= "</table>";
$leetlogin .= "<br><center><font color='00FF00'><b>MaxHack.Us Sınırsız İçeriğinden Yararlanmanız İçin Mutlaka Üye Olmanız Önerilir </b></center></font>";
}

$t-> assign(array(
"PLUGIN_LEETLOGIN" => $leetlogin
));

?>
Bu Kodları Leetlogin.php Olarak Kaydet.

sweet_zero

Members


Online status

38 posts

Location: Turkey
Occupation:
Age:

#5822   2007-08-10 00:34 GMT      

teşekkürler oldu ama ben bunu sol tarafa nasıl geçirebilirim header.tpl de çalışmıyor index.tpl de çalışıyor

babakondaa

Members


Online status

45 posts
http://maxhack.us
Pagerank: 3

Location: Turkey
Occupation:
Age:

#5828   2007-08-10 08:36 GMT      
Code:
<?PHP

/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net

[BEGIN_SED]
File=plugins/leetlogin/leetlogin.php
Version=101
Updated=2006-apr-09
Type=Plugin
Author=Hodges
Description=
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=leetlogin
Part=main
File=leetlogin
Hooks=header.tags
Tags=header.tpl:{PLUGIN_LEETLOGIN}
Minlevel=0
Order=10
[END_SED_EXTPLUGIN]

==================== */

if (!defined('SED_CODE')) { sed_diefatal('Wrong URL.'); }

require("plugins/leetlogin/lang/leetlogin.".$usr['lang'].".lang.php");

// Retrive avatar from user
$avatar = sed_sql_query("SELECT user_avatar FROM $db_users WHERE user_id='".$usr['id']."'");
$avatar = sed_sql_fetcharray($avatar);
$el_avatar = stripslashes($avatar["user_avatar"]);
// Count total new private messages from user
$npmessages = sed_sql_query("SELECT COUNT(*) FROM $db_pm WHERE pm_touserid='".$usr['id']."' AND pm_state=0");
$el_npmessages = sed_sql_result($npmessages,0,"COUNT(*)");
// Count total old private messages from user
$olmessages = sed_sql_query("SELECT COUNT(*) FROM $db_pm WHERE pm_touserid='".$usr['id']."' AND pm_state=1");
$el_olmessages = sed_sql_result($olmessages,0,"COUNT(*)");
// Count total archived private messages from user
$apmessages = sed_sql_query("SELECT COUNT(*) FROM $db_pm WHERE pm_touserid='".$usr['id']."' AND pm_state=2");
$el_apmessages = sed_sql_result($apmessages,0,"COUNT(*)");

if($usr['id']>0)
{
if ($el_avatar == "")
{
$el_avatar = $cfg['plugin']['leetlogin']['avatar2'];
}
if ($usr['isadmin'])
{
$el_admin = "<img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"admin.php\">".$L['ll_administration']."</a><br />";
}
else
{
$el_admin = "";
}
if ($cfg['plugin']['leetlogin']['pmsound'] > 0)
{
if ($el_npmessages != 1)
{
$pluralmessage = $L['ll_plural'];
}
else
{
$pluralmessage = "";
}
$cookiepm = sed_import('LduPmTracking-usr'.$usr['id'],'C','NUM');
if ($el_npmessages > 0)
{
if ($el_npmessages > $cookiepm)
{
if ($cfg['plugin']['leetlogin']['pmsound'] == 2 || $cfg['plugin']['leetlogin']['pmsound'] == 3)
{
$pmmessage .= "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" style=\"width:1px;height:1px\"><param name=\"movie\" value=\"".$cfg['plugin']['leetlogin']['npmessages']."\"><param name=\"quality\" value=\"high\"><embed src=\"".$cfg['plugin']['leetlogin']['npmessages']."\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" style=\"width:1px;height:1px\"></embed></object>";
}
if ($cfg['plugin']['leetlogin']['pmsound'] == 1 || $cfg['plugin']['leetlogin']['pmsound'] == 3)
{
$pmmessage .= "
<script language=\"javascript\" type=\"text/javascript\">
<!--
function shownewpm()
{
viewpmconfirm = confirm('".$L['ll_msg1']." ".$el_npmessages." ".$L['ll_msg2'].$pluralmessage.".\\n".$L['ll_msg3']."');
if(viewpmconfirm == true)
{
window.location = \"pm.php\";
}
}
setTimeout('shownewpm()',1250);
-->
</script>";
}
}
}
setcookie("LduPmTracking-usr".$usr['id'], "$el_npmessages", time()+30000000);
}
$leetlogin = "<table style=\"border-collapse:collapse;text-align:center;width:98%\">";
if ($cfg['plugin']['leetlogin']['welcome'] == true)
{
$leetlogin .= "<tr><td style=\"text-align:center;padding:3px;\" colspan=\"2\"><div><strong>".$L['ll_welcome']."</strong> <a href=\"users.php?m=details&amp;id=".$usr['id']."\">".$usr['name']."!</a><br /></div></td></tr>";
}
else
{
$leetlogin .= "";
}
if ($cfg['plugin']['leetlogin']['avatar'] == true)
{
$leetlogin .= "<tr>";
$leetlogin .= "<td style=\"text-align:center;\"><a href=\"users.php?m=profile&amp;a=avatarchoose&amp;".sed_xg()."#list\"><img src=\"".$el_avatar."\" alt=\"\" /></a></td>";
$leetlogin .= "<tr>";
$leetlogin .= "<td style=\"text-align:left;width:100%;padding:0px;\"><div style=\"text-align:left;\">".$el_admin."<img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"pm.php\">".$L['ll_inbox']."</a> (<strong>".$el_npmessages."</strong>)/".$el_olmessages."/".$el_apmessages."".$pmmessage."<br /><img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"users.php?m=profile\">".$L['ll_profile']."</a><br /><img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"page.php?m=add&c=files\">".$lc_dosya."</a><br /><img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"users.php?m=logout&amp;".sed_xg()."\">".$L['ll_logout']."</a></div></td>";
$leetlogin .= "</tr>";
}
else
{
$leetlogin .= "<tr>";
$leetlogin .= "<td style=\"width:100%;padding:0px;\"><div style=\"text-align:left;\">".$el_admin."<img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"pm.php\">".$L['ll_inbox']."</a> (<strong>".$el_npmessages."</strong>)/".$el_olmessages."/".$el_apmessages."".$pmmessage."<br /><img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"users.php?m=profile\">".$L['ll_profile']."</a><br /><img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"page.php?m=add&c=files\">".$lc_dosya."</a><br /><img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"users.php?m=logout&amp;".sed_xg()."\">".$L['ll_logout']."</a></div></td>";
$leetlogin .= "</tr>";
}
$leetlogin .= "</table>";
}
else
{
$leetlogin .= "<table style=\"border-collapse:collapse;text-align:center;width:98%\">";
if ($cfg['plugin']['leetlogin']['ynlin'] == true)
{
$leetlogin .= "<tr><td style=\"text-align:center\" colspan=\"2\"><div><strong>".$L['ll_ynlin']."</strong><br /></div></td></tr>";
}
else
{
$leetlogin .= "";
}
    $leetlogin = "<br><table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"0\">";
$leetlogin .= "<form action=\"users.php?m=auth&amp;a=check\" method=\"post\" name=\"login\">";
$leetlogin .= "<tr><td><input name=\"rusername\" type=\"text\" value=\"Kullanıcı Adı\" style=\"border:1px solid gray;width: 94%;text-align: center;font-family: Arial;background-color: redfont-size: 10px; color: red\" onFocus=\"if(this.value=='Kullanıcı Adı')this.value=''\" onBlur=\"if(this.value=='')this.value='Kullanıcı Adı'\"></td></tr>";
$leetlogin .= "<tr><td><input name=\"rpassword\" type=\"password\" value=\"password\" style=\"border:1px solid gray;width: 94%;text-align: center;font-family: Arial;background-color: redfont-size: 10px; color: red\" onFocus=\"if(this.value=='password')this.value=''\" onBlur=\"if(this.value=='')this.value='password'\"></td></tr>";
$leetlogin .= "<tr><td><input name=\"Login\" type=\"submit\" value=\"Giriş\" style=\"border:1px solid gray; width: 96%;font-family: verdana; background-color: red font-size: 10px; font-weight:Bold; color: red\" onClick=\"this.value='(Bekleyiniz...)'\"></td></tr>";
$leetlogin .= "<tr><td><input name=\"Register\" type=\"button\" value=\"Üye  Ol\" style=\"border:1px solid gray; width: 96%;font-family: verdana; background-color: red font-size: 10px; font-weight:Bold; color: red\" onClick=\"parent.location='users.php?m=register';this.value='(Bekleyiniz...)'\">";
$leetlogin .= "<tr><td><input name=\"Pass\" type=\"button\" value=\"Şifremi Unuttum\" style=\"border:1px black; width: 96%;font-family: verdana; background-color: red font-size: 10px; font-weight:Bold; color: red\" onClick=\"parent.location='plug.php?e=passrecover';this.value='(Bekleyiniz...)'\">";
$leetlogin .= "</form>";
$leetlogin .= "</table>";
$leetlogin .= "<br><center><font color='00FF00'><b>MaxHack.Us Sınırsız İçeriğinden Yararlanmanız İçin Mutlaka Üye Olmanız Önerilir </b></center></font>";
}

$t-> assign(array(
"PLUGIN_LEETLOGIN" => $leetlogin
));

?>
header.tplye Tagı Ekle Çalışır.{PLUGIN_LEETLOGIN}

mrT

Members


Online status

14 posts
http://Eglencez.Org
Pagerank: 0

Location: Sao Tome And Principe WwwWwww
Occupation:
Age:

#5838   2007-08-10 12:37 GMT      
index.tlp dekini nasıl yapicaz tamamen anlatirmısın ? anLamadim da. !

babakondaa

Members


Online status

45 posts
http://maxhack.us
Pagerank: 3

Location: Turkey
Occupation:
Age:

#5853   2007-08-10 17:57 GMT      
1.Yazdıgım Kod İndex.tpl İçin.
2.Yazdıgım Kod Header.tpl İçindir.

1.Yazdıgım Kodları Leetlogin.php olarak kaydet.Eskisi İle Değiş.İndex.tpl yede {PLUGIN_LEETLOGIN} bu kodu ekle...

sweet_zero

Members


Online status

38 posts

Location: Turkey
Occupation:
Age:

#5885   2007-08-11 16:29 GMT      
teşekkürler babakonda yaptım...
> 1 <

Benzer konular (Similar topics) #BETA

Keywords (beta):

Forum Arşiv (beta):

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [84] [85] [86] [87] [88] [89] [90] [91] [92] [93] [94] [95] [96] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111] [112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122] [123] [124] [125] [126] [127] [128] [129] [130] [131] [132] [133] [134] [135] [136] [137] [138] [139] [140] [141] [142] [143] [144] [145] [146] [147] [148] [149] [150] [151] [152] [153] [154] [155] [156] [157] [158] [159] [160] [161] [162] [163] [164] [165] [166] [167] [168] [169] [170] [171] [172] [173] [174] [175] [176] [177] [178] [179] [180] [181] [182] [183] [184] [185] [186] [187] [188] [189] [190] [191] [192] [193] [194] [195] [196] [197] [198] [199] [200] [201] [202] [203] [204] [205] [206] [207]