Exemplo n.º 1
0
     }
 } else {
     // Last modified date is now
     $last_modified = time();
     // Initialize the loop
     $looped = '';
     // Add the content of the current file
     foreach ($array as $current) {
         $looped .= rmBOM(file_get_contents($dir . $current)) . "\n";
     }
     // Filter the CSS
     if ($type == 'stylesheets') {
         // Apply the CSS logos
         $looped = setLogos($looped, $array);
         // Apply the CSS background
         $looped = setBackground($looped);
         // Set the Get API paths
         $looped = setPath($looped, $hash, HOST_STATIC, $type, '');
     }
     // Optimize the code rendering
     if ($type == 'stylesheets') {
         // Can minify the CSS
         if ($has_compression && !$is_developer) {
             $output = compressCSS($looped);
         } else {
             $output = $looped;
         }
     } else {
         // Can minify the JS (sloooooow!)
         if ($has_compression && !$is_developer) {
             require_once './jsmin.php';
Exemplo n.º 2
0
    drawText("a", 36, "Register to wowmeter.net to", NULL, true);
    drawText("a", 56, "get your own WOWMeter!", NULL, true);
    drawText(106, 36, "wowmeter.net", alloColor(66, 66, 202, 20), false);
    doImage();
}
# Check if user is banned, if it is, display a message
if ($getUser['r']['isbanned'] == 1) {
    drawText("a", 16, $getUser['r']['username'], NULL, true);
    drawText("a", 36, "is banned from", NULL, true);
    drawText("a", 56, "WOWMeter.net", NULL, true);
    doImage();
}
# Change the font into the user's preference
setFont($getUser['r']['sig_font']);
# Chance the background into the user's preference
$im = setBackground($getUser['r']['sig_bg'], $getUser['r']['bg_color']);
# Draw the text
if ($_GET['mask'] != 1) {
    # Only draw the username when the mask isn't applied
    drawText("a", 16, $getUser['r']['username'], alloColor($getUser['r']['usrname_color'], true));
}
# %Username%
drawText("a", 36, getTrans("hasCollected"), NULL, true);
# has collected %c% wows.
drawText("a", 56, getTrans("clickHere"), NULL, true);
# Click here to give a wow!
if ($_GET['mask'] == 1) {
    # Apply a mask if it's set
    # Create the mask
    $mask = imagecreatetruecolor(240, 66);
    imagefilledrectangle($mask, 0, 0, 240, 66, alloColor("FFFFFF"));