id] = $cond->friendlyname; } if($_POST["resptype"]) { $c = ""; for($i=1;;$i++) { if(!isset($_POST["if". $i ."group"])) break; $c .= $_POST['if'.$i.'group'] .",".$_POST['if'.$i.'not'].",".$_POST['if'.$i.'cond'].",".$_POST['if'.$i.'param'].";"; if(isset($_POST["op".$i])) $c .= $_POST["op".$i] .";"; } mysql_query("INSERT INTO `responses` (`conditions`,`respid`,`parameters`,`cooldown`) VALUES ('". mysql_real_escape_string($c) ."',". $_POST['resptype'] .",'". mysql_real_escape_string($_POST['parameters']) ."',". (($_POST['ccd']==0)?-1:$_POST['cooldown']) .")") or die(mysql_error()); header("Location: resp.php"); } include("header.php"); ?>
Response List

New Response

Create New Response

If Add Condition

then ". $desc ."

"; $i++; } ?>

Parameters:

Cooldown: seconds

    

Edit Response