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: 1023
Üye Adı
Şifre
Beni Hatırla
          Yeni Üye KayıtYeni Üye Kayıt
          Şifremi UnuttumŞifremi Unuttum
FORUMLAR
 ME_Haber 2.3..
(111156 okuma, 145 yanıt)
 Resim Galerisi Modülü 2.0..
(123709 okuma, 173 yanıt)
 Ustalardan Bir Ricam Olac..
(13821 okuma, 6 yanıt)
 nukecode.com will close..
(11355 okuma, 5 yanıt)
 super youtube player a lo..
(6444 okuma, 1 yanıt)
 Need good PHP Haber port..
(5686 okuma, 0 yanıt)
 Forum Nasil Tam Sayfa Olu..
(35626 okuma, 40 yanıt)
 Php nuke Forumu Düzenleme..
(10061 okuma, 6 yanıt)
 Yeni Üyelik Aktivasyon Li..
(11124 okuma, 6 yanıt)
 Aşk Flashları Modülü..
(7138 okuma, 2 yanıt)
 resim galeri 2.0 da kateg..
(11606 okuma, 9 yanıt)
 Yeni iki modul: Merhumlar..
(32750 okuma, 36 yanıt)
 ürün tanıtım modülü..
(25549 okuma, 23 yanıt)
 PHP Nuke is out..
(15259 okuma, 13 yanıt)
 MSN Video Bing Video oldu..
(5292 okuma, 0 yanıt)
 haberhit.com..
(5880 okuma, 1 yanıt)
 Bilgi Yarışması 1.0 tama..
(52807 okuma, 72 yanıt)
 Musıc Box elinde olan var..
(6811 okuma, 2 yanıt)
 Online Okey , Batak , Tav..
(176584 okuma, 340 yanıt)
 Emlak Modül ve Blockları ..
(12490 okuma, 8 yanıt)
 WM who ist shampions..
(5149 okuma, 1 yanıt)
 coppermine resim galerisi..
(5568 okuma, 1 yanıt)
 Forumda Teşekkür Eklentis..
(9189 okuma, 7 yanıt)
 free wordpress themes..
(5666 okuma, 1 yanıt)
 JW image rotator for nsn ..
(7772 okuma, 4 yanıt)
 need Iletisim module..
(11173 okuma, 8 yanıt)
 Yeni modul: İletişim modu..
(28049 okuma, 33 yanıt)
 Başvuru Modulu ve Etkinli..
(5936 okuma, 1 yanıt)
 world cup flash..
(5118 okuma, 0 yanıt)
 ..:: Php Nuke FTP link Ha..
(5011 okuma, 0 yanıt)
 yeni phpnuke youtube 2.0..
(5252 okuma, 1 yanıt)
 Content Plus Önceki Konu ..
(4847 okuma, 0 yanıt)
 Php nuke Tickets Modülü..
(8092 okuma, 5 yanıt)
 need help to news time..
(4621 okuma, 0 yanıt)
 NSN News v3.0 new plugin..
(4905 okuma, 0 yanıt)
 how to save flash as imag..
(6143 okuma, 2 yanıt)
 Video Blok Yardım Lütfen...
(6076 okuma, 2 yanıt)
 gazete ara..
(9927 okuma, 5 yanıt)
 Bizim Yazarlar ve Bizim Ş..
(15153 okuma, 14 yanıt)
 Nuke Reflections v2 Türkç..
(14806 okuma, 14 yanıt)
 CNB Your Account 750 442 ..
(14464 okuma, 13 yanıt)
 Admin panelindeki simge ç..
(12499 okuma, 9 yanıt)
 Hosting Modülü..
(14225 okuma, 13 yanıt)
 Bizim şairler Modülü..
(5284 okuma, 1 yanıt)
 new plugin for nsn news v..
(4831 okuma, 1 yanıt)
 php nuke 8.0 türkce dil s..
(7036 okuma, 3 yanıt)
 Kan Bankası Modül istek..
(6272 okuma, 2 yanıt)
 Haber Konulari Sayfasinda..
(5858 okuma, 2 yanıt)
 Kan Bankası Modülünde İsi..
(7180 okuma, 3 yanıt)
 sonhaberler flash block ..
