Exemplo n.º 1
0
            require_once $file;
        }
        Timelong('load:' . $file);
    }
}
unset($preload, $file);
$_ENV['yt'] = $yt = [];
if (in_array(H, ['cron', 'cli'])) {
} else {
    #si les functions sont bien chargées
    if (function_exists('r301depart')) {
        r301depart();
    }
    #301 écrites sur le disque prioritaires
    if (function_exists('starter')) {
        $_ENV['yt'] = $yt = starter();
        timelong('starteron');
    }
    #attention uniquement si cron de suppression des vieux fichiers !!!
    if (function_exists('ggtracker')) {
        ggtracker();
    }
    if (function_exists('fap') && strpos(' ' . U . Q . RQS, 'go=1') || $_GET['cc']) {
        if (1) {
            Fap(VIT, array('cp' => CACHEPATH, 'sfn' => $a['SCRIPT_FILENAME']));
            if (is_file(CR301)) {
                unlink(CR301);
            }
            if (is_file(CACHEPATH)) {
                unlink(CACHEPATH);
            }
Exemplo n.º 2
0
<?php

$info = array();
$size = getimagesize("./img.jpg", $info);
//TESTMETA("./sample
starter();
function starter()
{
    //getMeta("./samples/","1.jpg");
    getMeta("./", "img.jpg");
    $iptc = array("2#120" => "Hello world", "2#025" => "Your keywords will be placed here", "2#116" => "Thomas Darvik heter jeg");
    $data = "";
    foreach ($iptc as $tag => $string) {
        $tag = substr($tag, 2);
        $data .= IPTCmakeTag(2, $tag, $string);
    }
    $content = iptcembed($data, "./img.jpg");
    $file = fopen("./img.jpg", "wb");
    fwrite($file, $content);
    fclose($file);
    getMeta("./", "img.jpg");
}
function getEXIF($path, $filename)
{
    $exif = exif_read_data($path . $filename);
    //print_r($exif);
    $array = array("FileDateTime" => $exif['FileDateTime'], "FileSize" => $exif['FileSize'], "FileType" => $exif['FileType'], "MimeType" => $exif['MimeType'], "ComputedWidth" => $exif['COMPUTED']['Width'], "ComputedHeight" => $exif['COMPUTED']['Height']);
    print_r($array);
}
function getMeta($path, $filename)
{