| Author | Message |
Sender
336 posts |
#4105 2007-07-01 23:56 GMT |
|
Merhaba, 1.si newuser die eklenti ekledim.Ama yeni eklenen kullanıcıların yanında » bu işaretin çıkmasını istiyorum. Yani, »[Bayrak][Kullanıcı Adı] şeklinde. Newuser.php, Code: <?PHP /* ==================== Seditio - Website engine Copyright Neocrome http://www.neocrome.net [BEGIN_SED] File=plugins/newusers.php Version=700 Updated=2004-mar-02 Type=Plugin.Index Author=JaZZmAn Description= [END_SED] [BEGIN_SED_EXTPLUGIN] Code=newusers Part=main File=newusers Hooks=index.tags Tags=index.tpl:{PLUGIN_NEWUSERS} Minlevel=0 Order=10 [END_SED_EXTPLUGIN] ==================== */ if ( !defined('SED_CODE') ) { die("Hacking attempt."); } $cfg_limit = 10; $sqltmp = sed_sql_query("SELECT user_name, user_id, user_country FROM $db_users ORDER by user_regdate DESC LIMIT $cfg_limit"); $plugin_newusers = "<table>"; while ($row = mysql_fetch_array($sqltmp)) { $user_country = (empty($row['user_country'])) ? "00" : $row['user_country']; $plugin_newusers .= "<tr>"; $plugin_newusers .= "<td>".sed_build_flag($user_country)." </td>"; $plugin_newusers .= "<td>".sed_build_user($row['user_id'], sed_cc(stripslashes($row['user_name'])))." </td>"; $plugin_newusers .= "</tr>"; } $plugin_newusers .= "</table>"; $t-> assign(array( "PLUGIN_NEWUSERS" => $plugin_newusers, )); ?> 2. sorun ise leetloginde avatarın kullanıcı panelinde çıkması istemiyorum.Login olduktan sonra, leetlogin.php, <?PHP /* ==================== [BEGIN_SED] File=plugins/leetlogin/leetlogin.php Version=121 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 } 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&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&a=avatarchoose&".sed_xg()."#list\"><img src=\"".$el_avatar."\" alt=\"\" /></a></td>"; $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=\"pfs.php\">".$L['ll_pfs']."</a><br /><img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"users.php?m=logout&".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=\"pfs.php\">".$L['ll_pfs']."</a><br /><img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"auth.php?m=logout&".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 .= "<tr><td style=\"text-align:left;\" colspan=\"2\"><form name=\"login\" action=\"users.php?m=auth&a=check\" method=\"post\"><div>".$L['ll_username']."<br /><input class=\"input\" type=\"text\" name=\"rusername\" size=\"20\" maxlength=\"32\"></input><br />"; $leetlogin .= "".$L['ll_password']."<br /><input class=\"input\" type=\"password\" name=\"rpassword\" size=\"20\" maxlength=\"32\"></input><br />"; $leetlogin .= "".$L['ll_rcookiettl']."<br />".$out['guest_cookiettl']."<br /></div>"; $leetlogin .= "<br /><div style=\"text-align:center;\"><input type=\"submit\" value=\"Submit\"></input></div></form>"; $leetlogin .= "<div style=\"text-align:center;\">[<a href=\"users.php?m=register\">".$L['ll_reg']."</a>] [<a href=\"plug.php?e=passrecover\">".$L['ll_lp']."</a>]</div></td></tr>"; $leetlogin .= "</table>"; } $t-> assign(array( "PLUGIN_LEETLOGIN" => $leetlogin )); ?> yardımlarınız için tşkler. |
|
Dvdbil
2,237 posts |
#4106 2007-07-02 00:34 GMT |
|
- newusers.php
Code: <?PHP /* ==================== Seditio - Website engine Copyright Neocrome http://www.neocrome.net [BEGIN_SED] File=plugins/newusers.php Version=700 Updated=2004-mar-02 Type=Plugin.Index Author=JaZZmAn Description= [END_SED] [BEGIN_SED_EXTPLUGIN] Code=newusers Part=main File=newusers Hooks=index.tags Tags=index.tpl:{PLUGIN_NEWUSERS} Minlevel=0 Order=10 [END_SED_EXTPLUGIN] ==================== */ if ( !defined('SED_CODE') ) { die("Hacking attempt."); } $cfg_limit = 10; $sqltmp = sed_sql_query("SELECT user_name, user_id, user_country FROM $db_users ORDER by user_regdate DESC LIMIT $cfg_limit"); $plugin_newusers = "<table>"; while ($row = mysql_fetch_array($sqltmp)) { $user_country = (empty($row['user_country'])) ? "00" : $row['user_country']; $plugin_newusers .= "<tr>"; $plugin_newusers .= "<td>» </td>"; $plugin_newusers .= "<td>".sed_build_flag($user_country)." </td>"; $plugin_newusers .= "<td>".sed_build_user($row['user_id'], sed_cc(stripslashes($row['user_name'])))." </td>"; $plugin_newusers .= "</tr>"; } $plugin_newusers .= "</table>"; $t-> assign(array( "PLUGIN_NEWUSERS" => $plugin_newusers, )); ?> - Leet login ayarlarından avatarı iptal edebiliyorsun diye hatırlıyorum.. |
|
|
Sitelerinize profesyonel anlamda hizmet verilir;
- Performans optimizasyonu, - Üst düzey güvenlik yamaları, - İsteğe bağlı eklentiler, - Her çeşit bot (program, video, resim, arsiv, haber), - Profesyonel görsel skin. Tüm tasarım, kodlamalar ve optimizasyon Neocrome referansı ile tarafımca hazırlanmakta. *************************İSTATİSTİKLER************************* Müşterim olan danışmanlığını yaptığım toplam kişi sayısı: 23 Sadece Eklenti hazırladığım kişi sayısı: 21 Uygulama yaptığım toplam site sayısı: 38 ------------------------------------------------- Müşterinin isteği doğrultusunda hazırladığım; - eklenti sayısı: 44 - skin sayısı: 8 - bot sayısı: 15 - özel güvenlik yamaları: 21 - Sql performans optimizasyonu: 13 (yüksek hitli siteler için) - Portal genel cache ve materyal optimizasyonu: 15 *************************************************************** |
|
Sender
336 posts |
#4107 2007-07-02 00:54 GMT |
|
»[Bayrak] [kullanıcıadı] şeklinde olamaz mı? Ayrı olunca güzel durmuyor :S Dvdbil avatar'ı üste alamazmıyız? yani [avatar] Admin Panel PMs 0/0/0 Profile File Space Logout şeklinde olcak :S |
|
Dvdbil
2,237 posts |
#4108 2007-07-02 01:07 GMT |
|
newusers.php
Code: <?PHP /* ==================== Seditio - Website engine Copyright Neocrome http://www.neocrome.net [BEGIN_SED] File=plugins/newusers.php Version=700 Updated=2004-mar-02 Type=Plugin.Index Author=JaZZmAn Description= [END_SED] [BEGIN_SED_EXTPLUGIN] Code=newusers Part=main File=newusers Hooks=index.tags Tags=index.tpl:{PLUGIN_NEWUSERS} Minlevel=0 Order=10 [END_SED_EXTPLUGIN] ==================== */ if ( !defined('SED_CODE') ) { die("Hacking attempt."); } $cfg_limit = 10; $sqltmp = sed_sql_query("SELECT user_name, user_id, user_country FROM $db_users ORDER by user_regdate DESC LIMIT $cfg_limit"); $plugin_newusers = "<table>"; while ($row = mysql_fetch_array($sqltmp)) { $user_country = (empty($row['user_country'])) ? "00" : $row['user_country']; $plugin_newusers .= "<tr>"; $plugin_newusers .= "<td>» ".sed_build_flag($user_country)." </td>"; $plugin_newusers .= "<td>".sed_build_user($row['user_id'], sed_cc(stripslashes($row['user_name'])))." </td>"; $plugin_newusers .= "</tr>"; } $plugin_newusers .= "</table>"; $t-> assign(array( "PLUGIN_NEWUSERS" => $plugin_newusers, )); ?> leetlogin.php Code: <?PHP /* ==================== [BEGIN_SED] File=plugins/leetlogin/leetlogin.php Version=121 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>"; $leetlogin .= "<td style=\"text-align:center;\"><a href=\"users.php?m=profile&a=avatarchoose&".sed_xg()."#list\"><img src=\"".$el_avatar."\" alt=\"\" /></a></td>"; $leetlogin .= "</tr>"; $leetlogin .= "<tr><td style=\"text-align:center;padding:3px;\" colspan=\"2\"><div><strong>".$L['ll_welcome']."</strong> <a href=\"users.php?m=details&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: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=\"pfs.php\">".$L['ll_pfs']."</a><br /><img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"users.php?m=logout&".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=\"pfs.php\">".$L['ll_pfs']."</a><br /><img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"auth.php?m=logout&".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 .= "<tr><td style=\"text-align:left;\" colspan=\"2\"><form name=\"login\" action=\"users.php?m=auth&a=check\" method=\"post\"><div>".$L['ll_username']."<br /><input class=\"input\" type=\"text\" name=\"rusername\" size=\"20\" maxlength=\"32\"></input><br />"; $leetlogin .= "".$L['ll_password']."<br /><input class=\"input\" type=\"password\" name=\"rpassword\" size=\"20\" maxlength=\"32\"></input><br />"; $leetlogin .= "".$L['ll_rcookiettl']."<br />".$out['guest_cookiettl']."<br /></div>"; $leetlogin .= "<br /><div style=\"text-align:center;\"><input type=\"submit\" value=\"Submit\"></input></div></form>"; $leetlogin .= "<div style=\"text-align:center;\">[<a href=\"users.php?m=register\">".$L['ll_reg']."</a>] [<a href=\"plug.php?e=passrecover\">".$L['ll_lp']."</a>]</div></td></tr>"; $leetlogin .= "</table>"; } $t-> assign(array( "PLUGIN_LEETLOGIN" => $leetlogin )); ?> Test etmeden düzenleme yaptım. |
|
|
Sitelerinize profesyonel anlamda hizmet verilir;
- Performans optimizasyonu, - Üst düzey güvenlik yamaları, - İsteğe bağlı eklentiler, - Her çeşit bot (program, video, resim, arsiv, haber), - Profesyonel görsel skin. Tüm tasarım, kodlamalar ve optimizasyon Neocrome referansı ile tarafımca hazırlanmakta. *************************İSTATİSTİKLER************************* Müşterim olan danışmanlığını yaptığım toplam kişi sayısı: 23 Sadece Eklenti hazırladığım kişi sayısı: 21 Uygulama yaptığım toplam site sayısı: 38 ------------------------------------------------- Müşterinin isteği doğrultusunda hazırladığım; - eklenti sayısı: 44 - skin sayısı: 8 - bot sayısı: 15 - özel güvenlik yamaları: 21 - Sql performans optimizasyonu: 13 (yüksek hitli siteler için) - Portal genel cache ve materyal optimizasyonu: 15 *************************************************************** |
|
Sender
336 posts |
#4109 2007-07-02 01:29 GMT |
|
Dvdbil newuser aynı :S.Ya birde en üstte Hoşgeldiniz yazısı yazıyor onun altında dursa avatar :S.Çok şey istedim ama
|
|
Dvdbil
2,237 posts |
#4110 2007-07-02 01:36 GMT |
|
leetlogin.php
Code: <?PHP /* ==================== [BEGIN_SED] File=plugins/leetlogin/leetlogin.php Version=121 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>"; $leetlogin .= "<td><strong>".$L['ll_welcome']."</strong></td>"; $leetlogin .= "</tr>"; $leetlogin .= "<tr>"; $leetlogin .= "<tr><td><strong>".$L['ll_welcome']."</strong></td></tr><td style=\"text-align:center;\"><a href=\"users.php?m=profile&a=avatarchoose&".sed_xg()."#list\"><img src=\"".$el_avatar."\" alt=\"\" /></a></td>"; $leetlogin .= "</tr>"; $leetlogin .= "<tr><td style=\"text-align:center;padding:3px;\" colspan=\"2\"><div><a href=\"users.php?m=details&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: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=\"pfs.php\">".$L['ll_pfs']."</a><br /><img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"users.php?m=logout&".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=\"pfs.php\">".$L['ll_pfs']."</a><br /><img src=\"".$cfg['plugin']['leetlogin']['1arrow']."\" /><a href=\"auth.php?m=logout&".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 .= "<tr><td style=\"text-align:left;\" colspan=\"2\"><form name=\"login\" action=\"users.php?m=auth&a=check\" method=\"post\"><div>".$L['ll_username']."<br /><input class=\"input\" type=\"text\" name=\"rusername\" size=\"20\" maxlength=\"32\"></input><br />"; $leetlogin .= "".$L['ll_password']."<br /><input class=\"input\" type=\"password\" name=\"rpassword\" size=\"20\" maxlength=\"32\"></input><br />"; $leetlogin .= "".$L['ll_rcookiettl']."<br />".$out['guest_cookiettl']."<br /></div>"; $leetlogin .= "<br /><div style=\"text-align:center;\"><input type=\"submit\" value=\"Submit\"></input></div></form>"; $leetlogin .= "<div style=\"text-align:center;\">[<a href=\"users.php?m=register\">".$L['ll_reg']."</a>] [<a href=\"plug.php?e=passrecover\">".$L['ll_lp']."</a>]</div></td></tr>"; $leetlogin .= "</table>"; } $t-> assign(array( "PLUGIN_LEETLOGIN" => $leetlogin )); ?> newusers.php Code: <?PHP /* ==================== Seditio - Website engine Copyright Neocrome http://www.neocrome.net [BEGIN_SED] File=plugins/newusers.php Version=700 Updated=2004-mar-02 Type=Plugin.Index Author=JaZZmAn Description= [END_SED] [BEGIN_SED_EXTPLUGIN] Code=newusers Part=main File=newusers Hooks=index.tags Tags=index.tpl:{PLUGIN_NEWUSERS} Minlevel=0 Order=10 [END_SED_EXTPLUGIN] ==================== */ if ( !defined('SED_CODE') ) { die("Hacking attempt."); } $cfg_limit = 10; $sqltmp = sed_sql_query("SELECT user_name, user_id, user_country FROM $db_users ORDER by user_regdate DESC LIMIT $cfg_limit"); $plugin_newusers = "<table>"; while ($row = mysql_fetch_array($sqltmp)) { $user_country = (empty($row['user_country'])) ? "00" : $row['user_country']; $plugin_newusers .= "<tr>"; $plugin_newusers .= "<td>»".sed_build_flag($user_country)." </td>"; $plugin_newusers .= "<td>".sed_build_user($row['user_id'], sed_cc(stripslashes($row['user_name'])))." </td>"; $plugin_newusers .= "</tr>"; } $plugin_newusers .= "</table>"; $t-> assign(array( "PLUGIN_NEWUSERS" => $plugin_newusers, )); ?> New users'ı anlayamadım umarım böyledir. |
|
|
Sitelerinize profesyonel anlamda hizmet verilir;
- Performans optimizasyonu, - Üst düzey güvenlik yamaları, - İsteğe bağlı eklentiler, - Her çeşit bot (program, video, resim, arsiv, haber), - Profesyonel görsel skin. Tüm tasarım, kodlamalar ve optimizasyon Neocrome referansı ile tarafımca hazırlanmakta. *************************İSTATİSTİKLER************************* Müşterim olan danışmanlığını yaptığım toplam kişi sayısı: 23 Sadece Eklenti hazırladığım kişi sayısı: 21 Uygulama yaptığım toplam site sayısı: 38 ------------------------------------------------- Müşterinin isteği doğrultusunda hazırladığım; - eklenti sayısı: 44 - skin sayısı: 8 - bot sayısı: 15 - özel güvenlik yamaları: 21 - Sql performans optimizasyonu: 13 (yüksek hitli siteler için) - Portal genel cache ve materyal optimizasyonu: 15 *************************************************************** |
|
Sender
336 posts |
#4111 2007-07-02 01:47 GMT |
|
yardımın için tşk ederim.
|
|
Benzer konular (Similar topics) #BETA
| Konular | Mesajlar | Son Yazar | Güncelleme |
| LDU - 2 Sorun | 18 | Kaan | 379 Gün |
| Ldu Da Sorun. | 2 | Kaan | 290 Gün |
| bir kaç sorun | 3 | Kaan | 295 Gün |
| sORUN wAR !!!!!! | 3 | SessizCrew | 206 Gün |
| FTP ILE SORUN | 3 | Mahkum | 212 Gün |





