<?php

/*
    Thumber Super-Simple Super-Portable Calling Method..

    When calling Thumber directly, it generates an entire HTML page for your
    thumbs. When embedded inside your pages, you create that page yourself.

    There is a third method, somewhere inbetween, for folk who for some reason
    cannot get URL include working, or have some other restriction in effect,
    but would like thumber to generate entire pages. Or some other reason (see
    below)

    You can swith on thumber's "page making" capabilities by overriding the
    embedding switch, like so..

*/

$thumber['embedded'] = false;
include 
$_SERVER['DOCUMENT_ROOT'].'/inc/img/thumber.php';

/*
    This gets you the exact same output as..

        include 'http://myhost.com/thumber.php?dir=/current/directory';
    or..
        readfile('http://myhost.com/thumber.php?dir=/current/directory');

    EXCEPT..

    This method also has the advantage of being completely portable. This very
    script (minus all these comments) can be copied to /anywhere/ that has
    images and you get an instant thumbnail gallery in a nice HTML5 page, with
    zero edits.

    Actually, it's too easy - encourages mindless photo uploading!

    ;o)

    (c) 2005->tomorrow! ~ cor + corz.org ;o)
*/
?>
back to the source menu
test

Welcome to corz.org!

I'm always messing around with the back-end.. See a bug? Wait a minute and try again. Still see a bug? Mail Me!