Commit 02c05f26 authored by Kristin Riebe's avatar Kristin Riebe
Browse files

Initial commit, working application

parents
init.php
*~
This application is meant to be used with the Daiquiri Framework. Please consult
the INSTALL file in the Daiquiri folder.
Daiquiri can be downloaded from https://github.com/jochenklar/daiquiri.
This diff is collapsed.
-------------------------------------------------------------------------
THIS NOTICE APPLIES TO ALL FILES CONTAINED IN THIS AND UNDERLYING FOLDERS
-------------------------------------------------------------------------
Daiquiri - A framework for the publication of scientific databases
Copyright (c) 2012-2015 Jochen S. Klar <jklar@aip.de>,
Adrian M. Partl <apartl@aip.de>,
AIP E-Science (www.aip.de)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 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 Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
\ No newline at end of file
#Meeting page for "10 years of science with STELLA"
(10ySTELLA)
This is a daiquiri-app adjusted to the STELLA meeting.
* Contact: Thomas Granzer
* Date: 8./9. November 2016
* Location: AIP
* url will be: https://meetings.aip.de/stella10y
Needs:
* program
* registration page
* list of participants
* presentation upload (?) and download
* general information
* contact information
<?php
/*
* Copyright (c) 2012-2015 Jochen S. Klar <jklar@aip.de>,
* Adrian M. Partl <apartl@aip.de>,
* AIP E-Science (www.aip.de)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class Bootstrap extends Daiquiri_Bootstrap {
}
[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
autoloadernamespaces[] = "Daiquiri"
resources.frontController.params.displayExceptions = 0
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.moduleDirectory = APPLICATION_PATH "/../modules"
resources.view[] =
resources.view.helperPath.Daiquiri_View_Helper = APPLICATION_PATH "/../library/Daiquiri/View/Helper"
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
resources.modules[] = 'core'
resources.modules[] = 'auth'
resources.modules[] = 'meetings'
resources.multidb.web.adapter = Pdo_Mysql
resources.multidb.web.charset = utf8
resources.multidb.web.default = true
resources.multidb.web.dbname = stella10y_web
resources.multidb.web.username = stella10y_web
resources.multidb.web.password = Eethe1phiceep1Be
resources.multidb.web.host = localhost
resources.mail.defaultFrom.email = escience-admin@aip.de
resources.mail.defaultFrom.name = LOC STELLA
resources.mail.transport.host = mail.vm
resources.mail.transport.type = smtp
resources.mail.transport.port = 25
[staging : production]
testing : production
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.frontController.params.displayExceptions = 1
<?php
/*
* Copyright (c) 2012-2015 Jochen S. Klar <jklar@aip.de>,
* Adrian M. Partl <apartl@aip.de>,
* AIP E-Science (www.aip.de)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class IndexController extends Zend_Controller_Action {
public function indexAction() {
$this->redirect('/cms/');
}
public function registerAction() {
$this->redirect('/meetings/meeting/registration/');
}
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<base href="/stella10y/" />
<link rel="shortcut icon" href="<?php echo $this->baseUrl('favicon.ico') ?>" type="image/x-icon" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php
echo $this->headTitle('STELLA meeting');
echo $this->headMeta()->appendName('keywords', '');
echo $this->headStatic(array(
'style.css',
'font.css'
));
?>
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="<?php echo $this->baseUrl('/'); ?>">
<h1>STELLA meeting</h1>
</a>
<ul class="nav">
<?php
echo $this->internalLink(array(
'text' => 'Registration',
'href' => '/meetings/meeting/registration/',
'prepend' => '<li>',
'append' => '</li>'));
?>
</ul>
<ul class="nav pull-right">
<?php
echo $this->accountMenu();
echo $this->adminMenu();
?>
<li>
<?php echo $this->loginLink(); ?>
</li>
</ul>
</div>
</div>
</div>
<div id="wrapper" class="container">
<div id="content">
<?php echo $this->layout()->content; ?>
</div>
</div>
</body>
</html>
<h2>STELLA workshop</h2>
<h3>Another Daiquiri meeting powered by E-Science at AIP</h3>
<div>
Please proceed to <a href="https://meetings.aip.de/stella10y/cms/">STELLA meeting pages</a>
to get more informaton.
</div>
#!/usr/bin/env php
<?php
// Path to the application and to the daiquiri library:
// You only need to change this, if the application and daiquiri are not
// sitting in the same directory.
$application_path = realpath(__DIR__);
$daiquiri_path = realpath(__DIR__ . '/../daiquiri');
// Application configuration:
// Please change all option you want to change for you application.
// Warning: This could drasically affect the overall security of the application.
$options = array(
'database' => array(
/* configure the 'web' and 'user' database adapters */
'web' => array(
'dbname' => 'daiquiri_web',
'host' => 'localhost',
'username' => 'daiquiri_web',
'password' => 'daiquiri_web',
),
'user' => array(
'dbname' => 'daiquiri_user_%',
'host' => 'localhost',
'username' => 'daiquiri_user',
'password' => 'daiquiri_user',
)
),
'mail' => array(
/* add the smtp connection to your mailserver here */
'host' => 'example.com',
'email' => 'daiquiri@example.com',
'name' => 'Daiquiri Admin'
),
'modules' => array(
/* active modules for this instance of daiquiri */
'core',
'auth',
'contact',
'data',
'meetings' ,
'query',
'uws'
),
'config' => array(
'core' => array(
'minify' => array(
/* enable minification via yui-compressor */
'enabled' => true
),
'cms' => array(
/* enable wordpress cms */
'enabled' => false
),
'log' => array(
/* enable or disable logging here */
'enabled' => true
),
),
'auth' => array(
'registration' => false,
'confirmation' => false,
'activation' => false,
'details' => array(
'firstname', 'lastname', 'website'
)
),
'query' => array(
/* allow queries without a user account */
'guest' => false,
/* configure query 'direct' or 'qqueue' */
'query' => array(
'type' => 'direct'
),
/* configure download */
'download' => array(
/* configure type 'direct' or 'gearman' */
'type' => 'direct',
'adapter' => array(
/* configure download formats */
'enabled' => array('mysql', 'csv', 'votable', 'votableB1', 'votableB2')
)
),
/* configure forms for query interface */
'forms' => array(
'sql' => array(
'default' => true,
'title' => 'SQL query',
'help' => 'Place your SQL statement directly in the text area below and submit your request using the button.',
'class' => 'Query_Form_SqlQuery',
'view' => $daiquiri_path . '/modules/query/views/scripts/_partials/sql-query.phtml'
),
'cone' => array(
'title' => 'Cone Search',
'help' => 'Please specify a coordinate in right ascension (RA) and declination (DEC) and a radius in arcsec.',
'class' => 'Query_Form_ConeQuery',
'table' => 'RAVEPUB_DR3.RAVE_DR1',
'raField' => 'RAdeg',
'decField' => 'DEdeg',
'raDefault' => 0.1,
'decDefault' => 0.2,
'radiusDefault' => 2.1
)
)
),
'data' => array(
/* write metadata into the comment fields of the science tables */
'writeToDB' => true
),
),
'init' => array(
'auth' => array(
/* add initial users here */
'user' => array(
array(
'username' => 'admin',
'password' => 'admin',
'email' => 'admin@example.com',
'status' => 'active',
'role' => 'admin',
'firstname' => 'Albert',
'lastname' => 'Admin',
'website' => 'example.com',
),
),
),
'data' => array(
/* add science databases */
'databases' => array(
// array(
// 'name' => '', // add the name the database
// 'description' => '', // some description
// 'publication_role' => 'user', // minimal role which has access
// 'publication_select' => true, // allow select statements
// 'publication_show' => true, // allow show table statements
// 'autofill' => true // automagically add tables and columns
// )
),
/* add additional user defined functions */
'functions' => array(
// array(
// 'name' => '',
// 'description' => '',
// 'publication_role' => 'user'
// )
)
),
'query' => array(
'examples' => array(
/* add you example queries here */
// array(
// 'name' => 'Select first 20 rows from the foo.bar table',
// 'query' => 'SELECT * FROM `foo`.`bar` LIMIT 20;',
// 'description' => '', // some description
// 'publication_role' => 'user' // minimal role which can see this example
// )
)
)
)
);
// create init object
require_once($daiquiri_path . '/library/Daiquiri/Init.php');
$init = new Daiquiri_Init($application_path, $daiquiri_path, $options);
$init->run();
#!/usr/bin/env php
<?php
// Path to the application and to the daiquiri library:
// You only need to change this, if the application and daiquiri are not
// sitting in the same directory.
$application_path = realpath(__DIR__);
$daiquiri_path = realpath(__DIR__ . '/../daiquiri');
// Application configuration:
// Please change all option you want to change for you application.
// Warning: This could drasically affect the overall security of the application.
$options = array(
'database' => array(
'web' => array(
'dbname' => 'stella10y_web',
'host' => 'localhost',
'username' => 'stella10y_web',
'password' => 'Eethe1phiceep1Be',
),
),
'mail' => array(
'type' => 'smtp',
'host' => 'mail.virt',
'email' => 'escience@aip.de',
'name' => 'LOC STELLA'
),
'modules' => array('meetings'),
'config' => array(
'core' => array(
'minify' => array('enabled' => true),
'cms' => array(
'url' => '/cms/',
'enabled' => true,
'path' => '../../stella10y-wordpress'
),
),
),
'init' => array(
'auth' => array(
/* add initial users here */
'user' => array(
array(
'username' => 'kristin',
'password' => 'admin',
'email' => 'kriebe@aip.de',
'status' => 'active',
'role' => 'admin',
'firstname' => 'Kristin',
'lastname' => 'Riebe'
),
),
),
'templates' => array(
'meetings.register' => array(
'subject' => '_meeting_',
'body' => 'Dear _firstname_ _lastname_,
thank you for registering to the meeting "10 years of science with STELLA".
We have stored the following information about your registration:
Firstname: _firstname_
lastname: _lastname_
Affiliation: _affiliation_
Email: _email_
Arrival: _arrival_
Departure: _departure_
Talk: _talk_title_
_talk_abstract_
Poster: _poster_title_
_poster_abstract_
Best Regards'
)
),
'meetings' => array(
'participantDetailKeys' => array(
// array(
// 'key' => 'adresse',
// 'type' => 'text'
// ),
// array(
// 'key' => 'geschlecht',
// 'type' => 'radio',
// 'options' => '["Frau","Mann"]'
// )
),
'meetings' => array(
array(
'title' => '10 years STELLA Meeting',
'slug' => 'meeting',
'description' => '',
'begin' => '2016-11-08',
'end' => '2016-11-09',
'registration_message' => '<h2>Registration</h2><p>Please fill out this registration form.</p>',
'participants_message' => '<h2>Participants</h2><p>The list of participants is not available, yet.</p>',
'contributions_message' => '<h2>Contributions</h2>',
'registration_publication_role_id' => 1,
'participants_publication_role_id' => 0,
'contributions_publication_role_id' => 0,
'contribution_types' => array('poster','talk'),
'participant_detail_keys' => array()
)
)
)
)
);
// create init object
require_once($daiquiri_path . '/library/Daiquiri/Init.php');
$init = new Daiquiri_Init($application_path, $daiquiri_path, $options);
$init->run();
#!/usr/bin/env php
<?php
// Path to the application and to the daiquiri library:
// You only need to change this, if the application and daiquiri are not
// sitting in the same directory.
$application_path = realpath(__DIR__);
$daiquiri_path = realpath(__DIR__ . '/../daiquiri');
// Application configuration:
// Please change all option you want to change for you application.
// Warning: This could drasically affect the overall security of the application.
$options = array(
'database' => array(
'web' => array(
'dbname' => 'stella10y_web',
'host' => 'localhost',
'username' => 'stella10y_web',
'password' => 'Eethe1phiceep1Be',
),
),
'mail' => array(
'type' => 'smtp',
'host' => 'mail.vm',
'email' => 'escience-admin@aip.de',
'name' => 'LOC STELLA'
),
'modules' => array('meetings'),
'config' => array(
'core' => array(
'minify' => array('enabled' => true),
'cms' => array(
'url' => '/cms/',
'enabled' => true,
'path' => '/srv/stella10y/wordpress'
'navPath' => '/srv/stella10y/navigation',
),
'log' => array(
'enabled' => true,
'loglevel' => 'notice',
'logfile' => '/srv/stella10y/log/daiquiri.log',
),
),
'meetings' => array(
'validation' => '1',
'autoAccept' => '',
),
),
'init' => array(
'auth' => array(
/* add initial users here */
'user' => array(
array(
'username' => 'kristin',
'password' => 'admin',
'email' => 'kriebe@aip.de',
'status' => 'active',
'role' => 'admin',
'firstname' => 'Kristin',
'lastname' => 'Riebe'
),
),
),
'templates' => array(
'meetings.register' => array(
'subject' => '_meeting_',
'body' => 'Dear _firstname_ _lastname_,
thank you for registering to the meeting "10 years of science with STELLA".
We have stored the following information about your registration:
Firstname: _firstname_
lastname: _lastname_
Affiliation: _affiliation_
Email: _email_
Arrival: _arrival_
Departure: _departure_
Talk: _talk_title_
_talk_abstract_
Poster: _poster_title_
_poster_abstract_
Best regards'
)
),
'meetings' => array(
'participantDetailKeys' => array(
// array(
// 'key' => 'adresse',
// 'type' => 'text'
// ),
// array(
// 'key' => 'geschlecht',
// 'type' => 'radio',
// 'options' => '["Frau","Mann"]'
// )
),
'meetings' => array(
array(
'title' => '10 years STELLA Meeting',
'slug' => 'meeting',
'description' => '',
'begin' => '2016-11-08',
'end' => '2016-11-09',
'registration_message' => '<h2>Registration</h2><p>Please fill out this registration form.</p>',
'participants_message' => '<h2>Participants</h2><p>The list of participants is not available, yet.</p>',
'contributions_message' => '<h2>Contributions</h2>',
'registration_publication_role_id' => 1,
'participants_publication_role_id' => 0,
'contributions_publication_role_id' => 0,
'contribution_types' => array('poster','talk'),
'participant_detail_keys' => array()
)
)
)
)
);