The one and only signature creation thread

Code:
<?php
# To prevent browser error output
header('Content-Type: text/javascript; charset=UTF-8');
# Path to image folder
$imageFolder = 'img/';
# Show only these file types from the image folder
$imageTypes = '{*.jpg,*.JPG,*.jpeg,*.JPEG,*.png,*.PNG,*.gif,*.GIF}';
# Set to true if you prefer sorting images by name
# If set to false, images will be sorted by date
$sortByImageName = false;
# Set to false if you want the oldest images to appear first
# This is only used if images are sorted by date (see above)
$newestImagesFirst = true;
# The rest of the code is technical
# Add images to array
$images = glob($imageFolder . $imageTypes, GLOB_BRACE);
# Sort images
if ($sortByImageName) {
    $sortedImages = $images;
    natsort($sortedImages);
} else {
    # Sort the images based on its 'last modified' time stamp
    $sortedImages = array();
    $count = count($images);
    for ($i = 0; $i < $count; $i++) {
        $sortedImages[date('YmdHis', filemtime($images[$i])) . $i] = $images[$i];
    }
    # Sort images in array
    if ($newestImagesFirst) {
        krsort($sortedImages);
    } else {
        ksort($sortedImages);
    }
}
# Generate the HTML output
writeHtml('<p>Number of files = ' .$count  );
writeHtml('</p>');
writeHtml('<div class="ins-img-container">');
foreach ($sortedImages as $image) {
    # Get the name of the image, stripped from image folder path and file type extension
    $name = substr($image, strlen($imageFolder), strpos($image, '.') - strlen($imageFolder));
    # Begin adding
    # writeHtml('<a name="' . $image . '" href="#' . $image . '" onclick=this.classList.toggle("zoom");>');
    writeHtml('<img src="' . $image . '" alt="' . $name . '" title="' . $name . '">');
    # writeHtml('<div class="ins-imgs-label">' . $name . '</div>');
    # writeHtml('</a>');
}
writeHtml('</div>');
writeHtml('<link rel="stylesheet" type="text/css" href="ins-imgs.css">');
# Convert HTML to JS
function writeHtml($html) {
    echo "document.write('" . $html . "');\n";
}


Yup php see code above :)

yes they pull from a directory on my webspace
 
nvp1.jpg
:D
 
I come humbly requesting a sig. I'm not much of an artist you see.

What I would like, if at all possible:

A bobsleigh, with a chap in the blue team GB bobsleigh team outfit riding in it, with said bobsleigh being "propelled" by a oversized Hyper 212 Evo mounted on the back.

I have quite an oddly specific request, so feel free to ignore me, as I'm unsure of how unreasonable the request is.

cooler-running.jpg
:D
 
Anyone fancy making me a sig thankyouplease? Text is getting boring, I think it's time I had an actual sig. Something with the FreeBSD Beastie mascot and/or the OpenBSD 'Puffy' mascot, with a decent car (BM, Aston, whatever) in there somehow if possible. I'm not arty at all, but I was thinking somehow Beastie driving down the road with 'Rainmaker' coming out of the exhaust as smoke? I dunno, surprise me. :D
rainmaker-sig.jpg
:D
 
Back
Top Bottom