(6738 okuma, 4 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - flashchat türkçe nick login sorunu
 AramaArama   RütbelerRütbeliler   ProfilProfil   GirişGiriş 


flashchat türkçe nick login sorunu

 
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 -> Php Nuke Modülleri
Önceki başlık :: Sonraki başlık  
Yazar Mesaj
fatih35
Mesaj: 1+
Mesaj: 1+





Kayıt: Dec 20, 2005
Mesajlar: 5

MesajTarih: 2007-02-09, 18:36:40    Mesaj konusu: flashchat türkçe nick login sorunu Alıntıyla Cevap Gönder

arkadaşlar flash chatta türkçe karakter içeren bazı nickler giriş yapamıyor bazılarıda giriş yapsa bile nick garip şekiller vede semboller içeriyor bunun bir çözümü varmı acaba ..

sisteme girişi sağlayan dosya bu dosya. Idea

Kod:
php
   //The DefaultCMS implementation behaves as usual content management system - i.e. checks provided login/password against system database and uses user roles predefined in it.

   class DefaultCMS {
      var $autocreateUsers = false; //change this to false to disabe nonexisting users auto creation

      var $userid = null;

      var $loginStmt;
      var $getUserStmt;
      var $addUserStmt;
      var $getUsersStmt;
      
      var $constArr;
      //-----------------------------------------------------------------------------------------
      function DefaultCMS()
      {
         
         $this->constArr = array(
                 'users'       =>'user',
                 'login'       =>'user',
                 'id'          =>'id',
                 'password'    =>'password',
                 'roles'       =>'id',
                 'encode_type' =>'sha1',
                 'spy_fld'     =>'id',
                 'spy_value'   =>'232434454423423423',
                 'profile_path'=>'../profil_goster.php',
                 'profile_arg' =>'?profil={$user}',
                 'moderator_fld'=>'level',
                 'moderator_value'=>'3',
                 'logoff'      =>'false'
         );
         
         $this->getUserStmt  = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['id']}=? LIMIT 1");         
         $this->getUsersStmt = new Statement("SELECT * FROM {$this->constArr['users']} ORDER BY {$this->constArr['login']}");
         $this->delStmt      = new Statement("DELETE FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=?");
         
         $encode_type = $this->constArr['encode_type'];         
         
         switch( $encode_type )
         {
            case 'sha1' : $this->loginStmt    = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=? AND {$this->constArr['password']}=SHA1(?) LIMIT 1");
                      $this->addUserStmt  = new Statement("INSERT   INTO {$this->constArr['users']} ({$this->constArr['login']}, {$this->constArr['password']}) VALUES(?, SHA1(?))");
                      break;
            case 'mysql_pass' :
                      $this->loginStmt    = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=? AND {$this->constArr['password']}=PASSWORD(?) LIMIT 1");
                      $this->addUserStmt  = new Statement("INSERT   INTO {$this->constArr['users']} ({$this->constArr['login']}, {$this->constArr['password']}) VALUES(?, PASSWORD(?))");
                      break;
            default    : $this->loginStmt    = new Statement("SELECT * FROM {$this->constArr['users']} WHERE {$this->constArr['login']}=? AND {$this->constArr['password']}=? LIMIT 1");
                      $this->addUserStmt  = new Statement("INSERT   INTO {$this->constArr['users']} ({$this->constArr['login']}, {$this->constArr['password']}) VALUES(?, ?)");
                       break;
         }               
      }
      //-----------------------------------------------------------------------------------------
      function isLoggedIn()
      {
         return $this->userid;
      }
      //-----------------------------------------------------------------------------------------
      function login($login, $password)
      {
         $this->userid = null;

         if($login && $password)
         {
            $encode_type = $this->constArr['encode_type'];
            $pass = $password;
            /*
            switch( $encode_type )
            {
               case 'sha1' : $pass = md5($password); break;
               default    : $pass = $password; break;
            }*/            
            
            //Try to find user using provided login
            if(($rs = $this->loginStmt->process($login,$pass)) && ($rec = $rs->next()))
            {               
               //if($rec[$this->constArr['password']] == $pass)
               $this->userid = $rec[$this->constArr['id']];
            }
            else
            {
               //If not - autocreate user with such login and password
               if($this->autocreateUsers)
               {
                  //$roles = ($password == $GLOBALS['fc_config']['adminPassword'])?ROLE_ADMIN:($GLOBALS['fc_config']['liveSupportMode']?ROLE_CUSTOMER:ROLE_USER);
                  $ins = $this->addUserStmt->process($login, $pass);
                  
                  if( $ins != null && $ins == 0 )
                  {   //we not know if id field is autoincrement
                     $this->userid = login($login, $password);
                  }
                  elseif($ins != null)
                  {
                     $this->userid = $ins;
                  }
               }
            }
         }

         return $this->userid;
      }
      //-----------------------------------------------------------------------------------------
      function logout()
      {
         if($this->constArr['logoff'] == 'true') $this->user = null;
      }
      //-----------------------------------------------------------------------------------------   
      function getUser($userid)
      {
         if($userid)
         {
            $rs = $this->getUserStmt->process($userid);
            $usr = $rs->next();
            $usr['login'] = $usr[$this->constArr['login']];//important!
            $usr['roles'] = $usr[$this->constArr['moderator_fld']] == $this->constArr['moderator_value'] ? ROLE_ADMIN : ($usr[$this->constArr['spy_fld']] == $this->constArr['spy_value'] ? ROLE_SPY : ROLE_USER);
            
            return $usr;
         }
         else
         {
            return null;
         }
      }
      //-----------------------------------------------------------------------------------------
      function getUsers()
      {
         $users = $this->getUsersStmt->process();
         if( is_array($users) )
         if( sizeof($users) > 0)
         foreach( $users as $k=>$v )
         {
            $users['login'] = $users[$this->constArr['login']];//important!
            $users['roles'] = $users[$this->constArr['moderator_fld']] == $this->constArr['moderator_value'] ? ROLE_ADMIN : ($users[$this->constArr['spy_fld']] == $this->constArr['spy_value'] ? ROLE_SPY : ROLE_USER);
         }
         
         return    $users;
      }
      //-----------------------------------------------------------------------------------------
      function getUserProfile($userid)
      {
         $spy_fld = $this->constArr['spy_fld'];
         $spy_val = $this->constArr['spy_value'];
         
         $user = $this->getUser($userid);
         
         if( $spy_fld != '' )
         {            
            if( $user[$spy_fld] == $spy_val ) return null;
         }
         
         extract($user);
         
         return "{$this->constArr['profile_path']}?profil={$user}";
      }
      //-----------------------------------------------------------------------------------------
      function userInRole($userid, $role)
      {
         if($user = $this->getUser($userid))
         {
            if($role == ROLE_ADMIN)
            {
               if( $user[$this->constArr['moderator_fld']] == $this->constArr['moderator_value']) return true;
               else return false;
            }
            
            
            if($role == ROLE_USER)
            {
               return true;//???
            }            
         }
         return false;
      }
      
      function getGender($userid) {
           // 'M' for Male, 'F' for Female, NULL for undefined
           return NULL;       
       }
      
      function addUser($login, $password, $roles)
      {
         $user = $this->loginStmt->process($login);
         if(($rec = $user->next()) != null) return $rec['id'];
         
         /*
         $encode_type = $this->constArr['encode_type'];
         $pass = $password;
            
         switch( $encode_type )
         {
            case 'md5' : $pass = md5($password); break;
            default    : $pass = $password; break;
         }   
         */
         return $this->addUserStmt->process($login, $password);
         
      }
      
      function deleteUser($login){
         $this->delUserStmt->process($login);
      }
   }
   
   $GLOBALS['fc_config']['cms'] = new DefaultCMS();

   //clear 'if moderator' message
   foreach($GLOBALS['fc_config']['languages'] as $k => $v)
   {
      $GLOBALS['fc_config']['languages'][$k]['dialog']['login']['moderator'] = '';
   }
?>[/quote]
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-23, 02:02:46    Mesaj konusu: Forum Arası Reklamlar


Başa dön
Ö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 -> Php Nuke Modülleri 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 Mavimsn_C46 temasına haber ekleme sorunu anzerhoneybee Php Nuke Tema Paylaşımları 1 2010-07-19, 01:30:20 Son Mesajı Görüntüle
Yeni mesaj yok Türkçe KArakter Hatası :S qombat Php Nuke Sorunlarınız 7 2010-07-16, 16:41:55 Son Mesajı Görüntüle
Yeni mesaj yok Resimli Menü Block Sorunu populerdeli Php Nuke Sorunlarınız 9 2010-07-11, 18:59:34 Son Mesajı Görüntüle
Yeni mesaj yok Yeni Üyelik Aktivasyon Linki Sorunu P... hakan10 Php Nuke Modülleri 6 2010-07-11, 03:49:50 Son Mesajı Görüntüle
Yeni mesaj yok Center Block Sorunu populerdeli Php Nuke Sorunlarınız 3 2010-07-09, 22:39:27 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