Kenny Kerns - 2011-10-05

Hello all,

I am new to BASE and know little to nothing about PHP.

After getting my Snort and MySQL instance running I am trying to get BASE working as well.  Following online documentation I installed BASE and made the suggested changes to the Snort configuration.  I am getting the below error when attempting to open BASE via a browser.

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\inetpub\wwwroot\Base\base-1.4.5\base_conf.php on line 85

Here is snippet of my PHP code from lines 70 to 90

Line 70{
      if ($BUser->hasRole($roleneeded) == 0)
          base_header("Location: $BASE_urlpath/index.php");
  }

  // Set cookie to use the correct db.
  if (isset($_GET))
  {
      "no" == $_GET ? $value = 0 : $value = 1;
      setcookie('archive', $value);
      base_header("Location: $BASE_urlpath/base_main.php");
  }
 
  function DBLink()
  {
  Line 85// generate the link to select the other database….
      GLOBAL $archive_exists;  
      if ( (isset($_COOKIE) && $_COOKIE == 1) || (isset($_GET) && $_GET == 1)) {
          echo '<a href="base_main.php?archive=no">' . _USEALERTDB . '</a>';
      } elseif ($archive_exists != 0) {
          echo ('<a href="base_main.php?archive=1">' . _USEARCHIDB . '</a>');
      }
  }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!- <?php echo _TITLE . $BASE_VERSION; ?> ->

Any assistance the group can provide is greatly appreciated!

Kenny