<?php
session_start();
$dir = (isset($_SESSION["pictcapt_dir"]))? $_SESSION["pictcapt_dir"] : __DIR__."/";
if(!empty($_GET["ty"])){
if($_GET["ty"] == "arrow"){
include $dir."imgs/defold.gif";
}elseif($_GET["ty"] == "js"){
header('Content-type: text/javascript');
include $dir."pictcaptcha.js";
}elseif($_GET["ty"] == "css"){
header('Content-type: text/css');
include $dir."pictcaptcha.css";
}elseif($_GET["ty"] == "reload"){
include $dir."imgs/reload.gif";
}elseif($_GET["ty"] == "ifr" && !empty($_GET["sesna"])){
include $dir."pictcaptcha_f.php";
// print "<pre>".var_export($_SESSION, true)."</pre>";
}elseif($_GET["ty"] == "img" && isset($_SESSION["pictcapt_".$_GET["sesna"]])){
include $dir."pictcaptcha_conf.php";
$assoc = unserialize($_SESSION["pictcapt_".$_GET["sesna"]]);
$obj = $assoc[$_GET["id"]];
include $dir."imgs/". $pict_capt_vars["objects"][$obj]["img"];
}
}else{
include $dir."imgs/equis.gif";
}
?>
|