File:  [mozdev] / adblockplus / www / local.conf
Revision 1.23: download - view: text, annotated - select for diffs - revision graph
Wed Apr 2 11:04:05 2008 UTC (9 years, 6 months ago) by trev
Branches: MAIN
CVS tags: HEAD
Redirect to adblockplus.org again

<?php
  /*if ($_SERVER['REQUEST_URI'] != "/") {
    header("Location: http://adblockplus.mozdev.org/");
    exit();
  }
  $local_conf_serve_as_is = ON;*/

  // Redirect to the new site
  if (preg_match('/^\\/(de\\/|fr\\/)?(?:([^\\/]+?)\\.html)?(\\?.*)?$/', $_SERVER['REQUEST_URI'], $matches)) {
    if (!$matches[1])
      $matches[1] = 'en/';
    if ($matches[2] == 'installation_localized')
      $matches[2] = 'installation';
    if ($matches[2] == 'index')
      $matches[2] = '';
    header('HTTP/1.1 301 Moved Permanently');
    header("Location: http://adblockplus.org/$matches[1]$matches[2]$matches[3]");
    exit();
  }

  if (preg_match('/^\\/(\\w{2})\\//', $_SERVER['REQUEST_URI'], $matches)) {
    $local_conf_project_html_lang = $matches[1];
  }
  else {
    $local_conf_project_html_lang = 'en';
  }

  header("Content-Type: text/html; charset=iso-8859-1");

// site branding
$local_conf_no_wrap=OFF;

// toggle cvs commit view
$local_conf_commits=ON;
// if you're creating complete xhtml pages, and you are hiding commits
// $local_conf_no_no_commits_message = ON;

// other configuration options
// we need to set these with the correct defaults
//
// $local_conf_last_updated
// $local_conf_mime_types
// $local_conf_serve_as_is
// $local_conf_skin
// $local_conf_nav_off
//
// $local_conf_use_local_error_pages // uses error/404.html unless $local_conf_error_page set
// $local_conf_error_page = 'error/404.html'; // path relative to PROJECTNAME/www
//
  $local_conf_use_local_footer = ON;
// $local_conf_auto_generate_memberlist
// $local_conf_show_notes_form
// $local_conf_project_html_lang = 'es'; (for mozillaes project) set to override default 'en'

  $local_conf_ignore_holidays = ON;
  $local_conf_style_2004 = ON;

  $version = '0.7.0.2';

// $now = time();

  echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/transitional.dtd">' . "\n";

?>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>