major
This commit is contained in:
MallocNull 2014-10-27 14:21:44 -05:00
parent 5bd2e992ae
commit 6f433bac2f
2 changed files with 4 additions and 1 deletions

View file

@ -31,6 +31,9 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject>bot.Bot</StartupObject>
</PropertyGroup>
<ItemGroup>
<Reference Include="log4net">
<HintPath>dll\log4net.dll</HintPath>

View file

@ -7,7 +7,7 @@ if($_GET['del']) {
if($_POST["editId"]) {
// TODO update this
mysql_query("UPDATE `responses` SET `conditions`='". mysql_real_escape_string($c) ."', `respid`=". $_POST['resptype'] .", `parameters`='". mysql_real_escape_string($_POST['parameters']) ."', `cooldown`=". (($_POST['cdd']==0)?-1:$_POST['cooldown']) ." WHERE `id`=". $_POST['editId']) or die(mysql_error());
mysql_query("UPDATE `autonomous` SET `conditions`='". mysql_real_escape_string($c) ."', `respid`=". $_POST['resptype'] .", `parameters`='". mysql_real_escape_string($_POST['parameters']) ."', `cooldown`=". (($_POST['cdd']==0)?-1:$_POST['cooldown']) ." WHERE `id`=". $_POST['editId']) or die(mysql_error());
mysql_query("UPDATE `updater` SET `autonomous`=1 WHERE `id`=1");
header("Location: auto.php");
}