Jump to content

MPE001

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by MPE001

  1. The Yellowknife hub page needs fixing, im seeing some php coding. Welcome to my RW neighborhood and home Hq of Canadian Arctic Virtual and Buffalo virtual.
  2. Solved Found a thread by Mr.Bean that greatly provided the silver bullet.
  3. Problems with cookies Where do I adjust the Cookie path. I have a weird log in and log out issues that keeps pointing to cookies.
  4. Your hub menu indicates San Fran and depicts LAX? Looks good.
  5. An excellent module. Thank you and I will e-mail you.
  6. I believe this is base http://www.phpvms.net/downloads Then grab the php affected and upload thru FTP to proper structure folder Hum still getting error.
  7. post #6 "file contents in here" Those " in post #8 related. I pasted the code between those quotes. In notepad++ I dont see those at the begin or end.
  8. "<?php and }" So delete the " at the start and end?
  9. "<?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 */ class Login extends CodonModule { public function __construct() { parent::__construct(); } public function index() { $this->login(); } public function login($redir='') { if(Auth::LoggedIn() == true) { $this->render('login_already.tpl'); return; } $this->set('redir', $redir); if(isset($this->post->action) && $this->post->action == 'login') { $this->ProcessLogin(); } else { $this->render('login_form.tpl'); } } public function logout() { Auth::LogOut(); $this->set('redir', SITE_URL); $this->render('login_complete.tpl'); } public function forgotpassword() { if($this->post->action == 'resetpass') { $this->ResetPassword(); return; } $this->render('login_forgotpassword.tpl'); } public function ResetPassword() { $email = $this->post->email; if(!$email) { return false; } else { $pilotdata = PilotData::GetPilotByEmail($email); if(!$pilotdata) { $this->render('login_notfound.tpl'); return; } $newpw = substr(md5(date('mdYhs')), 0, 6); RegistrationData::ChangePassword($pilotdata->pilotid, $newpw); $this->set('firstname', $pilotdata->firstname); $this->set('lastname', $pilotdata->lastname); $this->set('newpw', $newpw); $message = Template::GetTemplate('email_lostpassword.tpl', true); Util::SendEmail($pilotdata->email, 'Password Reset', $message); $this->render('login_passwordreset.tpl'); } } public function ProcessLogin() { $email = $this->post->email; $password = $this->post->password; if($email == '' || $password == '') { $this->set('message', 'You must fill out both your username and password'); $this->render('login_form.tpl'); return false; } if(!Auth::ProcessLogin($email, $password)) { $this->set('message', Auth::$error_message); $this->render('login_form.tpl'); return false; } else { if(Auth::$userinfo->confirmed == PILOT_PENDING) { $this->render('login_unconfirmed.tpl'); Auth::LogOut(); // show error } elseif(Auth::$userinfo->confirmed == PILOT_REJECTED) { $this->render('login_rejected.tpl'); Auth::LogOut(); } else { $pilotid = Auth::$userinfo->pilotid; $session_id = Auth::$session_id; # If they choose to be "remembered", then assign a cookie if($this->post->remember == 'on') { $cookie = "{$session_id}|{$pilotid}|{$_SERVER['REMOTE_ADDR']}"; $res = setrawcookie(VMS_AUTH_COOKIE, $cookie, time() + Config::Get('SESSION_LOGIN_TIME'), '/'); } PilotData::UpdateLogin($pilotid); #$this->set('redir', SITE_URL . '/' . $this->post->redir); #$this->render('login_complete.tpl'); CodonEvent::Dispatch('login_success', 'Login'); $this->post->redir = str_replace('index.php/', '', $this->post->redir); header('Location: '.url('/'.$this->post->redir)); } return; } } }" Login.php
  10. Here is what im seeing in Notepad++ Can you please point me to the whitespace so I can see a visual example. class Login extends CodonModule { public function __construct() { parent::__construct(); } public function index() { $this->login(); } public function login($redir='') { if(Auth::LoggedIn() == true) { $this->render('login_already.tpl'); return; } $this->set('redir', $redir); if(isset($this->post->action) && $this->post->action == 'login') { $this->ProcessLogin(); } else { $this->render('login_form.tpl'); } } public function logout() { Auth::LogOut(); $this->set('redir', SITE_URL); $this->render('login_complete.tpl'); } public function forgotpassword() { if($this->post->action == 'resetpass') { $this->ResetPassword(); return; } $this->render('login_forgotpassword.tpl'); } public function ResetPassword() { $email = $this->post->email; if(!$email) { return false; } else { $pilotdata = PilotData::GetPilotByEmail($email); if(!$pilotdata) { $this->render('login_notfound.tpl'); return; } $newpw = substr(md5(date('mdYhs')), 0, 6); RegistrationData::ChangePassword($pilotdata->pilotid, $newpw); $this->set('firstname', $pilotdata->firstname); $this->set('lastname', $pilotdata->lastname); $this->set('newpw', $newpw); $message = Template::GetTemplate('email_lostpassword.tpl', true); Util::SendEmail($pilotdata->email, 'Password Reset', $message); $this->render('login_passwordreset.tpl'); } } public function ProcessLogin() { $email = $this->post->email; $password = $this->post->password; if($email == '' || $password == '') { $this->set('message', 'You must fill out both your username and password'); $this->render('login_form.tpl'); return false; } if(!Auth::ProcessLogin($email, $password)) { $this->set('message', Auth::$error_message); $this->render('login_form.tpl'); return false; } else { if(Auth::$userinfo->confirmed == PILOT_PENDING) { $this->render('login_unconfirmed.tpl'); Auth::LogOut(); // show error } elseif(Auth::$userinfo->confirmed == PILOT_REJECTED) { $this->render('login_rejected.tpl'); Auth::LogOut(); } else { $pilotid = Auth::$userinfo->pilotid; $session_id = Auth::$session_id; # If they choose to be "remembered", then assign a cookie if($this->post->remember == 'on') { $cookie = "{$session_id}|{$pilotid}|{$_SERVER['REMOTE_ADDR']}"; $res = setrawcookie(VMS_AUTH_COOKIE, $cookie, time() + Config::Get('SESSION_LOGIN_TIME'), '/'); } PilotData::UpdateLogin($pilotid); #$this->set('redir', SITE_URL . '/' . $this->post->redir); #$this->render('login_complete.tpl'); CodonEvent::Dispatch('login_success', 'Login'); $this->post->redir = str_replace('index.php/', '', $this->post->redir); header('Location: '.url('/'.$this->post->redir)); } return; } } }
  11. Canadian Arctic would like to thank Jeff at Kacars for developing our MPEcars and now has been put in the pilot center. We also have started adding in the fleet downloads. Current is the Iris C27J paint and the rare and only Canadian North Majestic Dash8 paint.
  12. I have a similar issue on login this Warning: Cannot modify header information - headers already sent by (output started at /home/canadian/public_html/core/local.config.php:1) in /home/canadian/public_html/core/modules/Login/Login.php on line 143 Warning: Cannot modify header information - headers already sent by (output started at /home/canadian/public_html/core/local.config.php:1) in /home/canadian/public_html/core/modules/Login/Login.php on line 154 Then I click my home and im log in. On log out this Warning: Cannot modify header information - headers already sent by (output started at /home/canadian/public_html/core/local.config.php:1) in /home/canadian/public_html/core/common/Auth.class.php on line 341 Other strange issues cant see my routes, pilots in the Phpvms admin panel.
  13. From the sound of the Op I'm betting VAFS. Check my Airline http://www.canadianarcticvirtual.net/ I run both VAFS and Phpvms with Custom Kacars MPEcars. Both have there own economy. This keeps my pilots from getting bored with one system, so they get the freedom of choice anytime and they back each other up in case one is down for anyone known reasons. Like a RW airlines I need to keep chugging away in the Virtual Skies.
  14. Does anyone know how to get Cargo Carried to show under passengers carried?
  15. Chad does excellent work. http://www.canadianarcticvirtual.net/ and I run on two systems Kacars Va Central and Vafs.
  16. I'm looking at getting one similar to Phoenix Virtual or VACA.
  17. Ok I have further issues now. Manual filing reports are not going thru??
  18. I work with many of Canada's Airlines. West Jet is very strict in re guards to Virtual Airlines. The only one I have on my list that is officially endorsed and cleared is http://www.virtualwestjet.org/. My suggestion is Learn the Airline Business. Customer care can only relay your req and not to supply, supply dept is not copyright. You want a answer get there Corp Phone # and call and ask for Legal ie Copyright and brand of United. As it is United being huge, you have deal with the Vultures of lawyers in Legal lol. Tread careful using West Jet, they don't play, they take out Virtual Airlines. Many tried and all failed except one. West Jet is very aggressive.
  19. I got a similar issue. I can send but in my admin Ctr vaCentral Status: You have 3 PIREPS waiting for export to vaCentral. Click here to send them and when clicked vaCentral PIREP Export FAILED exporting PIREP #28 - No response from API server FAILED exporting PIREP #27 - No response from API server FAILED exporting PIREP #26 - No response from API server Completed
  20. Canadian Arctic Virtual is pleased to announce phase 1 launch complete is now hiring. We cater to the Canadian Arctic and rest of the World Arctic from our three hubs CYXY, CYZF, CYFB. We also cover Antarctic and Pacific operations from our Australia Hub Alice Springs YBAS and our Satellite Queenstown NZ. In Green Bay KGRB is our Charter and Executive fleet hub, they'll pamper you or haul what ever you want. We strive to give our pilots as many tools as possible to challenge them and keep there morale high and curious. We do this thru Two divisions, the VA Central and VAFS5. Pilots also can be on both Div's except when the Div. Battle Royal event is called. We officially launch St.Patty's Day after final gremlins are worked out Ie Custom Kacars and a Charter Center. In the Summer of 2012 RW Canadian North will be taking up my req for Partnership and I will be there personally to answer all questions there board may have for me. My hope is gain the right to be the only authorized Canadian North Virtual. Till then we stay fictional Canadian Arctic Virtual and our site current is approved by RW Canadian North. There a very friendly Airline and my personal hometown favorite. http://www.canadianarcticvirtual.net/ Special thank you to Chad at Miniarma and Nabeel at Fivedev.
  21. MPE001

    kAcars Error

    Did I see hosting24.com in the xml?? There the reason I switched to Fivedev. Overall experience I had with them was terrible.
  22. Now that can be a great eye catcher to a potential new member. Sometimes that's all it takes to snare a newbie pilot.
  23. Ok I've managed to create my data base and install the phpvms and now I get this in my VA admin center The install folder still exists!! This poses a security risk. Please delete it immediately How do i delete that, please understand my mind understands mapping instructions.
  24. Chad can you contact me via pm on this Maxx Blue Skin. I did file a req at your site for assist.
  25. Yes my current host is paid, not free.
×
×
  • Create New...