Skip to content

Instantly share code, notes, and snippets.

View abdiasriver's full-sized avatar
🏠
Working from home

abdias abdiasriver

🏠
Working from home
View GitHub Profile
@abdiasriver
abdiasriver / SimpleAuth.php
Created April 7, 2023 01:55 — forked from heiswayi/SimpleAuth.php
Simple PHP script to protect any PHP page using session
<?php
/*
* Filename: SimpleAuth.php
* Version: 1.0
* Author: Heiswayi Nrird
* Dscription: Simple PHP script to protect any PHP page using session
* Website: https://heiswayi.nrird.com
*
* HOW TO USE
* ==========
#!/usr/bin/env bash
if [ "$EUID" -ne 0 ]
then echo "please run as root"
exit
fi
VERSION="2.6.0"
# installing dependencies
0. opcional agregar la clave ssh para no estar poniendo usuarios y contraseñas....
instalamos
git
hugo
openssh
tree
xclip