Initialized repository
[simplecm.git] / plugins / admin / option / configmod.php
blob3c72280eadffb4bd5a6edde3400d432823ebbf30
1 <?php
2 if($_POST["custmod"]){
3 $custmod = $_POST['custmod'];
4 }elseif($_GET['custmod']){
5 $custmod = $_GET["custmod"];
7 ?>
8 <form method="post" action="?scm=configmod" >
9 <input type="text" name="custmod" value="<?php echo $custmod;?>" />
10 <input type="Submit" value="Choose Custom Module" />
11 </form>
12 <br>
13 <?php
14 if(!$custmod){
15 echo "No Custom Module Selected";
16 exit;
17 }elseif(!file_exists("../../modules/".$custmod."/config.php")){
18 echo "Module Does Not Exist";
19 exit;
21 $file = $fspath . "/modules/" . $custmod . "/config.php";
22 $data = file_get_contents($file);
24 Editing Custom Modules Configuration <?php echo $_POST['custmod'];?><br><br>
25 <form name="RTEDemo" action="changes/configmod.php" method="post" >
26 <textarea cols="65" rows="20" name="data"><?php echo $data;?></textarea>
27 <input type="hidden" name="custmod" value="<?php echo $custmod; ?>" />
28 <p><input type="submit" name="submit" value="Submit Changes" /></p>
29 </form>