All pastes #573055 Raw Edit

Stuff

public text v1 · immutable
·published 2007-06-17 23:48 UTC
rendered paste body
<?php
$curdir = getcwd ();
chdir('/var/www/dev/forums');
require_once('/var/www/dev/forums/global.php');
chdir ($curdir);
?>
<?php
If ($vbulletin->userinfo['userid']!=0)
	{	
	$logd = "http://www.dev.fordmuscle.com/forums/login.php?$session[sessionurl]do=logout&amp;logouthash=$logouthash
	$vbulletin->userinfo['logouthash']";
	
	$l2 = "out";
	} else {
	$logd = "http://dev.fordmuscle.com/login.php";
	$l2 = 'in';
	}
?>	
<?
if (substr_count(strtolower($_SERVER['HTTP_REFERER']), 'network54.com/forum/436002') || substr_count(strtolower($_SERVER['HTTP_REFERER']), 'cooksrestorations')) {
  header("Location: http://www.disneyland.com");
  exit;
}

require('admin/dbcon.php');
require('admin/loggedin.php');

$str = ($user_logged_in)?'out':'in';

if (!substr_count($_SERVER['REQUEST_URI'], '/archives/')) { # Temp Fix!!!!!
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<?
} // END TEMP FIX !!!

include_once('statistics.php');
#include_once('functions.php');
$defaultTitle = 'High Performance Technical Content - Ford Tech';
if (!substr_count($_SERVER['REQUEST_URI'], '/archives/')) { # Temp Fix!!!!!
?>
<html>
<head>
<link rel="stylesheet" href="/new_site/styles/styles.css" type="text/css">
<?
if (!$headerOptions['title']) $headerOptions['title'] = $defaultTitle;
$headerOptions['title'] = $headerOptions['title'] . ' - FordMuscle';
while (list($key, $val) = @each($headerOptions)) {
  if ($val) {
    if (substr($key, 0, 5) == 'meta_') {
      $key = str_replace('meta_', '', $key);
      echo "<meta name=\"$key\" content=\"$val\">\n";
    } elseif (substr($key, 0, 4) == 'misc') {
    } else { echo "<$key>".stripslashes($val)."</$key>\n"; }
  }
}
?>
<meta name="robots" content="index,follow">
<?
if ($headerOptions['title']) {?>
<!-- <?=stripslashes($headerOptions['title'])?> -->
<?}if ($headerOptions['misc']) { echo $headerOptions['misc']; }?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-246850-1";
urchinTracker();
</script>
</head>
<?} // END TEMP FIX !!!!!?>

<body bgcolor="#002194" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<?
$header = "header_bottom_left.gif";
$host = $_SERVER['REQUEST_URI'];

if (substr_count($host, 'TechDepartment'))
  $header = "header_bottom_left_TECH.gif";
if (substr_count($host, 'ProjectCars'))
  $header = "header_bottom_left_PROJ.gif";
if (substr_count($host, 'FeatureCars'))
  $header = "header_bottom_left_FEAT.gif";
?>
<table width="970" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#0042D4">
  <tr>
    <td colspan="3" bgcolor="#002194"><img width="100%" height="6" src="/includes/images/pixel002194.gif"></td>
  </tr>
  <tr>
    <td valign="top" width="591" height="20"><a href="http://dev.fordmuscle.com"><img src="/includes/images/nav_header_591.jpg" width="591" height="64" border="0" alt="FordMuscle WebMagazine - Home"></a></td>
    <td valign="middle" width="179" height="20" background="/includes/images/nav_header_179.jpg"> 
      <form name="form1" method="get" action="http://search.atomz.com/search/">
        <input type="hidden" name="sp-a" value="00061e67-sp00000000" />
        <table border="0" cellspacing="0" cellpadding="0" align="right">
          <tr>
            <td>
              <input type="text" size="15" name="sp-q" class="inp" />
            </td>
            <td>
              <input type="image" name="imageField" src="/includes/images/search.gif" />
            </td>
          </tr>
        </table>
      </form>
    </td>
    <td valign="middle" width="200" height="20"><img src="/includes/images/nav_header_200.jpg" width="200" height="69"></td>
  </tr>
  <tr>
    <td valign="top" colspan="3" height="20">
      <table border="0" cellspacing="0" cellpadding="0" align="left" bgcolor="#002194">
        <tr>
          <td><img src="/includes/images/<?=$header?>" width="614" height="22" usemap="#Map" border="0"></td>
          <td><img src="/includes/images/header_bottom_log<?=$l2?>.gif" width="92" height="22" usemap="#Map2" border="0"></td>
        </tr>
      </table>
      <a href="http://dev.fordmuscle.com/subscribe/"><img src="/includes/sub_options.jpg" width="237" height="22" alt="Subscribe" border="0"></a></td>
  </tr>
</table>
<table width="970" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>

  <td width="770" bgcolor="#0042D4" valign="top">
    <map name="Map">
      <area shape="rect" coords="3,3,85,26" href="http://dev.fordmuscle.com/TechDepartment/engine.php" alt="Tech Department" title="Tech Department">

      <area shape="rect" coords="86,3,169,24" href="http://dev.fordmuscle.com/ProjectCars/" alt="Project Cars" title="Project Cars">

      <area shape="rect" coords="328,2,413,24" href="http://dev.fordmuscle.com/readerscars/" alt="Readers Cars" title="Readers Cars">
      <area shape="rect" coords="268,2,324,22" href="http://dev.fordmuscle.com/blog/" alt="FMWire" title="FMWire">

      <area shape="rect" coords="417,3,468,22" href="http://dev.fordmuscle.com/forums/" alt="Forums" title="Forums">

      <area shape="rect" coords="474,2,534,22" href="http://dev.fordmuscle.com/forums/forumdisplay.php?f=97" alt="Classifieds" title="Classifieds">

      <area shape="rect" coords="175,2,259,24" href="http://dev.fordmuscle.com/FeatureCars/" alt="Feature Cars" title="Feature Cars">
      <area shape="rect" coords="542,2,614,27" href="http://dev.fordmuscle.com/forums/usercp.php" alt="My Account" title="My Account">
    </map>

    <map name="Map2">
      <area shape="rect" coords="3,2,45,20" href="<?=echo $logd;?>" alt="Log <?=echo $l2;?>" title="Log <?=echo $l2;?>">
      <area shape="rect" coords="49,1,95,25" href="http://dev.fordmuscle.com/about/" alt="About FordMuscle" title="About FordMuscle">
    </map>