Jump to content

spkier

Members
  • Posts

    63
  • Joined

  • Last visited

Everything posted by spkier

  1. 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; } }
  2. 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
  3. Sounds too good to be true works fine here installations are good everything seems to run fine on my dedicated server and my private vps running ubuntu both good job! can't wait for beta release it's scheduled tomorrow right? just kidding take you're time
  4. alright let me know if you get it working
  5. 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
  6. 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!
  7. 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
  8. http://192.3.141.136 i fixed registration try amd register and see if you figure something out. i no longer get route not passed however if i add a bid it dosn't show up in my bids and neither does the smartcars find it? i'm quite new to phpvms any help would be greetly appreciate it
  9. have you tried to point login to /index.php/profile instead of index.php/login? beaucse doing so will take you to login
  10. anyway i no longer get route not passed however if i add a bid it dosn't show up in my bids and neither does the smartcars find it? i'm quite new to phpvms any help would be greetly appreciate it
  11. i just reinstalled the vps try agen 192.3.141.136/crewcenter btw you need to register but i havent fixed the capcha
  12. Hello i'm currently running phpvms 5.5.0 in ubuntu 14.04 php 5.2.3 with apache2 and mysql 5.0 everything runs fine and everything works exepct the scehduling i always get "no route passed" i dunno how to fix it i have no skin and i have not made any adjustments just a clean install with a brand new database on a brand new vps here is teh webpage 192.3.141.136 soryr for my typing i'm currently on my phone and i need help asap! i ahvent seen anyone figuered this out in this forum and nothing works it's not beacuse of the skin it's the install itself i also cannot register but this is because of the capcha witch is pretty simple to resolve Best Regards Ulrik Brun EDIT: I INSTALLED A SKIN NOW HOWEVER NOTHING CHANGED STILL THE SAME
×
×
  • Create New...