Source code modifications
The HTTP Commander is partially open source code project. You can view ASP.NET code of stored files in the HTCOMNET root folder in Notepad.
You are allowed to modify any of these files if you need:
- Default.aspx - The file controls Forms and Windows authentication and loading of main interface. Here you can modify authentication code or change interface view mode: Uncomment
<div id="httpCommander" ..>
line to place HTTP Commander interface inside the DIV region (for example, iframe view).
- Logout.aspx - The file controls user logout process.
- UsersHelp.html - Help file that users see by clicking help button at the toolabr.
- Global.asax - The file controls global events, error handling and programmatic users setup (optional).
- App_Code\ExternalCMSIntegration.cs- The code for integration with CMS like Joomla, Drupal.
Setup users and folders programmatically
You can setup users, their authentication, permissions and folders programmatically. I.e you don't need to use Admin panel and built-in XML files for storing data. This is needed if you have own database of users or you want programmatically setup users and folders.
All you need is to edit one open source files:
-
Global.asax stores sample code to setup users and folders. You should uncomment code in Application_Start event to use programmatic setup.
App_Code\SimpleAccountFolderManager.cs- The code of SimpleAccountManager and SimpleFolderManager classes used to setup users and folders. This file can be helpfull if you need to view and edit whole related to programmatic setup code.
Below is the example code of programmatical users and folders setup:
Change web.config settings programmatically
You can change web.config settings or set individual settings for each session programmatically:
-
To change web.config settings type in code like:
This is setting of parameter "ShowDiagnosticsASPXOnlyForAdmins".
-
To set individual web.config settings for each user session type in code :
This is setting of parameter "ShowDiagnosticsASPXOnlyForAdmins" for current session. Then you want to use setting for individual session set Utils.UsePersonalConfiguration flag to the "true".
The HTTP Commander has a license with full open source code in case you need to make more changes. Our support team can make some custom modifications for you as well.
DIV view mode: