<?php
/////////////////////////////////
//Благодарности принимаются на://
// Z106224675224 //
// R374421117467 //
// E234624339040 //
/////////////////////////////////
require_once ("../includes/start.php");
require_once ("../includes/functions.php");
require_once ("../includes/header.php");
include_once ("../themes/".$config['themes']."/index.php");
//----------------------------------------------------------------//
// Замените шапку на свою, если вы не используете мотор //
//----------------------------------------------------------------//
echo '<div class="t3"><font color="red">Порно-фото</font></div>';
$po=$_GET['po'];
$kat=$_GET['kat'];
$p=$_GET['p'];
$folder=$_GET['folder'];
$po = htmlspecialchars(stripslashes($po));
$kat = htmlspecialchars(stripslashes($kat));
$p = htmlspecialchars(stripslashes($p));
$folder = htmlspecialchars(stripslashes($folder));
if(strlen($kat)>1){
if(strlen($folder)>1){$page=file("http://virginss.net/px6/".$kat."/".$folder."/index.php?pgm=xhtml&k=abc&pass=&p=".$p);}else{
$page=file("http://virginss.net/px6/".$kat."/index.php?pgm=xhtml&p=".$p);}
}else{
switch ($po) {
case "pfoto1":
$page=file("http://virginss.net/px6/pfoto1.php?pgm=xhtml&p=");
break;
case "pfoto2":
$page=file("http://virginss.net/px6/pfoto2.php?pgm=xhtml");
break;
case "pfoto3":
$page=file("http://virginss.net/px6/pfoto3.php?pgm=xhtml");
break;
case "pfoto4":
$page=file("http://virginss.net/px6/pfoto4.php?pgm=xhtml");
break;
default: $page=file("http://virginss.net/px6/index.php?pgm=xhtml");
}}
$page=implode($page);
$pos=stripos($page, '<div class="mdl">');
$page=substr($page, $pos - strlen($page));
$page=str_replace('<div class="mdl">', '', $page);
$pos=stripos($page, '</div><div');
$page=substr($page, 0, $pos);
$page=str_replace('./', '', $page);
$page = preg_replace('<a href="(.*?)/index.php\?pgm=xhtml(.*?)k=abc(.*?)pass=">', 'a href="index.php?pgm=xhtml&k=abc&kat='.$kat.'&folder=\1"', $page);
$page = preg_replace('<a href="(.*?)/index.php\?pgm=xhtml(.*?)&x=(.*?)">', 'a href="index.php?pgm=xhtml&kat=\1"', $page);
$page = preg_replace('<a href="index.php\?pgm=xhtml&m=&k=abc(.*?)p=(.*?)">', 'a href="index.php?pgm=xhtml&&m=&k=abc&kat='.$kat.'&p=\2"', $page);
$page=str_replace('<img src="/img/folder.gif" alt="" />', '', $page);
$page = preg_replace('<<img src="(.*?)/folderdiz.jpg\?(.*?)" alt="" />>', '<img src="http://virginss.net/px6/'.$kat.'/\1/folderdiz.jpg?\2" alt="...">', $page);
$page = preg_replace('<img src="thumbs/(.*?)" alt="..."/>', 'img src="http://virginss.net/px6/'.$kat.'/'.$folder.'/thumbs/\1" alt="..."', $page);
$page = preg_replace('<a href="index.php\?pgm=xhtml&k=abc&pass=&m=*(.*?)p=(.*?)">', 'a href="index.php?pgm=xhtml&&m=&k=abc&kat='.$kat.'&p=\2&folder='.$folder.'"', $page);
$page = preg_replace('<<form(.*?)form>>', '', $page);
$page = preg_replace('<<a href="(.*?).jpg\?x=(.*?)">>', '<a href="http://virginss.net/px6/'.$kat.'/'.$folder.'/\1.jpg?x=\2">', $page);
$page = preg_replace('<<a href=".index.php(.*?)/a>>', '', $page);
$page = preg_replace('<<a href="http://virginss.net/(.*?)/a>>', '', $page);
$page=str_replace('</div>', '', $page);
if(strlen($kat)>1){
if(strlen($folder)>1){$page=$page.'<br /><a href="index.php?pgm=xhtml&kat='.$kat.'">На уровень вверх</a>';}else{$page=$page.'<a href="index.php">На уровень вверх</a>';}
}
$page=$page.'<br /><img src="/images/img/homepage.gif" alt="image" /> <a href="../index.php?">На главную</a>';
echo $page;
//----------------------------------------------------------------//
// Замените ноги на свои, если вы не используете мотор //
//----------------------------------------------------------------//
include_once ("../themes/".$config['themes']."/foot.php");
?>