• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Apply changes button : javascript post to php function question

Scheduled Pinned Locked Moved Development
5 Posts 3 Posters 489 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    cosmor
    last edited by cosmor Dec 12, 2019, 9:20 PM Dec 12, 2019, 9:20 PM

    Hello Devs,
    Does any one know which php function or shell script is called from "Apply changes" button and related javascript, when the system is marked as 'dirty' and asks for confirmation when editing gateway (my main main focus) ( or interface or rules etc ).. and user settings are changing the old ones, in order to execute user confirmation and reload in the background?

    Thanks

    1 Reply Last reply Reply Quote 0
    • G
      Gertjan
      last edited by Dec 13, 2019, 10:01 AM

      Hi,

      What page / button ?

      This one :

      f8eb7267-4daf-4ac6-ae4b-aa2aed6cf0d9-image.png

      It's here : /firewall_rules.php line 131 (pfSense 2.4.4-p3)
      That's classic PHP for me.

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      C 1 Reply Last reply Dec 13, 2019, 6:26 PM Reply Quote 1
      • J
        jimp Rebel Alliance Developer Netgate
        last edited by Dec 13, 2019, 1:13 PM

        There is no single function called when that button is pressed. Every page that needs it implements its own code to apply changes as needed.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        C 1 Reply Last reply Dec 13, 2019, 6:29 PM Reply Quote 1
        • C
          cosmor @Gertjan
          last edited by Dec 13, 2019, 6:26 PM

          @Gertjan
          Simple but Great inside, I found the rest of POST "apply" on related pages, either be rules, gateways etc.. according to your example in conjuction with confirmation of jimp below. Thanks again, much appreciated.

          1 Reply Last reply Reply Quote 0
          • C
            cosmor @jimp
            last edited by Dec 13, 2019, 6:29 PM

            @jimp Many thanks for you clarification.

            1 Reply Last reply Reply Quote 0
            5 out of 5
            • First post
              5/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received