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 (11 years ago) by cdn
Branches: MAIN
CVS tags: HEAD
@

    1: <?php
    2: 
    3: // $Id: local.conf,v 1.52 2008/04/11 20:17:18 cdn Exp $
    4: 
    5: // site branding
    6: $local_conf_no_wrap=OFF;
    7: 
    8: // toggle cvs commit view
    9: $local_conf_commits=ON;
   10: $local_conf_commits_days='this_month';
   11: 
   12: // other configuration options
   13: // we need to set these with the correct defaults
   14: //
   15: // $local_conf_last_updated
   16: //
   17: $local_conf_mime_types = ON;
   18: // $local_conf_serve_as_is
   19: // $local_conf_skin
   20: // $local_conf_nav_off
   21: 
   22: $local_conf_use_local_error_pages = ON;
   23: $local_conf_use_local_footer = ON;
   24: $local_conf_use_local_header = ON;
   25: $local_conf_ignore_holidays = ON;
   26: 
   27: $local_conf_body_id = 'cdn-mozdev-org';
   28: 
   29: $d_m_o = 'http://downloads.mozdev.org/cdn'; $cvs_path = 'downloads';
   30: 
   31: function magic($n1, $_n2 = '')
   32: {
   33:   global $d_m_o, $cvs_path;
   34: 
   35:   $n2 = '/' . $n1 . '/';
   36: 
   37:   $n3 = $n1 . $_n2 . '.xpi';
   38: 
   39:   $n4 = $n2 . $n3;
   40: 
   41:   $n5 = $d_m_o . $n4;
   42:   $n7 = $n5 . '" onclick="InstallTrigger.install({ \'' . $n1 . '\': { URL: \'' . $n5 . '\', ';
   43:   $n7 .= 'IconURL: \'http://cdn.mozdev.org'. $n2 . 'i/' . $n1 . '.png\' } }); return false;" title="Install ' . $n1;
   44: 
   45:   $n6 = $cvs_path . $n4;
   46: 
   47:   $n = array($n2, $n3, $n7, $n6);
   48: 
   49:   return $n;
   50: 
   51: }
   52: 
   53: /**/
   54:   $blog=1;
   55: 
   56: //  if( basename($page) != SOURCE_PAGE && basename($page) != 'sources.html' )
   57:   if( basename($page) == 'blog.html' ) {
   58:     $local_conf_nav_off = true;
   59:     include_once (PROJECT_PATH . "/blog.header.php");
   60:   }
   61: 
   62: /**/
   63: 
   64: $gfdsaq = @parse_url($_SERVER['REQUEST_URI']);
   65: 
   66: $vars5z = explode('&', $gfdsaq['query']);
   67: 
   68: foreach( $vars5z as $v4rsz )
   69: {
   70:   $zsrav = explode('=', $v4rsz);
   71:   ${$zsrav[0]} = $zsrav[1];
   72: }
   73: 
   74: /**/
   75: 
   76: define(PROJECT_D, $project);
   77: 
   78: function altCVSDate($project, $aFileName) {
   79: 
   80:   $f_current = "/cvs/$project/$aFileName,v";
   81: 
   82:   if (file_exists($f_current)) {
   83:     $f_date    = date("M d, Y", filemtime($f_current));
   84:     print " ". $f_date;
   85:   }
   86: }
   87: 
   88:  //
   89:   $local_conf_style_2004 = ON;
   90: 
   91: if(preg_match('/html$/', basename($_GET['page']))) {
   92:   echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">';
   93:   echo "\n";
   94: }
   95: 
   96: ?>

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