Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (34 sloc) 0.97 kb
<?php
include_once "config.inc.php";
include_once "templates/style.css";
$etl = new Etl;
if(!@$_GET['filename'])
{
die($lang['noFileChoose']);
}
else
{
echo "<a href=index.php?frame=right>".$lang['back']."</a><br><br>";
if(file_exists($env['etl'].$_GET['filename']))
{
if(!@$_POST['filename'])
{
$str = $etl->GetEtl($_GET['filename']);
echo "<form method=post>";
echo "<textarea name=content cols=\"60\" rows=\"30\">".$str."</textarea><br>";
echo "<input type=hidden name=filename value=".$_GET['filename'].">";
echo "<input type=submit value=".$lang['submit'].">&nbsp;&nbsp;<input type=button value=\"".$lang['cancel']."\" onclick=\"javascript:history.back()\">";
echo "</form>";
}
else
{
$etl->PutEtl($_POST['content'], $_POST['filename']);
echo "<script>alert(\"".$lang['success']."\");window.location='execEtl.php';</script>";
}
}
else
{
echo "<script>alert(".$lang['noSuchFile'].");history.back();</script>";
}
}
?>
Jump to Line
Something went wrong with that request. Please try again.