Cacti PHP page 流程 (1) 入口

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

 

转载于:https://www.cnblogs.com/kylegui/p/3826772.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值