[ Index ] |
|
Code source de GeekLog 1.4.1 |
1 <?php 2 3 /* Reminder: always indent with 4 spaces (no tabs). */ 4 // +---------------------------------------------------------------------------+ 5 // | Polls Plugin 1.0 | 6 // +---------------------------------------------------------------------------+ 7 // | config.php | 8 // | | 9 // | Polls plugin configuration file | 10 // +---------------------------------------------------------------------------+ 11 // | Copyright (C) 2000-2006 by the following authors: | 12 // | | 13 // | Authors: Tony Bibbs - tony AT tonybibbs DOT com | 14 // | Mark Limburg - mlimburg AT users DOT sourceforge DOT net | 15 // | Jason Whittenburg - jwhitten AT securitygeeks DOT com | 16 // | Dirk Haun - dirk AT haun-online DOT de | 17 // | Trinity Bays - trinity93 AT steubentech DOT com | 18 // +---------------------------------------------------------------------------+ 19 // | | 20 // | This program is free software; you can redistribute it and/or | 21 // | modify it under the terms of the GNU General Public License | 22 // | as published by the Free Software Foundation; either version 2 | 23 // | of the License, or (at your option) any later version. | 24 // | | 25 // | This program is distributed in the hope that it will be useful, | 26 // | but WITHOUT ANY WARRANTY; without even the implied warranty of | 27 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 28 // | GNU General Public License for more details. | 29 // | | 30 // | You should have received a copy of the GNU General Public License | 31 // | along with this program; if not, write to the Free Software Foundation, | 32 // | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 33 // | | 34 // +---------------------------------------------------------------------------+ 35 // 36 // $Id: config.php,v 1.9 2006/06/17 12:22:44 dhaun Exp $ 37 38 $_PO_CONF['version'] = '1.1.0'; // Plugin Version 39 40 // Poll Settings 41 42 // when set to 1 will only allow logged-in users to view the list of past polls 43 // (also see $_CONF['loginrequired'] in Geeklog's config.php) 44 $_PO_CONF['pollsloginrequired'] = 0; 45 46 /** 47 * Set to 1 to hide the "Polls" entry from the top menu: 48 * 49 * @global array $_PO_CONF['hidepollsmenu'] 50 */ 51 $_PO_CONF['hidepollsmenu'] = 0; 52 53 $_PO_CONF['maxanswers'] = 10; // max. number of options in a poll 54 55 // 'submitorder' is the order in which answers are saved in admin/poll.php 56 // 'voteorder' will list answers ordered by number of votes (highest->lowest); 57 $_PO_CONF['answerorder'] = 'submitorder'; 58 59 // how long a poll is closed for a user after they've voted 60 $_PO_CONF['pollcookietime'] = 86400; // seconds (= 24 hours) 61 $_PO_CONF['polladdresstime'] = 604800; // seconds (= 7 days) 62 63 // When a user is deleted, ownership of polls created by that user can 64 // be transfered to a user in the Root group (= 0) or the polls can be 65 // deleted (= 1). 66 $_PO_CONF['delete_polls'] = 0; 67 68 // Define default permissions for new polls created from the Admin panel. 69 // Permissions are perm_owner, perm_group, perm_members, perm_anon (in that 70 // order). Possible values: 71 // 3 = read + write permissions (perm_owner and perm_group only) 72 // 2 = read-only 73 // 0 = neither read nor write permissions 74 // (a value of 1, ie. write-only, does not make sense and is not allowed) 75 $_PO_CONF['default_permissions'] = array (3, 2, 2, 2); 76 77 // database table names - don't change 78 $_TABLES['pollanswers'] = $_DB_table_prefix . 'pollanswers'; 79 $_TABLES['pollquestions'] = $_DB_table_prefix . 'pollquestions'; 80 $_TABLES['pollvoters'] = $_DB_table_prefix . 'pollvoters'; 81 82 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Wed Nov 21 12:27:40 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |