?> <div class="container"> <h1 class="page-header">Welcome to <?php echo get_setting('site_title'); ?> , <?php echo ucwords(pirate_auth_current_user('username')); ?> </h1> <table class="table table-striped table-bordered"> <thead><th>Title</th><th>Author</th><th>Date Created</th><th class="hidden-xs">Requires Confirmation</th><th class="hidden-xs">Confirmed</th><th>Version</th></thead> <?php $pages = get_original_pages(pirate_auth_current_user('id')); while ($spage = mysqli_fetch_array($pages)) { $page = get_latest_page($spage['id']); if ((pirate_auth_current_user('rank') != 'user' || $page['visibility'] == 'public') && $page['state'] != 'draft') { ?> <tr> <td><a href="viewpage.php?id=<?php echo $page['id']; ?> "><?php echo $page['title']; ?> </a></td> <td><?php echo pirate_auth_get_user_by_id($page['author_id'])['first_name'] . " " . pirate_auth_get_user_by_id($page['author_id'])['last_name']; ?>
<ul class="list-group"> <a class="list-group-item" href="index.php"><span class="fa fa-home"></span> home</a> <a class="list-group-item" href="newpage.php"><span class="fa fa-plus"></span> new page</a> <a class="list-group-item" href="logout.php"><span class="fa fa-sign-out"></span> logout</a> </ul> </div> </div> <div class="col-sm-4"> <div class="panel panel-default"> <div class="panel-heading">All Pages</div> <div class="panel-body"> <ul class="hc-tree"> <?php $page_originals = get_original_pages(); while ($original_page = mysqli_fetch_array($page_originals)) { ?> <li class="folder"> <a href="#" class="title"><?php echo $original_page['title']; ?> </a> <ol> <?php $child_pages = get_pages_for_original($original_page['id']); $num = 1; while ($child_page = mysqli_fetch_array($child_pages)) { ?> <li><a href="viewpage.php?id=<?php echo $child_page['id'];