Advertisement
mixster

mixster

Jun 28th, 2009
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.15 KB | None | 0 0
  1. !bind add rawquery if (!$ismaster) { return; } if(!$qq) { $qq = $r; } $qa = explode($qq, " "); if ((strtoupper($ar[0]) != "SELECT") || (!$dmp)) { dumpDB("//" . $IRC->cM->nick . "; Performing " . $qq); $rr = "Dumped. "; } $rr .= mysql_query($qq);
  2.  
  3. !bind add dynbind_add if(!$ismaster) { return; } if (!(($cc) && ($co))) { if(sizeof($a) < 3) { return; } $cc = strtoupper($a[1]); $co = implodefrom($a, " ", 2); }
  4. if($oc = fetchcmdcode($cc)) { $qq = "UPDATE "  . $IRC->cTableName . " SET code=\'" . $co . "\' WHERE name=\'" . $cc . "\'"; $ac = "Updated "; } else { $qq = "INSERT INTO " . $IRC->cTableName . "(name, code) VALUES (\'" . $cc . "\', \'" . $co . "\')"; $ac = "Added "; }
  5. $dmp = "//" . $IRC->cM->nick . "; " . $ac . "command " . $cc . "\r\n\r\n//New code:\r\n" . $co; if ($oc) { $dmp .= "\r\n\r\n//Old code:\r\n" . $oc; } eval(fetchcmdcode("RAWQUERY")); dumpDB($dmp); Send("PRIVMSG " . $IRC->cM->Param[0] . " :" . $ac . "command " . strtolower($cc) . " successfully!");
  6.  
  7. !bind add dynbind_app if(!$ismaster) { return; } if(!(($cc) && ($co))) { if(sizeof($a) < 3) { return; } $cc = strtoupper($a[1]); $co = implodefrom($a, " ", 2); } }
  8. if(!($oc = fetchcmdcode(strtoupper($cc)))) { Send("PRIVMSG " . $IRC->cM->param[0] . " :Command doesn\'t exist, so cannot append"; return; } $dmp = "//" . $IRC->cM->nick . "; Appended code to " . $cc . "\r\n\r\n//Appending code:\r\n" . $co . "\r\n\r\n//Old code:\r\n" . $oc;
  9. $qq = "UPDATE " . $IRC->cTableName . " SET code=concat(code, \'\r\n" . $co . "\') WHERE name=\'" . $cc . "\'"; eval(fetchcmdcode("RAWQUERY")); Send("PRIVMSG " . $IRC->cM->param[0] . " :Appended code to " . strtolower($cc) . " successfully!");
  10.  
  11. !bind add dynbind_del if(!$ismaster) { return; } if(!($cc)) { if(sizeof($a) < 2) { return; } $cc = strtoupper($a[1]); } if(!($oc = fetchcmdcode($cc))) { Send("PRIVMSG " . $IRC->cM->param[0] . " :Command does not exist"); return; }
  12. $dmp = "//" . $IRC->cM->nick . "; Deleting command " . $cc . "\r\n\r\n//Old code:\r\n" . $oc; $qq = "DELETE FROM " . $IRC->cTableName . " WHERE name=\'" . $cc . "\'"; eval(fetchcmdcode("RAWQUERY")); dumpDB($dmp); Send("PRIVMSG " . $IRC->cM->param[0] . " :Deleted command " . $cc . " successfully!";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement