├── license.txt
├── README.md
└── Super-Mailer.V1.php
/license.txt:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Super-Mailer
2 | SUPER-MAIL Send Inbox To All
3 |
4 | Mailer Inbox To All Gmail Yahoo Hotmail ...
5 |
6 | Copyright (c) 2018 by Omar Rbiai (https://www.facebook.com/omarrbiai.org)
7 |
8 | Fork of an original work by Omar Rbiai
9 |
10 | Free
11 | -->
12 |
--------------------------------------------------------------------------------
/Super-Mailer.V1.php:
--------------------------------------------------------------------------------
1 | 'SPY-X',
13 | 'admin' => 'admin',
14 | 'User' => 'User'
15 | );
16 | // request login? true - show login and password boxes, false - password box only
17 | define('USE_USERNAME', true);
18 |
19 | // User will be redirected to this page after logout
20 | define('LOGOUT_URL', 'http://www.example.com/');
21 |
22 | // time out after NN minutes of inactivity. Set to 0 to not timeout
23 | define('TIMEOUT_MINUTES', 30);
24 |
25 | // This parameter is only useful when TIMEOUT_MINUTES is not zero
26 | // true - timeout time from last activity, false - timeout time from login
27 | define('TIMEOUT_CHECK_ACTIVITY', true);
28 |
29 | ##################################################################
30 | # SETTINGS END
31 | ##################################################################
32 |
33 |
34 | ///////////////////////////////////////////////////////
35 | // do not change code below
36 | ///////////////////////////////////////////////////////
37 | // show usage example
38 | if(isset($_GET['help'])) {
39 | die('Include following code into every page you would like to protect, at the very beginning (first line):
<?php include("' . str_replace('\\','\\\\',__FILE__) . '"); ?>');
40 | }
41 |
42 | // timeout in seconds
43 | $timeout = (TIMEOUT_MINUTES == 0 ? 0 : time() + TIMEOUT_MINUTES * 60);
44 |
45 | // logout?
46 | if(isset($_GET['logout'])) {
47 | setcookie("verify", '', $timeout, '/'); // clear password;
48 | header('Location: ' . LOGOUT_URL);
49 | exit();
50 | }
51 |
52 | if(!function_exists('showLoginPasswordProtect')) {
53 |
54 | // show login form
55 | function showLoginPasswordProtect($error_msg) {
56 | ?>
57 |
58 |
61 |
62 |
63 |