Dash nous cause des problemes.
Je force les scripts a utiliser bash quand il le faut
This commit is contained in:
parent
e70059c9c2
commit
e30f56e023
|
@ -44,7 +44,7 @@ if (!$charset) $charset="iso-8859-1";
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<?
|
<?
|
||||||
$oldid=intval($_COOKIE['oldid']);
|
$oldid=intval(isset($_COOKIE['oldid'])?$_COOKIE['oldid']:'');
|
||||||
if ($oldid && $oldid!=$cuid) {
|
if ($oldid && $oldid!=$cuid) {
|
||||||
echo "<div align=center><p class='error'>";
|
echo "<div align=center><p class='error'>";
|
||||||
__("Invited session. Clic <a href='adm_login.php'>here</a> to return to your previous session.");
|
__("Invited session. Clic <a href='adm_login.php'>here</a> to return to your previous session.");
|
||||||
|
|
|
@ -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.
|
// treat special cases such as en_AU or fr_BF : use the language only, not the country.
|
||||||
$ll=substr($lang,0,2);
|
$ll=substr($lang,0,2);
|
||||||
foreach($locales as $l) {
|
foreach($locales as $l) {
|
||||||
|
|
|
@ -248,7 +248,7 @@ class m_mem {
|
||||||
function del_session() {
|
function del_session() {
|
||||||
global $db,$user,$err,$cuid,$classes;
|
global $db,$user,$err,$cuid,$classes;
|
||||||
$err->log("mem","del_session");
|
$err->log("mem","del_session");
|
||||||
$_COOKIE["session"]=addslashes($_COOKIE["session"]);
|
$_COOKIE["session"]=addslashes(isset($_COOKIE["session"])?$_COOKIE["session"]:'');
|
||||||
setcookie("session","",0,"/");
|
setcookie("session","",0,"/");
|
||||||
setcookie("oldid","",0,"/admin/");
|
setcookie("oldid","",0,"/admin/");
|
||||||
if ($_COOKIE["session"]=="") {
|
if ($_COOKIE["session"]=="") {
|
||||||
|
|
|
@ -14,6 +14,8 @@ ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/
|
||||||
<Directory />
|
<Directory />
|
||||||
Options FollowSymLinks
|
Options FollowSymLinks
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
|
Order allow, deny
|
||||||
|
Deny from all
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
<Directory /var/alternc/bureau>
|
<Directory /var/alternc/bureau>
|
||||||
|
@ -24,7 +26,7 @@ ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/
|
||||||
php_admin_flag safe_mode off
|
php_admin_flag safe_mode off
|
||||||
php_admin_flag register_globals on
|
php_admin_flag register_globals on
|
||||||
AddDefaultCharset ISO-8859-1
|
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>
|
</Directory>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
#
|
#
|
||||||
# $Id: fixperms.sh,v 1.1 2005/08/29 19:21:31 benjamin Exp $
|
# $Id: fixperms.sh,v 1.1 2005/08/29 19:21:31 benjamin Exp $
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
. /etc/alternc/local.sh
|
. /etc/alternc/local.sh
|
||||||
DATA_PART=`/bin/df ${ALTERNC_LOC} 2>/dev/null | /usr/bin/awk '/^\// { print $1 }'`
|
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
|
/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
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
. /etc/alternc/local.sh
|
. /etc/alternc/local.sh
|
||||||
|
|
||||||
AWK=/usr/bin/awk
|
AWK=/usr/bin/awk
|
||||||
|
|
Loading…
Reference in New Issue