From: pk910 Date: Sun, 27 Nov 2011 03:21:43 +0000 (+0100) Subject: fixed inclusions and replace \n with a new line char X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;ds=sidebyside;h=b78f8bb824fcf2b8a6011a8e5e57763e97862edb;p=PHP-P10.git fixed inclusions and replace \n with a new line char --- diff --git a/Bots/CGod.class.php b/Bots/CGod.class.php index 4871694..efc2bd6 100644 --- 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"); - fwrite($fp, "#include \"includes.h\"\n".$exp[1]); + fwrite($fp, "#include \"includes.h\"\n".str_replace(array("\\n"), array("\n"),$exp[1])); fclose($fp); $err = shell_exec("gcc -o tmp/debug_".$entry['id']." tmp/debug_".$entry['id'].".c 2>&1"); if($err) { diff --git a/tmp/includes.h b/tmp/includes.h index f5af347..b91b474 100644 --- a/tmp/includes.h +++ b/tmp/includes.h @@ -1,11 +1,13 @@ -#include "ctype.h" -#include "float.h" -#include "iso646.h" -#include "limits.h" -#include "math.h" -#include "stddef.h" -#include "stdio.h" -#include "stdlib.h" -#include "string.h" -#include "time.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include \ No newline at end of file