Anasayfa FORUMLAR Üye Girişi Dosyalar Dersler İpuçları Yardımcı Araçlar Hakkımızda
KİMLER BAĞLI
Toplam Üye: 32638
Aktif Üye: 0
Aktif Ziyaretçi: 1186
Üye Adı
Şifre
Beni Hatırla
          Yeni Üye KayıtYeni Üye Kayıt
          Şifremi UnuttumŞifremi Unuttum
FORUMLAR
 ??? Sitem deki Haberleri ..
(25630 okuma, 26 yanıt)
 Free Hosta Php Nuke Kurul..
(16588 okuma, 14 yanıt)
 EKLENTİ: Misafire mesajın..
(37355 okuma, 38 yanıt)
 Php Nuke 9.0 Geliyor..
(21052 okuma, 19 yanıt)
 Bu başlık için mesaj bulu..
(14197 okuma, 15 yanıt)
 Facebook Sohbet Tipi Sohb..
(17987 okuma, 15 yanıt)
 üye aktivasyon..
(10727 okuma, 8 yanıt)
 Facebook tarzı altbar... ..
(6322 okuma, 1 yanıt)
 kaldırmak istediğim bölüm..
(6594 okuma, 2 yanıt)
 Resimli RSS..
(23413 okuma, 25 yanıt)
 Onay linkini kaldirmak..
