-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanager.php
More file actions
33 lines (22 loc) · 967 Bytes
/
manager.php
File metadata and controls
33 lines (22 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
include('password_protect.php');
// Database file, i.e. file with real data
$data_file = USERS_LIST_FILE;
// Database definition file. You have to describe database format in this file.
// See flatfile.inc.php header for sample.
$structure_file = 'users.def';
// Fields delimiter
$delimiter = ',';
// Number of lines to skip
$skip_lines = 1;
/////////////////////////////////////////////////////////////////////////
////////////////// END OF SETTINGS
/////////////////////////////////////////////////////////////////////////
// logout link
echo '<a href="manager.php?logout=1">Logout</a>';
echo '<hr />';
// protection string
echo 'Include following code into every page you would like to protect, at the very beginning (first line):<br><b><?php include("' . str_replace('\\','\\\\',str_replace(basename(__FILE__),'login.php',__FILE__)) . '"); ?></b>';
// run flatfile manager
include ('flatfile.inc.php');
?>