git.shiar.nl
/
minimedit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
page: move client authentication to php include
[minimedit.git]
/
auth.inc.php
1
<?php
2
$ALLOWED = [
3
'127.0.0.1',
4
'192.168.178.0/24',
5
'94.208.83.16', # arie.ziggo
6
'83.161.198.138', # shiar.demon
7
'145.131.141.219', # shiar@1m
8
];
9
10
$editable = in_array($_SERVER['REMOTE_ADDR'], $ALLOWED) ?
11
$_SERVER['REMOTE_ADDR'] : FALSE;
12