Netgate Store

Author Topic: Changes on webGUI  (Read 503 times)

0 Members and 1 Guest are viewing this topic.

Offline alivdel

  • Jr. Member
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Changes on webGUI
« on: January 24, 2018, 01:17:51 am »
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.

Offline alivdel

  • Jr. Member
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Changes on webGUI
« Reply #1 on: January 24, 2018, 06:57:02 am »
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.
 

Offline KOM

  • Hero Member
  • *****
  • Posts: 5936
  • Karma: +724/-24
    • View Profile
Re: Changes on webGUI
« Reply #2 on: January 24, 2018, 09:01:46 am »
Quote
Hello, some Features same as Packet Manager in webGUI are disabled

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

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


Offline alivdel

  • Jr. Member
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Changes on webGUI
« Reply #3 on: January 24, 2018, 09:35:17 am »
Quote
Hello, some Features same as Packet Manager in webGUI are disabled

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

Quote
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?

Offline KOM

  • Hero Member
  • *****
  • Posts: 5936
  • Karma: +724/-24
    • View Profile
Re: Changes on webGUI
« Reply #4 on: January 24, 2018, 10:14:24 am »
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.

Offline Gertjan

  • Hero Member
  • *****
  • Posts: 2700
  • Karma: +219/-9
    • View Profile
Re: Changes on webGUI
« Reply #5 on: January 24, 2018, 10:15:06 am »
.... 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 :
Code: [Select]
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.
« Last Edit: January 24, 2018, 10:18:39 am by Gertjan »

Offline alivdel

  • Jr. Member
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Changes on webGUI
« Reply #6 on: January 25, 2018, 02:28:30 am »
.... 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 :
Code: [Select]
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.
 

Offline alivdel

  • Jr. Member
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Changes on webGUI
« Reply #7 on: January 25, 2018, 02:34:43 am »
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.

Offline Gertjan

  • Hero Member
  • *****
  • Posts: 2700
  • Karma: +219/-9
    • View Profile
Re: Changes on webGUI
« Reply #8 on: January 25, 2018, 07:31:11 am »
.... 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
Code: [Select]
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.




Offline alivdel

  • Jr. Member
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Changes on webGUI
« Reply #9 on: January 25, 2018, 10:42:12 am »
.... 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
Code: [Select]
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.

Offline Katharine

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Changes on webGUI
« Reply #10 on: April 02, 2018, 02:35:01 am »
I try to do as you said but still can not solve the problem.

Offline alivdel

  • Jr. Member
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Changes on webGUI
« Reply #11 on: April 04, 2018, 07:24:56 am »
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.