Changeset 2981


Ignore:
Timestamp:
06/04/11 11:39:15 (2 years ago)
Author:
xals
Message:

Merged changesets 2976 and 2979 from branch stable 1.0 to trunk.

Location:
alternc/trunk
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • alternc/trunk

  • alternc/trunk/bureau/class/lang_env.php

    r2871 r2981  
    99      $locales[$mat[1]]=$mat[1]; 
    1010    } 
     11  } 
     12  if (!count($locales)) { 
     13    $locales=array("en_US"=>"en_US"); 
    1114  } 
    1215  return $locales; 
     
    2326// Create or update a locale.php file if it is outdated. 
    2427$locales = update_locale($langpath); 
     28 
     29// Default to en_US :  
     30if (!isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) { 
     31  $_SERVER["HTTP_ACCEPT_LANGUAGE"]="en_US"; 
     32} 
    2533 
    2634if (!(isset($lang))) {  // Use the browser first preferred language 
     
    4048} 
    4149 
    42 if (!isset($locales[$lang])) $lang=$locales[0];  
     50if (!isset($locales[$lang])) list($lang)=each($locales); 
    4351 
    4452if (isset($setlang) && isset($lang)) { 
  • alternc/trunk/bureau/class/m_err.php

    r2270 r2981  
    141141    $f=@fopen($this->logfile,"ab"); 
    142142    if ($f) { 
     143      if (!isset($_SERVER['REMOTE_ADDR'])) $_SERVER['REMOTE_ADDR']="::1"; 
    143144      fputs($f,date("d/m/Y H:i:s")." - " . $_SERVER['REMOTE_ADDR'] . " - CALL - "); 
    144145      fputs($f,$mem->user["login"]." - "); 
  • alternc/trunk/bureau/class/m_quota.php

    r2908 r2981  
    174174    $err->log("quota","setquota",$ressource."/".$size); 
    175175    if (floatval($size)==0) $size="0"; 
    176     if ($this->disk[$ressource]) { 
     176    if (isset($this->disk[$ressource])) { 
    177177      // It's a disk resource, update it with shell command 
    178178      exec("/usr/lib/alternc/quota_edit $cuid $size"); 
  • alternc/trunk/bureau/class/variables.php

    r1534 r2981  
    4747    /* maybe the data is *not* serialized, in that case, take it verbatim */ 
    4848    $variable = $db->Record; 
    49     if (($variables[$variable['name']] = unserialize($variable['value'])) === FALSE) { 
     49    if (($variables[$variable['name']] = @unserialize($variable['value'])) === FALSE) { 
    5050      $variables[$variable['name']] = $variable['value']; 
    5151    } 
  • alternc/trunk/debian/control

    r2974 r2981  
    3030Architecture: all 
    3131Pre-depends: debconf (>= 0.5.00) | debconf-2.0 
    32 Depends: debianutils (>= 1.13.1), apache2, libapache2-mod-php5, courier-ssl, courier-imap-ssl, courier-pop-ssl, php5-mysql, phpmyadmin, postfix, proftpd-mod-mysql, proftpd-basic, squirrelmail, postfix-tls, bind9, wget, rsync, quota, courier-authmysql | courier-authlib-mysql, ca-certificates, locales, perl-suid, perl, postfix-mysql, wwwconfig-common, sasl2-bin, libsasl2-modules, php5-cli, lockfile-progs (>= 0.1.9), gettext (>= 0.10.40-5), adduser, mysql-client, postgrey, sudo 
     32Depends: debianutils (>= 1.13.1), apache2, libapache2-mod-php5, courier-ssl, courier-imap-ssl, courier-pop-ssl, php5-mysql, phpmyadmin, postfix, proftpd-mod-mysql, proftpd-basic, squirrelmail, postfix-tls, bind9, wget, rsync, quota, courier-authmysql | courier-authlib-mysql, ca-certificates, locales, perl-suid, perl, postfix-mysql, wwwconfig-common, sasl2-bin, libsasl2-modules, php5-cli, lockfile-progs (>= 0.1.9), gettext (>= 0.10.40-5), adduser, mysql-client, sudo 
    3333Recommends: apache2 
    3434Conflicts: alternc-admintools, alternc-awstats (<= 0.3.2), alternc-webalizer (<= 0.9.4), alternc 
  • alternc/trunk/etc/alternc/functions_hosting

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • alternc/trunk/etc/alternc/postfix.cf

    r2559 r2981  
    3232virtual_uid_maps = static:33 
    3333default_privs = www-data 
    34 smtpd_recipient_restrictions = reject_unlisted_recipient, permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unauth_destination, check_policy_service inet:127.0.0.1:60000, reject_rbl_client zen.spamhaus.org 
     34smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_rbl_client zen.spamhaus.org, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_pipelining, reject_unlisted_recipient, reject_unauth_destination 
  • alternc/trunk/etc/alternc/templates/apache2/url.conf

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • alternc/trunk/etc/alternc/templates/apache2/vhost.conf

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • alternc/trunk/install/alternc.install

    r2955 r2981  
    259259fi 
    260260 
     261if [ ! -f /etc/postfix/main.cf ] 
     262then 
     263    echo "****************************************" 
     264    echo "POSTFIX is NOT configured properly" 
     265    echo "please launch dpkg-reconfigure -plow postfix"  
     266    echo "and choose 'Internet Site'" 
     267    echo "then reinstall alternc" 
     268    echo "****************************************" 
     269    exit 1 
     270fi 
     271 
    261272# configure postfix appropriatly for our needs 
    262273if [ "$slave" = "1" ]; then 
  • alternc/trunk/src/functions_dns.sh

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • alternc/trunk/src/functions_hosting.sh

    • Property svn:mergeinfo changed (with no actual effect on merging)
Note: See TracChangeset for help on using the changeset viewer.