Skip to content

Instantly share code, notes, and snippets.

View annalinneajohansson's full-sized avatar
🐱

Anna annalinneajohansson

🐱
  • Frontwalker Group AB
  • Sweden
  • 10:55 (UTC +02:00)
View GitHub Profile
@annalinneajohansson
annalinneajohansson / .bashrc
Created November 29, 2015 10:11 — forked from marioBonales/.bashrc
Default .bashrc for ubuntu
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
<?php
function hip_auto_login() {
/* emails with + will not work "properly", then wont be logged in with this filter */
if( isset( $_GET['u'] ) && isset( $_GET['plux'] ) && isset( $_GET['post_id'] ) ) {
$email = wp_kses( $_GET['u'],array() );
$checksum = wp_kses( $_GET['plux'],array() );
$post_id = wp_kses( $_GET['post_id'],array() );
if (!is_user_logged_in() && !empty($checksum) && !empty($email)) {