Jump to content
  • 0

Help, Help, Help,


Critica

Question


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   4
  • Joined:  02/23/12
  • Last Seen:  

Hi guys,, i dont really know much about PHP and Cpanel's

all i know is copy and paste the themes into my flux, anyways.. here's my prob.

in my website.. www.darksoulro.com everytime i got to register, it always get me back to my website..

i dont know why, but when i take out my web. and use the default flux cpanel. it works perfectly fine..

so anyone here know whats wrong?

help me plssssss ( T - T)

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  185
  • Reputation:   26
  • Joined:  12/07/11
  • Last Seen:  

the responsible for that is in modules/account/create.php

find the redirect code..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   4
  • Joined:  02/23/12
  • Last Seen:  

<?php
if (!defined('FLUX_ROOT')) exit;
if (Flux::config('UseCaptcha') && Flux::config('EnableReCaptcha')) {
require_once 'recaptcha/recaptchalib.php';
$recaptcha = recaptcha_get_html(Flux::config('ReCaptchaPublicKey'));
}
$title = Flux::message('AccountCreateTitle');
$serverNames = $this->getServerNames();
if (count($_POST)) {
require_once 'Flux/RegisterError.php';

try {
 $server   = $params->get('server');
 $username = $params->get('username');
 $password = $params->get('password');
 $confirm  = $params->get('confirm_password');
 $email    = $params->get('email_address');
 $gender   = $params->get('gender');
 $code	 = $params->get('security_code');

 if (!($server = Flux::getServerGroupByName($server))) {
  throw new Flux_RegisterError('Invalid server', Flux_RegisterError::INVALID_SERVER);
 }

 // Woohoo! Register 
 $result = $server->loginServer->register($username, $password, $confirm, $email, $gender, $code);
 if ($result) {
  if (Flux::config('RequireEmailConfirm')) {
   require_once 'Flux/Mailer.php';

   $user = $username;
   $code = md5(rand());
   $name = $session->loginAthenaGroup->serverName;
   $link = $this->url('account', 'confirm', array('_host' => true, 'code' => $code, 'user' => $username, 'login' => $name));
   $mail = new Flux_Mailer();
   $sent = $mail->send($email, 'Account Confirmation', 'confirm', array('AccountUsername' => $username, 'ConfirmationLink' => htmlspecialchars($link)));

   $createTable = Flux::config('FluxTables.AccountCreateTable');
   $bind = array($code);

   // Insert confirmation code.
   $sql  = "UPDATE {$server->loginDatabase}.{$createTable} SET ";
   $sql .= "confirm_code = ?, confirmed = 0 ";
   if ($expire=Flux::config('EmailConfirmExpire')) {
 $sql .= ", confirm_expire = ? ";
 $bind[] = date('Y-m-d H:i:s', time() + (60 * 60 * $expire));
   }

   $sql .= " WHERE account_id = ?";
   $bind[] = $result;

   $sth  = $server->connection->getStatement($sql);
   $sth->execute($bind);

   $session->loginServer->permanentlyBan(null, sprintf(Flux::message('AccountConfirmBan'), $code), $result);

   if ($sent) {
 $message  = Flux::message('AccountCreateEmailSent');
   }
   else {
 $message  = Flux::message('AccountCreateFailed');
   }

   $session->setMessageData($message);
   $this->redirect();
  }
  else {
   $session->login($server->serverName, $username, $password, false);
   $session->setMessageData(Flux::message('AccountCreated'));
   $this->redirect();
  }
 }
 else {
  exit('Uh oh, what happened?');
 }
}
catch (Flux_RegisterError $e) {
 switch ($e->getCode()) {
  case Flux_RegisterError::USERNAME_ALREADY_TAKEN:
   $errorMessage = Flux::message('UsernameAlreadyTaken');
   break;
  case Flux_RegisterError::USERNAME_TOO_SHORT:
   $errorMessage = Flux::message('UsernameTooShort');
   break;
  case Flux_RegisterError::USERNAME_TOO_LONG:
   $errorMessage = Flux::message('UsernameTooLong');
   break;
  case Flux_RegisterError::PASSWORD_TOO_SHORT:
   $errorMessage = Flux::message('PasswordTooShort');
   break;
  case Flux_RegisterError::PASSWORD_TOO_LONG:
   $errorMessage = Flux::message('PasswordTooLong');
   break;
  case Flux_RegisterError::PASSWORD_MISMATCH:
   $errorMessage = Flux::message('PasswordsDoNotMatch');
   break;
  case Flux_RegisterError::EMAIL_ADDRESS_IN_USE:
   $errorMessage = Flux::message('EmailAddressInUse');
   break;
  case Flux_RegisterError::INVALID_EMAIL_ADDRESS:
   $errorMessage = Flux::message('InvalidEmailAddress');
   break;
  case Flux_RegisterError::INVALID_GENDER:
   $errorMessage = Flux::message('InvalidGender');
   break;
  case Flux_RegisterError::INVALID_SERVER:
   $errorMessage = Flux::message('InvalidServer');
   break;
  case Flux_RegisterError::INVALID_SECURITY_CODE:
   $errorMessage = Flux::message('InvalidSecurityCode');
   break;
  default:
   $errorMessage = Flux::message('CriticalRegisterError');
   break;
 }
}
}
?>

Hi siR, i read it over and over, but im not sure where is the code to you were saying.. thank you for your help sir

ok i just notice,, its not just the registry.. all the menu in my Cpanel are directing me back to my website..

can anyone help me.. =(

ok i just notice,, its not just the registry.. all the menu in my Cpanel are directing me back to my website..

can anyone help me.. =(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  185
  • Reputation:   26
  • Joined:  12/07/11
  • Last Seen:  

ok i just notice,, its not just the registry.. all the menu in my Cpanel are directing me back to my website..

i dont know why, but when i take out my web. and use the default flux cpanel. it works perfectly fine..

I gues its not the modules..

Something wrong with your themes.. you said that it works perfectly w/ the default themes right ?

Edited by Gerome
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi critica,

I'm not 100% of what your situation is right now; but it might be the way you have linked the register button to your CP. The thing is, the URL is CaSe-SenSiTiVe; so if your folder is 'CP', then it would be... http://darksoulro.com/CP, but if it is simply 'cp', it has to be... http://darksoulro.com/cp

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   4
  • Joined:  02/23/12
  • Last Seen:  

Yes sirs thanks for the help, ive already fix this, hehe!

thanks again /no1

Link to comment
Share on other sites

×
×
  • Create New...