(11159 okuma, 8 yanıt)
 Yardım :( Site açılırken ..
(6707 okuma, 2 yanıt)
 .Htaccess ile uzantıda ke..
(8374 okuma, 4 yanıt)
 block genişliği..
(5753 okuma, 1 yanıt)
 Haber Resimleri ve Slide ..
(14535 okuma, 12 yanıt)
 Foruma büyük boyutlu resi..
(7373 okuma, 3 yanıt)
 Php-Nuke 8.0 Paket..
(9499 okuma, 6 yanıt)
 Hangi sürümü önerirsiniz?..
(10573 okuma, 8 yanıt)
 ethai1 3..
(13288 okuma, 10 yanıt)
 Yeni PEHASPESEO..
(70671 okuma, 82 yanıt)
 Türkçe Karakter sorunu ?..
(38094 okuma, 36 yanıt)
 tek modul için sağ ve sol..
(11485 okuma, 8 yanıt)
 Php-nuke8.0 başlıklarda t..
(10662 okuma, 8 yanıt)
 Phpden iyi anlayan..
(5499 okuma, 1 yanıt)
 Php nuke 7.6 - 3.1 patch ..
(74073 okuma, 89 yanıt)
 Mp3 Üst Player Yardım..
(29887 okuma, 40 yanıt)
 Toplu üyelik silme?..
(11211 okuma, 8 yanıt)
 Çözümleyemediğim hata.....
(12500 okuma, 11 yanıt)
 bloğu kayan hale getirmek..
(6009 okuma, 2 yanıt)
 Makale modulu..
(8642 okuma, 5 yanıt)
 PHP-Nuke Haber V.1 Paylas..
(86276 okuma, 121 yanıt)
 title değiştirme..
(10446 okuma, 6 yanıt)
 Arkadaşlar bu sorunun çöz..
(10102 okuma, 6 yanıt)
 Php Nuke 8.1..
(4376 okuma, 0 yanıt)
 merhaba..
(10348 okuma, 9 yanıt)
 Anasayfa için boş modül o..
(13650 okuma, 13 yanıt)
 admin panelinde Access De..
(6463 okuma, 2 yanıt)
 Bu başlığa hiç cevap gelm..
(26639 okuma, 25 yanıt)
 Nuke Tema yapilisi..
(17214 okuma, 16 yanıt)
 Mavisce-net temasina bann..
(8786 okuma, 6 yanıt)
 PHP-Nuke wTeam - eklentil..
(6678 okuma, 2 yanıt)
 coppermine hata..
(10779 okuma, 8 yanıt)
 içerik tanıtımı..
(6338 okuma, 2 yanıt)
 Haber Ve İçeriğe Resim Ek..
(7223 okuma, 3 yanıt)
 google keywords..
(9034 okuma, 6 yanıt)
 8.0'da html sorunu..
(5542 okuma, 1 yanıt)
 PHP-Nuke_8.1.3.5+NukeSent..
(54816 okuma, 76 yanıt)
 üye olunurken gereksiz is..
(10102 okuma, 7 yanıt)
 Arkadaşlar kolifa haber s..
(6407 okuma, 2 yanıt)
 Hesabınız'a tıklayınca te..
(10605 okuma, 7 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - login olan kişisel sayfasına gitmesin anasayfada kalsın
 AramaArama   RütbelerRütbeliler   ProfilProfil   GirişGiriş 


login olan kişisel sayfasına gitmesin anasayfada kalsın

 
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke
Önceki başlık :: Sonraki başlık  
Yazar Mesaj
ilkeras1
Mesaj: 1+
Mesaj: 1+





Kayıt: Jun 10, 2005
Mesajlar: 14
Konum: ankara

MesajTarih: 2007-10-15, 00:09:30    Mesaj konusu: login olan kişisel sayfasına gitmesin anasayfada kalsın Alıntıyla Cevap Gönder

merhaba
siteye login olan kulanıcı otomatikman kişisel sayfasına gidiyor bunu nasıl engellerim ben kişisel sayfasına gitmesi yerine ana sayfada kalmasını istiyorum
bunu nasıl yapabilirim acaba
kolay gelsin demi,ştim
--------------------------------------------------------------------------------

konuya verdiğinizcevap için teşekkür ederim ama ipucu sayfasındaki ipucu işime yaramadı cnb nin your account modlünü kullanıyorum ve ipucundaki satırlar yok

code aşağıya yazıyprum acaba nereyi degiştirmem gerekiyor

Kod:
?php

/*********************************************************************************/
/* CNB Your Account: An Advanced User Management System for phpnuke           */
/* ============================================                               */
/*                                                                            */
/* Copyright (c) 2004 by Comunidade PHP Nuke Brasil                           */
/* http://dev.phpnuke.org.br & http://www.phpnuke.org.br                      */
/*                                                                            */
/* Contact author: escudero@phpnuke.org.br                                    */
/* International Support Forum: http://ravenphpscripts.com/forum76.html       */
/*                                                                            */
/* 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.             */
/*                                                                            */
/*********************************************************************************/
/* CNB Your Account it the official successor of NSN Your Account by Bob Marion   */
/*********************************************************************************/

if (!eregi("modules.php", $_SERVER['script_NAME'])) {
        die ("You can't access this file directly...");
}
$module_name = basename(dirname(__FILE__));
require_once("modules/Your_Account/includes/constants.php");
if (!defined('CNBYA')) { echo "CNBYA protection"; exit; }
require_once("mainfile.php");
include_once("modules/$module_name/includes/functions.php");

// menelaos: removed because it is already called in /modules/Your_Account/includes/mainfileend.php
$ya_config = ya_get_configs();

get_lang($module_name);
$userpage = 1;
//$index    = 1;
include("modules/$module_name/navbar.php");
include("modules/$module_name/includes/c o o k i echeck.php");
c o o k i edecode($user);

switch($op) {

    case "activate":
        include("modules/$module_name/public/activate.php");
    break;

    case "avatarlist":
        if (is_user($user)) {
            include("modules/$module_name/public/avatarlist.php");
        } else {
            notuser();
        }
    break;

    case "avatarsave":
        if (is_user($user)) {
            include("modules/$module_name/public/avatarsave.php");
        } else {
            notuser();
        }
    break;

    case "avatarlinksave":
        if (is_user($user)) {
            include("modules/$module_name/public/avatarlinksave.php");
        } else {
            notuser();
        }
    break;

    case "broadcast":
        if ($broadcast_msg == 1) {
            include("modules/$module_name/public/broadcast.php");
        } else {
            disabled();
        }
    break;

    case "delete":
        if ($ya_config['allowuserdelete'] == 1) {
            include("modules/$module_name/public/delete.php");
        } else {
            disabled();
        }
    break;

    case "deleteconfirm":
        if ($ya_config['allowuserdelete'] == 1) {
            include("modules/$module_name/public/deleteconfirm.php");
        } else {
            disabled();
        }
    break;

    case "editcomm":
        include("modules/$module_name/public/editcomm.php");
    break;

    case "edithome":
        include("modules/$module_name/public/edithome.php");
    break;

    case "edittheme":
    break;

   case "changemail":
      include("modules/$module_name/public/changemail.php");
      changemail();
   break;


    case "chgtheme":
        if ($ya_config['allowusertheme']==0) {
            include("modules/$module_name/public/chngtheme.php");
        } else {
            disabled();
        }
    break;

    case "edituser":
        include("modules/$module_name/public/edituser.php");
    break;

    case "gfxadminimage":
   // menelaos: dynamically insert the version number in the admin config panel image Copyright (c) 2004 :-)
   $icon      = "images/admin/users.png";
   $image      = ImageCreateFromPNG($icon);
   $text_color   = ImageColorAllocate($image, 0, 0, 0);
   Header("Content-type: image/png");
   ImageString ($image, 1, 7, 38, $cnbyaversion, $text_color);
   ImagePNG($image, '', 75);
   ImageDestroy($image);
       
   break;

    case "gfx":
    // Begin Copyright (c) 2004 by NukeScripts Network
        $datekey = date("F j");
        $rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
        $code = substr($rcode, 2, $ya_config['codesize']);
        $ThemeSel = get_theme();
        if (file_exists("themes/$ThemeSel/images/code_bg.png")) {
            $codeimg = "themes/$ThemeSel/images/code_bg.png";
            include("themes/$ThemeSel/theme.php");
            $tcolor = str_replace("#", "", $textcolor1);
            $tc_r = hexdec(substr($tcolor, 0, 2));
            $tc_g = hexdec(substr($tcolor, 2, 2));
            $tc_b = hexdec(substr($tcolor, 4, 2));
        } else {
            $codeimg = "images/code_bg.png";
            $tc_r = $tc_g = $tc_b = 0;
        }
        $image = ImageCreateFromPNG($codeimg);
        $text_color = ImageColorAllocate($image, $tc_r, $tc_g, $tc_b);
        Header("Content-type: image/png");
        ImageString ($image, 5, 5, 2, $code, $text_color);
        ImagePNG($image, '', 75);
        ImageDestroy($image);
        die();
    // End Copyright (c) 2004 by NukeScripts Network
    break;

   case "login":
      $result  = $db->sql_query("SELECT * FROM ".$user_prefix."_users WHERE username='$username'");
      $setinfo = $db->sql_fetchrow($result);

      // menelaos: check of the member agreed with the TOS and update the database field
      if (($ya_config['tos'] == intval(1)) AND ($_POST['tos_yes'] == intval(1))) {
      $db->sql_query("UPDATE ".$user_prefix."_users SET agreedtos='1' WHERE username='$username'");
      }
      $forward = ereg_replace("redirect=", "", "$redirect");
      if (ereg("privmsg", $forward)) { $pm_login = "active"; }
   if ($db->sql_numrows($result) == 0) {
      include("header.php");
      Show_CNBYA_menu();
      OpenTable();
      echo "<center><font class='title'>"._SORRYNOUSERINFO."</font></center>\n";
      CloseTable();
      include("footer.php");
   } elseif ($db->sql_numrows($result) == 1 AND $setinfo['user_id'] != 1 AND $setinfo['user_password'] != "" AND $setinfo['user_active'] >0 AND $setinfo['user_level'] >0) {
      $dbpass     = $setinfo[user_password];
      $non_crypt_pass = $user_password;
      $old_crypt_pass = crypt($user_password,substr($dbpass,0,2));
      $new_pass = md5($user_password);
      if (($dbpass == $non_crypt_pass) OR ($dbpass == $old_crypt_pass)) {
         $db->sql_query("UPDATE ".$user_prefix."_users SET user_password='$new_pass'   WHERE username='$username'");
         $result = $db->sql_query("SELECT user_password FROM ".$user_prefix."_users   WHERE username='$username'");
         list($dbpass) = $db->sql_fetchrow($result);
      }
      if ($dbpass != $new_pass) {
         Header("Location: modules.php?name=$module_name&stop=1");
         return;
      }
      $datekey = date("F j");
      $rcode = hexdec(md5($_SERVER['HTTP_USER_AGENT'] . $sitekey . $random_num . $datekey));
      $code  = substr($rcode, 2, $ya_config['codesize']);
      if (extension_loaded("gd") AND $code != $gfx_check AND ($ya_config['usegfxcheck'] == 2 OR $ya_config['usegfxcheck'] == 3)) {
         Header("Location: modules.php?name=$module_name&stop=1");
         die();
      } else {
         // menelaos: show a member the current TOS if he has not agreed yet
         if (($ya_config['tos'] == intval(1)) AND ($ya_config['tosall'] == intval(1)) AND ($setinfo[agreedtos] != intval(1))) {
            if($_POST['tos_yes'] != intval(1)) {
            include("modules/$module_name/public/ya_tos.php");
            exit;
            }
         }
         // menelaos: show a member the current TOS if he has not agreed yet

          yac o o k i e($setinfo[user_id], $setinfo[username], $new_pass, $setinfo[storynum], $setinfo[umode], $setinfo[uorder], $setinfo[thold], $setinfo[noscore], $setinfo[ublockon], $setinfo[theme], $setinfo[commentmax]);
         $uname = $_SERVER["REMOTE_ADDR"];
         $db->sql_query("DELETE FROM ".$prefix."_session WHERE uname='$uname' AND guest='1'");
         if ($Version_Num >= 7.4) $db->sql_query("UPDATE ".$prefix."_users SET last_ip='$uname' WHERE username='$username'");
      }

      // menelaos: the c o o k i echeck is run here
      if ($ya_config['c o o k i echeck']==1) {
      $c o o k i echeck   = yac o o k i echeckresults();
      }
         
      if ($pm_login != "") {
         Header("Location: modules.php?name=Private_Messages&file=index&folder=inbox");
      } else if ($redirect == "" ) {
         Header("Location: modules.php?name=Your_Account&op=userinfo&bypass=1&username=$username");
      } else if ($mode == "") {
         Header("Location: modules.php?name=Forums&file=$forward");
      } else if ($t !="")  {
         Header("Location: modules.php?name=Forums&file=$forward&mode=$mode&t=$t");
      } else {
         Header("Location: modules.php?name=Forums&file=$forward&mode=$mode&f=$f");
      }
      } elseif ($db->sql_numrows($result) == 1 AND ($setinfo['user_level'] < 1 OR $setinfo['user_active'] < 1)) {
         include("header.php");
         Show_CNBYA_menu();
         OpenTable();
         if ($setinfo['user_level'] == 0) {
            echo "<br><center><font class=\"title\"><b>"._ACCSUSPENDED."</b></font></center><br>\n";
         } elseif ($setinfo['user_level'] == -1) {
            echo "<br><center><font class=\"title\"><b>"._ACCDELETED."</b></font></center><br>\n";
         } else {
            echo "<br><center><font class=\"title\"><b>"._SORRYNOUSERINFO."</b></font></center><br>\n";
         }
      CloseTable();
      include("footer.php");
      } else {
      Header("Location: modules.php?name=$module_name&stop=1");
      }
      break;

    case "logout":
        c o o k i edecode($user);
        $r_uid = $c o o k i e[0];
        $r_username = $c o o k i e[1];
        setc o o k i e("user");
        if (trim($ya_config[c o o k i epath]) != '') setc o o k i e("user","expired",time()-604800,"$ya_config[c o o k i epath]"); //correct the problem of path change
        $db->sql_query("DELETE FROM ".$prefix."_session WHERE uname='$r_username'");
        $db->sql_query("OPTIMIZE TABLE ".$prefix."_session");
        //$db->sql_query("DELETE FROM ".$prefix."_bbsessions WHERE session_user_id='$r_uid'");
        //$db->sql_query("OPTIMIZE TABLE ".$prefix."_bbsessions");
        $user = "";
        include("header.php");
        if ($redirect != "") {
            echo "<m e t a HTTP-EQUIV=\"refresh\" content=\"2;URL=modules.php?name=$redirect\">";
        } else {
            echo "<m e t a HTTP-EQUIV=\"refresh\" content=\"2;URL=index.php\">";
        }
        title(_YOUARELOGGEDOUT);
        include("footer.php");
    break;

    case "mailpasswd":
        include("modules/$module_name/public/mailpass.php");
    break;

    case "my_headlines":
        include("modules/$module_name/public/headlines.php");
    break;

    case "new_user":
     if (is_user($user)) {
            mmain($user);
        } else {
if ($ya_config['allowuserreg']==0) {
    if ($ya_config['coppa'] == intval(1)) {
       if($_POST['coppa_yes']!= intval(1)) {
         include("modules/$module_name/public/ya_coppa.php");
         exit;
     }
          }
     if ($ya_config['tos'] == intval(1)) {
       if($_POST['tos_yes'] != intval(1)) {
         include("modules/$module_name/public/ya_tos.php");
         exit;
     }
          }
        if ($ya_config['coppa'] !== intval(1) OR $ya_config['coppa'] == intval(1) AND $_POST['coppa_yes'] = intval(1)){
       if ($ya_config['tos'] !== intval(1) OR $ya_config['tos'] == intval(1) AND $_POST['tos_yes']=intval(1)){       
           if ($ya_config['requireadmin'] == 1) {
                    include("modules/$module_name/public/new_user1.php");
                } elseif ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 0) {
                    include("modules/$module_name/public/new_user2.php");
                } elseif ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 1) {
                    include("modules/$module_name/public/new_user3.php");
                }
             }
         }
           }else {
    disabled();   
  }
}
    break;

    case "new_confirm":
        if (is_user($user)) {
            mmain($user);
        } else {
            if ($ya_config['allowuserreg']==0) {
                if ($ya_config['requireadmin'] == 1) {
                    include("modules/$module_name/public/new_confirm1.php");
                } elseif ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 0) {
                    include("modules/$module_name/public/new_confirm2.php");
                } elseif ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 1) {
                    include("modules/$module_name/public/new_confirm3.php");
                }
            } else {
                disabled();
            }
        }
    break;

    case "new_finish":
        if (is_user($user)) {
            mmain($user);
        } else {
            if ($ya_config['allowuserreg']==0) {
                if ($ya_config['requireadmin'] == 1) {
                    include("modules/$module_name/public/new_finish1.php");
                } elseif ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 0) {
                    include("modules/$module_name/public/new_finish2.php");
                } elseif ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 1) {
                    include("modules/$module_name/public/new_finish3.php");
                }
            } else {
                disabled();
            }
        }
    break;

    case "pass_lost":
        include("modules/$module_name/public/passlost.php");
    break;

    case "saveactivate":
        include("modules/$module_name/public/saveactivate.php");
    break;

    case "savecomm":
        if (is_user($user)) {
            include("modules/$module_name/public/savecomm.php");
        } else {
            notuser();
        }
    break;

    case "savehome":
        if (is_user($user)) {
            include("modules/$module_name/public/savehome.php");
        } else {
            notuser();
        }
    break;

    case "savetheme":
        if (is_user($user)) {
            if ($ya_config['allowusertheme']==0) {
                include("modules/$module_name/public/savetheme.php");
            } else {
                disabled();
            }
        } else {
            notuser();
        }
    break;

    case "saveuser":
        if (is_user($user)) {
            include("modules/$module_name/public/saveuser.php");
        } else {
            notuser();
        }
    break;

    case "userinfo":
        include("modules/$module_name/public/userinfo.php");
    break;
   
   case "ShowCookiesRedirect":
        ShowCookiesRedirect();
    break;

    case "ShowCookies":
        ShowCookies();
    break;

    case "DeleteCookies":
        DeleteCookies();
    break;

    default:
        mmain($user);
    break;

}

?>


En son ilkeras1 tarafından 2007-11-01, 21:44:15 tarihinde değiştirildi, toplam 2 kere değiştirildi
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Bu Site Google Adsense ile Gelir Elde Ediyor









Tarih: 2024-06-26, 15:24:51    Mesaj konusu: Forum Arası Reklamlar


Başa dön
nofel
Mesaj: 500+
Mesaj: 500+





Kayıt: Apr 25, 2005
Mesajlar: 655

MesajTarih: 2007-10-15, 00:21:28    Mesaj konusu: Alıntıyla Cevap Gönder

http://eski.netopsiyon.com/ipucu-1.html
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
Önceki mesajları göster:   
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke Tüm zamanlar GMT + 3 Saat
1. sayfa (Toplam 1 sayfa)

 
Geçiş Yap:  
Bu forumda yeni başlıklar açamazsınız
Bu forumdaki başlıklara cevap veremezsiniz
Bu forumdaki mesajlarınızı değiştiremezsiniz
Bu forumdaki mesajlarınızı silemezsiniz
Bu forumdaki anketlerde oy kullanamazsınız

Benzer Konular

Başlık Yazar Forum Cevaplar Tarih
Yeni mesaj yok Musıc Box elinde olan varmı cuneytsonmez Php Nuke Modülleri 2 2010-07-01, 08:54:15 Son Mesajı Görüntüle
Yeni mesaj yok Atatürk Modulu ? Elinde olan cuneytsonmez Php Nuke Modülleri 0 2010-05-11, 17:12:24 Son Mesajı Görüntüle
Yeni mesaj yok Aquamp Player Dısında Player Elınde O... cuneytsonmez Diğer Diller 2 2010-04-29, 11:11:10 Son Mesajı Görüntüle
Yeni mesaj yok Gmail Login Block Umarim Isinize Yarar roman2009 Php Nuke Blocklar 0 2010-04-28, 22:04:46 Son Mesajı Görüntüle
Yeni mesaj yok VPS Host Hakkında Bilgisi Olan Varmı...? sonsuzluk2 İnternet Üzerine 1 2010-04-25, 15:59:44 Son Mesajı Görüntüle

Copyright © 2002-2024 Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. - Bütün hakları saklıdır!
Bu site Netopsiyon.com.tr Sunucularında Barındırılmaktadır.
Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. Netopsiyon Copyright