diff options
Diffstat (limited to 'views/js/pageshells/pageshell.php')
-rw-r--r-- | views/js/pageshells/pageshell.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/views/js/pageshells/pageshell.php b/views/js/pageshells/pageshell.php new file mode 100644 index 000000000..7c3a59adb --- /dev/null +++ b/views/js/pageshells/pageshell.php @@ -0,0 +1,27 @@ +<?php
+
+ /**
+ * Elgg JS pageshell
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+ $body = $vars['body'];
+
+ // Remove excess carriage returns
+ $body = str_replace("\r",'',$body);
+
+ $body = explode("\n",$body);
+
+ foreach($body as $line) {
+
+ echo "document.write('" . addslashes($line) . "');\n";
+
+ }
+
+?>
\ No newline at end of file |