fixing 1.0.1 bug with domain lock + fixing deprecated function in php (TO BE CHECKED...)
This commit is contained in:
		
							parent
							
								
									15844dbc9e
								
							
						
					
					
						commit
						a0f4840a20
					
				|  | @ -131,7 +131,7 @@ $classes=array(); | |||
| /* CLASSES PHP : automatic include : */ | ||||
| $c=opendir($root."class/"); | ||||
| while ($di=readdir($c)) { | ||||
|   if (ereg("^m_(.*)\\.php$",$di,$match)) { // $
 | ||||
|   if (preg_match("#^m_(.*)\\.php$#",$di,$match)) { // $
 | ||||
|     $name1="m_".$match[1]; | ||||
|     $name2=$match[1]; | ||||
|     $classes[]=$name2; | ||||
|  |  | |||
|  | @ -14,6 +14,7 @@ require("/var/alternc/bureau/class/config_nochk.php"); | |||
| 
 | ||||
| // we go super-admin
 | ||||
| $admin->enabled=1; | ||||
| $dom->lock(); | ||||
| 
 | ||||
| // And we process the database changes : 
 | ||||
| $db->query("SELECT * FROM domaines;"); | ||||
|  | @ -29,4 +30,7 @@ foreach($domains as $v) { | |||
|   } | ||||
| } | ||||
| 
 | ||||
| $dom->unlock(); | ||||
| 
 | ||||
| 
 | ||||
| ?>
 | ||||
		Loading…
	
		Reference in New Issue
	
	 Benjamin Sonntag
						Benjamin Sonntag