summaryrefslogtreecommitdiff
path: root/webgli
diff options
context:
space:
mode:
authorPreston Cody <codeman@gentoo.org>2006-04-15 20:04:05 +0000
committerPreston Cody <codeman@gentoo.org>2006-04-15 20:04:05 +0000
commit4fabbf2804cff12deb2a5e34542c305a59c0affe (patch)
tree00f4421c1dd60ed88af2531d8340b1d4735a6507 /webgli
parentadding two functions for configfiles page (diff)
downloadscire-4fabbf2804cff12deb2a5e34542c305a59c0affe.tar.gz
scire-4fabbf2804cff12deb2a5e34542c305a59c0affe.tar.bz2
scire-4fabbf2804cff12deb2a5e34542c305a59c0affe.zip
typos and ;'s and $s and such
svn path=/; revision=15
Diffstat (limited to 'webgli')
-rw-r--r--webgli/webgliIP.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/webgli/webgliIP.php b/webgli/webgliIP.php
index 1e6c2f5..cbe46cf 100644
--- a/webgli/webgliIP.php
+++ b/webgli/webgliIP.php
@@ -133,7 +133,7 @@ class InstallProfile extends XMLParser {
break;
}
}
- switch $value['type'] {
+ switch ($value['type']) {
case 'string':
case 'uri':
$this->xmldoc .= sprintf("<%s>%s</%s>", $xmlname, $this->get($name), $xmlname);
@@ -160,8 +160,8 @@ class InstallProfile extends XMLParser {
}
function serialize_default_gateway() {
- gw = $this->get("default_gateway");
- return sprintf("<default-gateway interface=\"%s\">%s</default-gateway>", gw[0], gw[1]);
+ $gw = $this->get("default_gateway");
+ return sprintf("<default-gateway interface=\"%s\">%s</default-gateway>", $gw[0], $gw[1]);
}
function add_etc_files_file_entry($value, $attr) {
@@ -180,7 +180,7 @@ class InstallProfile extends XMLParser {
}
function serialize_etc_files() {
- xmldoc = "<etc-files>";
+ $this->xmldoc = "<etc-files>";
foreach($this->get("etc_files") as $etc_file => $values) {
$this->xmldoc .= sprintf("<file name=\"%s\">", $etc_file);
$isalist = (array_keys($values) === range(0, count($values) - 1)) ? true : false;
@@ -203,8 +203,8 @@ class InstallProfile extends XMLParser {
$ip = $broadcast = $netmask = $dhcp_options = null;
$dhcp = true;
- forach($attr as $name => $value) {
- switch $name {
+ foreach($attr as $name => $value) {
+ switch ($name) {
case 'ip':
$ip = $value;
break;
@@ -215,7 +215,7 @@ class InstallProfile extends XMLParser {
$netmask = $value;
break;
case 'options':
- $dhcp_options = $value
+ $dhcp_options = $value;
break;
}
}
@@ -227,9 +227,9 @@ class InstallProfile extends XMLParser {
$options = array('dhcp', $dhcp_options, '');
}
- network_interfaces = $this->get("network_interfaces");
- network_interfaces[$device] = $options;
- $this->set("network_interfaces", network_interfaces);
+ $network_interfaces = $this->get("network_interfaces");
+ $network_interfaces[$device] = $options;
+ $this->set("network_interfaces", $network_interfaces);
}
function serialize_network_interfaces() {