/*************************************** * http://www.program-o.com * PROGRAM O * Version: 2.5.4 * FILE: logs.php * AUTHOR: Elizabeth Perreau and Dave Morton * DATE: 12-12-2014 * DETAILS: Displays chat logs for the currently selected chatbot ***************************************/ $get_vars = filter_input_array(INPUT_GET); $show = isset($get_vars['showing']) ? $get_vars['showing'] : "last 20"; //showThis($show) $show_this = showThis($show); $convo = isset($get_vars['id']) ? getuserConvo($get_vars['id'], $show) : "Please select a conversation from the side bar."; $user_list = isset($get_vars['id']) ? getuserList($get_vars['id'], $show) : getuserList($_SESSION['poadmin']['bot_id'], $show); $bot_name = isset($_SESSION['poadmin']['bot_name']) ? $_SESSION['poadmin']['bot_name'] : 'unknown'; $upperScripts = $template->getSection('UpperScripts'); $topNav = $template->getSection('TopNav'); $leftNav = $template->getSection('LeftNav'); $main = $template->getSection('Main'); $FooterInfo = getFooter(); $errMsgClass = !empty($msg) ? "ShowError" : "HideError"; $errMsgStyle = $template->getSection($errMsgClass); $rightNav = $template->getSection('RightNav'); $navHeader = $template->getSection('NavHeader'); $noLeftNav = ''; $noTopNav = ''; $noRightNav = ''; $headerTitle = 'Actions:'; $pageTitle = 'My-Program O - Chat Logs';
<?php error_reporting(E_ALL); ini_set('display_errors', true); include 'Config/functions.php'; include 'Config/static_config.php'; $result = getuserList(); $userList = ""; if ($result->num_rows > 0) { // output data of each row foreach ($result as $row) { $userList .= '<div class="col-1-4"> <div class="content-box"> <div class="user"> <a href="user.php?id=' . $row["id"] . '"> <img src="' . $imgdest . $row["usrimg"] . '" alt="' . $row["username"] . 's avatar"> <div class="col-1-1 user_nav"> <div class="col-9-12"> <span class="user_nav_span">' . $row["username"] . '</span> </div> </a> <div class="col-3-12"> <a href="delete.php?id=' . $row["id"] . '"> <i class="fa fa-trash-o fa-fw delete"></i> </a> </div> </div> </div> </div> </div>'; }