2
/* vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +----------------------------------------------------------------------+
5
// +----------------------------------------------------------------------+
6
// | Copyright (c) 2000-2009 WS Interactive |
7
// +----------------------------------------------------------------------+
8
// | Automne is subject to version 2.0 or above of the GPL license. |
9
// | The license text is bundled with this package in the file |
10
// | LICENSE-GPL, and is available through the world-wide-web at |
11
// | http://www.gnu.org/copyleft/gpl.html. |
12
// +----------------------------------------------------------------------+
13
// | Author: S�bastien Pauchet <sebastien.pauchet@ws-interactive.fr> |
14
// +----------------------------------------------------------------------+
16
// $Id: tree-lineage.php,v 1.1.1.1 2008/11/26 17:12:05 sebastien Exp $
19
* PHP page : Load tree window infos
20
* Used accross an Ajax request render page tree in the tree window
24
* @author S�bastien Pauchet <sebastien.pauchet@ws-interactive.fr>
27
require_once($_SERVER["DOCUMENT_ROOT"]."/cms_rc_admin.php");
29
//load interface instance
30
$view = CMS_view::getInstance();
31
//set default display mode for this page
32
$view->setDisplayMode(CMS_view::SHOW_JSON);
34
$rootId = (int) sensitiveIO::request('root', 'sensitiveIO::isPositiveInteger', APPLICATION_ROOT_PAGE_ID);
35
$nodeId = (int) sensitiveIO::request('node', 'sensitiveIO::isPositiveInteger', APPLICATION_ROOT_PAGE_ID);
36
$lineage = CMS_tree::getLineage($rootId, $nodeId, false);
40
$view->setContent($lineage);
b'\\ No newline at end of file'