/[scire]/webgli/services.php
Gentoo

Contents of /webgli/services.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 55 - (show annotations) (download)
Sun May 7 19:57:58 2006 UTC (12 years, 2 months ago) by codeman
File size: 1614 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 if ($_POST['saveservices']) {
18 if ($_POST['servicesmanual']) {
19 $services = explode(',',$_POST['servicesmanual']);
20
21 } elseif ($_POST['services']) {
22 $services = $_POST['services'];
23 }
24 if ($services) {
25 $ip->set("services",$services);
26 #SAVE VALUES
27 file_put_contents('test.xml', $ip->serialize()); #PHP 5 only
28 #$error_msg .= "ERROR! Could not set the services list.";
29 }
30 if (!$error_msg) $error_msg = "Values saved successfully";
31 }
32 $smarty->assign('services', $ip->get("services"));
33 # I don't want to do this anymore. $smarty->assign('manualservices', join(',',$ip->get("services")));
34
35 $choices['alsasound'] = "ALSA Sound Daemon";
36 $choices['apache'] = "Common web server (version 1.x)";
37 $choices['apache2'] = "Common web server (version 2.x)";
38 $choices['distccd'] = "Distributed Compiling System";
39 $choices['esound'] = "ESD Sound Daemon";
40 $choices['hdparm'] = "Hard Drive Tweaking Utility";
41 $choices['local'] = "Run scripts found in /etc/conf.d/local.start";
42 $choices['portmap'] = "Port Mapping Service";
43 $choices['proftpd'] = "Common FTP server";
44 $choices['sshd'] = "SSH Daemon (allows remote logins)";
45 $choices['xfs'] = "X Font Server";
46 $choices['xdm'] = "X Daemon";
47 $smarty->assign('choices',$choices);
48 $smarty->assign('error_msg',$error_msg);
49 $smarty->display('services.tpl');
50
51 ?>

  ViewVC Help
Powered by ViewVC 1.1.20