summaryrefslogtreecommitdiffstats
path: root/pages/Modules:Enable.xml
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-12-14 01:06:02 +0100
committerneoraider <devnull@localhost>2006-12-14 01:06:02 +0100
commit543336aef16562369c01992817f58e17144c9cad (patch)
treed49cd8549a836c740df7096ddcf7788ed7920c37 /pages/Modules:Enable.xml
parent93e1133ee88b03e7cae7318cb19761e698e57b86 (diff)
downloadneon-543336aef16562369c01992817f58e17144c9cad.tar
neon-543336aef16562369c01992817f58e17144c9cad.zip
Base-Type durch Subst-Erweiterungen unnoetig gemacht; Type-Konzept entfernt.
Diffstat (limited to 'pages/Modules:Enable.xml')
-rw-r--r--pages/Modules:Enable.xml28
1 files changed, 28 insertions, 0 deletions
diff --git a/pages/Modules:Enable.xml b/pages/Modules:Enable.xml
new file mode 100644
index 0000000..5788204
--- /dev/null
+++ b/pages/Modules:Enable.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<page>
+ <info>
+ <name>Modules:Enable</name>
+ <template>phpexec</template>
+ <access>0:0</access>
+ </info>
+ <data>
+ <code>
+ <![CDATA[
+<?PHP
+ Uses('links', 'util');
+
+ if(!$_GET['name']) exit();
+
+ if($_GET['enable'] == 'true') $enable = true;
+ elseif($_GET['enable'] == 'false') $enable = false;
+ else exit();
+
+ $GLOBALS['modules']->Enable(Unquote($_GET['name']), $enable);
+
+ header('Location: ' . $GLOBALS['links']->GetNeonLink('Modules', null, false));
+ exit();
+?>
+ ]]>
+ </code>
+ </data>
+</page>