projects
/
PHP-P10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d77e4b8
)
added scriptpaste.com support
author
NurPech
<nurpech@nurpech.de>
Sun, 9 Jun 2013 21:52:37 +0000
(23:52 +0200)
committer
NurPech
<nurpech@nurpech.de>
Sun, 9 Jun 2013 21:52:37 +0000
(23:52 +0200)
Bots/PHPGod.class.php
patch
|
blob
|
history
diff --git
a/Bots/PHPGod.class.php
b/Bots/PHPGod.class.php
index e0ee13ef4709d1969a283549e59811d5e2639d0f..dac07e8e50ec31df8914999e7f74b6ce88f11a28 100644
(file)
--- a/
Bots/PHPGod.class.php
+++ b/
Bots/PHPGod.class.php
@@
-105,6
+105,11
@@
class {$_NAME} extends Bot {
return;
}
$code = $codecontent;
return;
}
$code = $codecontent;
+ } elseif(preg_match("#scriptpaste\.(com|de)/([a-zA-Z0-9]*)$#i", $exp[1])) {
+ $pasteid = explode("/", $exp[1]);
+ $pasteid = $pasteid[count($pasteid)-1];
+ $codecontent = file_get_contents("http://scriptpaste.com/".$pasteid."/download");
+ $code = $codecontent;
} else {
$code = "<"."?php " . $exp[1] . " ?".">";
};
} else {
$code = "<"."?php " . $exp[1] . " ?".">";
};