Page MenuHomeDevCentral

No OneTemporary

diff --git a/gadgets/_documents.xml b/gadgets/_documents.xml
new file mode 100644
index 0000000..7b52d27
--- /dev/null
+++ b/gadgets/_documents.xml
@@ -0,0 +1,17 @@
+<documents topic="gadgets">
+ <document>
+ <article>motd-variations</article>
+ <title>English text variants MOTD</title>
+ <description>Calls `fortune` and prints it as is, in Jive and Valspeak.</description>
+ <head><![CDATA[
+ <style type="text/css">
+ /* A nice font for our text */
+
+ #content { font-family: "OFL Sorts Mill Goudy TT"; }
+ #content p { white-space: pre; margin: 0 0 4em 2em; font-size: 1.125em; }
+ </style>
+ <link href='http://fonts.googleapis.com/css?family=OFL+Sorts+Mill+Goudy+TT:regular,italic' rel='stylesheet' type='text/css'>
+]]>
+ </head>
+ </document>
+</documents>
\ No newline at end of file
diff --git a/gadgets/motd-variations.php b/gadgets/motd-variations.php
index 4584a6e..4e168ba 100755
--- a/gadgets/motd-variations.php
+++ b/gadgets/motd-variations.php
@@ -1,17 +1,11 @@
- <!-- Extra fonts and layout -->
- <link href='http://fonts.googleapis.com/css?family=OFL+Sorts+Mill+Goudy+TT:regular,italic' rel='stylesheet' type='text/css'>
- <style type="text/css">
- #content { font-family: "OFL Sorts Mill Goudy TT"; }
- #content p { white-space: pre; margin: 0 0 4em 2em; font-size: 1.125em; }
- </style>
-
<!-- Actions -->
<div id="action-icons"><a href="?" title="Refresh this page"><i class="general foundicon-refresh"></i></a></div>
<!-- Content -->
<?php
$content = `/home/dereckson/public_html/variants.tcl`;
$pos1 = strpos($content, '<h2>');
$pos2 = strpos($content, '</body>');
+ $content = str_replace('<h2>', '<h3>', $content);
echo substr($content, $pos1, $pos2 - $pos1);
?>

File Metadata

Mime Type
text/x-diff
Expires
Fri, Sep 12, 20:07 (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2978291
Default Alt Text
(1 KB)

Event Timeline