Cacti PHP page 流程 (1) 入口

时间:2022-02-28 00:48:12

cacti的PHP page flow是什么? 本文尝试归纳一下。

 

top level flow:

1. index.php:  画界面

界面已经能工作了,虽然简陋,不过可以working.

 

<?php

#include("./include/global.php");

#include("./include/auth.php");
include("./include/top_header.php");

#api_plugin_hook('console_before');

?>
<table width="100%" align="center">
    <tr>
        <td class="textArea">
            <strong>You are now logged into <a href="about.php">GWP Tool</a>. You can follow these basic steps to get
            started.</strong>

            <ul>
                <li><a href="project_new.php">Create projects</a> for project</li>
                <li><a href="testplan_new.php">Create TestPlan</a> for your new project</li>
                <li><a href="regression_new.php">Create TestPlan</a> for your new project</li>
                <li><a href="regression_view.php">View</a> your new graphs</li>
            </ul>
        </td>
        <td class="textArea" align="right" valign="top">
            <strong>Version <?php print $config["cacti_version"];?></strong>
        </td>
    </tr>
</table>

<?php

#api_plugin_hook('console_after');

#include("./include/bottom_footer.php");

?>

 

2. 下一级功能入口的实现:

project_new,

testplan_new,

regression_new,

regression_view