Skip to content

Instantly share code, notes, and snippets.

@basteln3rk
basteln3rk / codiad_http_auth.php
Created April 10, 2015 23:07
HTTP Authentication for Codiad
<?php
if (!isset($_SESSION['user'])) {
require_once( COMPONENTS . "/user/class.user.php" );
$_SESSION['user'] = $_SERVER['PHP_AUTH_USER'];
$_SESSION['lang'] = 'en';
$_SESSION['theme'] = 'default';
$_SESSION['project'] = '/var/www';
$User = new User();
@basteln3rk
basteln3rk / readme.md
Created April 11, 2015 09:47
Wordpress HTTP Authentication Plugin

HTTP Basic Authentication for Wordpress

This gist contains a simple plugin that automatically logs in a user into Wordpress with the login name provided by HTTP basic authentication. If no HTTP authentication is present, the plugin exits the rendering process; if a user is logged in who does not have a Wordpress account, the plugin also exits.

This plugin is intended for internal blogs, for example for a team, which are anyway protected by HTTP basic authentication and where you want a single-sign-on solution.

Installation

Simply paste the PHP file into the wp-content/plugins folder and then enable the plugin in admin panel

@basteln3rk
basteln3rk / CoreOs2JiffyBox.md
Last active August 30, 2016 20:23 — forked from andreasheil/CoreOs2JiffyBox.md
CoreOS und JiffyBox

CoreOS und JiffyBox

JiffyBox erstellen

  1. Klick auf Neue JiffyBox erstellen
  2. Distribution ist egal (wird später überschrieben)
  3. Kennwort ist auch egal (wird ja auch überschrieben)
  4. Warten bis die JiffyBox erstellt ist
  5. JiffyBox stoppen