Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
36633e70
Commit
36633e70
authored
Aug 14, 2014
by
Till Brehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed .htpasswd path in ispconfig_htaccess.php script.
parent
e020f745
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
server/scripts/ispconfig_htaccess.php
server/scripts/ispconfig_htaccess.php
+7
-6
No files found.
server/scripts/ispconfig_htaccess.php
View file @
36633e70
...
...
@@ -29,8 +29,9 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
$path
=
realpath
(
dirname
(
__FILE__
))
.
'/..'
;
$iface_path
=
realpath
(
dirname
(
__FILE__
))
.
'/../../interface/web'
;
$path
=
realpath
(
dirname
(
__FILE__
)
.
'/..'
);
$iface_path
=
realpath
(
dirname
(
__FILE__
)
.
'/../../interface/web'
);
$iface_base_path
=
realpath
(
dirname
(
__FILE__
)
.
'/../../interface'
);
require
$path
.
'/lib/mysql_clientdb.conf'
;
...
...
@@ -55,13 +56,13 @@ mysqli_close($link);
if
(
$cont
==
''
)
die
(
'No users found'
.
"
\n
"
);
if
(
file_exists
(
$iface_
path
.
'/.htpasswd'
))
rename
(
$iface_path
.
'/.htpasswd'
,
$ifac
e_path
.
'/.htpasswd.old'
);
file_put_contents
(
$iface_path
.
'/.htpasswd'
,
$cont
);
chmod
(
$iface_path
.
'/.htpasswd'
,
0644
);
if
(
file_exists
(
$iface_
base_path
.
'/.htpasswd'
))
rename
(
$iface_base_path
.
'/.htpasswd'
,
$iface_bas
e_path
.
'/.htpasswd.old'
);
file_put_contents
(
$iface_
base_
path
.
'/.htpasswd'
,
$cont
);
chmod
(
$iface_
base_
path
.
'/.htpasswd'
,
0644
);
$cont
=
'AuthType Basic
AuthName "Login"
AuthUserFile '
.
$iface_path
.
'/.htpasswd
AuthUserFile '
.
$iface_
base_
path
.
'/.htpasswd
require valid-user'
;
if
(
file_exists
(
$iface_path
.
'/.htaccess'
))
rename
(
$iface_path
.
'/.htaccess'
,
$iface_path
.
'/.htaccess.old'
);
...
...
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