File:  [mozdev] / cdn / www / local.conf
Revision 1.52: download - view: text, annotated - select for diffs - revision graph
Fri Apr 11 20:17:18 2008 UTC (9 years, 8 months ago) by cdn
Branches: MAIN
CVS tags: HEAD
@

<?php

// $Id: local.conf,v 1.52 2008/04/11 20:17:18 cdn Exp $

// site branding
$local_conf_no_wrap=OFF;

// toggle cvs commit view
$local_conf_commits=ON;
$local_conf_commits_days='this_month';

// other configuration options
// we need to set these with the correct defaults
//
// $local_conf_last_updated
//
$local_conf_mime_types = ON;
// $local_conf_serve_as_is
// $local_conf_skin
// $local_conf_nav_off

$local_conf_use_local_error_pages = ON;
$local_conf_use_local_footer = ON;
$local_conf_use_local_header = ON;
$local_conf_ignore_holidays = ON;

$local_conf_body_id = 'cdn-mozdev-org';

$d_m_o = 'http://downloads.mozdev.org/cdn'; $cvs_path = 'downloads';

function magic($n1, $_n2 = '')
{
  global $d_m_o, $cvs_path;

  $n2 = '/' . $n1 . '/';

  $n3 = $n1 . $_n2 . '.xpi';

  $n4 = $n2 . $n3;

  $n5 = $d_m_o . $n4;
  $n7 = $n5 . '" onclick="InstallTrigger.install({ \'' . $n1 . '\': { URL: \'' . $n5 . '\', ';
  $n7 .= 'IconURL: \'http://cdn.mozdev.org'. $n2 . 'i/' . $n1 . '.png\' } }); return false;" title="Install ' . $n1;

  $n6 = $cvs_path . $n4;

  $n = array($n2, $n3, $n7, $n6);

  return $n;

}

/**/
  $blog=1;

//  if( basename($page) != SOURCE_PAGE && basename($page) != 'sources.html' )
  if( basename($page) == 'blog.html' ) {
    $local_conf_nav_off = true;
    include_once (PROJECT_PATH . "/blog.header.php");
  }

/**/

$gfdsaq = @parse_url($_SERVER['REQUEST_URI']);

$vars5z = explode('&', $gfdsaq['query']);

foreach( $vars5z as $v4rsz )
{
  $zsrav = explode('=', $v4rsz);
  ${$zsrav[0]} = $zsrav[1];
}

/**/

define(PROJECT_D, $project);

function altCVSDate($project, $aFileName) {

  $f_current = "/cvs/$project/$aFileName,v";

  if (file_exists($f_current)) {
    $f_date    = date("M d, Y", filemtime($f_current));
    print " ". $f_date;
  }
}

 //
  $local_conf_style_2004 = ON;

if(preg_match('/html$/', basename($_GET['page']))) {
  echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">';
  echo "\n";
}

?>

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