Subversion Repositories ALCASAR

Rev

Rev 1954 | Rev 1958 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1954 Rev 1955
Line 265... Line 265...
265
	{	
265
	{	
266
		$dest_dir = $dir_blacklist."ossi-wl-".$file_name;
266
		$dest_dir = $dir_blacklist."ossi-wl-".$file_name;
267
		exec ("mkdir $dest_dir");
267
		exec ("mkdir $dest_dir");
268
		if(move_uploaded_file($_FILES['fichier_ip']['tmp_name'], $dest_dir."/domains"))
268
		if(move_uploaded_file($_FILES['fichier_ip']['tmp_name'], $dest_dir."/domains"))
269
		{
269
		{
-
 
270
			touch ($dest_dir."/urls"); // create the URL file even if it isn't used
270
			file_put_contents ($wl_categories, $dest_dir."\n", FILE_APPEND);
271
			file_put_contents ($wl_categories, $dest_dir."\n", FILE_APPEND);
271
			file_put_contents ($wl_categories_enabled, "ossi-wl-".$file_name."\n", FILE_APPEND); //Enabled by default
272
			file_put_contents ($wl_categories_enabled, "ossi-wl-".$file_name."\n", FILE_APPEND); //Enabled by default
272
			exec ("sudo /usr/local/bin/alcasar-bl.sh --reload");
273
			exec ("sudo /usr/local/bin/alcasar-bl.sh --reload");
273
		}
274
		}
274
		else
275
		else