// Time in seconds before they can post again define(META_DESC, 'no robots'); // Site description for search engines define(META_KEYS, 'no robots'); // Site keywords for search engines, keep them short $banned_ips = array('123.123.123.123', '123.1.12.21'); // Just add banned ips here $allowedExtensions = array('jpg', 'jpeg', 'png', 'gif'); // Allowed image extensions, you cannot add more, but you can remove /* * End of configuration * Dont edit the following code if you dont know what you are doing */ $posts = new phlat('posts', array('time', 'bumps', 'name', 'email', 'subject', 'comment', 'thumb', 'image', 'pass', 'ip'), USE_GZIP_DB, DB_GZ_LVL); $replies = new phlat('replies', array('post_id', 'time', 'name', 'email', 'subject', 'comment', 'thumb', 'image', 'pass', 'ip'), USE_GZIP_DB, DB_GZ_LVL); $reported = new phlat('../reported', array('post_id', 'reply_id', 'reason', 'board'), USE_GZIP_DB, DB_GZ_LVL); session_start(); if (USE_GZIP) { ob_start("ob_gzhandler"); } else { ob_start(); } if (in_array($_SERVER['REMOTE_ADDR'], $banned_ips)) { die('Sorry! You have been banned from the board ' . BOARD_NAME); } header('Content-Type:text/html; charset=UTF-8'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>
$('#' + $(this).attr('name')).css({ backgroundColor:'red', color:'white' }); $('#' + $(this).attr("name")).fadeOut('slow'); $.get("admin.php", {'delete':'' , 'id':$(this).attr('name')}); }); }); </script> <div id="forumListContainer"> <h1>Admin Panel </h1> <?php include_once 'lib/phlat.class.php'; include_once 'config.php'; if (isAdmin()) { $reported = new phlat('reported', array('post_id', 'reply_id', 'reason', 'board')); echo '<div style="padding: 5px;" />'; if (isset($_GET['logout'])) { $_SESSION['user'] = ''; $_SESSION['pass'] = ''; echo 'You are now logged out.'; header('refresh:2;url=?main'); } else { if (isset($_GET['delete'])) { $reported->deleteAt('id', $_GET['id']); } elseif (isset($_GET['reported'])) { $rep = $reported->get(); echo '<ul>'; if (empty($rep[0]['id'])) { echo '<li>No reports</li>'; } else {