Code :
// hide source code
// hide line numbers
// hide source code
// hide line numbers
1 <?php
2
3 ob_start();
4 phpinfo();
5 $phpinfo = ob_get_contents();
6 ob_end_clean();
7
8 preg_match_all('/#[0-9a-fA-F]{6}/', $phpinfo, $rawmatches);
9 for ($i = 0; $i < count($rawmatches[0]); $i++)
10 $matches[] = $rawmatches[0][$i];
11 $matches = array_unique($matches);
12
13 $hexvalue = '0123456789abcdef';
14
15 $j = 0;
16 foreach ($matches as $match)
17 {
18
19 $r = '#';
20 $searches[$j] = $match;
21 for ($i = 0; $i < 6; $i++)
22 $r .= substr($hexvalue, mt_rand(0, 15), 1);
23 $replacements[$j++] = $r;
24 unset($r);
25 }
26
27 for ($i = 0; $i < count($searches); $i++)
28 $phpinfo = str_replace($searches, $replacements, $phpinfo);
29 echo $phpinfo;
30 ?>
Donation:If you like our free quality work, make a donation by using Paypal and tell us what you would like to see improved on our site for the next few months. |
|
No comments yet













Page Info












