?
Path : /home/admin/domains/happytokorea.com/public_html_bk/happyezystyle/board/Sources/ |
Current File : /home/admin/domains/happytokorea.com/public_html_bk/happyezystyle/board/Sources/Xml.php |
<?php /********************************************************************************** * Xml.php * *********************************************************************************** * SMF: Simple Machines Forum * * Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com) * * =============================================================================== * * Software Version: SMF 2.0 RC1 * * Software by: Simple Machines (http://www.simplemachines.org) * * Copyright 2006-2009 by: Simple Machines LLC (http://www.simplemachines.org) * * 2001-2006 by: Lewis Media (http://www.lewismedia.com) * * Support, News, Updates at: http://www.simplemachines.org * *********************************************************************************** * This program is free software; you may redistribute it and/or modify it under * * the terms of the provided license as published by Simple Machines LLC. * * * * This program is distributed in the hope that it is and will be useful, but * * WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY * * or FITNESS FOR A PARTICULAR PURPOSE. * * * * See the "license.txt" file for details of the Simple Machines license. * * The latest version can always be found at http://www.simplemachines.org. * **********************************************************************************/ if (!defined('SMF')) die('Hacking attempt...'); /* This file maintains all XML-based interaction (mainly XMLhttp). void GetJumpTo() */ function XMLhttpMain() { loadTemplate('Xml'); $sub_actions = array( 'jumpto' => array( 'function' => 'GetJumpTo', ), 'messageicons' => array( 'function' => 'ListMessageIcons', ), ); if (!isset($_REQUEST['sa'], $sub_actions[$_REQUEST['sa']])) fatal_error('Action doesn\'t exist'); $sub_actions[$_REQUEST['sa']]['function'](); } // Get a list of boards and categories used for the jumpto dropdown. function GetJumpTo() { global $user_info, $context, $smcFunc, $sourcedir; // Find the boards/cateogories they can see. require_once($sourcedir . '/Subs-MessageIndex.php'); $boardListOptions = array( 'use_permissions' => true, 'selected_board' => isset($context['current_board']) ? $context['current_board'] : 0, ); $context['jump_to'] = getBoardList($boardListOptions); // Make the board safe for display. foreach ($context['jump_to'] as $id_cat => $cat) { $context['jump_to'][$id_cat]['name'] = un_htmlspecialchars(strip_tags($cat['name'])); foreach ($cat['boards'] as $id_board => $board) { $context['jump_to'][$id_cat]['boards'][$id_board]['name'] = un_htmlspecialchars(strip_tags($board['name'])); } } $context['sub_template'] = 'jump_to'; } function ListMessageIcons() { global $context, $sourcedir, $board; require_once($sourcedir . '/Subs-Editor.php'); $context['icons'] = getMessageIcons($board); $context['sub_template'] = 'message_icons'; } ?>