summaryrefslogtreecommitdiff
path: root/includes/model
diff options
context:
space:
mode:
Diffstat (limited to 'includes/model')
-rw-r--r--includes/model/EventConfig_model.php (renamed from includes/model/Settings_model.php)10
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/model/Settings_model.php b/includes/model/EventConfig_model.php
index 07e3b677..57ba1d0f 100644
--- a/includes/model/Settings_model.php
+++ b/includes/model/EventConfig_model.php
@@ -3,8 +3,8 @@
/**
* Get settings.
*/
-function Settings() {
- $settings = sql_select("SELECT * FROM `Settings` LIMIT 1");
+function EventConfig() {
+ $settings = sql_select("SELECT * FROM `EventConfig` LIMIT 1");
if ($settings === false)
return false;
if (count($settings) > 0)
@@ -22,9 +22,9 @@ function Settings() {
* @param int $teardown_end_date
* @param string $event_welcome_msg
*/
-function Settings_update($event_name, $buildup_start_date, $event_start_date, $event_end_date, $teardown_end_date, $event_welcome_msg) {
+function EventConfig_update($event_name, $buildup_start_date, $event_start_date, $event_end_date, $teardown_end_date, $event_welcome_msg) {
if (Settings() == null) {
- return sql_query("INSERT INTO `Settings` SET
+ return sql_query("INSERT INTO `EventConfig` SET
`event_name`=" . sql_null($event_name) . ",
`buildup_start_date`=" . sql_null($buildup_start_date) . ",
`event_start_date`=" . sql_null($event_start_date) . ",
@@ -32,7 +32,7 @@ function Settings_update($event_name, $buildup_start_date, $event_start_date, $e
`teardown_end_date`=" . sql_null($teardown_end_date) . ",
`event_welcome_msg`=" . sql_null($event_welcome_msg));
}
- return sql_query("UPDATE `Settings` SET
+ return sql_query("UPDATE `EventConfig` SET
`event_name`=" . sql_null($event_name) . ",
`buildup_start_date`=" . sql_null($buildup_start_date) . ",
`event_start_date`=" . sql_null($event_start_date) . ",