Custom build: a little bit digging into "Parent Control/Time scheduling" GUI changes

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

webdriver

Occasional Visitor
I have expressed my complaint about Parent control/time scheduling GUI changes introduced since ASUS 386.xx fw version

So I make a little digging on how ASUS implement the GUI. It turns out just one web page file has been changed: www\ParentalControl.asp
However, other than GUI changes, ASUS does introduce a new nvram settings to store the time settings.
Before the change, the web page use following variables:

1610535376196.png


After the change, the web page use following variables:

1610535322371.png


By check at jffs/nvram, I do find following objects
1610535472214.png


On that page, once you decide to submit the form, it will call this:

1610535856393.png


So my question comes to @RMerlin , if I just use old version "ParentalControl.asp" to replace new one (make my own compiled version from your code), will it work?
I am a little bit new to how the GUI/webpage actually change the nvram values, is the "document.form.submit()" do the trick (not through any additional module)?

Cheers
 

Attachments

  • 1610535108967.png
    1610535108967.png
    14.4 KB · Views: 40

RMerlin

Asuswrt-Merlin dev
So my question comes to @RMerlin , if I just use old version "ParentalControl.asp" to replace new one (make my own compiled version from your code), will it work?

No. The backend code will not process the old variables, nor its old format.
 

webdriver

Occasional Visitor
No. The backend code will not process the old variables, nor its old format.

Yes! I just notice that. Might need a conversion inside the old page logic.

Another idea, I noticed there are custom asp pages being integrated into the web gui, i.e. "AddOns" (come with scMerlin). Can you give me some hints how those "user?.asp" being used to display custom contents? How safe it is to use custom pages? I have tested directly put url in my browser for an asp page it does display the content.

Also to report a bug (if it is) that if I click the tab "Help & Support" it opens a new tab and url is "[router_ip]/ext/shared-jy/redirect.htm" but the "AddOns" page ("[router_ip].user1.asp") showes blank unless you reload it.

1610562944406.png
 

RMerlin

Asuswrt-Merlin dev
The documentation on the AddOn API is all on the Wiki.
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top