diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-13 12:27:12 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-13 12:27:12 +0000 |
commit | 55724ff6f6818f2c1b16d4bacd912ae2eb745fdb (patch) | |
tree | 5365657ba47de2e891d84965a6ba2bb98d4783d8 /mod/pages/pagesTree.php | |
parent | a6e012278e2a33721e91ae36a7fda65804785440 (diff) | |
download | elgg-55724ff6f6818f2c1b16d4bacd912ae2eb745fdb.tar.gz elgg-55724ff6f6818f2c1b16d4bacd912ae2eb745fdb.tar.bz2 |
Added a new latest activity title to the front page
git-svn-id: https://code.elgg.org/elgg/trunk@1895 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/pages/pagesTree.php')
-rw-r--r-- | mod/pages/pagesTree.php | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/mod/pages/pagesTree.php b/mod/pages/pagesTree.php new file mode 100644 index 000000000..167877e00 --- /dev/null +++ b/mod/pages/pagesTree.php @@ -0,0 +1,56 @@ +<?php
+ require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
+
+ $page = (int) get_input('root',get_input('source'));
+
+ if (!$page = get_entity($page)) {
+ exit;
+ }
+
+ // View tree
+ echo pages_get_entity_sidebar($page, $fulltree);
+
+//
+// jQuery File Tree PHP Connector
+//
+// Version 1.01
+//
+// Cory S.N. LaViska
+// A Beautiful Site (http://abeautifulsite.net/)
+// 24 March 2008
+//
+// History:
+//
+// 1.01 - updated to work with foreign characters in directory/file names (12 April 2008)
+// 1.00 - released (24 March 2008)
+//
+// Output a list of files for jQuery File Tree
+//
+
+/*
+$_POST['dir'] = urldecode($_POST['dir']);
+
+if( file_exists($root . $_POST['dir']) ) {
+ $files = scandir($root . $_POST['dir']);
+ natcasesort($files);
+ if( count($files) > 2 ) {
+ echo "<ul class=\"jqueryFileTree\" style=\"display: none;\">";
+ // All dirs
+ foreach( $files as $file ) {
+ if( file_exists($root . $_POST['dir'] . $file) && $file != '.' && $file != '..' && is_dir($root . $_POST['dir'] . $file) ) {
+ echo "<li class=\"directory collapsed\"><a href=\"#\" rel=\"" . htmlentities($_POST['dir'] . $file) . "/\">" . htmlentities($file) . "</a></li>";
+ }
+ }
+ // All files
+ foreach( $files as $file ) {
+ if( file_exists($root . $_POST['dir'] . $file) && $file != '.' && $file != '..' && !is_dir($root . $_POST['dir'] . $file) ) {
+ $ext = preg_replace('/^.*\./', '', $file);
+ echo "<li class=\"file ext_$ext\"><a href=\"#\" rel=\"" . htmlentities($_POST['dir'] . $file) . "\">" . htmlentities($file) . "</a></li>";
+ }
+ }
+ echo "</ul>";
+ }
+}
+*/
+
+?>
\ No newline at end of file |