+
500 | Down for maintenance! | +
+ The site is currently down for maintenance. + Please try again later. +
+From ccb900b1580c786dd32f4880e86f357e8b460ebd Mon Sep 17 00:00:00 2001
From: Markus Koch
+
+ The site is currently down for maintenance.
+ Please try again later.
+
+" (take url)
+ // Link will normally link to self
+ includeGraphics("Random FFT image", "2017/fft.png", $preview="", $style="width:640px;", $link="http://notsyncing.net/");
+?>
+
+ This will only show when opening the post, but not on the overview page.
+
+ This will only show after entering the correct password.
+
+
+
+
+
+
+
+ 500 Down for maintenance!
+ Hidden section
+Protected section
+
+Some provided styles
+
+ $ foobar
+
+ Inline $code
is also possible.
+
AOQU?R^a%Jn;GCwG
zmWS{#Pw8Oj7r%X?Xn3EMrF`QC(fcl9c>UEh06*m}UJU86VU5eEEN_weg17m`U+MhX
zQJBB@scQb7`>9z41!+b{NA(^5**d3_Ro_;r|Jgj20$SPQ&Q7QJ_$YuQT1?7HOP3q+
z!ppY>w4%P6Bf#S_d6u6vSV^W$kbCl;4@5 Sources: → Click here to continue reading ← ";
+ if ($userPassword == "")
+ echo "This section is protected. To view it, enter the correct password.";
+ else
+ echo "The password you entered is incorrect! Please try again.";
+?>
+ (plkuYFflQaQ&N)E$#n#g?@!S^g7c^7Zor_F*bx^Or_1{S
zUR5S*Yirt{E
Fm@9TkJ+NFolJ*wLwhOi8&bF3KPa ";
+ //echo 'permalink\">$blogentry->title
' . date("l, F jS Y, H:i", $blogentry->ctime) . " ' . date("l, F jS Y, H:i", $blogentry->ctime) . " ";
+ }
+
+ return $renderIt;
+ }
+
+ function renderFooter() {
+ global $counters;
+ global $meta;
+ $i = 1;
+ if ($counters['sources'] > 1) {
+ echo ' |
';
+ foreach ($meta['sources'] as $v) {
+ echo ' [' . $i++ . ']: ' . $v . '
';
+ }
+ echo '
';
+ }
+
+ global $blogentry;
+ echo ' ";
+
+
+ }
+
+ function extended() {
+ global $CMS_SINGLE_POST;
+ global $blogentry;
+ $renderExt = isset($CMS_SINGLE_POST) && $CMS_SINGLE_POST;
+ if ($renderExt) {
+ echo '';
+ }
+ else {
+ echo '
<< Older posts | '; + if ($postsSkip > 0) + echo 'Newer posts >> | '; + if ($morePosts || $postsSkip > 0) + echo "
+ This is a subpage. The following code demonstrates the features of page.php. +
+ + diff --git a/page.php b/page.php new file mode 100644 index 0000000..25810f0 --- /dev/null +++ b/page.php @@ -0,0 +1,13 @@ +' . $title . ' | |
' . $title . ' | ' . $description . ' |
SERVER ERROR: Image not valid!
"; + return ; + } + $page=substr($page,0,12); // SECURITY: Max 12 chars + exec("gm convert '$fpath' -resize 640 '$fpreviewPath';"); + } + } + elseif ($preview == "") { + $previewPath = $spath; + } + else { + $previewPath = $preview; + } + + if ($link == "+") + $link = $spath; + + echo ''; + + return $counters['figure']++; + } + + + /* + * This function will include a video. + * returns : Number of the video for later referencing. + * $url : URL of the video. Autodetects YouTube. Otherwise HTML5 video. + * $title : Display "Video n. $title" below the video. + * $width : Width of the player + */ + $counters['video'] = 1; + function includeVideo($url, $title="", $width=640) { + global $counters; + // TODO: HTML5 video + echo '