-
Posts
222 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by Thomas
-
Hello guys, Im trying to create a drop down menu, however, failing, BADLY. i was wondering if anybody had a code for a simple drop down menu that can be used with phpVMS? Thanks, Thomas.
-
Hi Nabeel, Heres the permissions... lib folder - 755 avatars folder - 777 images in the avatars folder and index.php - 644 Any ideas?
-
Hi Everybody, I recently changed hosts and done the following, Installed a fresh copy of phpVMS, Updated the SQL file, everything seemded to work ok. However over the past 2-3 days its come to my attention that Pilots cannot change there profile images, i dont know if this is something to do with the CMS or the database, i think the database? Any ideas/replys will all be helpfull, also apart from that one pilots callsign changed from PLS022 to PLS021, strange huh? Thanks, Thomas.
-
Nabeel, your a genius!!! ;D Thankyou very much for your help sir! works fine!
-
Also, As it said there was a problem on line 81, Here is the line 81 in the ACARS.php: header('Content-Length: ' . strlen($fsacars_config));
-
Hey Nabeel, First of all, thanks for replying, This is the code for the Mail.php, seems to be fine to me, <?php class Mail extends CodonModule { function Controller() { switch($this->get->page) { case 'inbox': if(!Auth::LoggedIn()) { echo 'You must be logged in to use the mail system'; return; } $pid = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid); Template::Set('mail', MailData::getallmail($pid)); Template::Set('pilotcode', PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid)); Template::Show('mail_inbox.tpl'); break; case 'item': if(!Auth::LoggedIn()) { echo 'You must be logged in to use the mail system'; return; } $mailid = $_GET['mailid']; $result = MailData::getmailitem($mailid); Template::Set('mail', $result); Template::Show('mail_open.tpl'); break; case 'new': if(!Auth::LoggedIn()) { echo 'You must be logged in to use the mail system'; return; } Template::Set('pilotcode', PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid)); Template::Show('mail_new.tpl'); break; case 'send': if(!Auth::LoggedIn()) { echo 'You must be logged in to use the mail system'; return; } $username=$_POST[username]; $whofrom=$_POST[whofrom]; $subject=$_POST[subject]; $message=$_POST[message]; Template::Set('pilotcode', PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid)); $sql="INSERT INTO airmail (username, whofrom, subject, message, date, time) VALUES ('$username', '$whofrom', '$subject', '$message', NOW(), NOW())"; DB::query($sql); echo "<center><h2>AIRmail sent!</h2></center>"; Template::Show('mail_menu.tpl'); break; case 'sent': if(!Auth::LoggedIn()) { echo 'You must be logged in to use the mail system'; return; } $pid = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid); Template::Set('mail', MailData::getsentmail($pid)); Template::Set('pilotcode', PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid)); Template::Show('mail_sentitems.tpl'); break; case 'delete': if(!Auth::LoggedIn()) { echo 'You must be logged in to use the mail system'; return; } $mailid = $_GET['mailid']; $result = MailData::deletemailitem($mailid); Template::Set('mail', $result); Template::Show('mail_deleted.tpl'); break; case 'reply': if(!Auth::LoggedIn()) { echo 'You must be logged in to use the mail system'; return; } $mailid = $_GET['mailid']; $result = MailData::getmailcontent($mailid); Template::Set('mail', $result); Template::Show('mail_reply.tpl'); } } } ?>
-
Not sure if iframe works with phpVMS however this is the iframe code: <iframe src ="PUT THE LINK HERE" width="100%" height="300"> <p>Your browser does not support iframes.</p> </iframe>
-
Hey All, Nabeel, Or anybody else who can help, heres my problem... When i go to: (download fspaxconfig) i get this error: Warning: Cannot modify header information - headers already sent by (output started at /home3/pulseair/public_html/members/core/modules/Mail/Mail.php:131) in /home3/pulseair/public_html/members/core/modules/ACARS/ACARS.php on line 106 menu_name=Pulse Air :: Members Area; base_url=http://members.pulseair.co.uk; path_stats=index.php/acars; path_export=action.php/acars/fspax; username=PLS0012; password=none; and also when i go to: http://members.pulseair.co.uk/action.php/acars/fsacarsconfig (download fsacars config) i get this error... Warning: Cannot modify header information - headers already sent by (output started at /home3/pulseair/public_html/members/core/modules/Mail/Mail.php:131) in /home3/pulseair/public_html/members/core/modules/ACARS/ACARS.php on line 81 [Log] Log=http://members.pulseair.co.uk/action.php/ACARS/fsacars/pirep Mail= URL=http://members.pulseair.co.uk/action.php/ACARS/fsacars passwd= [FSacars] CompanyICAO=PLS CompanyName=Pulse Air :: Members Area CompanySite=http://members.pulseair.co.uk UnitSystem=GB Remarks=RMK/ UseLocal=0 PilotNumber=PLS0012 CompanyIATA=FLIGHT # CallsignUses= AcarsSite=http://members.pulseair.co.uk/action.php/ACARS/fsacars/acars StatusSite=http://members.pulseair.co.uk/action.php/ACARS/fsacars/status FPSite=http://members.pulseair.co.uk/action.php/ACARS/fsacars/flightplans AcarsUplinkResetSite= AcarsUplinkSite= Antic= [Events] UseCargo=0 FlapsEvent=1 ToutchDownEvent=1 TOLDPosEvent=1 TOCTODEvent=1 ComFreqEvent=1 GearEvent=1 FlightLengthEvent=1 VrV2Event=1 PIREPEvent=1 FlightPosEvent=1 N1Event=1 DurationEvent=1 FuelEvent=1 WeightEvent=1 MetarsEvent=1 DistLandEvent=1 [Realism] NoSlew=0 NoPause=0 Crash=0 PIC=0 MinReset=0 MaxReset=0 Wave= [sendLog] Password=0 PilotNumber=1 Date=1 Hour=1 Callsign=1 IATAN=1 Regist=1 Depart=1 Arrival=1 Alternate=1 PlaneType=1 SpentFuel=1 IniFuel=0 EndFuel=0 Dur=1 Len=1 TD=1 ZFW=1 Log=1 Version=1 Ive realised that it is actually giving the code(s) however not as a downloadable txt/cfg file, any ideas? Thanks, Thomas.
-
Yes, All Files/Folders are 777.
-
Me want to !!!!!!
-
Stil same error, I recently changed hosts though and the home3, i dont know where/what that is on my current hosts, is there any way i can change this, Warning: imagepng() [function.imagepng]: Unable to open '/home3/pulseair/public_html/members//lib/signatures/PLS0003.png' for writing: Permission denied in /home3/pulseair/public_html/members/core/common/PilotData.class.php on line 777 Generating signature for Thomas Emms Same error as above for all people, its weird
-
Still getting the error. :-*
-
Hey, Well i kinda didnt realise that you couldnt Disable the CTRL+U however about the file permissions there is some way you can make them either re-direct to the front page or simple block people from accessing them, Ive seen websites, and im sure you have, which when you go to a directory sometimes they say - "You do not have the correct permissions to access these files" Maybe if you could do something like that james? And also, providing you block access to the stylesheets, then , if they copied the source, all they would get is a bunch of coloumns + pics. Thanks, Thomas.
-
When I try to "Reset/Update" the signatures i get these errors: Generating signatures... Generating signature for Pete Sumner Warning: imagepng() [function.imagepng]: Unable to open '/home3/pulseair/public_html/members//lib/signatures/PLS0017.png' for writing: Permission denied in /home3/pulseair/public_html/members/core/common/PilotData.class.php on line 777 Generating signature for Alexander Smith Warning: imagepng() [function.imagepng]: Unable to open '/home3/pulseair/public_html/members//lib/signatures/PLS0018.png' for writing: Permission denied in /home3/pulseair/public_html/members/core/common/PilotData.class.php on line 777 Generating signature for Simon Newman Warning: imagepng() [function.imagepng]: Unable to open '/home3/pulseair/public_html/members//lib/signatures/PLS0001.png' for writing: Permission denied in /home3/pulseair/public_html/members/core/common/PilotData.class.php on line 777 Generating signature for Ken Macelmon Generating signature for Kevin Kovago Warning: imagepng() [function.imagepng]: Unable to open '/home3/pulseair/public_html/members//lib/signatures/PLS0002.png' for writing: Permission denied in /home3/pulseair/public_html/members/core/common/PilotData.class.php on line 777 Generating signature for Daniel Green Warning: imagepng() [function.imagepng]: Unable to open '/home3/pulseair/public_html/members//lib/signatures/PLS0003.png' for writing: Permission denied in /home3/pulseair/public_html/members/core/common/PilotData.class.php on line 777 Generating signature for Thomas Emms Warning: imagepng() [function.imagepng]: Unable to open '/home3/pulseair/public_html/members//lib/signatures/PLS0012.png' for writing: Permission denied in /home3/pulseair/public_html/members/core/common/PilotData.class.php on line 777 Generating signature for Steve Dawson Generating signature for Jake Cureton Warning: imagepng() [function.imagepng]: Unable to open '/home3/pulseair/public_html/members//lib/signatures/PLS0006.png' for writing: Permission denied in /home3/pulseair/public_html/members/core/common/PilotData.class.php on line 777 Generating signature for Ionut Constantin Warning: imagepng() [function.imagepng]: Unable to open '/home3/pulseair/public_html/members//lib/signatures/PLS0005.png' for writing: Permission denied in /home3/pulseair/public_html/members/core/common/PilotData.class.php on line 777 Generating signature for James Consalvey Warning: imagepng() [function.imagepng]: Unable to open '/home3/pulseair/public_html/members//lib/signatures/PLS0007.png' for writing: Permission denied in /home3/pulseair/public_html/members/core/common/PilotData.class.php on line 777 Generating signature for Nicholas Brookes Done Can you please help?/ Thanks, thomas
-
Hey, Im not too sure but i think you can get a JS which disables right click and also CTRL+U (Page Source). Give it a try and also may i ask where this "Copied" site is? Thanks.
-
Also CableGuy, I Do Not Honestly think people are going to give there FTP Details Out.
-
I Dont think you fully understand, I Want to replace the "Accepted" TEXT Into an "Accepted" Image, What would the codes be and where? I had already tried the above. Thanks, Thomas.
-
Any ideas how you set the Webserver up for XACARS?
-
Ok So, you know when you File A Pirep or upload a flight report with FSACARS or FSPAX Well, how would i change the text = Accepted to be an image? Also the same for the other stuff like Rejected and Pending?
-
PM me your e-mail?
-
http://gncinema.co.uk/other/test.php If Your talking about something like this then i can send you the code?
-
Anyone?