[ Index ] |
|
Code source de b2evolution 2.1.0-beta |
1 <?php 2 /** 3 * This is the handler/dispatcher for asynchronous calls (both AJax calls and HTTP GET fallbacks) 4 * 5 * This file is part of the evoCore framework - {@link http://evocore.net/} 6 * See also {@link http://sourceforge.net/projects/evocms/}. 7 * 8 * @copyright (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/} 9 * 10 * {@internal License choice 11 * - If you have received this file as part of a package, please find the license.txt file in 12 * the same folder or the closest folder above for complete license terms. 13 * - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/) 14 * then you must choose one of the following licenses before using the file: 15 * - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php 16 * - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php 17 * }} 18 * 19 * {@internal Open Source relicensing agreement: 20 * }} 21 * 22 * @package evocore 23 * 24 * @version $Id: _async.inc.php,v 1.9 2007/06/25 10:58:50 fplanque Exp $ 25 */ 26 if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); 27 28 param( 'collapse', 'string', '' ); 29 if( !empty( $collapse ) ) 30 { // We want to record a 'collapse' value: 31 $set_status = 'collapsed'; 32 $set_target = $collapse; 33 } 34 param( 'expand', 'string', '' ); 35 if( !empty( $expand ) ) 36 { // We want to record an 'expand' value: 37 $set_status = 'expanded'; 38 $set_target = $expand; 39 } 40 41 if( !empty($set_target) ) 42 { 43 switch( $set_target ) 44 { 45 case 'antispam_filters': 46 case 'crontab_filters': 47 case 'refdom_filters': // referring domains 48 case 'uagnt_filters': // user agents 49 case 'user_filters': 50 // We have a valid value: 51 $Session->set( $set_target, $set_status ); 52 break; 53 54 default: 55 // Warning: you may not see this on AJAX calls 56 echo( 'Cannot ['.$set_status.'] unknown param ['.$set_target.']' ); 57 } 58 } 59 60 61 /* 62 * $Log: _async.inc.php,v $ 63 * Revision 1.9 2007/06/25 10:58:50 fplanque 64 * MODULES (refactored MVC) 65 * 66 * Revision 1.8 2007/04/26 00:11:04 fplanque 67 * (c) 2007 68 * 69 * Revision 1.7 2006/11/24 18:27:22 blueyed 70 * Fixed link to b2evo CVS browsing interface in file docblocks 71 * 72 * Revision 1.6 2006/08/24 21:41:13 fplanque 73 * enhanced stats 74 * 75 * Revision 1.5 2006/06/26 23:10:24 fplanque 76 * minor / doc 77 * 78 * Revision 1.4 2006/06/25 20:04:06 blueyed 79 * doc/todo 80 * 81 * Revision 1.3 2006/06/25 17:42:46 fplanque 82 * better use of Results class (mainly for filtering) 83 * 84 * Revision 1.2 2006/06/13 21:52:44 blueyed 85 * Added files from 1.8 branch 86 * 87 * Revision 1.1.2.1 2006/06/12 20:00:33 fplanque 88 * one too many massive syncs... 89 */ 90 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |