aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/questionnaire/questionnaire_phpbb.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-07-07 09:29:00 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-07-07 09:29:00 +0000
commit59a5278c69250adf1b8459df45b7873613240a09 (patch)
tree70573564582dd8c0f9079e4a0b0c6c07d7a3928f /phpBB/includes/questionnaire/questionnaire_phpbb.php
parentfa84400d288374f9c702757cc619db815a65fefb (diff)
downloadforums-59a5278c69250adf1b8459df45b7873613240a09.tar
forums-59a5278c69250adf1b8459df45b7873613240a09.tar.gz
forums-59a5278c69250adf1b8459df45b7873613240a09.tar.bz2
forums-59a5278c69250adf1b8459df45b7873613240a09.tar.xz
forums-59a5278c69250adf1b8459df45b7873613240a09.zip
merged questioinnaire and questionnaire_phpbb and adjusted all files to our coding guidelines...
if we want to allow dropping in other providers we could add provider files to the questionnaire directory (and grab them), if not it is best to remove the questionnaire directory and put the file under includes/ git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9719 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/questionnaire/questionnaire_phpbb.php')
-rw-r--r--phpBB/includes/questionnaire/questionnaire_phpbb.php121
1 files changed, 0 insertions, 121 deletions
diff --git a/phpBB/includes/questionnaire/questionnaire_phpbb.php b/phpBB/includes/questionnaire/questionnaire_phpbb.php
deleted file mode 100644
index 47bd931e68..0000000000
--- a/phpBB/includes/questionnaire/questionnaire_phpbb.php
+++ /dev/null
@@ -1,121 +0,0 @@
-<?php
-/**
-*
-* @package phpBB3
-* @version $Id$
-* @copyright (c) 2005 phpBB Group
-* @license http://opensource.org/licenses/gpl-license.php GNU Public License
-*
-*/
-
-/**
-* @ignore
-*/
-if (!defined('IN_PHPBB'))
-{
- exit;
-}
-
-include($phpbb_root_path . 'includes/questionnaire/questionnaire.' . $phpEx);
-
-class questionnaire_phpbb_data_provider
-{
- var $config;
- var $unique_id;
-
- /**
- * Constructor.
- *
- * @param array $config
- */
- function questionnaire_phpbb_data_provider($config)
- {
- // generate a unique id if necessary
- if (!isset($config['questionnaire_unique_id']))
- {
- $this->unique_id = unique_id();
- set_config('questionnaire_unique_id', $this->unique_id);
- }
- else
- {
- $this->unique_id = $config['questionnaire_unique_id'];
- }
-
- $this->config = $config;
- }
-
- /**
- * Returns a string identifier for this data provider
- *
- * @return string "phpBB"
- */
- function getIdentifier()
- {
- return 'phpBB';
- }
-
-
- /**
- * Get data about this phpBB installation.
- *
- * @return array Relevant anonymous config options
- */
- function getData()
- {
-
- // Exclude certain config vars
- $exclude_config_vars = array(
- 'avatar_gallery_path' => true,
- 'avatar_path' => true,
- 'avatar_salt' => true,
- 'board_contact' => true,
- 'board_disable_msg' => true,
- 'board_email' => true,
- 'board_email_sig' => true,
- 'cookie_name' => true,
- 'icons_path' => true,
- 'icons_path' => true,
- 'jab_host' => true,
- 'jab_password' => true,
- 'jab_port' => true,
- 'jab_username' => true,
- 'ldap_base_dn' => true,
- 'ldap_email' => true,
- 'ldap_password' => true,
- 'ldap_port' => true,
- 'ldap_server' => true,
- 'ldap_uid' => true,
- 'ldap_user' => true,
- 'ldap_user_filter' => true,
- 'ranks_path' => true,
- 'script_path' => true,
- 'server_name' => true,
- 'server_port' => true,
- 'server_protocol' => true,
- 'site_desc' => true,
- 'sitename' => true,
- 'smilies_path' => true,
- 'smtp_host' => true,
- 'smtp_password' => true,
- 'smtp_port' => true,
- 'smtp_username' => true,
- 'upload_icons_path' => true,
- 'upload_path' => true,
- 'newest_user_colour' => true,
- 'newest_user_id' => true,
- 'newest_username' => true,
- 'rand_seed' => true,
- );
-
- $result = array();
- foreach ($this->config as $name => $value)
- {
- if (!isset($exclude_config_vars[$name]))
- {
- $result['config.' . $name] = $value;
- }
- }
-
- return $result;
- }
-} \ No newline at end of file