Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
domainepublic
alternc
Commits
02f735ec
Commit
02f735ec
authored
Mar 26, 2014
by
Alan Garcia
Browse files
Some cosmetic
parent
2f92810c
Changes
8
Hide whitespace changes
Inline
Side-by-side
bureau/admin/browseforfolder2.php
View file @
02f735ec
...
...
@@ -70,6 +70,9 @@ function _subbrowse($curdir,$pos,$level) {
}
}
/**
* @param string $curdir
*/
function
browseforfolder
(
$curdir
)
{
global
$maxlevel
,
$root
,
$brlist
;
$maxlevel
=
0
;
...
...
bureau/admin/head.php
View file @
02f735ec
...
...
@@ -22,7 +22,7 @@
Purpose of file: Main header of all html files
----------------------------------------------------------------------
*/
if
(
!
$charset
)
$charset
=
"UTF-8"
;
if
(
!
isset
(
$charset
)
||
!
$charset
)
$charset
=
"UTF-8"
;
@
header
(
"Content-Type: text/html; charset=
$charset
"
);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
...
...
bureau/admin/hta_add.php
View file @
02f735ec
...
...
@@ -55,7 +55,7 @@ if (isset($error) && $error) {
<th><label
for=
"dir"
>
<?php
__
(
"Folder"
);
?>
</label></th>
<td>
<input
type=
"text"
class=
"int"
name=
"dir"
id=
"dir"
value=
"
<?php
(
isset
(
$dir
))
?
:
$dir
=
""
;
ehe
(
$dir
);
?>
"
maxlength=
"255"
/>
<?php
display_browser
(
ehe
(
$dir
,
0
)
,
"main.dir"
);
?>
<?php
display_browser
(
ehe
(
$dir
,
false
)
,
"main.dir"
);
?>
</td>
</tr>
</table>
...
...
bureau/admin/hta_edit.php
View file @
02f735ec
...
...
@@ -36,7 +36,9 @@ $fields = array (
getFields
(
$fields
);
if
(
!
$dir
)
{
$error
=
_
(
"No folder selected!"
);
echo
"<p class=
\"
alert alert-warning
\"
>"
.
_
(
"No folder selected!"
)
.
"</p>"
;
require_once
(
'foot.php'
);
die
();
}
else
{
$r
=
$hta
->
get_hta_detail
(
$dir
);
if
(
!
$r
)
{
...
...
bureau/admin/index.php
View file @
02f735ec
...
...
@@ -36,7 +36,7 @@ $H=getenv("HTTP_HOST");
if
(
!
isset
(
$restrictip
))
{
$restrictip
=
1
;
}
if
(
!
$charset
)
$charset
=
"UTF-8"
;
if
(
!
isset
(
$charset
)
||
!
$charset
)
$charset
=
"UTF-8"
;
@
header
(
"Content-Type: text/html; charset=
$charset
"
);
?>
...
...
bureau/admin/mem_logout.php
View file @
02f735ec
...
...
@@ -31,7 +31,7 @@ require_once("../class/config.php");
$mem
->
del_session
();
if
(
!
$charset
)
$charset
=
"UTF-8"
;
if
(
!
isset
(
$charset
)
||
!
$charset
)
$charset
=
"UTF-8"
;
@
header
(
"Content-Type: text/html; charset=
$charset
"
);
?>
...
...
bureau/admin/webmail-redirect.php
View file @
02f735ec
...
...
@@ -26,13 +26,13 @@
require_once
(
"../class/config_nochk.php"
);
$res
=
$hooks
->
invoke
(
"hook_admin_webmail"
);
$res
=
$hooks
->
invoke
(
"hook_admin_webmail"
);
if
((
$wr
=
variable_get
(
"webmail_redirect"
))
&&
isset
(
$res
[
$wr
])
&&
$res
[
$wr
])
{
$url
=
$res
[
$wr
];
}
else
{
foreach
(
$res
as
$r
)
if
(
$r
!==
false
)
{
$url
=
$r
;
break
;
}
}
if
(
$url
)
{
if
(
isset
(
$url
)
&&
$url
)
{
header
(
"Location:
$url
"
);
}
else
{
header
(
"Location: /nowebmail"
);
...
...
bureau/class/config.php
View file @
02f735ec
...
...
@@ -34,7 +34,7 @@ if (DO_XHPROF_STATS) require_once('/usr/share/alternc/panel/admin/xhprof_header.
// To enable the display of the alternc debug error, do the following :
// # touch /etc/alternc/alternc_display_php_error
if
(
file_exists
(
'/etc/alternc/alternc_display_php_error'
))
{
ini_set
(
'display_errors'
,
true
);
ini_set
(
'display_errors'
,
'1'
);
}
session_name
(
'AlternC_Panel'
);
session_start
();
...
...
@@ -137,7 +137,10 @@ if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"]=="on" && $host!=$L_FQDN) {
*/
class
DB_system
extends
DB_Sql
{
var
$Host
,
$Database
,
$User
,
$Password
=
null
;
var
$Host
=
null
;
var
$Database
=
null
;
var
$User
=
null
;
var
$Password
=
null
;
/**
* Creator
...
...
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