projects
/
PHP-P10.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
do not replace \n!!!
[PHP-P10.git]
/
Bots
/
CGod.class.php
diff --git
a/Bots/CGod.class.php
b/Bots/CGod.class.php
index efc2bd68f7e876144b56ed494a46001f8dbdc3ae..4871694f1c3f45e1925105605c01cea92b368e25 100644
(file)
--- a/
Bots/CGod.class.php
+++ b/
Bots/CGod.class.php
@@
-92,7
+92,7
@@
class {$_NAME} extends Bot {
$entry['channel'] = $channel;
$entry['id'] = rand(1, 999999);
$fp = fopen("tmp/debug_".$entry['id'].".c", "w");
$entry['channel'] = $channel;
$entry['id'] = rand(1, 999999);
$fp = fopen("tmp/debug_".$entry['id'].".c", "w");
- fwrite($fp, "#include \"includes.h\"\n".
str_replace(array("\\n"), array("\n"),$exp[1])
);
+ fwrite($fp, "#include \"includes.h\"\n".
$exp[1]
);
fclose($fp);
$err = shell_exec("gcc -o tmp/debug_".$entry['id']." tmp/debug_".$entry['id'].".c 2>&1");
if($err) {
fclose($fp);
$err = shell_exec("gcc -o tmp/debug_".$entry['id']." tmp/debug_".$entry['id'].".c 2>&1");
if($err) {