Nagios two development (vi) Introduction of---nagiosql main documents

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.