ona
18.1.1
About: OpenNetAdmin provides a database managed inventory of your IP network (with Web and CLI interface). Fossies Dox: ona-18.1.1.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation) 
|
Go to the documentation of this file. 29 $_ENV[
'help_url'] =
"http://opennetadmin.com/docs/";
33 parse_str($_SERVER[
'QUERY_STRING']);
43 "default_context" =>
'DEFAULT',
46 "title" =>
'OpenNetAdmin :: ',
47 "meta_description" =>
'',
48 "meta_keywords" =>
'',
52 "html_style_sheet" =>
"$include/html_style_sheet.inc.php",
53 "html_desktop" =>
"$include/html_desktop.inc.php",
54 "loading_icon" =>
"<br><center><img src=\"{$images}/loading.gif\"></center><br>",
57 "inc_functions" =>
"$include/functions_general.inc.php",
58 "inc_functions_gui" =>
"$include/functions_gui.inc.php",
59 "inc_functions_db" =>
"$include/functions_db.inc.php",
60 "inc_functions_auth" =>
"$include/functions_auth.inc.php",
61 "inc_db_sessions" =>
"$include/adodb_sessions.inc.php",
62 "inc_adodb" =>
"$include/adodb/adodb.inc.php",
63 "inc_adodb_xml" =>
"$include/adodb/adodb-xmlschema03.inc.php",
64 "inc_xajax_stuff" =>
"$include/xajax_setup.inc.php",
65 "inc_diff" =>
"$include/DifferenceEngine.php",
68 "dcm_module_dir" =>
"$base/modules",
69 "plugin_dir" =>
"$base/local/plugins",
76 "logfile" =>
"/var/log/ona.log",
80 "php_charset" =>
"UTF-8",
85 "set_db_charset" => TRUE,
91 if (file_exists(
$base.
'/../VERSION')) {
$conf[
'version'] = trim(file_get_contents(
$base.
'/../VERSION')); }
108 if ($_SERVER[
'SERVER_PORT'] == 443) {
$self[
'secure'] = 1; }
142 $color[
'bgcolor_map_subnet'] =
'#CCBFFF';
143 $color[
'bgcolor_map_selected'] =
'#FBFFB6';
153 $color[
'menu_item_selected_bg']=
'#B1C6E3';
158 $style[
'font-family'] =
"Arial, Sans-Serif";
159 $style[
'borderT'] =
"border-top: 1px solid {$color['border']};";
160 $style[
'borderB'] =
"border-bottom: 1px solid {$color['border']};";
161 $style[
'borderL'] =
"border-left: 1px solid {$color['border']};";
162 $style[
'borderR'] =
"border-right: 1px solid {$color['border']};";
166 @include(
"{$base}/local/config/config.inc.php");
170 require_once(
$conf[
'inc_functions']);
173 require_once(
$conf[
'inc_functions_db']);
178 if (substr(exec(
"php -l $dbconffile"), 0, 28) ==
"No syntax errors detected in") {
181 echo
"Syntax error in your DB config file: {$dbconffile}<br>Please check that it contains a valid PHP formatted array, or check that you have the php cli tools installed.<br>You can perform this check maually using the command 'php -l {$dbconffile}'.";
185 require_once(
$base.
'/../install/install.php');
191 if (file_exists(
$base.
'/local/config/run_install') or @$runinstaller or @$install_submit ==
'Y') {
193 require_once(
$base.
'/../install/install.php');
198 if (@function_exists(
'mb_internal_encoding')) {
199 mb_internal_encoding(
"UTF-8");
201 printmsg(
"INFO => Missing 'mb_internal_encoding' function. Please install PHP 'mbstring' functions for proper UTF-8 encoding.", 0);
205 if (!isset($_COOKIE[
'ona_context_name'])) { $_COOKIE[
'ona_context_name'] =
$conf[
'default_context']; setcookie(
"ona_context_name",
$conf[
'default_context']); }
215 printmsg(
"INFO => Loaded config item from database: {$record['name']}=''{$record['value']}''",5);
220 require_once(
$conf[
'inc_db_sessions']);
223 require_once(
$conf[
'inc_functions_gui']);
226 require_once(
$conf[
'inc_functions_auth']);
232 ini_set(
"session.gc_maxlifetime",
$conf[
'cookie_life']);
235 if (isset(
$_SESSION[
'search_results_per_page']))
$conf[
'search_results_per_page'] =
$_SESSION[
'search_results_per_page'];
238 if (@(
$conf[
'force_https'] == 1) or ($_SERVER[
'SERVER_PORT'] == 443)) {
239 $https =
"https://{$_SERVER['SERVER_NAME']}";
242 if ($_SERVER[
'SERVER_PORT'] != 80) {
243 $https =
"http://{$_SERVER['SERVER_NAME']}:{$_SERVER['SERVER_PORT']}";
245 $https =
"http://{$_SERVER['SERVER_NAME']}";
db_get_records($dbh=0, $table="", $where="", $order="", $rows=-1, $offset=-1)
if(!isset($_COOKIE['ona_context_name'])) global $onadb
db_pconnect($type, $context_name)
if(6<=$conf['debug']) printmsg($msg="", $debugLevel=0)
if(file_exists($base.'/../VERSION')) $self
if($_SERVER['SERVER_PORT']==443) $color['bg']