]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/themes/default/images/header-img.php
Wordpress 2.3.2
[autoinstalls/wordpress.git] / wp-content / themes / default / images / header-img.php
index 65a9e87515b51337c7fd61fce1614bbda5edf2bd..c54491a36da77966ce6244675a6b1edac9d76231 100644 (file)
@@ -1,11 +1,11 @@
 <?php\r
-\r
+
 $img = 'kubrickheader.jpg';\r
-\r
+
 // If we don't have image processing support, redirect.\r
 if ( ! function_exists('imagecreatefromjpeg') )\r
        die(header("Location: kubrickheader.jpg"));\r
-\r
+
 // Assign and validate the color values\r
 $default = false;\r
 $vars = array('upper'=>array('r1', 'g1', 'b1'), 'lower'=>array('r2', 'g2', 'b2'));\r
@@ -23,17 +23,17 @@ foreach ( $vars as $var => $subvars ) {
                $default = true;\r
        }\r
 }\r
-\r
+
 if ( $default )\r
        list ( $r1, $g1, $b1, $r2, $g2, $b2 ) = array ( 105, 174, 231, 65, 128, 182 );\r
-\r
+
 // Create the image\r
 $im = imagecreatefromjpeg($img);\r
-\r
+
 // Get the background color, define the rectangle height\r
 $white = imagecolorat( $im, 15, 15 );\r
 $h = 182;\r
-\r
+
 // Define the boundaries of the rounded edges ( y => array ( x1, x2 ) )\r
 $corners = array(\r
        0 => array ( 25, 734 ),\r
@@ -47,14 +47,14 @@ $corners = array(
        180 => array ( 23, 736 ),\r
        181 => array ( 25, 734 ),\r
        );\r
-\r
+
 // Blank out the blue thing\r
 for ( $i = 0; $i < $h; $i++ ) {\r
        $x1 = 19;\r
        $x2 = 740;\r
        imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $white );\r
 }\r
-\r
+
 // Draw a new color thing\r
 for ( $i = 0; $i < $h; $i++ ) {\r
        $x1 = 20;\r
@@ -69,7 +69,7 @@ for ( $i = 0; $i < $h; $i++ ) {
        }\r
        imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $color );\r
 }\r
-\r
+
 //die;\r
 header("Content-Type: image/jpeg");\r
 imagejpeg($im, '', 92);\r