示例#1
0
文件: building.php 项目: openpave/www
 *  rights under the License.
 *
 *  Software distributed under the License is distributed on an "AS IS"
 *  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 *  the License for the specific language governing rights and
 *  limitations under the License.
 *
 *  The Initial Developer of the Original Software is Jeremy Lea.
 *
 *  Portions Copyright (C) 2006-2009 OpenPave.org.
 *
 *  Contributor(s): Jeremy Lea <*****@*****.**>.
 */
$depth = '';
require $depth . 'dynamic.inc';
StartHTML();
?>

<h2>Building OpenPave.org Code</h2>

<p>Building OpenPave.org projects require little more than just downloading
and building them, expect on Windows, where you will need to get a working
building environment up and running first.  OpenPave.org's build system is
based on that used by Mozilla.</p>

<h3>Setting up a Windows build environment</h3>

<p>The build system makes use of a number of Unix utilities, and the best
way to install these is with <a href="http://www.cygwin.com/">Cygwin</a>. 
Download <a href="http://www.cygwin.com/setup.exe">setup.exe</a> and run it. 
Make sure to install the make, diffutils, patchutils and cvs packages, along
示例#2
0
function DownloadPDB()
{
    global $file, $SavedPDB, $HTTP_USER_AGENT;
    if (!isset($SavedPDB) || !is_array($SavedPDB) || !isset($SavedPDB[$file])) {
        StartHTML('Error Downloading File');
        ShowError('The specified file no longer is saved.  It most ' . 'likely expired.');
        ShowInitialForm();
        return;
    }
    $filename = $file . '.pdb';
    if (strstr($HTTP_USER_AGENT, 'compatible; MSIE ') !== false && strstr($HTTP_USER_AGENT, 'Opera') === false) {
        // IE doesn't properly download attachments.  This should work
        // pretty well for IE 5.5 SP 1
        header("Content-Disposition: inline; filename={$filename}");
        header("Content-Type: application/download; name=\"{$filename}\"");
    } else {
        // Use standard headers for Netscape, Opera, etc.
        header("Content-Disposition: attachment; filename=\"{$filename}\"");
        header("Content-Type: application/x-pilot; name=\"{$filename}\"");
    }
    echo $SavedPDB[$file]['Data'];
}
示例#3
0
 *
 *  The contents of this file are subject to the Academic Development
 *  and Distribution License Version 1.0 (the "License"); you may not
 *  use this file except in compliance with the License.  You should
 *  have received a copy of the License with this file.  If you did not
 *  then please contact whoever distributed this file too you, since
 *  they may be in violation of the License, and this may affect your
 *  rights under the License.
 *
 *  Software distributed under the License is distributed on an "AS IS"
 *  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 *  the License for the specific language governing rights and
 *  limitations under the License.
 *
 *  The Initial Developer of the Original Software is Jeremy Lea.
 *
 *  Portions Copyright (C) 2006-2009 OpenPave.org.
 *
 *  Contributor(s): Jeremy Lea <*****@*****.**>.
 */
$depth = '';
require $depth . 'dynamic.inc';
StartHTML(array(), array('//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js'));
?>

<h2>Calculate!</h2>

<p>Work in progress...</p>

<?php 
FinaliseHTML('');