[原创]PHP高手请进 |
PHP乱码问题, 不知有拿位高手能帮小弟解决? 在次万分感谢!
<?php
/***** PHPCrack QQ:774048836 *****/
function new_htmlspecialchars (${'?崏旰'})
{
if (is_array (${'?崏旰'}))
{
return array_map ('new_htmlspecialchars', ${'?崏旰'});
}
return htmlspecialchars (${'?崏旰'}, ENT_QUOTES);
}
function new_addslashes (${'?崏旰'})
{
if (!(is_array (${'?崏旰'})))
{
return addslashes (${'?崏旰'});
}
foreach (${'?崏旰'} as ${'Wr'} => ${'Ln'})
{
${'?崏旰'}[${'Wr'}] = new_addslashes (${'Ln'});
}
return ${'?崏旰'};
}
function new_stripslashes (${'?崏旰'})
{
if (!(is_array (${'?崏旰'})))
{
return stripslashes (${'?崏旰'});
}
foreach (${'?崏旰'} as ${'Wr'} => ${'Ln'})
{
${'?崏旰'}[${'Wr'}] = new_stripslashes (${'Ln'});
}
return ${'?崏旰'};
}
function strip_textarea (${'?崏旰'})
{
return nl2br (str_replace (' ', ' ', htmlspecialchars (${'?崏旰'}, ENT_QUOTES)));
}
function strip_js (${'?崏旰'}, ${'X?} = 1)
{
${'?崏旰'} = str_replace (array ('
', '
', '"'), array ('', '', '\\"'), ${'?崏旰'});
if (${'X?} == 1)
{
return 'document.write("' . ${'?崏旰'} . '");
';
}
return ${'?崏旰'};
}
function str_safe (${'?崏旰'})
{
${'?款繿f?'} = array ('/(javascript|jscript|js|vbscript|vbs|about):/i', '/on(mouse|exit|error|click|dblclick|key|load|unload|change|move|submit|reset|cut|copy|select|start|stop)/i', '/<script([^>]*)>/i', '/<iframe([^>]*)>/i', '/<frame([^>]*)>/i', '/<link([^>]*)>/i', '/@import/i');
${'V:幩Y~禱み'} = array ('\\1
:', 'on
\\1', '<script\\1>', '<iframe\\1>', '<frame\\1>', '<link\\1>', '@
import');
${'?崏旰'} = preg_replace (${'?款繿f?'}, ${'V:幩Y~禱み'}, ${'?崏旰'});
${'?崏旰'} = str_replace ('', '&
#', ${'?崏旰'});
return ${'?崏旰'};
}
function random (${'C??}, ${'挣F'} = '0123456789')
{
${'`a?'} = '';
${'B?'} = strlen (${'挣F'}) - 1;
for (${'?} = 0; ${'?} < ${'C??}; ++${'?})
{
${'`a?'} .= ${'挣F'}[mt_rand (0, ${'B?'})];
}
return ${'`a?'};
}
function mkcookie (${'膗('}, ${'V??} = '', ${'s?.'} = 0)
{
global $CONFIG;
global $PHP_TIME;
${'s?.'} = (0 < ${'s?.'} ? ${'s?.'} : (empty (${'V??}) ? ${'`s?a?} - 3600 : 0));
$p = ($_SERVER['SERVER_PORT'] == '443' ? 1 : 0);
${'膗('} = ${'0τsC
'}['cookiepre'] . ${'膗('};
return setcookie (${'膗('}, ${'V??}, ${'s?.'}, ${'0τsC
'}['cookiepath'], ${'0τsC
'}['cookiedomain'], $p);
}
function getcookie (${'膗('})
{
global $CONFIG;
${'膗('} = ${'0τsC
'}['cookiepre'] . ${'膗('};
if (isset ($_COOKIE[${'膗('}]))
{
return $_COOKIE[${'膗('}];
}
return FALSE;
}
function file_down (${'?礕'}, ${'%7粚?o'} = '')
{
global $PHP_TIME;
if (!(file_exists (${'?礕'})))
{
showmessage ('The file ' . ${'?礕'} . ' is not exists !');
}
${'%7粚?o'} = (${'%7粚?o'} ? ${'%7粚?o'} : basename (${'?礕'}));
${'a悐坅'} = fileext (${'%7粚?o'});
${'w軰?3e'} = filesize (${'?礕'});
ob_end_clean ();
header ('Cache-control: max-age=31536000');
header ('Expires: ' . gmdate ('D, d M Y H:i:s', ${'`s?a?} + 31536000) . ' GMT');
header ('Content-Encoding: none');
header ('Content-Length: ' . ${'w軰?3e'});
header ('Content-Disposition: attachment; filename=' . ${'%7粚?o'});
header ('Content-Type: ' . ${'a悐坅'});
readfile (${'?礕'});
exit ();
}
?> |
|
|