Commit e2c01659 authored by Gerd Schachtschneider's avatar Gerd Schachtschneider
Browse files

Init basis xataface and common folder/files

parents

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
master/.htaccess
\ No newline at end of file
## Einleitung
Diese kleine User-Datenbank dient in erster Linie zum anlegen von Benutzern, welche in den anderen Datanbanken per View aus Auswahl zur Autorisierung dienen.
## Projekt downloaden
<code> Evtl. vorh. DB und Filesystem vorher sichern </code><br>
Entweder das zip herunterladen oder per Befehl 'git clone https://gitlab.mpcdf.mpg.de/mpidb/mpg_user.git' in das Wurzelverzeichnis des Webserver klonen.
## Erste Schritte
- Rechte anpassen und Webserver-Owner setzen
<code>
chmod 600 <wwwroot>/conf.ini
chown -R www-data <wwwroot>/mpg_user
</code>
- Wenn vorh. originale conf.ini wieder zurueck spielen (neue Version dann haendisch anpassen) oder User,Pass in der neuen conf.ini aendern
- DB-User anlegen <b>Achtung: Nur bei der ersten Installation notwendig (loescht vorhandende DB)</b>
<code>
mysql -p -u root < install/create_DB_User.sql
</code>
Initialer Login ist admin mit Passwort admin, sollte man dann schnell anpassen
- Datenbank mpidb_mpg_user in mysql anlegen
<code>
mysql -p -u root < install/mpidb_mpg_user.sql
</code>
- Domain, hostname, ssl, db-user, db-password in conf.ini anpassen
<code>
vi conf.ini
</code>
DB-User und DB-Pass muessen in der Datanbank und in conf.ini gleich sein
- ggf. cronjobs anlegen und anpassen
<code>
crontab -e
5 6 * * * php <wwwroot>/mpg_user/cronDatabase.php
</code>
- sollte es eine seperate Inventar- oder Lizentverwaltung geben, dann VIEW view_user aendern
<code>
mysql -p -u root mpidb_mpg_inv < install/joinInv2User.sql
mysql -p -u root mpidb_mpg_licman < install/joinLic2User.sql
</code>
- Autorisierung in der conf.ini auf ldap umstellen
<code>
vi conf.ini
Eintrag #auth_type = basic disable per Raute
Eintrag auth_type = ldap enable Raute entfernen
</code>
favicon.ico

