home *** CD-ROM | disk | FTP | other *** search
- <?php
-
- /* let's make it talk more than just one language */
- include ("./config.inc.php");
- include ("../lang/".$lang."/editor.php");
-
- $WINDIR = $_SERVER["WINDIR"];
- $uri = $_SERVER["PHP_SELF"];
- $date = date("Ymd0000");
- $realdate = date("Y.m.d");
-
- preg_match ("/^.*?@(.*)$/",$_SERVER["SERVER_ADMIN"],$domain);
- $curdomain = $domain[1];
-
- # All available *.conf-files @ {AP2CONFDIR} except CCs
- //$tswcgi = array ("$desc_edt_tswcgi","$tsw_inst_path\Apache2\conf\httpd.cgi.conf");
- $tswhandler = array ("$desc_edt_tswhan", "$tsw_inst_path\Apache2\conf\httpd.conf");
- $sslconf = array ("$desc_edt_sslcnf","$tsw_inst_path\Apache2\conf\mods\ssl.conf");
- $vhconf = array ("$desc_edt_vhost","$tsw_inst_path\Apache2\conf\virtualHost.conf");
- $aspconf = array ("$desc_edt_asp","$tsw_inst_path\Apache2\conf\mods\asp.conf");
- $perlconf = array ("$desc_edt_perl","$tsw_inst_path\Apache2\conf\mods\mod_perl.conf");
- $proxyconf = array ("$desc_edt_proxy","$tsw_inst_path\Apache2\conf\mods\proxy.conf");
- $secuconf = array ("$desc_edt_secu","$tsw_inst_path\Apache2\conf\mods\security.conf");
- $pythonconf = array ("$desc_edt_python","$tsw_inst_path\Apache2\conf\mods\psp.conf");
- $gzipconf = array ("$desc_edt_gzip","$tsw_inst_path\Apache2\conf\mods\mod_gzip.conf");
-
- $mysqlini = array ("$desc_edt_myini","$tsw_inst_path\DB\MySQL4\conf\my.ini");
-
- # Available notes-files
- $priv1 = array ("$desc_note1","$tsw_inst_path\Apache2\admin\priv\\note1.txt");
- $priv2 = array ("$desc_note2","$tsw_inst_path\Apache2\admin\priv\\note2.txt");
- $priv3 = array ("$desc_note3","$tsw_inst_path\Apache2\admin\priv\\note3.txt");
-
- # All available *.conf-files outside {AP2CONFDIR} and application-conf's
- $phpHini = array ("$desc_edt_phpHini","$tsw_inst_path\Apache2\conf\php.ini");
- $phpCini = array ("$desc_edt_phpCini","$WINDIR\php.ini");
- $pmaconf = array ("$desc_edt_pma","$tsw_inst_path\Apache2\admin\\tools\pma\config.inc.php");
- $ibwaconf = array ("$desc_edt_ibwa","$tsw_inst_path\Apache2\admin\\tools\ibwa\inc\configuration.inc.php");
- $hamipac = array ("$desc_edt_hamster","$tsw_inst_path\Mail\IPAccess.hst");
- $fbgconf = array ("$desc_edt_firebird","$tsw_inst_path\DB\FireBird\firebird.conf");
-
- #only required if Register globals is off
- if($_GET['load']){ $load=$_GET['load']; }
- if($_GET['feed']){ $feed=$_GET['feed']; }
-
- $mesage = ${$load}[0];
- $path = ${$load}[1];
- $file = $path;
- $feed = stripslashes($feed);
-
- if($_GET['action'] == "write"){
- $mesg = "<br>$write2file <b>$file</b> </span><br>";
- write_file($feed,$file);
- }
-
- $fhr = fopen("$file", "r");
- $data = fread($fhr,filesize($file));
- fclose ($fhr);
-
- function write_file($feed,$file){
- $fhw = fopen("$file", "w");
- $ok = fwrite ($fhw,"$feed");
- fclose ($fhw);
- }
-
- ?>
-
- <html>
- <title>Editing : <?php echo $mesage; ?></title>
- <link rel=stylesheet href=../../css/style.css>
- <center>
- <p class=manipheadtitle><font size=5><?php echo $mesage; ?></font></p>
- <?php echo $allow_edt; ?><br>
- <?php echo $u_r_edt; ?> <b><?php echo $file; ?></b><br> <?php echo $mesg; ?></span><br>
-
- <form name="form" method="post" action="<?php echo "{$uri}?load={$load}&action=write"; ?>">
- <textarea class=input name="feed" cols="100" rows="25" wrap="OFF"><?php echo $data; ?></textarea>
- <br><br><?php echo "<input class=submit type=\"submit\" value=\"".$w2f_submit."\">"; ?>
- </form>
-
- </center>
- </html>