HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/web/itpartnership.net (cms)/modules/FeedbackForm/method.install.php
<?php
#-------------------------------------------------------------------------
# Module: Feedback Form
# Version: 0.9.12, released 6 March 2006
#
# Copyright (c) 2006, Samuel Goldstein <sjg@cmsmodules.com>
# For Information, Support, Bug Reports, etc, please visit the
# CMS Made Simple tracker at http://dev.cmsmadesimple.org
#
#-------------------------------------------------------------------------
# CMS - CMS Made Simple is (c) 2006 by Ted Kulp (wishy@cmsmadesimple.org)
# This project's homepage is: http://www.cmsmadesimple.org
#
#-------------------------------------------------------------------------
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Or read it online: http://www.gnu.org/licenses/licenses.html#GPL
#
#-------------------------------------------------------------------------

$this->initialize();
$db = $this->cms->db;
$dict = NewDataDictionary($db);
$flds = "
			form_id I KEY,
			name C(255),
			alias C(255),
			submit_button_text C(35),
			next_button_text C(35),
			css_class C(255),
			required_field_symbol C(255),
			thanks_message X
		";
$taboptarray = array('mysql' => 'TYPE=MyISAM');
$sqlarray = $dict->CreateTableSQL($this->form_table_name, $flds, $taboptarray);
$dict->ExecuteSQLArray($sqlarray);

$db->CreateSequence($this->form_table_name."_seq");

$flds = "
			field_id I KEY,
			form_id I,
			name C(255),
			type C(50),
			length I,
			validation_type C(50),
			css_class C(255),
			required L,
			show_label L,
			order_by I
		";
$sqlarray = $dict->CreateTableSQL($this->field_table_name, $flds, $taboptarray);
$dict->ExecuteSQLArray($sqlarray);

$db->CreateSequence($this->field_table_name."_seq");

$flds = "
			option_id I KEY,
			field_id I,
			form_id I,
			kind C(30),
			name C(255),
			value X
		";
$sqlarray = $dict->CreateTableSQL($this->option_table_name, $flds, $taboptarray);
$dict->ExecuteSQLArray($sqlarray);

$db->CreateSequence($this->option_table_name."_seq");

$flds = "
			config_id I KEY,
			from_name C(255),
			from_address C(255),
			mail_host C(255),
			language C(50),
			use_css L,
			use_id_and_name L,
			title_pos I,
			hide_errors I
		";

$sqlarray = $dict->CreateTableSQL($this->config_table_name, $flds, $taboptarray);
$dict->ExecuteSQLArray($sqlarray);

$flds = "
			flock_id I KEY,
			flock T
		";

$sqlarray = $dict->CreateTableSQL($this->flock_table_name, $flds, $taboptarray);
$dict->ExecuteSQLArray($sqlarray);

$this->CreatePermission('Modify Feedback Forms', 'Modify Feedback Forms');
include 'includes/SampleData.inc';
$this->Audit( 0, $this->Lang('friendlyname'), $this->Lang('installed',$this->GetVersion()));

# vim:ts=4 sw=4 noet
?>