Critica Posted June 15, 2012 Posted June 15, 2012 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)
Gerome Posted June 15, 2012 Posted June 15, 2012 the responsible for that is in modules/account/create.php find the redirect code..
Critica Posted June 15, 2012 Author Posted June 15, 2012 <?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.. =(
Gerome Posted June 16, 2012 Posted June 16, 2012 (edited) 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 June 16, 2012 by Gerome
Asura Posted June 16, 2012 Posted June 16, 2012 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
Critica Posted June 16, 2012 Author Posted June 16, 2012 Yes sirs thanks for the help, ive already fix this, hehe! thanks again
Question
Critica
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)
5 answers to this question
Recommended Posts