1.35 KB

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>MPI Datenbanken</title>
<link rel="stylesheet" type="text/css" href="xataface/plone.css"/>
<link rel="stylesheet" type="text/css" href="master/global.css"/>
</head>
<body>
<link rel="alternate" href="index.html" title="RSS 1.0" type="application/rss+xml" />
<div id="site_logo" class="top" style="padding: 5px; width: 100%;">
<img src="master/images/mpi-banner.png" alt="Dataface Web Application Framework"/>
</div>
<div id="status-bar" style="font-size: 200%; vertical-align: middle;">&nbsp;&nbsp; Datenbanken am MPI</div>
<div class="documentContent">
<br>
<br>
<ul id="table_selection_tabs">
<li><a href="/user" title="Tabelle Benutzer"> Benutzer </a></li>
<li><a href="/plan_inv" title="Tabelle Swagelok"> Swagelok </a></li>
<li><a href="/druck" title="Tabelle Druckbeh&auml;lter"> Druckbeh&auml;lter </a></li>
<li><a href="/all_inv" title="Tabelle Ger&auml;te & Anlagen"> Ger&auml;te & Anlagen am MPI </a></li>
</ul>
<div id="contentActionsWrapper" class="contentActions">
<h5> gemeinsam </h5></div>
<br>
<ul id="table_selection_tabs">
<li><a href="/bio_inv" title="Tabelle Geraete/Anlagen"> Anlagen/Ger&auml;te </a></li>
<li><a href="/bio_inv/index.php?-table=mpi_material" title="Tabelle Material"> Material </a></li>
<li><a href="/bio_chem" title="Tabelle Chemiestoffe"> Chemiestoffe </a></li>
</ul>
<div id="contentActionsWrapper" class="contentActions">
<h5> Gruppe bio </h5></div>
<br>
<ul id="table_selection_tabs">
<li><a href="/bpe_inv" title="Tabelle Geraete/Anlagen"> Anlagen/Ger&auml;te </a></li>
<li><a href="/bpe_inv/index.php?-table=mpi_material" title="Tabelle Material"> Material </a></li>
<li><a href="/bpe_chem" title="Tabelle Chemiestoffe"> Chemiestoffe </a></li>
</ul>
<div id="contentActionsWrapper" class="contentActions">
<h5> Gruppe bpe </h5></div>
<br>
<ul id="table_selection_tabs">
<li><a href="/haus_inv" title="Tabelle Geraete/Anlagen"> Anlagen/Ger&auml;te </a></li>
<li><a href="/haus_inv/index.php?-table=mpi_material" title="Tabelle Material"> Material </a></li>
<li><a href="/haus_leih" title="Tabelle Ausleihe"> Ausleihe </a></li>
</ul>
<div id="contentActionsWrapper" class="contentActions">
<h5> Gruppe haus </h5></div>
<br>
<ul id="table_selection_tabs">
<li><a href="/it_inv" title="Tabelle Inventar"> Inventar </a></li>
<li><a href="/it_licman" title="Tabelle Lizenzmanager"> Lizenzmanager </a></li>
<li><a href="/it_lab" title="Tabelle LaborUser"> Labor User </a></li>
<li><a href="/it_tel" title="Tabelle Telefone"> Telefon </a></li>
<li><a href="/it_leih" title="Tabelle Ausleihe"> Ausleihe </a></li>
<li><a href="/phpmyadmin" title="Interface Mysql Admin"> PHPmyAdmin </a></li>
</ul>
<div id="contentActionsWrapper" class="contentActions">
<h5> Gruppe it </h5></div>
<br>
<ul id="table_selection_tabs">
<li><a href="/mpg_inv" title="Tabelle Inventar MPG-Version"> Inventar </a></li>
<li><a href="/mpg_licman" title="Tabelle Lizenzmanager MPG-Version"> Lizenzmanager </a></li>
<li><a href="/mpg_user" title="Tabelle Userverwaltung MPG-Version"> User </a></li>
</ul>
<div id="contentActionsWrapper" class="contentActions">
<h5> Gruppe mpg </h5></div>
<br>
<ul id="table_selection_tabs">
<li><a href="/mech_inv" title="Tabellen Inventar"> Inventar </a></li>
</ul>
<div id="contentActionsWrapper" class="contentActions">
<h5> Gruppe mech </h5>
</div>
<br>
<ul id="table_selection_tabs">
<li><a href="/pcg_inv" title="Tabelle Geraete/Anlagen"> Anlagen/Ger&auml;te </a></li>
<li><a href="/pcg_inv/index.php?-table=mpi_material" title="Tabelle Material"> Material </a></li>
<li><a href="/pcg_inv/index.php?-table=mpi_gasflaschen" title="Tabelle Gasflaschen"> Gasflaschen </a></li>
<li><a href="/pcg_chem" title="Tabelle Chemiestoffe"> Chemiestoffe </a></li>
</ul>
<div id="contentActionsWrapper" class="contentActions">
<h5> Gruppe pcf </h5>
</div>
<br>
<ul id="table_selection_tabs">
<li><a href="/pse_inv" title="Tabelle Geraete/Anlagen"> Anlagen/Ger&auml;te </a></li>
<li><a href="/pse_inv/index.php?-table=mpi_material" title="Tabelle Material"> Material </a></li>
<li><a href="/pse_inv/index.php?-table=mpi_gasflaschen" title="Tabelle Gasflaschen"> Gasflaschen </a></li>
<li><a href="/pse_chem" title="Tabelle Chemiestoffe"> Chemiestoffe </a></li>
<li><a href="/pse_project" title="Tabelle Projekte"> Projekte </a></li>
</ul>
<div id="contentActionsWrapper" class="contentActions">
<h5> Gruppe pse </h5>
</div>
<br>
<ul id="table_selection_tabs">
<li><a href="/tech_inv" title="Tabelle Inventar"> Inventar </a></li>
<li><a href="/tech_soft" title="Tabelle Software"> Software </a></li>
<li><a href="/tech_sps" title="Tabelle Steuerungen"> Steuerungen </a></li>
</ul>
<div id="contentActionsWrapper" class="contentActions">
<h5> Gruppe tech </h5>
</div>
<br>
<ul id="table_selection_tabs">
<li><a href="/asi_inv" title="Tabelle CMR-Stoffe"> CMR-Stoffe, Laserklasse </a></li>
</ul>
<div id="contentActionsWrapper" class="contentActions">
<h5> Gruppe technicum </h5>
</div>
<br>
<ul id="table_selection_tabs">
<li><a href="/verw_waage" title="Tabelle Waagen"> Waagen </a></li>
</ul>
<div id="contentActionsWrapper" class="contentActions">
<h5> Gruppe verw </h5>
</div>
<br>
<br>
<ul id="table_selection_tabs">
<li></li>
</ul>
<div id="contentActionsWrapper" class="contentActions">
<h5> Gruppe ... </h5>
</div>
<br>
<br> <br> <br> <br>
<div class="fineprint"> Powered by Xataface<br/> (c) 2005-2015 Alle Rechte vorbehalten</div>
</div>
</body>
</html>
<?PHP
phpinfo ();
?>
<FilesMatch "\.(ini|sql|php|pl)$">
Deny from all
</FilesMatch>
<FilesMatch "index\.php$">
Allow from all
</FilesMatch>
[userID]
#widget:type = "hidden"
visibility:list = "hidden"
visibility:browse = "hidden"
visibility:find = "hidden"
[username]
widget:type = select
widget:focus = 1
vocabulary = user
#validators:lettersonly = "1"
#validators:lettersonly:message = "Username: Only letter here allowed"
widget:label = "Username"
column:legend = "User [Ext.]"
widget:description = "Daten von User-DB (view_user ggf. anpassen)"
[password]
encryption = "sha1"
widget:description = "Is empty, the last saved password will not be overwritten"
validators:regex = "/^.{8,31}$/"
validators:regex:message = "Password: Must be between 8 and 31 characters long"
[email]
#widget:type = "Static"
widget:description = "Wird automatisch gesetzt, wenn leer"
validators:email = "1"
validators:email:message = "Email: Must contain a valid email address"
validators:minlength = "10"
validators:minlength:message = "Email: Must have minlength of 10 chars"
[role]
#widget:label = "Permissions"
widget:type = "select"
vocabulary = "roles"
widget:label = "Berechtigung"
[__global__]
noLinkFromListView = 1
[localID]
Key = PRI
<table width="90%">
<tr>
<th>&#160;&#160;&#160;&#160;</th>
<td>&#160;&#160;&#160;&#160;</td>
<th>Wartung - Status</th>
<td>{$elements.wartStatus.html}</td>
<th>Intervall</th>
<td>{$elements.wartIntervall.html}</td>
<th>Letzte</th>
<td>{$elements.wartLetzte.html}</td>
<th>Naechste</th>
<td>{$elements.wartNaechste.html}</td>
</tr>
<tr>
<th>&#160;&#160;&#160;&#160;</th>
<td>&#160;&#160;&#160;&#160;</td>
<th> Pr&uuml;fung - Status</th>
<td>{$elements.pruefStatus.html}</td>
<th>Intervall</th>
<td>{$elements.pruefIntervall.html}</td>
<th>Letzte</th>
<td>{$elements.pruefLetzte.html}</td>
<th>Naechste</th>
<td>{$elements.pruefNaechste.html}</td>
</tr>
</table>
tr.lesser td { background-color: #FF8000;}
tr.toless td { background-color: red;}
tr.enough td { background-color: green;}
tr.equal td { background-color: yellow;}
tr.narrow td { background-color: lime;}
tr.lineY td { background-color: yellow !important;}
#left_column { display: none;}
/* .portlet { display: none;} */
/* #dataface-sections-left-column { display: none;} */
[forgot_password]
;; entspricht disabled
;;[manage]
;; entspricht disabled
[my_profile]
;; entspricht disabled
[change_password]
;; entspricht disabled
[rss]
;; entspricht disabled
[record_rss > rss]
;; entspricht disabled
[related_rss]
;; entspricht disabled
[export_xml]
;; entspricht disabled
[view_xml]
;; entspricht disabled
[related_xml > export_xml]
;; entspricht disabled
[xml_list]
;; entspricht disabled
;; Problem: Man kann suchen, ohne das man angemeldet ist, deshalb permission hier explizit setzen
[search_index]
label="This Site"
category=find_actions
condition="isset($this->_conf['_index'])"
permission=find
action=search_index
[printable_report]
icon="{$site_url}/images/printer.png"
category=result_list_actions
description="See this product list in a printable format"
url="{$app->url('-action=printable_report')}"
;; # bestimmte Tabellen nur
;; condition="$query['-table'] == 'mpi_kosten'"
;; # nur admin darf drucken
;; permission=reports
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment