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
e30f56e0
Commit
e30f56e0
authored
Mar 06, 2011
by
Alan Garcia
Browse files
Dash nous cause des problemes.
Je force les scripts a utiliser bash quand il le faut
parent
e70059c9
Changes
7
Hide whitespace changes
Inline
Side-by-side
bureau/admin/head.php
View file @
e30f56e0
...
...
@@ -44,7 +44,7 @@ if (!$charset) $charset="iso-8859-1";
</head>
<body>
<?
$oldid
=
intval
(
$_COOKIE
[
'oldid'
]);
$oldid
=
intval
(
isset
(
$_COOKIE
[
'oldid'
])
?
$_COOKIE
[
'oldid'
]
:
''
)
;
if
(
$oldid
&&
$oldid
!=
$cuid
)
{
echo
"<div align=center><p class='error'>"
;
__
(
"Invited session. Clic <a href='adm_login.php'>here</a> to return to your previous session."
);
...
...
bureau/class/lang_env.php
View file @
e30f56e0
...
...
@@ -29,7 +29,7 @@ if (!(isset($lang))) { // Use the browser first preferred language
}
if
(
!
$locales
[
$lang
])
{
// Requested language not found in locales
if
(
!
isset
(
$locales
[
$lang
])
)
{
// Requested language not found in locales
// treat special cases such as en_AU or fr_BF : use the language only, not the country.
$ll
=
substr
(
$lang
,
0
,
2
);
foreach
(
$locales
as
$l
)
{
...
...
bureau/class/m_mem.php
View file @
e30f56e0
...
...
@@ -248,7 +248,7 @@ class m_mem {
function
del_session
()
{
global
$db
,
$user
,
$err
,
$cuid
,
$classes
;
$err
->
log
(
"mem"
,
"del_session"
);
$_COOKIE
[
"session"
]
=
addslashes
(
$_COOKIE
[
"session"
]);
$_COOKIE
[
"session"
]
=
addslashes
(
isset
(
$_COOKIE
[
"session"
])
?
$_COOKIE
[
"session"
]
:
''
)
;
setcookie
(
"session"
,
""
,
0
,
"/"
);
setcookie
(
"oldid"
,
""
,
0
,
"/admin/"
);
if
(
$_COOKIE
[
"session"
]
==
""
)
{
...
...
etc/alternc/apache2.conf
View file @
e30f56e0
...
...
@@ -14,6 +14,8 @@ ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/
<
Directory
/>
Options
FollowSymLinks
AllowOverride
None
Order
allow
,
deny
Deny
from
all
</
Directory
>
<
Directory
/
var
/
alternc
/
bureau
>
...
...
@@ -24,7 +26,7 @@ ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/
php_admin_flag
safe_mode
off
php_admin_flag
register_globals
on
AddDefaultCharset
ISO
-
8859
-
1
php_admin_value
open_basedir
/
etc
/
alternc
/:/
var
/
run
/
alternc
/:/
var
/
alternc
/
bureau
/:/
var
/
alternc
/
html
/:/
var
/
alternc
/
tmp
:/
tmp
:/
usr
/
share
/
php
/:/
var
/
cache
/
alternc
-
webalizer
/
php_admin_value
open_basedir
/
etc
/
alternc
/:/
var
/
run
/
alternc
/:/
var
/
alternc
/
bureau
/:/
var
/
alternc
/
html
/:/
var
/
alternc
/
tmp
:/
tmp
:/
usr
/
share
/
php
/:/
var
/
cache
/
alternc
-
webalizer
/
:/
etc
/
locale
.
gen
</
Directory
>
...
...
src/fixperms.sh
View file @
e30f56e0
#!/bin/sh -e
#!/bin/
ba
sh -e
#
# $Id: fixperms.sh,v 1.1 2005/08/29 19:21:31 benjamin Exp $
...
...
src/quota_edit.sh
View file @
e30f56e0
#!/bin/sh
#!/bin/
ba
sh
.
/etc/alternc/local.sh
DATA_PART
=
`
/bin/df
${
ALTERNC_LOC
}
2>/dev/null | /usr/bin/awk
'/^\// { print $1 }'
`
/usr/sbin/setquota
-r
-g
$1
$2
$2
0 0
$DATA_PART
2>/dev/null
||
echo
"Group quota are not enabled on /var/alternc."
>
&2
src/quota_get.sh
View file @
e30f56e0
#!/bin/sh
#!/bin/
ba
sh
.
/etc/alternc/local.sh
AWK
=
/usr/bin/awk
...
...
Write
Preview
Supports
Markdown
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