Skip to content

PHP-Einfach/loginscript

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
css
 
 
 
 
inc
 
 
js
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Loginscript

Dies ist ein simpler Loginscript inklusive Registrierung und internem Bereich. Eine ausführliche Dokumentation und Schritt-für-Schritt-Anleitung ist auf PHP-Einfach.de - Loginscript zu finden.

Download: .zip

Installation

Nach dem Download des ZIP-Archives müsst ihr zuerst die notwendige Datenbanktabelle erstellen. Die SQL-Befehle findet ihr in der Datei database.sql oder alternativ führt die folgenden SQL-Befehle in z.B. phpMyAdmin aus:

CREATE TABLE IF NOT EXISTS `users` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `passwort` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `vorname` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `nachname` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ,
  `passwortcode` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `passwortcode_time` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`), UNIQUE (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

CREATE TABLE `securitytokens` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY,
  `user_id` int(10) NOT NULL,
  `identifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `securitytoken` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

Als nächsten Schritt müsst ihr die Verbindungsdaten zu eurer Datenbank anpassen. Öffnet dazu die inc/config.inc.php und tragt dort den Benutzernamen, das Passwort, und den Datenbanknamen eurer MySQL-Datenbank ein.

Screenshots

Startseite:

Index

Registrierung:

Registrierung

Interner Bereich (nach erfolgreichem Login):

Interner Bereich

Webhosting

Falls ihr auf der Suche nach günstigen Webhosting für euren Login-Script, kann ich euch die Webhosting-Angebote von netcup empfehlen. Preis pro Monat beginnt ab 1,99 Euro für vollwertigen Webspace. Mit den Gutscheinen von www.netcupgutscheine.de könnt ihr ebenfalls nochmal 5 Euro sparen. Einen Vergleich von Webhosting-Angeboten findet ihr auf www.webhosterwissen.de.

About

Registrierungs und Login-Script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published