The author freely grants the right under specific terms to use, copy or modify the Software for any non-commercial purpose. Any use or distribution of this Software to obtain profit or for commercial ends being subject to obtaining the prior express authorization of the author. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR ANY DAMAGE ARISING OUT OF THE USE OF THIS SOFTWARE. For more details please read the full LICENSE! */ include("includes/init.php"); $nodeid = isset($_GET['node']) ? $_GET['node'] : null; $title = isset($_GET['title']) ? $_GET['title'] : null; $showr = isset($_GET['showrevs']) ? $_GET['showrevs'] : null; if (!$nodeid) { // view node by title if (!$title) $title = $config['default_page']; $node = cache($title, !is_dotnode($title)); do_plugin(PLUGIN_INDEX, $node); if($node) { if(!is_dotnode($title)) { $node = embed_node($node); $node = plugin_node($node); } else { $node='
'.htmlspecialchars($node).''; } if($showr) { $rows = get_nodes_by_title($title, $showr ? false : true); $node.="
'.htmlspecialchars($node).''; } } else { $node=str_replace("\$title", $title, $T('dotnode')); } } } else { $node=$T('empty'); } } if(!is_loggedin() && is_private_node($title)) { $node=$T('private'); } $bar="{$T('index')} - "; if(!$showr)$bar.="{$T('showrevs')}"; else $bar.="{$T('hiderevs')}"; $bar.=" - {$T('all')} - {$T('edit')} - "; $return = base64_encode($_SERVER['REQUEST_URI']); if (is_loggedin()) $bar.="{$T('logout')}"; else $bar.="{$T('login')}"; display($title, $node, $bar); ?>