<?php header('Access-Control-Allow-Origin: *'); if (!defined('__IS_LIVE__')) { require_once './CONFIG.php'; } require_once './data_store.php'; try { $room = null; if (isset($_REQUEST['room'])) { $room = $_REQUEST['room']; $key = 'chat_room_' . $room; // Clear the message list for the specified room. data_store_delete($key); } else { throw new Exception('ERROR NO ROOM SPECIFIED.'); } } catch (Exception $e) { echo $e->getMessage(); }
<?php header('Access-Control-Allow-Origin: *'); if (!defined('__IS_LIVE__')) { require_once './CONFIG.php'; } require_once './data_store.php'; try { $group = null; $key = null; if (isset($_REQUEST['group'])) { $group = $_REQUEST['group']; $data_key = 'player_data_' . $group; // Clear the data for the specified player group. data_store_delete($data_key); } else { throw new Exception('ERROR NO GROUP SPECIFIED.'); } } catch (Exception $e) { echo $e->getMessage(); }