Ejemplo n.º 1
0
                                break;
                            case 'ad':
                                $locale = $_GET['locale'];
                                if (strlen($locale) > 35) {
                                    exit;
                                }
                                // deliver ad in iframe
                                require_once PATH_CORE . '/classes/adCode.class.php';
                                $adObj = new AdCodeTable();
                                $code = $adObj->fetch($locale);
                                break;
                            case 'scaleImg':
                                // scale image request
                                require_once PATH_CORE . '/classes/images.class.php';
                                $img = new images();
                                $img->fetchImage();
                                exit;
                                break;
                        }
                        echo $code;
                    }
                }
            }
        }
    }
}
exit;
function exportFile($path = '')
{
    if (file_exists($path)) {
        $pi = pathinfo($path);