All pastes #210777 Raw Edit

Something

public text v1 · immutable
#210777 ·published 2006-10-20 00:08 UTC
rendered paste body
<?php 
session_start();
if( isset( $_GET[ 'vl_wallpaper' ] ) )
{
	$_SESSION[ 'vl_wallpaper'] = $_GET[ 'vl_wallpaper' ];
	setcookie('vl_wallpaper', $_GET[ 'vl_wallpaper' ], time() + 7 * 24 * 60 * 60, "/");
	session_write_close();
	
	header( "Location: " . $_SERVER[ 'HTTP_REFERER']);
	exit;
}
else if( isset( $_COOKIE[ 'vl_wallpaper' ] ) )
{
	$_SESSION[ 'vl_wallpaper'] = $_COOKIE[ 'vl_wallpaper' ];
}
session_write_close();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

 <title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); print skin_stylesheet_url();?>" type="text/css" media="screen" />
<?php
	 /* ie css hacks */
	 /* modified from the png hack provided by Christopher Walker */
	 /* special thanks to Christopher Walker (http://tibetanportal.com/) 
	    for his contribution */
if( ie_skin_stylesheet_url() ) {
?>
<!--[if lte IE 6]>
<link rel="stylesheet" href="<?php bloginfo('template_directory'); print ie_skin_stylesheet_url(); ?>" type="text/css" media="screen" />
<![endif]-->
<?php }
if( menu_position_stylesheet_url() ) { ?>
<link rel="stylesheet" href="<?php bloginfo('template_directory'); print menu_position_stylesheet_url(); ?>" type="text/css" media="screen" />
<?php } ?>
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/wallpaper.css.php" type="text/css" media="screen" />

 <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
 <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <meta name="description" content="<?php bloginfo('description'); ?>" />
 <script src="<?php bloginfo('template_directory'); ?>/scripts/behaviour.js" type="text/javascript"></script>
 
<?php wp_head(); ?>

</head>

<body id="body" class="<?php echo wallpaper_class(); ?>">
<div id="header">
 <form method="get" id="searchform" action="<?php bloginfo('url'); ?>">
    <p class="right" id="search">
    <input type="text" value="Search..." name="s" id="s" alt="Search"/><br />
    <label id="label"></label>
    </p>
 </form>
 <h1>
  <a href="<?php bloginfo('url'); ?>" title="Go back home."><?php bloginfo('title'); ?></a><br />
 </h1>

  <?php spitOutWallpaperThumbs(); ?>

 </div>
 <div id="bodyowner">