GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — processing-docs/generate/foundation.php at master · processing/processing-docs

Expand file tree

/

foundation.php

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
78 lines (57 loc) · 2.67 KB
/

foundation.php

Copy path

File metadata and controls

78 lines (57 loc) · 2.67 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
require('../config-f.php');
//require_once(TEMPLATEDIR.'foundation-template.php');
$benchmark_start = microtime_float();
$source = CONTENTDIR."static/foundation-site";
$path = BASEDIR;
$where = CONTENTDIR . 'static/foundation-site';
putenv('HOME=' . CONTENTDIR);
$source = CONTENTDIR."static/foundation-site/";
$dest = $path."foundation-site/";
//$dest = FOUNDDIR;
$page = new Page("Overview", "Overview2");
$page->content(file_get_contents($source."overview.html"));
writeFile($dest."index.html", $page->out());
//copydirr($source.'/imgs', $dest.'/images');
//echo("hey");
//echo($dest);
$page = new Page("Mission", "Mission");
$page->content(file_get_contents($source."mission.html"));
writeFile($dest."mission/index.html", $page->out());
$page = new Page("Projects", "Projects");
$page->content(file_get_contents($source."projects.html"));
writeFile($dest."projects/index.html", $page->out());
$page = new Page("People", "People2");
$page->content(file_get_contents($source."people.html"));
writeFile($dest."people/index.html", $page->out());
$page = new Page("Fellowships", "Fellowships");
$page->content(file_get_contents($source."fellowships.html"));
writeFile($dest."fellowships/index.html", $page->out());
$page = new Page("Reports", "Reports");
$page->content(file_get_contents($source."reports.html"));
writeFile($dest."reports/index.html", $page->out());
$page = new Page("Patrons", "Patrons");
$page->content(file_get_contents($source."patrons.html"));
writeFile($dest."patrons/index.html", $page->out());
//$page = new Page("Donate", "Donate");
//$page->content(file_get_contents($source."donate.html"));
//writeFile($dest."donate/index.html", $page->out());
// After the pages are created, copy them to the Foundation subdomain
//cp ../../img/processing-web.png ../../distribution/img/
echo("Starting to copy the site...");
`cd $path && cp -r foundation-site/* /var/www/foundation/`;
echo("done!");
echo("Starting to copy the CSS...");
`cd $path && rm -rf /var/www/foundation/css/ && mkdir /var/www/foundation/css/ && cp -r css/* /var/www/foundation/css/`;
echo("done!");
echo("Starting to copy the JavaScript...");
`cd $path && rm -rf /var/www/foundation/javascript/ && mkdir /var/www/foundation/javascript/ && cp -r javascript/* /var/www/foundation/javascript/`;
echo("done!");
echo("Starting to copy the images...");
`cd $path && rm -rf /var/www/foundation/images/ && mkdir /var/www/foundation/images/ && cp -r content/static/foundation-site/imgs/* /var/www/foundation/images/`;
echo("done!");
$benchmark_end = microtime_float();
$execution_time = round($benchmark_end - $benchmark_start, 4);
?>
<h2>Static page generation Successful</h2>
<p>Generated files in <?=$execution_time?> seconds.</p>
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.