/[scire]/webgli/networkmounts.php
Gentoo

Contents of /webgli/networkmounts.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 55 - (show annotations) (download)
Sun May 7 19:57:58 2006 UTC (12 years ago) by codeman
File size: 1131 byte(s)
adding a lot of webgli screens, some of which are done
the details of the status of webgli is in /webgli/TODO

1 <?php
2
3 include('webgliIP.php');
4 include('webgliUtility.php');
5
6 include('Smarty.class.php');
7 $smarty = new Smarty;
8
9 $smarty->template_dir = './templates';
10 $smarty->compile_dir = './templates_c';
11 $smarty->cache_dir = './cache';
12 $smarty->config_dir = './configs';
13
14 $ip = new InstallProfile();
15 $ip->parse('test.xml');
16
17 $error_msg = "";
18 $network_mounts = $ip->get("network_mounts");
19 # THE PYHTML WAY DID DEEP COPY HERE.
20 if ($_POST['addnfs']) {
21 if (!$_POST['hostname']) $error_msg .= "ERROR: Hostname not found.";
22 if (!$_POST['export']) $error_msg .= "ERROR: Export not found.";
23 if (!$_POST['mountpoint']) $error_msg .= "ERROR: Mountpoint not found.";
24 array_push($network_mounts, array('export'=> $_POST['export'], 'host'=> $_POST['hostname'], 'mountopts'=> $_POST['mountopts'], 'mountpoint'=> $_POST['mountpoint'], 'type'=> 'nfs'));
25 $ip->set("network_mounts",$network_mounts) or
26 $error_msg .= "ERROR: Could not add network mount.";
27 }
28 elseif ($_POST['Search']) {
29 $error_msg .= "Function not yet implemented! Very sorry about that!";
30 }
31 $smarty->assign('network_mounts',$network_mounts);
32 $smarty->display('networkmounts.tpl');
33 ?>

  ViewVC Help
Powered by ViewVC 1.1.20