Jump to content
Vangelis

Auto Accept/Reject Pirep

Recommended Posts

Sorry for the question, I know nothing about programming.

Any example and where I have to change.

1.Edit simbrief.apiv1.js in lib/js

and add your full website addres in the apropiate location

2.Edit your schedule_briefing.tpl in /core/templates and in line 195 edit the link to corespond to your site

Example

http://www.yoursitelink/index.php/SimBrief

Last line Finish 148

3. Add this line before tag in layout.tpl

I have to add here

Share this post


Link to post
Share on other sites

thank you for your respond.

From what i see it seems to be corect can you provide me with a screenshot with the criteria and one with a flight log ?

Share this post


Link to post
Share on other sites

Is there a way to reject a pirep if the pilots don't use the aircraft in the schedule when they fly? I have a pilot who uses a 738 on routes for a 744. I am also looking into having the ACARS not even start the flight if the aircraft isn't correct.

Share this post


Link to post
Share on other sites

Dear Baggelis is there a chance of putting a code for under review based on the criteria currently all the pireps were getting accepted or rejected but we wanted to include something in between for example based on the criteria if we wanted some of the pireps do not directly get rejection it should come under review so admin can review the pireps and then decide weather to go for approval or rejection.

i hope you understand my point.

Share this post


Link to post
Share on other sites

Hi Vangelis, one help please

Strict Standards: Non-static method PirepAcData::get_criteria() should not be called statically, assuming $this from incompatible context in/homepages/10/d328219951/htdocs/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 52

and

Strict Standards: Non-static method PirepAcData::get_settings() should not be called statically, assuming $this from incompatible context in/homepages/10/d328219951/htdocs/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 54

Tanks

Share this post


Link to post
Share on other sites

Hello can you please tell me what php version and what phpvms version you are using ?

and try replacing in common/PirepAcData.php aprox line 27

   public function get_settings() {
	    $query = "SELECT *
	    FROM ".TABLE_PREFIX."autopirep_settings";
	    return DB::get_row($query);
    }

With

   public static function get_settings() {
	    $query = "SELECT *
	    FROM ".TABLE_PREFIX."autopirep_settings";
	    return DB::get_row($query);
    }

Share this post


Link to post
Share on other sites

Clicking save me out :

Strict Standards: Non-static method PirepAcData::editSettings() should not be called statically, assuming $this from incompatible context in /homepages/10/d328219951/htdocs/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 135

I`m sorry forgive, and arrange.

public function editSettings($setting_id,$moduleenabled,$landing_rate, $send_mail_to_admin, $send_mail_to_pilot, $admin_code)

Change

public static function editSettings($setting_id,$moduleenabled,$landing_rate, $send_mail_to_admin, $send_mail_to_pilot, $admin_code)

Share this post


Link to post
Share on other sites

Good Evening. Many pilots send pireps not have data (log) how can I do to make that the PIREPs is rejected. Thanks for a possible answer. Regards

Share this post


Link to post
Share on other sites

I installed your module, but after installing the flight that participate through TOUR SYSTEM module not identify most.

The module is not compatible? when I accept manual log it appears in the module when it is on your system does not appear.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...