Jump to content

Auto Accept/Reject Pirep


Vangelis
 Share

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

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

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.

Link to comment
Share on other sites

  • 5 weeks later...

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

Link to comment
Share on other sites

  • Members

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);
    }

Link to comment
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)

Link to comment
Share on other sites

  • 2 weeks later...

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...
 Share

×
×
  • Create New...