From 2355facd39138efadb576ded943151a49bb29811 Mon Sep 17 00:00:00 2001 From: Paminger Date: Tue, 1 Mar 2016 08:13:14 +0100 Subject: [PATCH] VilesciFrameset --- application/config/migration.php | 2 +- application/config/routes.php | 2 +- application/migrations/20160101010103_create_basedb.php | 4 +--- application/views/vilesci_frameset.php | 8 ++++---- system/fhcomplete3.0.sql | 1 + 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/application/config/migration.php b/application/config/migration.php index 61ff18b8a..840fa7a40 100755 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -11,7 +11,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); | and disable it back when you're done. | */ -$config['migration_enabled'] = FALSE; +$config['migration_enabled'] = TRUE; /* |-------------------------------------------------------------------------- diff --git a/application/config/routes.php b/application/config/routes.php index d76591bb8..968ee1396 100755 --- a/application/config/routes.php +++ b/application/config/routes.php @@ -51,6 +51,6 @@ defined('BASEPATH') OR exit('No direct script access allowed'); */ $route['person/(:any)'] = 'person/view/$1'; $route['person'] = 'person'; -$route['default_controller'] = 'welcome'; +$route['default_controller'] = 'Vilesci'; $route['404_override'] = ''; $route['translate_uri_dashes'] = FALSE; diff --git a/application/migrations/20160101010103_create_basedb.php b/application/migrations/20160101010103_create_basedb.php index 4895d2d76..ec870854e 100644 --- a/application/migrations/20160101010103_create_basedb.php +++ b/application/migrations/20160101010103_create_basedb.php @@ -20,13 +20,11 @@ class Migration_Create_basedb extends CI_Migration { public function down() { - $this->db->simple_query('DROP SCHEMA addon;'); - $this->db->simple_query('DROP SCHEMA bis;'); + $this->db->simple_query('DROP SCHEMA bis;'); $this->db->simple_query('DROP SCHEMA campus;'); $this->db->simple_query('DROP SCHEMA fue;'); $this->db->simple_query('DROP SCHEMA kommune;'); $this->db->simple_query('DROP SCHEMA lehre;'); - $this->db->simple_query('DROP SCHEMA reports;'); $this->db->simple_query('DROP SCHEMA sync;'); $this->db->simple_query('DROP SCHEMA system;'); $this->db->simple_query('DROP SCHEMA testtool;'); diff --git a/application/views/vilesci_frameset.php b/application/views/vilesci_frameset.php index 855bacf69..40ab922f6 100644 --- a/application/views/vilesci_frameset.php +++ b/application/views/vilesci_frameset.php @@ -1,13 +1,13 @@ - + - - + + <body bgcolor="#FFFFFF"> This application works only with a frames-enabled browser.<br /> - <a href="../vilesci/main.php">Use without frames</a> + <a href="<?php echo base_url('vilesci/main.php')?>">Use without frames</a> </body> diff --git a/system/fhcomplete3.0.sql b/system/fhcomplete3.0.sql index 74d0b4c3a..8606065d4 100644 --- a/system/fhcomplete3.0.sql +++ b/system/fhcomplete3.0.sql @@ -16,6 +16,7 @@ SET escape_string_warning = off; COMMENT ON DATABASE fhcomplete IS 'FH-Complete 3.0'; -- Rollen im System +-- CREATE ROLE wawi LOGIN PASSWORD 'admin'; -- CREATE ROLE wawi LOGIN PASSWORD 'vilesci'; -- CREATE ROLE wawi LOGIN PASSWORD 'wawi'; -- CREATE ROLE wawi LOGIN PASSWORD 'web';