Changes on webGUI



  • Hello, some Features same as Packet Manager in webGUI are disabled (i cant see them). I got the System from someone else and dont know which file is changed to disable These Features. Now i want to have them back. Anybody know which file should i look to find them.
    thanks.



  • nobody can help?!!!
    it means no one has changed the webgui till now? i want to know which file should i Change to delete for example OpenVpn Icon under VPN in webgui?
    or otherwise to enable it again.
    i searched alot didnt found it.
    thanks.



  • Hello, some Features same as Packet Manager in webGUI are disabled

    Never heard of Packet Manager.  Did you mean Package Manager, or Packet Capture?

    I got the System from someone else and don't know which file is changed

    You might considering reinstalling everything.  I'm not aware of any option that would make System - Package Manager or Diagnostics - Packet Capture disabled.



  • @KOM:

    Hello, some Features same as Packet Manager in webGUI are disabled

    Never heard of Packet Manager.  Did you mean Package Manager, or Packet Capture?

    I got the System from someone else and don't know which file is changed

    You might considering reinstalling everything.  I'm not aware of any option that would make System - Package Manager or Diagnostics - Packet Capture disabled.

    thanks for reply. Sorry yes i mean Package Manager.
    first if we Forget enabling or disabling them, how can i remove for example OpenVPN Icon under VPN from GUI? or how can i add a new Icon call it new under VPN. which file should be changed?



  • No idea.  That is a development question.  You're asking how to edit the menus to remove the OpenVPN option and replace it with something else?  I can't imagine why you would do this.



  • @alivdel:

    …. or how can i add a new Icon call it new under VPN. which file should be changed?

    If you could 'read' en 'edit' PHP files, you would also have the knowledge where to find these files - even on a device like pfSense.
    So, locate the files (page) and change whatever you like.

    If this means anything to you : the entire pfSense project is available @ github - and accessible on your pf Sense device. Just use the console, option 8 (or use a SFTP like FieZilla) and poke around. It's 'nothing more' then a basic FreeBSD OS, a nginx webserver, boatloads of GUI code (PHP - Java, stye sheets, etc) and several programs sourced from C - and several thousand (multiple !) of man hours gluing it all together..

    But there is no manual that says : "edit this line if you want to show that text on this page". pfSense is open source. So you get the source and you deal with it. Source guidance does not exist, as far as I know. GUI programmers don't need guidance. And even if they do, they communicate not on this forum. These people tend to isolate themselves for a reason.

    Also : checkout github : GUI 'source code' is changed daily.

    edit : but to get you straight in "no-time" :
    First : do you run this :

    2.4.2-RELEASE-p1 (amd64)
    built on Tue Dec 12 13:45:26 CST 2017
    FreeBSD 11.1-RELEASE-p6
    

    ?
    If yes, : make a copy of the config file, and re-install completely (because your system is trafficked with, or borked) - takes 10 minutes.
    If no : make a copy of the config file, and re-install completely (because your system is trafficked with, or borked) - take the latest version - takes 10 minutes.



  • @Gertjan:

    @alivdel:

    …. or how can i add a new Icon call it new under VPN. which file should be changed?

    If you could 'read' en 'edit' PHP files, you would also have the knowledge where to find these files - even on a device like pfSense.
    So, locate the files (page) and change whatever you like.

    If this means anything to you : the entire pfSense project is available @ github - and accessible on your pf Sense device. Just use the console, option 8 (or use a SFTP like FieZilla) and poke around. It's 'nothing more' then a basic FreeBSD OS, a nginx webserver, boatloads of GUI code (PHP - Java, stye sheets, etc) and several programs sourced from C - and several thousand (multiple !) of man hours gluing it all together..

    But there is no manual that says : "edit this line if you want to show that text on this page". pfSense is open source. So you get the source and you deal with it. Source guidance does not exist, as far as I know. GUI programmers don't need guidance. And even if they do, they communicate not on this forum. These people tend to isolate themselves for a reason.

    Also : checkout github : GUI 'source code' is changed daily.

    edit : but to get you straight in "no-time" :
    First : do you run this :

    2.4.2-RELEASE-p1 (amd64)
    built on Tue Dec 12 13:45:26 CST 2017
    FreeBSD 11.1-RELEASE-p6
    

    ?
    If yes, : make a copy of the config file, and re-install completely (because your system is trafficked with, or borked) - takes 10 minutes.
    If no : make a copy of the config file, and re-install completely (because your system is trafficked with, or borked) - take the latest version - takes 10 minutes.

    thanks for your reply, actually i know how to edit a php file, i'v already changed a lot. but in this case the Problem is i cant find the proper file which is used for menu, if i know which file is, i can easily edit it.
    and the way you suggested (reinstallling) is not a good solution for me, because i need to make some changes in menu for a short time (add some Icons) and delete them again after that. if i reinstall the System ya sure i have all of Options back but i cant delete them again, thats why i Need to find the proper php file.



  • @KOM:

    No idea.  That is a development question.  You're asking how to edit the menus to remove the OpenVPN option and replace it with something else?  I can't imagine why you would do this.

    that was an example, i wanted to explain what exactly i mean. and my Problem is not how to edit but which file to edit. i cant find the proper php file for menu. for example i wanted to add some rules for Password authority of users, that was under system_usermanager.php file. But which file is used for main menu. that is my question.
    thanks.



  • @alivdel:

    …. i Need to find the proper php file.

    Before I have a look : what pfSense version ?
    As said, I'm using the latest = 2.4.2.

    Open a shell, and

    cd  /usr/local/www
    grep 'Package Manager' *
    

    The menu is hard coded in /usr/local/www/head.inc (among others).
    Or, at least, it should be there - in your case.

    The "Packet Manager" is also referenced in other files.

    Use pfsense@github to compare with what you have, and what should be there.



  • @Gertjan:

    @alivdel:

    …. i Need to find the proper php file.

    Before I have a look : what pfSense version ?
    As said, I'm using the latest = 2.4.2.

    Open a shell, and

    cd  /usr/local/www
    grep 'Package Manager' *
    

    The menu is hard coded in /usr/local/www/head.inc (among others).
    Or, at least, it should be there - in your case.

    The "Packet Manager" is also referenced in other files.

    Use pfsense@github to compare with what you have, and what should be there.

    thanks a lot, (/usr/local/www/head.inc ) this file is exactly what i wanted.



  • I try to do as you said but still can not solve the problem.



  • @Katharine:

    I try to do as you said but still can not solve the problem.

    which part you mean you tried to do and could not solve the Problem? can you explain more about the Problem.


Log in to reply