minor
major
This commit is contained in:
parent
5bd2e992ae
commit
6f433bac2f
2 changed files with 4 additions and 1 deletions
|
@ -31,6 +31,9 @@
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<StartupObject>bot.Bot</StartupObject>
|
||||||
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="log4net">
|
<Reference Include="log4net">
|
||||||
<HintPath>dll\log4net.dll</HintPath>
|
<HintPath>dll\log4net.dll</HintPath>
|
||||||
|
|
|
@ -7,7 +7,7 @@ if($_GET['del']) {
|
||||||
|
|
||||||
if($_POST["editId"]) {
|
if($_POST["editId"]) {
|
||||||
// TODO update this
|
// 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");
|
mysql_query("UPDATE `updater` SET `autonomous`=1 WHERE `id`=1");
|
||||||
header("Location: auto.php");
|
header("Location: auto.php");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue