Difference between revisions of "OS4X Core web interface"

From OS4X
Jump to navigation Jump to search
Line 26: Line 26:
 
$userview=true;
 
$userview=true;
 
</pre>
 
</pre>
 +
 +
== enabling user view ==
 +
By setting the variable "<code>$userview</code>" to "<code>true</code>", the following components change:
 +
*the header of the web interface disables interacting with the daemons (starting, stopping, dumping logs etc.)

Revision as of 10:42, 2 May 2007

Configuration

The OS4X Core administrative web interface is configured via the file

database.inc.php

where the first lines are intersting only:

<?php
// Since 21.10.2006, you have two options to configure your web interface:
// - by pointing to an OS4X configuration file (like "/etc/os4x.conf")
// - by typing in the database connection values directly
// The type of used configuration is defined in the variable "config_type" using either "file" or "direct".
// Using the "file" method only works if the web interface is located at the same host as OS4X is running!

$config_type="file";
// $config_type="direct";

$config_file="/etc/os4x.conf";

// confguration part for direct configuration: just uncomment the following 5 lines and change values as needed
// $mysql_host = "localhost:3306:/tmp/mysql.sock";
// $mysql_user = "os4x";
// $mysql_password = "os4x";
// $DBName = "os4x";
// $tableprefix="os4x_";

// enable this flag if a user-sight of this web interface is wanted
$userview=true;

enabling user view

By setting the variable "$userview" to "true", the following components change:

  • the header of the web interface disables interacting with the daemons (starting, stopping, dumping logs etc.)