{SOLVED}Can not access login page

Hi,

I am currently developing a custom skin, but when I press the button to login, it does not bring up the page. (I have not changed the login page yet.)

 

URL: http://vms.nair.cf

Also, logout works, only the login does not.

 

have you tried to point login to /index.php/profile

instead  of  index.php/login?

beaucse doing so will take you to login

Is your template file in your skin login_form.php ?

Show us your link code

14 hours ago, spkier said:

have you tried to point login to /index.php/profile

instead  of  index.php/login?

beaucse doing so will take you to login

Trying it right now, will see how it goes.

14 hours ago, BraedenD said:

Is your template file in your skin login_form.php ?

Don’t have a template for that

 

14 hours ago, spkier said:

have you tried to point login to /index.php/profile

instead  of  index.php/login?

beaucse doing so will take you to login

Still nothing.

 

2 minutes ago, Nojus1113 said:

Trying it right now, will see how it goes.

can you show us the  whole code for the registration form would be easier to find errors

i hope it’s    just a link mismatch

14 hours ago, flyalaska said:

Show us your link code

\<div class="mbr-section-btn"\>\<a class="btn btn-md btn-white-outline display-4" href="https://nair.cf/phpvms0/index.php/profile"\>\<span class="mbri-login mbr-iconfont mbr-iconfont-btn"\>\</span\>Login\</a\>\</div\>

 

1 minute ago, spkier said:

can you show us the  whole code for the registration form would be easier to find errors

i hope it’s    just a link mismatch

I have no registration form done yet, it should be the default phpVMS one.

1 minute ago, Nojus1113 said:

I have no registration form done yet, it should be the default phpVMS one.

the link isn’t wrong at all

but my guess would be that it cannot find the registration form beacuse you’re using a skin without telling it to use default login form from what i see you’re telling it to go to a registration form that dosnt exist 

mine looks exactly the same

try  and create a form first and see i will take a closer look when i get home

 

Good luck!

1 minute ago, spkier said:

the link isn’t wrong at all

but my guess would be that it cannot find the registration form beacuse you’re using a skin without telling it to use default login form from what i see you’re telling it to go to a registration form that dosnt exist 

mine looks exactly the same

try  and create a form first and see i will take a closer look when i get home

 

Good luck!

Thanks, I am working on the form right now actually.

 

5 minutes ago, Nojus1113 said:

I have no registration form done yet, it should be the default phpVMS one.

https://infinityfree.net/errors/404/

 

you’re using a freehost

i got a vps with php 5.2 running

and private  mysql wanna use that until you get you’re own for free?

beacuse freehost might temporarly work but suddently it dosnt

2 minutes ago, spkier said:

https://infinityfree.net/errors/404/

 

you’re using a freehost

i got a vps with php 5.2 running

and private  mysql wanna use that until you get you’re own for free?

beacuse freehost might temporarly work but suddently it dosnt

No thanks, my host is okay, I have been using it for a long time now and so far no issues.

Also, I am working on custom error pages.

8 minutes ago, Nojus1113 said:

No thanks, my host is okay, I have been using it for a long time now and so far no issues.

Also, I am working on custom error pages.

alright let me know if you get it working

Hi, do any of you guys know what is the link to the login page,  not form?

2 minutes ago, Nojus1113 said:

Hi, do any of you guys know what is the link to the login page,  not form?

mine is here http://192.3.141.136/dashboard/index.php/login

so this would be correctly /index.php/login

go a head and look into my code and see if you figure it out but i use a skin

2 minutes ago, spkier said:

mine is here http://192.3.141.136/dashboard/index.php/login

so this would be correctly /index.php/login

go a head and look into my code and see if you figure it out but i use a skin

How did you get CrewCenter working?!?!??

 

EDIT: I have wanted crewcenter but I could not get it working

6 minutes ago, Nojus1113 said:

How did you get CrewCenter working?!?!??

well i’m using 5.5.x of phpvms

first  upload crewcenter to /root/lib/skins

then rename crewcenter-master to crewcenter

upload the phpfiles and replace them with the .tpl files in the crewcenter skin

last go to phpvms admin

settings and change skin to crewmaster

btw i can install crewmaster for you if you struggle for it but this regures me phpvms administration access and FTP access

but as yhou use innfinity free you can create a subaccount

 

however here is the tricky part crewmaster uses a strange way to use recapcha so here is my code to bypass this:

 

 

\<?php /\*\* \* phpVMS - Virtual Airline Administration Software \* Copyright (c) 2008 Nabeel Shahzad \* For more information, visit www.phpvms.net \* Forums: http://www.phpvms.net/forum \* Documentation: http://www.phpvms.net/docs \* \* phpVMS is licenced under the following license: \* Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) \* View license.txt in the root, or visit http://creativecommons.org/licenses/by-nc-sa/3.0/ \* \* @author Nabeel Shahzad \* @copyright Copyright (c) 2008, Nabeel Shahzad \* @link http://www.phpvms.net \* @license http://creativecommons.org/licenses/by-nc-sa/3.0/ \*/ class Registration extends CodonModule { public function HTMLHead() { /\*Show our password strength checker \*/ if($this-\>get-\>page == 'register') { $this-\>renderTemplate('registration\_javascript.tpl'); } } public function index() { //updated to Google noCaptcha 1/15 if(Auth::LoggedIn()) { // Make sure they don't over-ride it $this-\>render('login\_already.tpl'); return; } if(isset($\_POST['submit'])) { $this-\>ProcessRegistration(); } else { $this-\>ShowForm(); } } protected function ShowForm() { $field\_list = RegistrationData::GetCustomFields(); $this-\>set('extrafields', $field\_list); $this-\>set('field\_list', $field\_list); $airline\_list = OperationsData::getAllAirlines(true); $this-\>set('allairlines', $airline\_list); $this-\>set('airline\_list', $airline\_list); $hub\_list = OperationsData::getAllHubs(); $this-\>set('allhubs', $hub\_list); $this-\>set('hub\_list', $hub\_list); $country\_list = Countries::getAllCountries(); $this-\>set('countries', $country\_list); $this-\>set('country\_list', $country\_list); $this-\>render('registration\_mainform.tpl'); } /\*\* \* Registration::ProcessRegistration() \* \* @return \*/ protected function ProcessRegistration() { // Yes, there was an error if(!$this-\>VerifyData()) { $this-\>ShowForm(); return; } $data = array( 'firstname' =\> $this-\>post-\>firstname, 'lastname' =\> $this-\>post-\>lastname, 'email' =\> $this-\>post-\>email, 'password' =\> $this-\>post-\>password1, 'code' =\> $this-\>post-\>code, 'location' =\> $this-\>post-\>location, 'hub' =\> $this-\>post-\>hub, 'confirm' =\> false ); if(CodonEvent::Dispatch('registration\_precomplete', 'Registration', $\_POST) == false) { return false; } $ret = RegistrationData::CheckUserEmail($data['email']); if($ret) { $this-\>set('error', Lang::gs('email.inuse')); $this-\>render('registration\_error.tpl'); return false; } $val = RegistrationData::AddUser($data); if($val == false) { $this-\>set('error', RegistrationData::$error); $this-\>render('registration\_error.tpl'); return; } else { $pilotid = RegistrationData::$pilotid; /\* Automatically confirm them if that option is set \*/ if(Config::Get('PILOT\_AUTO\_CONFIRM') == true) { PilotData::AcceptPilot($pilotid); RanksData::CalculatePilotRanks(); $pilot = PilotData::getPilotData($pilotid); $this-\>set('pilot', $pilot); $this-\>render('registration\_autoconfirm.tpl'); } else { /\* Otherwise, wait until an admin confirms the registration \*/ RegistrationData::SendEmailConfirm($email, $firstname, $lastname); $this-\>render('registration\_sentconfirmation.tpl'); } } CodonEvent::Dispatch('registration\_complete', 'Registration', $\_POST); // Registration email/show user is waiting for confirmation $sub = 'A user has registered'; $message = "The user {$data['firstname']} {$data['lastname']} ({$data['email']}) has registered, and is awaiting confirmation."; $email = Config::Get('EMAIL\_NEW\_REGISTRATION'); if(empty($email)) { $email = ADMIN\_EMAIL; } Util::SendEmail($email, $sub, $message); // Send email to user $this-\>set('firstname', $data['firstname']); $this-\>set('lastname', $data['lastname']); $this-\>set('userinfo', $data); $message = Template::Get('email\_registered.tpl', true); Util::SendEmail($data['email'], 'Registration at '.SITE\_NAME, $message); $rss = new RSSFeed('Latest Pilot Registrations', SITE\_URL, 'The latest pilot registrations'); $pilot\_list = PilotData::GetLatestPilots(); foreach($pilot\_list as $pilot) { $rss-\>AddItem('Pilot '.PilotData::GetPilotCode($pilot-\>code, $pilot-\>pilotid) . ' ('.$pilot-\>firstname .' ' . $pilot-\>lastname.')', SITE\_URL.'/admin/index.php?admin=pendingpilots','',''); } $rss-\>BuildFeed(LIB\_PATH.'/rss/latestpilots.rss'); } /\* \* Process all the registration data \*/ protected function VerifyData() { $error = false; /\* Check the firstname and last name \*/ if($this-\>post-\>firstname == '') { $error = true; $this-\>set('firstname\_error', true); } else { $this-\>set('firstname\_error', ''); } /\* Check the last name \*/ if($this-\>post-\>lastname == '') { $error = true; $this-\>set('lastname\_error', true); } else { $this-\>set('lastname\_error', ''); } /\* Check the email address \*/ if(filter\_var($this-\>post-\>email, FILTER\_VALIDATE\_EMAIL) == false) { $error = true; $this-\>set('email\_error', true); } else { $this-\>set('email\_error', ''); } /\* Check the location \*/ if($this-\>post-\>location == '') { $error = true; $this-\>set('location\_error', true); } else { $this-\>set('location\_error', ''); } // Check password length if(strlen($this-\>post-\>password1) \<= 5) { $error = true; $this-\>set('password\_error', 'The password is too short!'); } else { $this-\>set('password\_error', ''); } // Check is passwords are the same if($this-\>post-\>password1 != $this-\>post-\>password2) { $error = true; $this-\>set('password\_error', 'The passwords do not match!'); } else { $this-\>set('password\_error', ''); } if($error == true) { return false; } return true; } }