Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User management #13

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
composer.phar
/vendor/

# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock
63 changes: 63 additions & 0 deletions README_English.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# AdAr - Another dumb Archive

(sorry, ATM german only)

AdAr is a further development based on the system "DiBaS (Digital Image Archive Saffig)", which was developed for the archiving of the photo collection of the history association Saffig. In this project, the system was supplemented by document-relevant functions such as OCR, contact management and others.

AdAr is currently only available in German. The PHP code is provided under the terms of GPLv3 or later. Some libraries, which are in this repo, stand under other licenses, which can be seen in the respective project folder.

Attention: crafted with part historical code. Do not use productively without scrutiny.

If the PHP EXIF ​​extension is installed, it will be used
If pdftotext is installed this is used

## usage
The system is actively used by me for data storage. For this purpose, PDF files are generated with text (see tools /) and then uploaded

## installation

### Requirements

- Requires a web server with PHP> = 7.0, GD and EXIF ​​support
- Requires server with IPv4 access (Github does not support IPv6 yet)
- Requires a MySQL / MariaDB database
- Requires [composer] (https://getcomposer.org/)
- tesseract> = 3
- To execute OCR for graphics
- not really tested, language German preset
- pdftotext
- For extracting text from PDF files
- imagemagick
- or its convert to convert image data

### Facility

- Copy data to web server
- The folder data / * and tpl / cache / must be writable for the web server
- Create MySQL database and import doc / mysql.sql
- Add access data in config.php
- Optional: Customize installation name (ADAR_PROGNAME)
- Optional: Add an e-mail address to ADAR_INFOMAIL_TO, in which case an e-mail will be sent to this address every time a new system is created
- Install dependencies: `` `composer install```
- cron.php should be called regularly as a web server, otherwise temporary files will not be cleaned up and OCR will not be executed
- eg `` `* / 15 * * * * / usr / bin / php -f / var / www / cron.php> / var / log / adar.cron.log``` in crontab
- Login with admin / admin

### Debian Jessie

For Debian Jessie, an automatic installation script with configuration wizard is available in [doc / setup-debian8.sh] (https://github.com/adlerweb/adar/blob/master/doc/setup-debian8.sh):

`` ``
pushd / tmp
wget "https://raw.githubusercontent.com/adlerweb/adar/master/doc/setup-debian8.sh"
bash setup-debian8.de
popd
`` ``

This installs all prerequisites (Apache / MariaDB, etc), changes the configurations, creates the database and sets a login password. Since this system configurations are changed, the script should only be used on systems exclusively intended for AdAr (VM, container, etc).
Attention: The PHP7 installation uses the dotdeb repository, which is currently only available for x86 processors. It is therefore not possible to use automatic installation on ARM systems such as Raspberry Pi.

## Hints
- Currently there is no graphical user administration, so the password can not be changed. In general, it is advisable to set up authentication at the web server level. The users can be edited in SQL, suitable password hashes can be generated using the function [session_getNewPasswordHash] (https://github.com/adlerweb/awtools/blob/master/session.php#L137).
- Backups.
- More backups.
Loading