Mercurial > hg > mlmmj
comparison contrib/web/php-admin/htdocs/edit.php @ 770:b9b60f3dd694
Changes to indentation in php-admin and php-user
author | Ben Schmidt |
---|---|
date | Fri, 29 Oct 2010 22:25:56 +1100 |
parents | fc5892d87716 |
children | 1311f31713ba |
comparison
equal
deleted
inserted
replaced
769:fc5892d87716 | 770:b9b60f3dd694 |
---|---|
32 function mlmmj_boolean($name, $nicename, $text) | 32 function mlmmj_boolean($name, $nicename, $text) |
33 { | 33 { |
34 global $tpl, $topdir, $list; | 34 global $tpl, $topdir, $list; |
35 | 35 |
36 if(is_file($topdir."/".$list."/control/".$name)) | 36 if(is_file($topdir."/".$list."/control/".$name)) |
37 $checked = TRUE; | 37 $checked = TRUE; |
38 else | 38 else |
39 $checked = FALSE; | 39 $checked = FALSE; |
40 | 40 |
41 $tpl->assign(array("NAME" => htmlentities($name), | 41 $tpl->assign(array("NAME" => htmlentities($name), |
42 "NICENAME" => htmlentities($nicename), | 42 "NICENAME" => htmlentities($nicename), |
43 "TEXT" => htmlentities($text))); | 43 "TEXT" => htmlentities($text))); |
44 $tpl->assign(array("CHECKED" => $checked ? " checked" : "")); | 44 $tpl->assign(array("CHECKED" => $checked ? " checked" : "")); |
52 | 52 |
53 $file = $topdir."/".$list."/control/".$name; | 53 $file = $topdir."/".$list."/control/".$name; |
54 $value = ""; | 54 $value = ""; |
55 | 55 |
56 if(is_file($file)) { | 56 if(is_file($file)) { |
57 $lines = file($file); | 57 $lines = file($file); |
58 $value = $lines[0]; | 58 $value = $lines[0]; |
59 } | 59 } |
60 | 60 |
61 $tpl->assign(array("NAME" => htmlentities($name), | 61 $tpl->assign(array("NAME" => htmlentities($name), |
62 "NICENAME" => htmlentities($nicename), | 62 "NICENAME" => htmlentities($nicename), |
63 "TEXT" => htmlentities($text), | 63 "TEXT" => htmlentities($text), |
72 | 72 |
73 $file = "$topdir/$list/control/$name"; | 73 $file = "$topdir/$list/control/$name"; |
74 $value = ""; | 74 $value = ""; |
75 | 75 |
76 if(is_file($file)) | 76 if(is_file($file)) |
77 $value = file_get_contents($file); | 77 $value = file_get_contents($file); |
78 | 78 |
79 $tpl->assign(array("NAME" => htmlentities($name), | 79 $tpl->assign(array("NAME" => htmlentities($name), |
80 "NICENAME" => htmlentities($nicename), | 80 "NICENAME" => htmlentities($nicename), |
81 "TEXT" => htmlentities($text), | 81 "TEXT" => htmlentities($text), |
82 "VALUE" => htmlentities($value))); | 82 "VALUE" => htmlentities($value))); |