Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eterban
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eterban
Commits
d7af677b
Commit
d7af677b
authored
2 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ban.php: get ip font settings.ini
parent
556ccd8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ban.php
ban-server/data/www/ban.php
+5
-1
No files found.
ban-server/data/www/ban.php
View file @
d7af677b
...
...
@@ -3,8 +3,12 @@
$ip
=
$_SERVER
[
'REMOTE_ADDR'
];
echo
"You are banned!, Your IP:
$ip
<br>"
;
$settings
=
'/etc/eterban/settings.ini'
;
$ini_array
=
parse_ini_file
(
"
$settings
"
);
$host_redis
=
$ini_array
[
'redis_server'
];
$redis
=
new
Redis
;
$redis
->
pconnect
(
'192.168.0.99'
,
6379
);
$redis
->
pconnect
(
$host_redis
,
6379
);
$key
=
$redis
->
get
(
$ip
);
?>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment