Beispiel #1
0
    //检查权限
    System::check_func($func, FALSE);
    $_GalSet = new Navigate(VI_ROOT . 'module/' . $appid . '/navigate.php', VI_ROOT . 'module/' . $appid . '/navigate.xml', $appid);
    if ($_GET["action"] == "update" && !empty($_POST)) {
        if ($_GalSet->save('POST')) {
            //连接数据库
            System::connect();
            //写入日志
            System::insert_event($func, time(), time());
            //关闭数据库
            System::connect();
            echo '<div id="state">成功修改模块配置,新配置将立即生效</div>';
        } else {
            echo "<div id='state' class='failure'>保存模块配置失败!请检查 ./module/" . $appid . "/navigate.php 是否有读写权限</div>";
        }
    } elseif ($_GalSet->writable() == FALSE) {
        echo "<div id='state' class='failure'>请检查 ./module/" . $appid . "/navigate.php 是否有读写权限</div>";
    }
    $form = $_GalSet->transform();
    ?>
		
		<script type="text/javascript">
			
			var addrowdirect = 0;
			var rowallnum = new Array();
			if ( typeof rowmaxnum == 'undefined' ) {
			    rowmaxnum = new Array();
			}
			
			function delrow( obj ){