| [ PHPXref.com ] | [ Generated: Sun Jul 20 16:25:17 2008 ] | [ ActionApps 2.8.1b ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 //$Id: view.php3,v 1.21 2005/04/24 21:48:12 honzam Exp $ 3 /* 4 Copyright (C) 1999, 2000 Association for Progressive Communications 5 http://www.apc.org/ 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation; either version 2 of the License, or 10 (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with this program (LICENSE); if not, write to the Free Software 19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 */ 21 22 //expected vid // id of view 23 //optionaly cmd[] // command to modify the view 24 // cmd[23]=v-25 means: show view id 25 in place of id 23 25 // cmd[23]=i-24-7464674747 means view 26 // number 23 has to display item 74.. in format defined 27 // in view 24 28 // cmd[23]=c-1-Environment means display view no 23 in place 29 // of view no 23 (that's normal), but change value for 30 // condition 1 to "Environment". 31 // cmd[23]=c-1-Environment-2-Jane means the same as above, 32 // but there are redefined two conditions 33 // cmd[23]=d-headline........-LIKE-Profit-publish_date....-m:>-86400 34 // generalized version of cmd[]-c 35 // - fields and operators specifed 36 // - unlimited number of conditions 37 // - all default conditions from view definition are 38 // completely redefined by the specified ones 39 //optionaly set[] // setings to modify view behavior (can be combined with cmd) 40 // set[23]=listlen-20 41 // set[23]=mlx-EN-FR-DE 42 // - sets maximal number of viewed items in view 23 to 20 43 // - there can be more settings (future) - comma separated 44 //optionaly als[] // user alias - see slice.php3 for more details 45 // for more info see AA FAQ: http://apc-aa.sourceforge.net/faq/index.shtml#219 46 47 48 // handle with PHP magic quotes - quote the variables if quoting is set off 49 function Myaddslashes($val, $n=1) { 50 if (!is_array($val)) { 51 return addslashes($val); 52 } 53 for (reset($val); list($k, $v) = each($val); ) 54 $ret[$k] = Myaddslashes($v, $n+1); 55 return $ret; 56 } 57 58 if (!get_magic_quotes_gpc()) { 59 // Overrides GPC variables 60 if ( isset($HTTP_GET_VARS) AND is_array($HTTP_GET_VARS)) 61 for (reset($HTTP_GET_VARS); list($k, $v) = each($HTTP_GET_VARS); ) 62 $$k = Myaddslashes($v); 63 if ( isset($HTTP_POST_VARS) AND is_array($HTTP_POST_VARS)) 64 for (reset($HTTP_POST_VARS); list($k, $v) = each($HTTP_POST_VARS); ) 65 $$k = Myaddslashes($v); 66 if ( isset($HTTP_COOKIE_VARS) AND is_array($HTTP_COOKIE_VARS)) 67 for (reset($HTTP_COOKIE_VARS); list($k, $v) = each($HTTP_COOKIE_VARS); ) 68 $$k = Myaddslashes($v); 69 } 70 71 require_once "./include/config.php3"; 72 require_once $GLOBALS['AA_INC_PATH']."easy_scroller.php3"; 73 require_once $GLOBALS['AA_INC_PATH']."util.php3"; 74 require_once $GLOBALS['AA_INC_PATH']."item.php3"; 75 require_once $GLOBALS['AA_INC_PATH']."view.php3"; 76 require_once $GLOBALS['AA_INC_PATH']."discussion.php3"; 77 require_once $GLOBALS['AA_INC_PATH']."pagecache.php3"; 78 require_once $GLOBALS['AA_INC_PATH']."searchlib.php3"; 79 require_once $GLOBALS['AA_INC_PATH']."locsessi.php3"; // DB_AA object definition 80 81 add_vars(); 82 83 if (isset($slice_id)) $p_slice_id= q_pack_id($slice_id); 84 $db = new DB_AA; // open BD 85 $db2 = new DB_AA; // open BD 86 87 if ($time_limit) set_time_limit($time_limit); 88 if ($debug) huhl("Starting view"); 89 90 // Need to be able to set content-type for RSS, cannot tdo it in the view 91 // because the cache wont reflect this 92 if ($contenttype) { 93 header("Content-type: $contenttype"); 94 } 95 echo GetView(ParseViewParameters()); 96 97 if ($debug) huhl("Completed view"); 98 99 exit; 100 101 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |