Nagiosql's entry file:index.php, this is also the entry file for all PHP programs. is specified by Apache.
The beginning of the index.php file introduced the require ("functions/prepend_adm.php"); Nagiosql In fact, the entrance file for prepend_adm.php;
The prepend_adm.php file is the main entry file for Nagiosql, which plays a vital role throughout the program, passing session information to the entire program.
1 $conttp->setvariable ("TITLE", translate (' Welcome to '));
2 $conttp ->setvariable ("Title_login", translate (' welcome '));
3 $conttp->setvariable ("USERNAME", translate (' username '));
4 $conttp->setvariable ("PASSWORD", translate (' Secret Code '));
5 $conttp->setvariable ("Login", translate (' Login land '));
$conttp to the Html_template_it template class, which is declared in prepend_adm.php. $conttp = new Html_template_it ($preBasePath. " Templates/");
$conttp ->setvariable ("TITLE", translate (' Welcome to ')); The SetVariable method is set in the template The value of the title variable, set the value to translate (' Welcome to ').
Translate method is to translate the English to Chinese method, is for the internationalization realization.
$conttp->parse ("main"); The parse method is used to parse the main template. The variable can be set successfully after execution.
$conttp->show ("main"), in Show main template.
Templates can be displayed only after the parse and show are executed.
Nagios two development (vi) Introduction of---nagiosql main documents