View file phpcodes/index.php

File size: 568B
<?php

include_once '../sys/inc/start.php';
$doc = new document(1);
$doc -> title = 'Полезные PHP Коды';



ini_set('display_errors',0);
ini_set('register_globals', 0);
session_name('SID'); session_start();

$file = file_get_contents("http://4mas.ru/phpcodes/?".$_SERVER['QUERY_STRING']);
$file=preg_replace('/<?xml(.*?)<div class=\"maintxt\">/si','',$file);
$file=preg_replace('/<div class="down_name">(.*?)<\/html>/si','',$file);
$file = str_replace('</b><a href="', '</b><a href="http://4mas.ru/phpcodes', $file);

echo $file;

?>