fixing 1.0.1 bug with domain lock + fixing deprecated function in php (TO BE CHECKED...)

This commit is contained in:
Benjamin Sonntag 2011-06-16 09:01:06 +00:00
parent 15844dbc9e
commit a0f4840a20
2 changed files with 5 additions and 1 deletions

View File

@ -131,7 +131,7 @@ $classes=array();
/* CLASSES PHP : automatic include : */ /* CLASSES PHP : automatic include : */
$c=opendir($root."class/"); $c=opendir($root."class/");
while ($di=readdir($c)) { while ($di=readdir($c)) {
if (ereg("^m_(.*)\\.php$",$di,$match)) { // $ if (preg_match("#^m_(.*)\\.php$#",$di,$match)) { // $
$name1="m_".$match[1]; $name1="m_".$match[1];
$name2=$match[1]; $name2=$match[1];
$classes[]=$name2; $classes[]=$name2;

View File

@ -14,6 +14,7 @@ require("/var/alternc/bureau/class/config_nochk.php");
// we go super-admin // we go super-admin
$admin->enabled=1; $admin->enabled=1;
$dom->lock();
// And we process the database changes : // And we process the database changes :
$db->query("SELECT * FROM domaines;"); $db->query("SELECT * FROM domaines;");
@ -29,4 +30,7 @@ foreach($domains as $v) {
} }
} }
$dom->unlock();
?> ?>