| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
$body = "<h2 class=\"weblogdateheader\">".gmdate("F jS, Y",time())."</h2>"; |
|---|
| 6 |
|
|---|
| 7 |
$weblogbody = "The circular arrangement of the axes of the Difference Engine round the large central wheels led to the most extended prospects. The whole of arithmetic now appeared within the grasp of mechanism. A vague glimpse even of an Analytical Engine at length opened out, and I pursued with enthusiasm the shadowy vision. The drawings and the experiments were of the most costly kind. Draftsmen of the highest order were necessary to economize the labour of my own head; whilst skilled workmen were required to execute the experimental machinery to which I was obliged constantly to have recourse. |
|---|
| 8 |
|
|---|
| 9 |
In order to carry out my pursuits successfully, I had purchased a house with above a quarter of an acre of ground in a very quiet locality. My coach-house was now converted into a forge and a foundry, whilst my stables were transformed into a workshop. I built other extensive workshops myself, and had a fireproof building for my drawings and draftsmen. Having myself worked with a variety of tools, and having studied the art of constructing each of them, I at length laid it down as a principle - that, except in rare cases, I would never do anything myself if I could afford to hire another person who could do it for me."; |
|---|
| 10 |
|
|---|
| 11 |
$commentsbody = run("templates:draw", array( |
|---|
| 12 |
'context' => 'weblogcomment', |
|---|
| 13 |
'postedname' => "Unkind Guest", |
|---|
| 14 |
'body' => "I mock you, Babbage! Your difference engine will never catch on.", |
|---|
| 15 |
'posted' => gmdate("l, F jS, Y",time()) . " at " . gmdate("H:i",time()) |
|---|
| 16 |
) |
|---|
| 17 |
); |
|---|
| 18 |
|
|---|
| 19 |
$commentsbody .= run("templates:draw", array( |
|---|
| 20 |
'context' => 'weblogcomment', |
|---|
| 21 |
'postedname' => "Charles Babbage", |
|---|
| 22 |
'body' => "Says you!", |
|---|
| 23 |
'posted' => gmdate("l, F jS, Y",time()) . " at " . gmdate("H:i",time()) |
|---|
| 24 |
) |
|---|
| 25 |
); |
|---|
| 26 |
|
|---|
| 27 |
$commentsbody = run("templates:draw", array( |
|---|
| 28 |
'context' => 'weblogcomments', |
|---|
| 29 |
'comments' => $commentsbody |
|---|
| 30 |
) |
|---|
| 31 |
); |
|---|
| 32 |
|
|---|
| 33 |
$body .= run("templates:draw", array( |
|---|
| 34 |
'context' => 'weblogpost', |
|---|
| 35 |
'date' => gmdate("H:i",time()), |
|---|
| 36 |
'username' => "charlesbabbage", |
|---|
| 37 |
'usericon' => "../../_templates/babbage.jpg", |
|---|
| 38 |
'body' => nl2br($weblogbody), |
|---|
| 39 |
'fullname' => "Charles Babbage", |
|---|
| 40 |
'title' => "The Analytical Engine - introduction from Chapter VIII", |
|---|
| 41 |
'comments' => $commentsbody |
|---|
| 42 |
) |
|---|
| 43 |
); |
|---|
| 44 |
|
|---|
| 45 |
$run_result .= run("templates:draw", array( |
|---|
| 46 |
'context' => 'infobox', |
|---|
| 47 |
'name' => 'Weblog post', |
|---|
| 48 |
'contents' => $body |
|---|
| 49 |
) |
|---|
| 50 |
); |
|---|
| 51 |
|
|---|
| 52 |
?> |
|---|