certaindeath, 03/07/08
Nopaste
<?
###########################################################################################
#
# Author: certaindeath
#
# Site: http://xhacker.altervista.org
#
# Program: nopaste
#
# Copyright (C) 2008 certaindeath This program is free software: you can redistribute
# it and/or modify it under the terms of the GNU General Public License as published
# by the Free Software Foundation, either version 3 of the License, or (at your option)
# any later version. This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with this
# program. If not, see <http://www.gnu.org/licenses/>.
#
###########################################################################################
$aut = $_POST['author'];
$tit = $_POST['title'];
$typ = $_POST['type'];
$txt = $_POST['text'];
$p = $_GET ['p'];
if ($p != ""){
$file = fopen ("db.php", "r");
$cont = fread ($file, filesize ("db.php"));
$scripts = explode ("//<-dfmposgjkrpoy,lf,htlruypuèlyòj.h-j.>", $cont);
if ($p==0){
$scripts[$p] = str_replace("<?", '', $scripts[$p]);
}
$scripts[$p] = str_replace("/*", '', $scripts[$p]);
$scripts[$p] = str_replace("*/", '', $scripts[$p]);
$scripts[$p] = str_replace("//<-dfmposgjkrpoy,lf,htlruypuèlyòj.h-j.>", '', $scripts[$p]);
$scripts[$p] = str_replace("<ic>", '/*', $scripts[$p]);
$scripts[$p] = str_replace("<fc>", '*/', $scripts[$p]);
echo $scripts [$p];
}elseif(($aut == "") or ($tit == "") or ($txt == "")){
echo "<form action='nop.php' method = 'POST'>
<p>Autore: <input type='text' name='author'></input></p>
<p>Titolo: <input type='text' name='title'></input> <select name='type'><option>C</option><option>Perl</option><option>Python</option><option>PHP</option><option>Altro</option></select></p>
<p><textarea name='text' rows='20' cols='52'></textarea></p>
<p><input type='submit' value='Invia' ></input></p>
</form>";
}else{
$txt = htmlentities($txt);
$txt = str_replace(" ", ' ', $txt);
$txt = stripslashes($txt);
function si($val){
$tmp = str_replace("'", "<>", $val[0]);
$tmp = str_replace("/*", "<ic>", $tmp);
$tmp = str_replace("#", "<ca>", $tmp);
$tmp = str_replace("//", "<c>", $tmp);
return $tmp;
}
$txt = preg_replace_callback("/'(.+?)'/", "si", $txt);
$txt = preg_replace_callback('/"(.+?)"/', "si", $txt);
$txt = str_replace("'", '<>', $txt);
$txt = str_replace("\n", '<br>', $txt);
$txt = str_replace("\t", ' ', $txt);
$txt .= "<br>";
switch($typ){
case "C":
$arr = array("asm", "while", "break", "case", "catch", "char", "continue", "default", "delete", "do", "double", "else", "extern", "float", "for", "goto", "if", "inline", "int", "long", "register", "return", "short", "signed", "sizeof", "static", "struct", "switch", "typedef", "union", "unsigned", "void");
$a=0;
$c = 0;
$r = "";
$b = array();
$tamp = "";
while ($a < count($arr)){
$r = "/(".$arr[$a].")/";
if (preg_match_all($r, $txt, $b, PREG_OFFSET_CAPTURE) != 0){
while ($c < count($b[0])){
if (!(preg_match("/[a-zA-Z0-9]/", $txt[$b[0][$c][1]-1])) and !(preg_match("/[a-zA-Z0-9]/", $txt[$b[0][$c][1]+strlen($b[0][0][0])]))){
$tamp = substr($txt, 0, $b[0][$c][1]);
$tamp .= "<b>".$b[0][$c][0]."</b>";
$tamp .= substr($txt, $b[0][$c][1]+strlen($b[0][$c][0]));
$txt = $tamp;
preg_match_all($r, $txt, $b, PREG_OFFSET_CAPTURE);
}
$c++;
}
}
$a++;
$c=0;
}
function sis($val){
$tmp = str_replace("<font color='6699FF'>", "", $val[0]);
$tmp = str_replace("</font>", "", $tmp);
$tmp = str_replace("<b>", "", $tmp);
$tmp = str_replace("</b>", "", $tmp);
$tmp = str_replace("<>", "<ap>", $tmp);
$tmp = str_replace('"', "<vi>", $tmp);
return "<font color='green'>".$tmp."</font>";
}
function sist($val){
$tmp = str_replace("<font color='6699FF'>", "", $val[0]);
$tmp = str_replace("<font color='green'>", "", $tmp);
$tmp = str_replace("</font>", "", $tmp);
$tmp = str_replace("<b>", "", $tmp);
$tmp = str_replace("</b>", "", $tmp);
$tmp = str_replace("<>", "<ap>", $tmp);
$tmp = str_replace('"', "<vi>", $tmp);
$tmp = str_replace("//", "<c>", $tmp);
return "<font color='grey'>".$tmp."</font>";
}
function sista($val){
$tmp = str_replace("<font color='6699FF'>", "", $val[0]);
$tmp = str_replace("<font color='grey'>", "", $tmp);
$tmp = str_replace("<font color='green'>", "", $tmp);
$tmp = str_replace("</font>", "", $tmp);
$tmp = str_replace("<b>", "", $tmp);
$tmp = str_replace("</b>", "", $tmp);
$tmp = str_replace("<>", "<ap>", $tmp);
$tmp = str_replace('"', "<vi>", $tmp);
$tmp = str_replace("//", "<c>", $tmp);
$tmp = str_replace("/*", "<ic>", $tmp);
$tmp = str_replace("*/", "<fc>", $tmp);
return "<font color='grey'>".$tmp."</font>";
}
function sistb($val){
$tmp = str_replace("<font color='6699FF'>", "", $val[0]);
$tmp = str_replace("<font color='grey'>", "", $tmp);
$tmp = str_replace("<font color='green'>", "", $tmp);
$tmp = str_replace("</font>", "", $tmp);
$tmp = str_replace("<b>", "", $tmp);
$tmp = str_replace("</b>", "", $tmp);
$tmp = str_replace("<>", "<ap>", $tmp);
$tmp = str_replace('"', "<vi>", $tmp);
$tmp = str_replace("//", "<c>", $tmp);
$tmp = str_replace("/*", "<ic>", $tmp);
$tmp = str_replace("*/", "<fc>", $tmp);
return "<font color='red'>".$tmp."</font>";
}
function sistc($val){
$tmp = str_replace("<font color='6699FF'>", "", $val[0]);
$tmp = str_replace("<font color='grey'>", "", $tmp);
$tmp = str_replace("<font color='green'>", "", $tmp);
$tmp = str_replace("<font color='red'>", "", $tmp);
$tmp = str_replace("</font>", "", $tmp);
$tmp = str_replace("<b>", "", $tmp);
$tmp = str_replace("</b>", "", $tmp);
$tmp = str_replace("<>", "<ap>", $tmp);
$tmp = str_replace('"', "<vi>", $tmp);
$tmp = str_replace("//", "<c>", $tmp);
$tmp = str_replace("/*", "<ic>", $tmp);
$tmp = str_replace("*/", "<fc>", $tmp);
return "<font color='red'>".$tmp."</font>";
}
$txt = preg_replace('/[0-9]{1,}|[0-9]{1,}\.[0-9]{1,} /', "<font color='6699FF'>"."\${0}"."</font>", $txt);
$txt = preg_replace_callback('/#(.+?)<br>/', "sis", $txt);
$txt = preg_replace_callback('/\/\*(.+?)\*\//', "sist", $txt);
$txt = preg_replace_callback('/\/\/(.+?)<br>/', "sista", $txt);
$txt = preg_replace_callback('/("")|("(.+?)")/', "sistb", $txt);
$txt = preg_replace_callback('/(\<\>\<\>)|(\<\>(.+?)\<\>)/', "sistc", $txt);
$txt = str_replace("<ap>", "'", $txt);
$txt = str_replace("<vi>", """, $txt);
$txt = str_replace("<c>", "//", $txt);
$txt = str_replace("<ic>", "/*", $txt);
$txt = str_replace("<fc>", "*/", $txt);
$txt = str_replace("<ca>", "#", $txt);
$txt = str_replace("<>", "'", $txt);
break;
case "Perl":
$arr = array("if", "elsif", "while","for", "else", "or", "and", "chomp", "chop", "chr", "crypt", "hex", "rindex", "index", "lc", "lcfirst", "length", "oct", "ord", "pack", "q\/STRINGA\/", "qq\/STRINGA\/", "reverse","sprintf", "substr", "tr\/\/\/", "uc", "ucfirst", "y\/\/\/", "m\/\/", "pos", "quotemeta", "s\/\/\/", "split", "study", "qr\/\/", "abs", "atan2", "cos", "exp", "hex", "log", "oct", "rand", "sin", "sqrt", "srand", "pop", "push", "unshift","shift", "splice","grep", "join", "map", "qw\/STRINGA\/", "reverse", "sort", "unpack", "delete", "each", "exists", "keys", "values", "binmode", "close", "closedir", "dbmclose", "dbmopen", "die", "eof", "fileno", "flock", "format", "getc", "print", "printf", "read", "readdir", "rewinddir", "seek", "seekdir", "select", "syscall", "sysread", "sysseek", "syswrite", "tell", "telldir", "truncate", "warn", "write", "pack", "read", "syscall", "sysread", "syswrite", "unpack", "vec", "-X", "chdir", "chmod", "chown", "chroot", "fcntl", "glob", "ioctl", "link", "lstat", "mkdir", "open", "opendir", "readlink", "rename", "rmdir", "stat", "symlink", "sysopen", "umask", "unlink", "utime", "caller", "continue", "die", "do", "dump", "eval", "exit", "goto", "last", "next", "redo", "return", "sub", "wantarray", "caller", "import", "local", "my", "our", "package", "use", "defined", "dump", "eval", "formline", "local", "my", "our", "reset", "scalar", "undef", "wantarray", "alarm", "exec", "fork", "getpgrp", "getppid", "getpriority", "kill", "pipe", "qx\/STRINGA\/", "setpgrp", "setpriority", "sleep", "system", "times", "wait", "waitpid", "do", "import", "no", "package", "require", "accept", "bind", "connect", "getpeername", "getsockname", "getsockopt", "listen", "recv", "send", "setsockopt", "shutdown", "socket", "socketpair", "msgctl", "msgget", "msgrcv", "msgsnd", "semctl", "semget", "semop", "shmctl", "shmget", "shmread", "shmwrite", "endgrent", "endhostent", "endnetent", "endpwent", "getgrent", "getgrgid", "getgrnam", "getlogin", "getpwent", "getpwnam", "getpwuid", "setgrent", "setpwent", "endprotoent", "endservent", "gethostbyaddr", "gethostbyname", "gethostent", "getnetbyaddr", "getnetbyname", "getnetent", "getprotobyname", "getprotobynumber", "getprotoent", "getservbyname", "getservbyport", "getservent", "sethostent", "setnetent", "setprotoent", "setservent", "gmtime", "localtime", "time", "times", "abs", "bless", "chomp", "chr", "exists", "formline", "glob", "import", "lc", "lcfirst", "map", "my", "no", "our", "prototype", "qx", "qw", "readline", "readpipe", "ref", "sub", "sysopen", "tie", "tied", "uc", "ucfirst", "untie", "dbmclose","int", "dbmopen");
$a=0;
$c = 0;
$r = "";
$tamp = "";
$b = array();
while ($a < count($arr)){
$r = "/(".$arr[$a].")/";
if (preg_match_all($r, $txt, $b, PREG_OFFSET_CAPTURE) != 0){
while ($c < count($b[0])){
if (!(preg_match("/[a-zA-Z0-9]/", $txt[$b[0][$c][1]-1])) and !(preg_match("/[a-zA-Z0-9]/", $txt[$b[0][$c][1]+strlen($b[0][0][0])]))){
$tamp = substr($txt, 0, $b[0][$c][1]);
$tamp .= "<b>".$b[0][$c][0]."</b>";
$tamp .= substr($txt, $b[0][$c][1]+strlen($b[0][$c][0]));
$txt = $tamp;
preg_match_all($r, $txt, $b, PREG_OFFSET_CAPTURE);
}
$c++;
}
}
$a++;
$c=0;
}
function sistd($val){
$tmp = str_replace("<font color='BABD2D'>", "", $val[0]);
$tmp = str_replace("</font>", "", $tmp);
$tmp = str_replace("<b>", "", $tmp);
$tmp = str_replace("</b>", "", $tmp);
$tmp = str_replace("<>", "<ap>", $tmp);
$tmp = str_replace('"', "<vi>", $tmp);
$tmp = str_replace("$", "<st>", $tmp);
$tmp = str_replace("/*", "<ic>", $tmp);
$tmp = str_replace("*/", "<fc>", $tmp);
return "<font color='grey'>".$tmp."</font>";
}
function siste($val){
$tmp = str_replace("<font color='BABD2D'>", "", $val[0]);
$tmp = str_replace("<font color='grey'>", "", $tmp);
$tmp = str_replace("</font>", "", $tmp);
$tmp = str_replace("<b>", "", $tmp);
$tmp = str_replace("</b>", "", $tmp);
$tmp = str_replace("<>", "<ap>", $tmp);
$tmp = str_replace('"', "<vi>", $tmp);
$tmp = str_replace("//", "<c>", $tmp);
$tmp = str_replace("$", "<st>", $tmp);
return "<font color='grey'>".$tmp."</font>";
}
function sistf($val){
$tmp = str_replace("<font color='BABD2D'>", "", $val[0]);
$tmp = str_replace("<font color='grey'>", "", $tmp);
$tmp = str_replace("</font>", "", $tmp);
$tmp = str_replace("<b>", "", $tmp);
$tmp = str_replace("</b>", "", $tmp);
$tmp = str_replace("<>", "<ap>", $tmp);
$tmp = str_replace('"', "<vi>", $tmp);
$tmp = str_replace("//", "<c>", $tmp);
$tmp = str_replace("$", "<st>", $tmp);
$tmp = str_replace("/*", "<ic>", $tmp);
$tmp = str_replace("*/", "<fc>", $tmp);
return "<font color='red'>".$tmp."</font>";
}
function sistg($val){
$tmp = str_replace("<font color='BABD2D'>", "", $val[0]);
$tmp = str_replace("<font color='grey'>", "", $tmp);
$tmp = str_replace("<font color='red'>", "", $tmp);
$tmp = str_replace("</font>", "", $tmp);
$tmp = str_replace("<b>", "", $tmp);
$tmp = str_replace("</b>", "", $tmp);
$tmp = str_replace("<>", "<ap>", $tmp);
$tmp = str_replace('"', "<vi>", $tmp);
$tmp = str_replace("//", "<c>", $tmp);
$tmp = str_replace("$", "<st>", $tmp);
$tmp = str_replace("/*", "<ic>", $tmp);
$tmp = str_replace("*/", "<fc>", $tmp);
return "<font color='red'>".$tmp."</font>";
}
function sisth($val){
$tmp = str_replace("<font color='BABD2D'>", "", $val[0]);
$tmp = str_replace("<font color='grey'>", "", $tmp);
$tmp = str_replace("<font color='red'>", "", $tmp);
$tmp = str_replace("</font>", "", $tmp);
$tmp = str_replace("<b>", "", $tmp);
$tmp = str_replace("</b>", "", $tmp);
return "<font color='blue'>".$tmp."</font>";
}
$txt = preg_replace('/[0-9]{1,}|[0-9]{1,}\.[0-9]{1,} /', "<font color='BABD2D'>"."\${0}"."</font>", $txt);
$txt = preg_replace_callback('/#(.+?)<br>/', "sistd", $txt);
$txt = preg_replace_callback('/\/\*(.+?)\*\//', "siste", $txt);
$txt = preg_replace_callback('/("")|("(.+?)")/', "sistf", $txt);
$txt = preg_replace_callback('/(\<\>\<\>)|(\<\>(.+?)\<\>)/', "sistg", $txt);
$txt = preg_replace_callback("/\\$[a-zA-Z0-9_]{0,}(\<b\>(.+?)\<\/b\>){0,}[a-zA-Z0-9_]{0,}(\<font color='BABD2D'\>(.+?)\<\/font\>){0,}[a-zA-Z0-9_]{0,}(\<b\>(.+?)\<\/b\>){0,}[a-zA-Z0-9_]{0,}/", "sisth", $txt);
$txt = str_replace("<st>", "$", $txt);
$txt = str_replace("<ap>", "'", $txt);
$txt = str_replace("<vi>", """, $txt);
$txt = str_replace("<ic>", "/*", $txt);
$txt = str_replace("<fc>", "*/", $txt);
$txt = str_replace("<>", "'", $txt);
$txt = str_replace("<c>", "//", $txt);
$txt = str_replace("<ca>", "#", $txt);
break;
case "Python":
$arr = array("and", "continue", "else", "for", "import", "not", "raise", "assert", "def", "except", "from", "in", "or", "return", "break", "del", "exec", "global", "is", "pass", "try", "class", "elif", "finally", "if", "lambda", "print", "while");
$a=0;
$c = 0;
$r = "";
$tamp = "";
$b = array();
while ($a < count($arr)){
$r = "/(".$arr[$a].")/";
if (preg_match_all($r, $txt, $b, PREG_OFFSET_CAPTURE) != 0){
while ($c < count($b[0])){
if (!(preg_match("/[a-zA-Z0-9]/", $txt[$b[0][$c][1]-1])) and !(preg_match("/[a-zA-Z0-9]/", $txt[$b[0][$c][1]+strlen($b[0][0][0])]))){
$tamp = substr($txt, 0, $b[0][$c][1]);
$tamp .= "<b>".$b[0][$c][0]."</b>";
$tamp .= substr($txt, $b[0][$c][1]+strlen($b[0][$c][0]));
$txt = $tamp;
preg_match_all($r, $txt, $b, PREG_OFFSET_CAPTURE);
}
$c++;
}
}
$a++;
$c=0;
}
function sisti($val){
$tmp = str_replace("<font color='6699FF'>", "", $val[0]);
$tmp = str_replace("</font>", "", $tmp);
$tmp = str_replace("<b>", "", $tmp);
$tmp = str_replace("</b>", "", $tmp);
$tmp = str_replace("<>", "<ap>", $tmp);
$tmp = str_replace('"', "<vi>", $tmp);
return "<font color='grey'>".$tmp."</font>";
}
function sistj($val){
$tmp = str_replace("<font color='6699FF'>", "", $val[0]);
$tmp = str_replace("<font color='grey'>", "", $tmp);
$tmp = str_replace("</font>", "", $tmp);
$tmp = str_replace("<b>", "", $tmp);
$tmp = str_replace("</b>", "", $tmp);
$tmp = str_replace("<>", "<ap>", $tmp);
$tmp = str_replace('"', "<vi>", $tmp);
return "<font color='green'>".$tmp."</font>";
}
function sistk($val){
$tmp = str_replace("<font color='6699FF'>", "", $val[0]);
$tmp = str_replace("<font color='grey'>", "", $tmp);
$tmp = str_replace("<font color='green'>", "", $tmp);
$tmp = str_replace("</font>", "", $tmp);
$tmp = str_replace("<b>", "", $tmp);
$tmp = str_replace("</b>", "", $tmp);
$tmp = str_replace("<>", "<ap>", $tmp);
$tmp = str_replace('"', "<vi>", $tmp);
return "<font color='green'>".$tmp."</font>";
}
$txt = preg_replace('/[0-9]{1,}|[0-9]{1,}\.[0-9]{1,} /', "<font color='6699FF'>"."\${0}"."</font>", $txt);
$txt = preg_replace_callback('/#(.+?)<br>/', "sisti", $txt);
$txt = preg_replace_callback('/("")|("(.+?)")/', "sistj", $txt);
$txt = preg_replace_callback('/(\<\>\<\>)|(\<\>(.+?)\<\>/', "sistk", $txt);
$txt = str_replace("<>", "'", $txt);
$txt = str_replace("<ap>", "'", $txt);
$txt = str_replace("<vi>", """, $txt);
$txt = str_replace("<ic>", "/*", $txt);
$txt = str_replace("<fc>", "*/", $txt);
$txt = str_replace("<c>", "//", $txt);
$txt = str_replace("<ca>", "#", $txt);
break;
case "PHP":
$arr = array("and","or","xor","__FILE__","exception","__LINE__","array","as","break","case","class","const","continue","declare","default","die","do","echo","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","eval","exit","extends","for","foreach","function","global","if","include","include_once","isset","list","new","print","require","require_once","return","static","switch","unset","use","var","while","__FUNCTION__","__CLASS__","__METHOD__","final","php_user_filter","interface","implements","extends","public","private","protected","abstract","clone","try","catch","throw","cfunction","old_function");
$a=0;
$c = 0;
$r = "";
$tamp = "";
$b = array();
while ($a < count($arr)){
$r = "/(".$arr[$a].")/";
if (preg_match_all($r, $txt, $b, PREG_OFFSET_CAPTURE) != 0){
while ($c < count($b[0])){
if (!(preg_match("/[a-zA-Z0-9]/", $txt[$b[0][$c][1]-1])) and !(preg_match("/[a-zA-Z0-9]/", $txt[$b[0][$c][1]+strlen($b[0][0][0])]))){
$tamp = substr($txt, 0, $b[0][$c][1]);
$tamp .= "<b>".$b[0][$c][0]."</b>";
$tamp .= substr($txt, $b[0][$c][1]+strlen($b[0][$c][0]));
$txt = $tamp;
preg_match_all($r, $txt, $b, PREG_OFFSET_CAPTURE);
}
$c++;
}
}
$a++;
$c=0;
}
function sistl($val){
$tmp = str_replace("<font color='BABD2D'>", "", $val[0]);
$tmp = str_replace("</font>", "", $tmp);
$tmp = str_replace("<b>", "", $tmp);
$tmp = str_replace("</b>", "", $tmp);
$tmp = str_replace("<>", "<ap>", $tmp);
$tmp = str_replace('"', "<vi>", $tmp);
$tmp = str_replace("$", "<st>", $tmp);
$tmp = str_replace("/*", "<ic>", $tmp);
$tmp = str_replace("*/", "<fc>", $tmp);
return "<font color='grey'>".$tmp."</font>";
}
function sistm($val){
$tmp = str_replace("<font color='BABD2D'>", "", $val[0]);
$tmp = str_replace("<font color='grey'>", "", $tmp);
$tmp = str_replace("</font>", "", $tmp);
$tmp = str_replace("<b>", "", $tmp);
$tmp = str_replace("</b>", "", $tmp);
$tmp = str_replace("<>", "<ap>", $tmp);
$tmp = str_replace('"', "<vi>", $tmp);
$tmp = str_replace("//", "<c>", $tmp);
$tmp = str_replace("$", "<st>", $tmp);
return "<font color='grey'>".$tmp."</font>";
}
function sisto($val){
$tmp = str_replace("<font color='BABD2D'>", "", $val[0]);
$tmp = str_replace("<font color='grey'>", "", $tmp);
$tmp = str_replace("</font>", "", $tmp);
$tmp = str_replace("<b>", "", $tmp);
$tmp = str_replace("</b>", "", $tmp);
$tmp = str_replace("<>", "<ap>", $tmp);
$tmp = str_replace('"', "<vi>", $tmp);
$tmp = str_replace("//", "<c>", $tmp);
$tmp = str_replace("$", "<st>", $tmp);
$tmp = str_replace("/*", "<ic>", $tmp);
$tmp = str_replace("*/", "<fc>", $tmp);
return "<font color='red'>".$tmp."</font>";
}
function sistp($val){
$tmp = str_replace("<font color='BABD2D'>", "", $val[0]);
$tmp = str_replace("<font color='grey'>", "", $tmp);
$tmp = str_replace("<font color='red'>", "", $tmp);
$tmp = str_replace("</font>", "", $tmp);
$tmp = str_replace("<b>", "", $tmp);
$tmp = str_replace("</b>", "", $tmp);
$tmp = str_replace("<>", "<ap>", $tmp);
$tmp = str_replace('"', "<vi>", $tmp);
$tmp = str_replace("//", "<c>", $tmp);
$tmp = str_replace("$", "<st>", $tmp);
$tmp = str_replace("/*", "<ic>", $tmp);
$tmp = str_replace("*/", "<fc>", $tmp);
return "<font color='red'>".$tmp."</font>";
}
function sistq($val){
$tmp = str_replace("<font color='BABD2D'>", "", $val[0]);
$tmp = str_replace("<font color='grey'>", "", $tmp);
$tmp = str_replace("<font color='red'>", "", $tmp);
$tmp = str_replace("</font>", "", $tmp);
$tmp = str_replace("<b>", "", $tmp);
$tmp = str_replace("</b>", "", $tmp);
return "<font color='blue'>".$tmp."</font>";
}
function sistr($val){
$tmp = str_replace("<font color='6699FF'>", "", $val[0]);
$tmp = str_replace("<font color='grey'>", "", $tmp);
$tmp = str_replace("</font>", "", $tmp);
$tmp = str_replace("<b>", "", $tmp);
$tmp = str_replace("</b>", "", $tmp);
$tmp = str_replace("<>", "<ap>", $tmp);
$tmp = str_replace('"', "<vi>", $tmp);
$tmp = str_replace("//", "<c>", $tmp);
$tmp = str_replace("/*", "<ic>", $tmp);
$tmp = str_replace("*/", "<fc>", $tmp);
return "<font color='grey'>".$tmp."</font>";
}
$txt = preg_replace('/[0-9]{1,}|[0-9]{1,}\.[0-9]{1,} /', "<font color='BABD2D'>"."\${0}"."</font>", $txt);
$txt = preg_replace_callback('/#(.+?)<br>/', "sistl", $txt);
$txt = preg_replace_callback('/\/\*(.+?)\*\//', "sistm", $txt);
$txt = preg_replace_callback('/\/\/(.+?)<br>/', "sistr", $txt);
$txt = preg_replace_callback('/("")|("(.+?)")/', "sisto", $txt);
$txt = preg_replace_callback('/(\<\>\<\>)|(\<\>(.+?)\<\>)/', "sistp", $txt);
$txt = preg_replace_callback("/\\$[a-zA-Z0-9_]{0,}(\<b\>(.+?)\<\/b\>){0,}[a-zA-Z0-9_]{0,}(\<font color='BABD2D'\>(.+?)\<\/font\>){0,}[a-zA-Z0-9_]{0,}(\<b\>(.+?)\<\/b\>){0,}[a-zA-Z0-9_]{0,}/", "sistq", $txt);
$txt = str_replace("<st>", "$", $txt);
$txt = str_replace("<ap>", "'", $txt);
$txt = str_replace("<vi>", """, $txt);
$txt = str_replace("<ic>", "/*", $txt);
$txt = str_replace("<fc>", "*/", $txt);
$txt = str_replace("<c>", "//", $txt);
$txt = str_replace("<ca>", "#", $txt);
$txt = str_replace("<>", "'", $txt);
break;
}
$txt = str_replace("<ic>", "/*", $txt);
$txt = str_replace("<c>", "//", $txt);
$txt = str_replace("<ca>", "#", $txt);
$txt = str_replace("<>", "'", $txt);
$file = fopen ("db.php", "r");
$cont = fread ($file, filesize ("db.php"));
$scripts = explode ("//<-dfmposgjkrpoy,lf,htlruypuèlyòj.h-j.>", $cont);
echo "url : http://xhacker.altervista.org/nopaste?p=".(count($scripts)-1);
fclose($file);
$txt = str_replace("/*", "<ic>", $txt);
$txt = str_replace("*/", "<fc>", $txt);
$f = fopen("db.php", "a+");
$int = "<p><font style='font-size: 20pt'>".htmlentities($aut).", ".date("d/m/y")."</font></p>";
$intb = "<p><b><i><font style='font-size: 30pt'>".htmlentities($tit)."</font></i></b></p>";
fwrite($f, "\n");
fwrite($f, "/*");
fwrite($f, $int);
fwrite($f, $intb);
fwrite($f, "<code>"."$txt"."</code>");
fwrite($f, "*/");
fwrite($f, "//<-dfmposgjkrpoy,lf,htlruypuèlyòj.h-j.>");
fwrite($f, "\n");
fclose($f);
}
?>