30 ) { // List name must not be longer than 30 characters $_SESSION["error_code"] = 6; header("Location: error.php"); exit(); } $domain = $_SESSION["domain"]; shell_exec("cp -r misc/template_$language $lists_path/$domain/$list_name"); file_put_contents("$lists_path/$domain/$list_name/control/listaddress", "$list_name@$domain"); file_put_contents("$lists_path/$domain/$list_name/control/customheaders", "From: $list_name@$domain\nReply-To: $list_name@$domain\n"); file_put_contents("$lists_path/$domain/$list_name/control/prefix", "[$list_name]"); shell_exec("sed -i -e 's/_unsub_addr_/$list_name\+unsubscribe@$domain/g' $lists_path/$domain/$list_name/control/footer-*"); } header("Location: index.php"); exit(); ?>