| [Top level directory] [Classes] [Functions] [Constants] [Variables] |
XMB Open Source Forum Software - PHP Cross Reference |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * eXtreme Message Board 4 * XMB 1.9.11 5 * 6 * Developed And Maintained By The XMB Group 7 * Copyright (c) 2001-2010, The XMB Group 8 * http://www.xmbforum.com 9 * 10 * Sponsored By iEntry, Inc. 11 * http://www.ientry.com 12 * 13 * This program is free software; you can redistribute it and/or 14 * modify it under the terms of the GNU General Public License 15 * as published by the Free Software Foundation; either version 2 16 * of the License, or (at your option) any later version. 17 * 18 * This program is distributed in the hope that it will be useful, 19 * but WITHOUT ANY WARRANTY; without even the implied warranty of 20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 * GNU General Public License for more details. 22 * 23 * You should have received a copy of the GNU General Public License 24 * along with this program. If not, see <http://www.gnu.org/licenses/>. 25 * 26 **/ 27 28 define('X_SCRIPT', 'buddy.php'); 29 30 require 'header.php'; 31 require ROOT.'include/buddy.inc.php'; 32 33 header('X-Robots-Tag: noindex'); 34 35 loadtemplates( 36 'buddy_u2u_inv', 37 'buddy_u2u_off', 38 'buddy_u2u_on', 39 'buddy_u2u', 40 'buddylist', 41 'buddylist_buddy_offline', 42 'buddylist_buddy_online', 43 'buddylist_edit', 44 'buddylist_edit_buddy', 45 'buddylist_message' 46 ); 47 48 eval('$css = "'.template('css').'";'); 49 50 if (X_GUEST) { 51 redirect("{$full_url}misc.php?action=login", 0); 52 exit; 53 } 54 55 $action = postedVar('action', '', FALSE, FALSE, FALSE, 'g'); 56 switch($action) { 57 case 'add': 58 $buddys = postedVar('buddys', '', TRUE, TRUE, FALSE, 'g'); 59 if (empty($buddys)) { 60 $buddys = postedArray('buddys'); 61 } 62 buddy_add($buddys); 63 break; 64 case 'edit': 65 buddy_edit(); 66 break; 67 case 'delete': 68 $delete = postedArray('delete'); 69 if ($delete) { 70 buddy_delete($delete); 71 } else { 72 blistmsg($lang['nomember']); 73 } 74 break; 75 case 'add2u2u': 76 buddy_addu2u(); 77 break; 78 default: 79 buddy_display(); 80 break; 81 } 82 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Tue Jan 26 20:11:23 2010 | Home | Forum | Download | SVN | Bug Tracker | Documentation | Cross-referenced by PHPXref 0.7 |