MUM54 - Sayfa Yüklenirken Lütfen Bekleyiniz... MUM54>Joomla üyelikte resim doğulama MUM54
Dünya'nın En iyi Host Sitesinden Bedava Host Almak için Tıkla Free Website Hosting

Joomla üyelikte resim doğulama

Eylül 24, 2009 � Kategori: Web Hizmetleri

Joomla 1.5.x için
Kcaptcha indirmek için TIKLAYIN, LINK2
Kcaptcha Ayarları : Script'i /kcaptcha/kcaptcha_config.php adresini kullanark düzenleyebilirsiniz. Kcaptcha'yı http://yoursite/kcaptcha/index.php? adresinden test edebilirsiniz.


1.) Aşağıdaki kodu, index.php içerisinde benzer kodun üzerine yapıştırın.



/**
* @version      $Id: index.php 9764 2007-12-30 07:48:11Z ircmaxell $
* @package      Joomla
* @copyright   Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license      GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// Set flag that this is a parent file
define( '_JEXEC', 1 );

//HACK START HERE
session_start();
if(isset($_SESSION['captcha_keystring'])&&($_SESSION['captcha_keystring']==$_POST['captcha']))
   $_POST['captcha']=1;
else
   $_POST['captcha']=0;
session_destroy();

//HACK STOP HERE BUT YOU GO TO THE END OF THIS FILE

define('JPATH_BASE', dirname(__FILE__) );

define( 'DS', DIRECTORY_SEPARATOR );
.
.
.
.
.
/*END OF FILE*/

/* CLOSE THE SESSION */
JSession::close();

/**
* RETURN THE RESPONSE
*/
echo JResponse::toString($mainframe->getCfg('gzip'));






2.)Şimdi değiştireceğimiz dosya ./components/com_user/controller.php

.
.
.
.

function login()
   {

//START HERE
      if(1!==$_POST['captcha'])
      {
      // To raise a warning
         JError::raiseWarning( "Uno", "Devi inserire correttamente il testo riportato sull'immagine! Tenta di nuovo!!", "Tre" );
         $this->setRedirect('index.php?');
         return false;
      }
//STOP HERE

      // Check for request forgeries
      JRequest::checkToken() or die( 'Invalid Token' );

      global $mainframe;
.
.
.
.


aynı dosya üzerinden


.
.
.
.
.
   function register_save()
   {
      global $mainframe;

      // Check for request forgeries
      JRequest::checkToken() or die( 'Invalid Token' );

      // Get required system objects
      $user       = clone(JFactory::getUser());
      $pathway    =& $mainframe->getPathway();
      $config      =& JFactory::getConfig();
      $authorize   =& JFactory::getACL();
      $document   =& JFactory::getDocument();

//START HERE
      if(1!==$_POST['captcha'])
      {

         // To raise a warning
         JError::raiseWarning( "Uno", "Devi inserire correttamente il testo riportato sull'immagine! Tenta di nuovo!!", "Tre" );
         $this->setRedirect('index.php?option=com_user&task=register');
         return false;
      }

//STOP HERE
.
.
.
.








4.)Değiştirilicek dosya ./components/com_user/views/register/tmpl/default.php

.
.
.
.

   
      
   






         
         

         
         

         





   
   
   
   
   












5.)Değiştireceğimiz dosya
./modules/mod_login/tmpl/default.php


   


      
      
   



   


         

         
         

         





   

Kalıcı Bağlantı Yorum (0) Yorum yaz! Arkadaşına Gönder!

0 yorum yazılmıştır

« Konuyla ilgili bir diğer sayfa :: Önceki »

Free Website Hosting